Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
GET POST | /ticketSplit/{TicketTokenId} |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SplitTicketRequest
{
public Integer ticketId = null;
public String ticketTokenId = null;
public Integer getTicketId() { return ticketId; }
public SplitTicketRequest setTicketId(Integer value) { this.ticketId = value; return this; }
public String getTicketTokenId() { return ticketTokenId; }
public SplitTicketRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
}
public static class SplitTicketResponse
{
public Integer statusCode = null;
public Boolean success = null;
public String message = null;
public ArrayList<Ticket> result = null;
public Integer getStatusCode() { return statusCode; }
public SplitTicketResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
public Boolean isSuccess() { return success; }
public SplitTicketResponse setSuccess(Boolean value) { this.success = value; return this; }
public String getMessage() { return message; }
public SplitTicketResponse setMessage(String value) { this.message = value; return this; }
public ArrayList<Ticket> getResult() { return result; }
public SplitTicketResponse setResult(ArrayList<Ticket> value) { this.result = value; return this; }
}
public static class Ticket
{
public Integer id = null;
public Integer userId = null;
public Integer userAuthId = null;
public Integer eventId = null;
public Date timestampBought = null;
public Date timestampActivated = null;
public Date timeStampOrdered = null;
public String deviceId = null;
public Integer phoneVerificationId = null;
public String paymentMethodId = null;
public String paymentReference = null;
public String ticketStatus = null;
public String phoneVerificationNumber = null;
public String ticketTokenId = null;
public String paymentPhoneNumber = null;
public Integer ticketTransferredFrom = null;
public String originalPhoneVerificationNumber = null;
public Integer teamPassId = null;
public String paymentId = null;
public Boolean isFree = null;
public String freeTicketFromId = null;
public String freeTicketFromTypeId = null;
public String freeTicketCardTypeId = null;
public Integer freeTicketCardId = null;
public BigDecimal totalPaidForTicket = null;
public String seatsReservationId = null;
public Date timeStampLastStatusChange = null;
public String lastTicketStatus = null;
public String scanCode = null;
public String scanCodeType = null;
public Boolean scanCodeNotActive = null;
public Boolean multipleScanCodes = null;
public String currency = null;
public Boolean ticketHasExpired = null;
public Integer getId() { return id; }
public Ticket setId(Integer value) { this.id = value; return this; }
public Integer getUserId() { return userId; }
public Ticket setUserId(Integer value) { this.userId = value; return this; }
public Integer getUserAuthId() { return userAuthId; }
public Ticket setUserAuthId(Integer value) { this.userAuthId = value; return this; }
public Integer getEventId() { return eventId; }
public Ticket setEventId(Integer value) { this.eventId = value; return this; }
public Date getTimestampBought() { return timestampBought; }
public Ticket setTimestampBought(Date value) { this.timestampBought = value; return this; }
public Date getTimestampActivated() { return timestampActivated; }
public Ticket setTimestampActivated(Date value) { this.timestampActivated = value; return this; }
public Date getTimeStampOrdered() { return timeStampOrdered; }
public Ticket setTimeStampOrdered(Date value) { this.timeStampOrdered = value; return this; }
public String getDeviceId() { return deviceId; }
public Ticket setDeviceId(String value) { this.deviceId = value; return this; }
public Integer getPhoneVerificationId() { return phoneVerificationId; }
public Ticket setPhoneVerificationId(Integer value) { this.phoneVerificationId = value; return this; }
public String getPaymentMethodId() { return paymentMethodId; }
public Ticket setPaymentMethodId(String value) { this.paymentMethodId = value; return this; }
public String getPaymentReference() { return paymentReference; }
public Ticket setPaymentReference(String value) { this.paymentReference = value; return this; }
public String getTicketStatus() { return ticketStatus; }
public Ticket setTicketStatus(String value) { this.ticketStatus = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public Ticket setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getTicketTokenId() { return ticketTokenId; }
public Ticket setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
public String getPaymentPhoneNumber() { return paymentPhoneNumber; }
public Ticket setPaymentPhoneNumber(String value) { this.paymentPhoneNumber = value; return this; }
public Integer getTicketTransferredFrom() { return ticketTransferredFrom; }
public Ticket setTicketTransferredFrom(Integer value) { this.ticketTransferredFrom = value; return this; }
public String getOriginalPhoneVerificationNumber() { return originalPhoneVerificationNumber; }
public Ticket setOriginalPhoneVerificationNumber(String value) { this.originalPhoneVerificationNumber = value; return this; }
public Integer getTeamPassId() { return teamPassId; }
public Ticket setTeamPassId(Integer value) { this.teamPassId = value; return this; }
public String getPaymentId() { return paymentId; }
public Ticket setPaymentId(String value) { this.paymentId = value; return this; }
public Boolean getIsFree() { return isFree; }
public Ticket setIsFree(Boolean value) { this.isFree = value; return this; }
public String getFreeTicketFromId() { return freeTicketFromId; }
public Ticket setFreeTicketFromId(String value) { this.freeTicketFromId = value; return this; }
public String getFreeTicketFromTypeId() { return freeTicketFromTypeId; }
public Ticket setFreeTicketFromTypeId(String value) { this.freeTicketFromTypeId = value; return this; }
public String getFreeTicketCardTypeId() { return freeTicketCardTypeId; }
public Ticket setFreeTicketCardTypeId(String value) { this.freeTicketCardTypeId = value; return this; }
public Integer getFreeTicketCardId() { return freeTicketCardId; }
public Ticket setFreeTicketCardId(Integer value) { this.freeTicketCardId = value; return this; }
public BigDecimal getTotalPaidForTicket() { return totalPaidForTicket; }
public Ticket setTotalPaidForTicket(BigDecimal value) { this.totalPaidForTicket = value; return this; }
public String getSeatsReservationId() { return seatsReservationId; }
public Ticket setSeatsReservationId(String value) { this.seatsReservationId = value; return this; }
public Date getTimeStampLastStatusChange() { return timeStampLastStatusChange; }
public Ticket setTimeStampLastStatusChange(Date value) { this.timeStampLastStatusChange = value; return this; }
public String getLastTicketStatus() { return lastTicketStatus; }
public Ticket setLastTicketStatus(String value) { this.lastTicketStatus = value; return this; }
public String getScanCode() { return scanCode; }
public Ticket setScanCode(String value) { this.scanCode = value; return this; }
public String getScanCodeType() { return scanCodeType; }
public Ticket setScanCodeType(String value) { this.scanCodeType = value; return this; }
public Boolean isScanCodeNotActive() { return scanCodeNotActive; }
public Ticket setScanCodeNotActive(Boolean value) { this.scanCodeNotActive = value; return this; }
public Boolean isMultipleScanCodes() { return multipleScanCodes; }
public Ticket setMultipleScanCodes(Boolean value) { this.multipleScanCodes = value; return this; }
public String getCurrency() { return currency; }
public Ticket setCurrency(String value) { this.currency = value; return this; }
public Boolean isTicketHasExpired() { return ticketHasExpired; }
public Ticket setTicketHasExpired(Boolean value) { this.ticketHasExpired = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketSplit/{TicketTokenId} HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ticketId":0,"ticketTokenId":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"statusCode":0,"success":false,"message":"String","result":[{"id":0,"userId":0,"userAuthId":0,"eventId":0,"timestampBought":"0001-01-01T00:00:00.0000000","timestampActivated":"0001-01-01T00:00:00.0000000","timeStampOrdered":"0001-01-01T00:00:00.0000000","deviceId":"String","phoneVerificationId":0,"paymentMethodId":"String","paymentReference":"String","ticketStatus":"String","phoneVerificationNumber":"String","ticketTokenId":"String","paymentPhoneNumber":"String","ticketTransferredFrom":0,"originalPhoneVerificationNumber":"String","teamPassId":0,"paymentId":"String","isFree":false,"freeTicketFromId":"String","freeTicketFromTypeId":"String","freeTicketCardTypeId":"String","freeTicketCardId":0,"totalPaidForTicket":0,"seatsReservationId":"String","timeStampLastStatusChange":"0001-01-01T00:00:00.0000000","lastTicketStatus":"String","scanCode":"String","scanCodeType":"String","scanCodeNotActive":false,"multipleScanCodes":false,"currency":"String","ticketHasExpired":false}]}