Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OfflineTicket" /> class.
 /// </summary>
 /// <param name="offlineTicketId">The ticket ID.</param>
 /// <param name="testTicket">True if test mode.</param>
 /// <param name="barcode">The ticket barcode.</param>
 /// <param name="name">Name of ticket.</param>
 /// <param name="price">Purchase price for the ticket.</param>
 /// <param name="details">Details about the ticket.</param>
 /// <param name="slotDate">Applicable to timed ticketing.</param>
 /// <param name="slotTime">Applicable to timed ticketing.</param>
 /// <param name="seatCustom1">Applicable to reserved seating.</param>
 /// <param name="seatCustom2">Applicable to reserved seating.</param>
 /// <param name="seatSection">Applicable to reserved seating.</param>
 /// <param name="seatRow">Applicable to reserved seating.</param>
 /// <param name="seatNumber">Applicable to reserved seating.</param>
 /// <param name="canceled">Canceled / Voided ticket.</param>
 /// <param name="scans">Array of ticket scan activity.</param>
 /// <param name="scanPointConfig">scanPointConfig.</param>
 public OfflineTicket(int?offlineTicketId = default(int?), bool?testTicket = default(bool?), string barcode = default(string), string name = default(string), string price = default(string), string details = default(string), string slotDate = default(string), string slotTime = default(string), string seatCustom1 = default(string), string seatCustom2 = default(string), string seatSection = default(string), string seatRow = default(string), int?seatNumber = default(int?), bool?canceled = default(bool?), List <Scan> scans = default(List <Scan>), ScanPointConfig scanPointConfig = default(ScanPointConfig))
 {
     this.OfflineTicketId = offlineTicketId;
     this.TestTicket      = testTicket;
     this.Barcode         = barcode;
     this.Name            = name;
     this.Price           = price;
     this.Details         = details;
     this.SlotDate        = slotDate;
     this.SlotTime        = slotTime;
     this.SeatCustom1     = seatCustom1;
     this.SeatCustom2     = seatCustom2;
     this.SeatSection     = seatSection;
     this.SeatRow         = seatRow;
     this.SeatNumber      = seatNumber;
     this.Canceled        = canceled;
     this.Scans           = scans;
     this.ScanPointConfig = scanPointConfig;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Ticket" /> class.
 /// </summary>
 /// <param name="ticketId">The ticket ID.</param>
 /// <param name="orderId">The ticket order ID.</param>
 /// <param name="barcode">The ticket barcode.</param>
 /// <param name="canceled">Canceled / Voided ticket.</param>
 /// <param name="name">Name of ticket.</param>
 /// <param name="details">Details about the ticket.</param>
 /// <param name="price">Purchase price for the ticket.</param>
 /// <param name="slotDate">Applicable to timed ticketing.</param>
 /// <param name="slotTime">Applicable to timed ticketing.</param>
 /// <param name="slotAllDay">Applicable to timed ticketing.</param>
 /// <param name="nameOnTicket">Customer name printed on ticket.</param>
 /// <param name="seatEventTitle">Applicable to reserved seating.</param>
 /// <param name="seatVenueTitle">Applicable to reserved seating.</param>
 /// <param name="seatSection">Applicable to reserved seating.</param>
 /// <param name="seatCustom1">Applicable to reserved seating.</param>
 /// <param name="seatCustom2">Applicable to reserved seating.</param>
 /// <param name="seatRow">Applicable to reserved seating.</param>
 /// <param name="seatRowLabel">Applicable to reserved seating.</param>
 /// <param name="seatNumber">Applicable to reserved seating.</param>
 /// <param name="seatNumberLabel">Applicable to reserved seating.</param>
 /// <param name="seatText">Applicable to reserved seating.</param>
 /// <param name="noPrint">Indicates tickets that should not be printed.</param>
 /// <param name="noBarcode">Indicates tickets that should not be barcoded.</param>
 /// <param name="discount">Discounts applied to the ticket.</param>
 /// <param name="fee">Oranization charged service fee.</param>
 /// <param name="tax">Oranization chaarged tax.</param>
 /// <param name="refund">Alloted refund back to ticket (for reports).</param>
 /// <param name="promoCode">Applicable to promo code discounts.</param>
 /// <param name="promoName">Applicable to promo code discounts.</param>
 /// <param name="promoDescription">Applicable to promo code discounts.</param>
 /// <param name="department">department.</param>
 /// <param name="scans">Array of ticket scan activity.</param>
 /// <param name="scanPointConfig">scanPointConfig.</param>
 public Ticket(int?ticketId = default(int?), int?orderId = default(int?), string barcode = default(string), bool?canceled = default(bool?), string name = default(string), string details = default(string), string price = default(string), string slotDate = default(string), string slotTime = default(string), bool?slotAllDay = default(bool?), string nameOnTicket = default(string), string seatEventTitle = default(string), string seatVenueTitle = default(string), string seatSection = default(string), string seatCustom1 = default(string), string seatCustom2 = default(string), string seatRow = default(string), string seatRowLabel = default(string), int?seatNumber = default(int?), string seatNumberLabel = default(string), string seatText = default(string), bool?noPrint = default(bool?), bool?noBarcode = default(bool?), string discount = default(string), string fee = default(string), string tax = default(string), string refund = default(string), string promoCode = default(string), string promoName = default(string), string promoDescription = default(string), Department department = default(Department), List <Scan> scans = default(List <Scan>), ScanPointConfig scanPointConfig = default(ScanPointConfig))
 {
     this.TicketId         = ticketId;
     this.OrderId          = orderId;
     this.Barcode          = barcode;
     this.Canceled         = canceled;
     this.Name             = name;
     this.Details          = details;
     this.Price            = price;
     this.SlotDate         = slotDate;
     this.SlotTime         = slotTime;
     this.SlotAllDay       = slotAllDay;
     this.NameOnTicket     = nameOnTicket;
     this.SeatEventTitle   = seatEventTitle;
     this.SeatVenueTitle   = seatVenueTitle;
     this.SeatSection      = seatSection;
     this.SeatCustom1      = seatCustom1;
     this.SeatCustom2      = seatCustom2;
     this.SeatRow          = seatRow;
     this.SeatRowLabel     = seatRowLabel;
     this.SeatNumber       = seatNumber;
     this.SeatNumberLabel  = seatNumberLabel;
     this.SeatText         = seatText;
     this.NoPrint          = noPrint;
     this.NoBarcode        = noBarcode;
     this.Discount         = discount;
     this.Fee              = fee;
     this.Tax              = tax;
     this.Refund           = refund;
     this.PromoCode        = promoCode;
     this.PromoName        = promoName;
     this.PromoDescription = promoDescription;
     this.Department       = department;
     this.Scans            = scans;
     this.ScanPointConfig  = scanPointConfig;
 }