Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Sales.Total |
GET POST | /ticketSales | ||
---|---|---|---|
GET POST | /ticketSales/event/{EventId} | ||
GET POST | /ticketSales/team/{EventOwnerId} | ||
GET POST | /ticketSales/event/ksi/{KsiEventId} | ||
GET POST | /ticketSales/team/ksi/{EventOwnerKsiId} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EventTicketSalesRequest
{
public Integer eventId = null;
public String ksiEventId = null;
public Integer eventOwnerId = null;
public String eventOwnerKsiId = null;
public Integer getEventId() { return eventId; }
public EventTicketSalesRequest setEventId(Integer value) { this.eventId = value; return this; }
public String getKsiEventId() { return ksiEventId; }
public EventTicketSalesRequest setKsiEventId(String value) { this.ksiEventId = value; return this; }
public Integer getEventOwnerId() { return eventOwnerId; }
public EventTicketSalesRequest setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public String getEventOwnerKsiId() { return eventOwnerKsiId; }
public EventTicketSalesRequest setEventOwnerKsiId(String value) { this.eventOwnerKsiId = value; return this; }
}
public static class EventTicketSalesResult
{
public ArrayList<EventTicketDetails> eventSales = null;
public Integer statusCode = null;
public String message = null;
public ArrayList<EventTicketDetails> getEventSales() { return eventSales; }
public EventTicketSalesResult setEventSales(ArrayList<EventTicketDetails> value) { this.eventSales = value; return this; }
public Integer getStatusCode() { return statusCode; }
public EventTicketSalesResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public EventTicketSalesResult setMessage(String value) { this.message = value; return this; }
}
public static class EventTicketDetails
{
public BigDecimal ticketPrice = null;
public BigDecimal totalPrice = null;
public Integer count = null;
public Date timestampBought = null;
public Date timestampActivated = null;
public String paymentMethodId = null;
public String ticketStatus = null;
public String deild = null;
public String location = null;
public String event = null;
public Date timeOfEvent = null;
public Integer eventSeriesOwnerTicketType = null;
public Integer eventSeriesTicketType = null;
public Integer eventId = null;
public String externalReference = null;
public Integer eventOwnerId = null;
public Integer eventSeriesId = null;
public String ksiCompetitionId = null;
public String eventOwnerName = null;
public String eventOwnerKsiID = null;
public Integer teamPassId = null;
public String ticketName = null;
public String paymentReference = null;
public String paymentId = null;
public Integer ticketTeamPassId = null;
public Integer ticketId = null;
public String phoneVerificationNumber = null;
public String paymentPhoneNumber = null;
public String holderId = null;
public String holderName = null;
public String holderFullPhoneNumber = null;
public String seatName = null;
public String rowName = null;
public String sectionName = null;
public String seatDisplayString = null;
public Boolean isSpecialTicket = null;
public String specialTicketId = null;
public String imageUrl = null;
public String detailedDescription = null;
public String ticketTokenId = null;
public Date timeOfEventUTC = null;
public Date endOfEvent = null;
public Date endOfEventUTC = null;
public String deviceId = null;
public Boolean ticketHasExpired = null;
public BigDecimal getTicketPrice() { return ticketPrice; }
public EventTicketDetails setTicketPrice(BigDecimal value) { this.ticketPrice = value; return this; }
public BigDecimal getTotalPrice() { return totalPrice; }
public EventTicketDetails setTotalPrice(BigDecimal value) { this.totalPrice = value; return this; }
public Integer getCount() { return count; }
public EventTicketDetails setCount(Integer value) { this.count = value; return this; }
public Date getTimestampBought() { return timestampBought; }
public EventTicketDetails setTimestampBought(Date value) { this.timestampBought = value; return this; }
public Date getTimestampActivated() { return timestampActivated; }
public EventTicketDetails setTimestampActivated(Date value) { this.timestampActivated = value; return this; }
public String getPaymentMethodId() { return paymentMethodId; }
public EventTicketDetails setPaymentMethodId(String value) { this.paymentMethodId = value; return this; }
public String getTicketStatus() { return ticketStatus; }
public EventTicketDetails setTicketStatus(String value) { this.ticketStatus = value; return this; }
public String getDeild() { return deild; }
public EventTicketDetails setDeild(String value) { this.deild = value; return this; }
public String getLocation() { return location; }
public EventTicketDetails setLocation(String value) { this.location = value; return this; }
public String getEvent() { return event; }
public EventTicketDetails setEvent(String value) { this.event = value; return this; }
public Date getTimeOfEvent() { return timeOfEvent; }
public EventTicketDetails setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
public Integer getEventSeriesOwnerTicketType() { return eventSeriesOwnerTicketType; }
public EventTicketDetails setEventSeriesOwnerTicketType(Integer value) { this.eventSeriesOwnerTicketType = value; return this; }
public Integer getEventSeriesTicketType() { return eventSeriesTicketType; }
public EventTicketDetails setEventSeriesTicketType(Integer value) { this.eventSeriesTicketType = value; return this; }
public Integer getEventId() { return eventId; }
public EventTicketDetails setEventId(Integer value) { this.eventId = value; return this; }
public String getExternalReference() { return externalReference; }
public EventTicketDetails setExternalReference(String value) { this.externalReference = value; return this; }
public Integer getEventOwnerId() { return eventOwnerId; }
public EventTicketDetails setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public Integer getEventSeriesId() { return eventSeriesId; }
public EventTicketDetails setEventSeriesId(Integer value) { this.eventSeriesId = value; return this; }
public String getKsiCompetitionId() { return ksiCompetitionId; }
public EventTicketDetails setKsiCompetitionId(String value) { this.ksiCompetitionId = value; return this; }
public String getEventOwnerName() { return eventOwnerName; }
public EventTicketDetails setEventOwnerName(String value) { this.eventOwnerName = value; return this; }
public String getEventOwnerKsiID() { return eventOwnerKsiID; }
public EventTicketDetails setEventOwnerKsiID(String value) { this.eventOwnerKsiID = value; return this; }
public Integer getTeamPassId() { return teamPassId; }
public EventTicketDetails setTeamPassId(Integer value) { this.teamPassId = value; return this; }
public String getTicketName() { return ticketName; }
public EventTicketDetails setTicketName(String value) { this.ticketName = value; return this; }
public String getPaymentReference() { return paymentReference; }
public EventTicketDetails setPaymentReference(String value) { this.paymentReference = value; return this; }
public String getPaymentId() { return paymentId; }
public EventTicketDetails setPaymentId(String value) { this.paymentId = value; return this; }
public Integer getTicketTeamPassId() { return ticketTeamPassId; }
public EventTicketDetails setTicketTeamPassId(Integer value) { this.ticketTeamPassId = value; return this; }
public Integer getTicketId() { return ticketId; }
public EventTicketDetails setTicketId(Integer value) { this.ticketId = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public EventTicketDetails setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getPaymentPhoneNumber() { return paymentPhoneNumber; }
public EventTicketDetails setPaymentPhoneNumber(String value) { this.paymentPhoneNumber = value; return this; }
public String getHolderId() { return holderId; }
public EventTicketDetails setHolderId(String value) { this.holderId = value; return this; }
public String getHolderName() { return holderName; }
public EventTicketDetails setHolderName(String value) { this.holderName = value; return this; }
public String getHolderFullPhoneNumber() { return holderFullPhoneNumber; }
public EventTicketDetails setHolderFullPhoneNumber(String value) { this.holderFullPhoneNumber = value; return this; }
public String getSeatName() { return seatName; }
public EventTicketDetails setSeatName(String value) { this.seatName = value; return this; }
public String getRowName() { return rowName; }
public EventTicketDetails setRowName(String value) { this.rowName = value; return this; }
public String getSectionName() { return sectionName; }
public EventTicketDetails setSectionName(String value) { this.sectionName = value; return this; }
public String getSeatDisplayString() { return seatDisplayString; }
public EventTicketDetails setSeatDisplayString(String value) { this.seatDisplayString = value; return this; }
public Boolean getIsSpecialTicket() { return isSpecialTicket; }
public EventTicketDetails setIsSpecialTicket(Boolean value) { this.isSpecialTicket = value; return this; }
public String getSpecialTicketId() { return specialTicketId; }
public EventTicketDetails setSpecialTicketId(String value) { this.specialTicketId = value; return this; }
public String getImageUrl() { return imageUrl; }
public EventTicketDetails setImageUrl(String value) { this.imageUrl = value; return this; }
public String getDetailedDescription() { return detailedDescription; }
public EventTicketDetails setDetailedDescription(String value) { this.detailedDescription = value; return this; }
public String getTicketTokenId() { return ticketTokenId; }
public EventTicketDetails setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
public Date getTimeOfEventUTC() { return timeOfEventUTC; }
public EventTicketDetails setTimeOfEventUTC(Date value) { this.timeOfEventUTC = value; return this; }
public Date getEndOfEvent() { return endOfEvent; }
public EventTicketDetails setEndOfEvent(Date value) { this.endOfEvent = value; return this; }
public Date getEndOfEventUTC() { return endOfEventUTC; }
public EventTicketDetails setEndOfEventUTC(Date value) { this.endOfEventUTC = value; return this; }
public String getDeviceId() { return deviceId; }
public EventTicketDetails setDeviceId(String value) { this.deviceId = value; return this; }
public Boolean isTicketHasExpired() { return ticketHasExpired; }
public EventTicketDetails setTicketHasExpired(Boolean value) { this.ticketHasExpired = value; return this; }
}
}
Java EventTicketSalesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketSales HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<EventTicketSalesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<EventId>0</EventId>
<EventOwnerId>0</EventOwnerId>
<EventOwnerKsiId>String</EventOwnerKsiId>
<KsiEventId>String</KsiEventId>
</EventTicketSalesRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <EventTicketSalesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <EventSales xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:EventTicketDetails> <d2p1:Count>0</d2p1:Count> <d2p1:Deild>String</d2p1:Deild> <d2p1:DetailedDescription>String</d2p1:DetailedDescription> <d2p1:DeviceId>String</d2p1:DeviceId> <d2p1:EndOfEvent>0001-01-01T00:00:00</d2p1:EndOfEvent> <d2p1:EndOfEventUTC>0001-01-01T00:00:00</d2p1:EndOfEventUTC> <d2p1:Event>String</d2p1:Event> <d2p1:EventId>0</d2p1:EventId> <d2p1:EventOwnerId>0</d2p1:EventOwnerId> <d2p1:EventOwnerKsiID>String</d2p1:EventOwnerKsiID> <d2p1:EventOwnerName>String</d2p1:EventOwnerName> <d2p1:EventSeriesId>0</d2p1:EventSeriesId> <d2p1:EventSeriesOwnerTicketType>0</d2p1:EventSeriesOwnerTicketType> <d2p1:EventSeriesTicketType>0</d2p1:EventSeriesTicketType> <d2p1:ExternalReference>String</d2p1:ExternalReference> <d2p1:HolderFullPhoneNumber>String</d2p1:HolderFullPhoneNumber> <d2p1:HolderId>String</d2p1:HolderId> <d2p1:HolderName>String</d2p1:HolderName> <d2p1:ImageUrl>String</d2p1:ImageUrl> <d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket> <d2p1:Location>String</d2p1:Location> <d2p1:PaymentId>String</d2p1:PaymentId> <d2p1:PaymentMethodId>String</d2p1:PaymentMethodId> <d2p1:PaymentPhoneNumber>String</d2p1:PaymentPhoneNumber> <d2p1:PaymentReference>String</d2p1:PaymentReference> <d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber> <d2p1:RowName>String</d2p1:RowName> <d2p1:SeatDisplayString>String</d2p1:SeatDisplayString> <d2p1:SeatName>String</d2p1:SeatName> <d2p1:SectionName>String</d2p1:SectionName> <d2p1:SpecialTicketId>String</d2p1:SpecialTicketId> <d2p1:TeamPassId>0</d2p1:TeamPassId> <d2p1:TicketHasExpired>false</d2p1:TicketHasExpired> <d2p1:TicketId>0</d2p1:TicketId> <d2p1:TicketName>String</d2p1:TicketName> <d2p1:TicketPrice>0</d2p1:TicketPrice> <d2p1:TicketStatus>String</d2p1:TicketStatus> <d2p1:TicketTeamPassId>0</d2p1:TicketTeamPassId> <d2p1:TicketTokenId>String</d2p1:TicketTokenId> <d2p1:TimeOfEvent>0001-01-01T00:00:00</d2p1:TimeOfEvent> <d2p1:TimeOfEventUTC>0001-01-01T00:00:00</d2p1:TimeOfEventUTC> <d2p1:TimestampActivated>0001-01-01T00:00:00</d2p1:TimestampActivated> <d2p1:TimestampBought>0001-01-01T00:00:00</d2p1:TimestampBought> <d2p1:TotalPrice>0</d2p1:TotalPrice> <d2p1:ksiCompetitionId>String</d2p1:ksiCompetitionId> </d2p1:EventTicketDetails> </EventSales> <Message>String</Message> <StatusCode>0</StatusCode> </EventTicketSalesResult>