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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eventId: 0,
ksiEventId: String,
eventOwnerId: 0,
eventOwnerKsiId: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { eventSales: [ { ticketPrice: 0, totalPrice: 0, count: 0, timestampBought: 0001-01-01, timestampActivated: 0001-01-01, paymentMethodId: String, ticketStatus: String, deild: String, location: String, event: String, timeOfEvent: 0001-01-01, eventSeriesOwnerTicketType: 0, eventSeriesTicketType: 0, eventId: 0, externalReference: String, eventOwnerId: 0, eventSeriesId: 0, ksiCompetitionId: String, eventOwnerName: String, eventOwnerKsiID: String, teamPassId: 0, ticketName: String, paymentReference: String, paymentId: String, ticketTeamPassId: 0, ticketId: 0, phoneVerificationNumber: String, paymentPhoneNumber: String, holderId: String, holderName: String, holderFullPhoneNumber: String, seatName: String, rowName: String, sectionName: String, seatDisplayString: String, isSpecialTicket: False, specialTicketId: String, imageUrl: String, detailedDescription: String, ticketTokenId: String, timeOfEventUTC: 0001-01-01, endOfEvent: 0001-01-01, endOfEventUTC: 0001-01-01, deviceId: String, ticketHasExpired: False } ], statusCode: 0, message: String }