/**
  * @param int $external_attendee_id
  * @param int $order_external_id
  * @param string $bought_date
  * @param string $changed_date
  * @param ISummitTicketType $ticket_type
  * @return mixed
  */
 public function buildTicket($external_attendee_id, $order_external_id, $bought_date, $changed_date, ISummitTicketType $ticket_type)
 {
     $ticket = new SummitAttendeeTicket();
     $ticket->ExternalOrderId = intval($order_external_id);
     $ticket->ExternalAttendeeId = intval($external_attendee_id);
     $ticket->TicketBoughtDate = $bought_date;
     $ticket->TicketChangedDate = $changed_date;
     $ticket->TicketTypeID = $ticket_type->getIdentifier();
     return $ticket;
 }
Ejemplo n.º 2
0
 /**
  * @param Member $member
  * @param ISummit $summit
  * @param string $external_attendee_id
  * @param string $order_external_id
  * @param ISummitTicketType $ticket_type
  * @param string $bought_date
  * @param bool $shared_contact_info
  * @return ISummitAttendee
  */
 public function build(Member $member, ISummit $summit, $external_attendee_id, $order_external_id, ISummitTicketType $ticket_type, $bought_date, $shared_contact_info = false)
 {
     $attendee = new SummitAttendee();
     $attendee->MemberID = $member->ID;
     $attendee->SummitID = $summit->ID;
     $attendee->ExternalId = $external_attendee_id;
     $attendee->ExternalOrderId = $order_external_id;
     $attendee->TicketTypeID = $ticket_type->getIdentifier();
     $attendee->ExternalTicketClassID = $ticket_type->getExternalId();
     $attendee->SharedContactInfo = $shared_contact_info;
     $attendee->TicketBoughtDate = $bought_date;
     return $attendee;
 }