/**
  * Inform the referrer that they have received a discount code, and mark the referral as completed
  *
  * @param DiscountCreateEvent $event
  */
 public function updateReferral(DiscountCreateEvent $event)
 {
     $referral = $event->getReferral();
     $this->get('refer.discount.success_mailer')->inform($referral, $event->getDiscount());
     $referral->setStatus(Statuses::COMPLETE);
     $this->get('refer.referral.edit')->save($referral);
 }