Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
POST | /TransferTicket |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TransferTicketRequest
{
public String transferFromPhoneVerificationNumber = null;
public String transferFromDeviceId = null;
public String transferToPhoneVerificationNumber = null;
public Ticket eventTicket = null;
public ArrayList<TicketDetails> eventTicketDetails = null;
public String getTransferFromPhoneVerificationNumber() { return transferFromPhoneVerificationNumber; }
public TransferTicketRequest setTransferFromPhoneVerificationNumber(String value) { this.transferFromPhoneVerificationNumber = value; return this; }
public String getTransferFromDeviceId() { return transferFromDeviceId; }
public TransferTicketRequest setTransferFromDeviceId(String value) { this.transferFromDeviceId = value; return this; }
public String getTransferToPhoneVerificationNumber() { return transferToPhoneVerificationNumber; }
public TransferTicketRequest setTransferToPhoneVerificationNumber(String value) { this.transferToPhoneVerificationNumber = value; return this; }
public Ticket getEventTicket() { return eventTicket; }
public TransferTicketRequest setEventTicket(Ticket value) { this.eventTicket = value; return this; }
public ArrayList<TicketDetails> getEventTicketDetails() { return eventTicketDetails; }
public TransferTicketRequest setEventTicketDetails(ArrayList<TicketDetails> value) { this.eventTicketDetails = 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; }
}
public static class TicketDetails
{
public Integer id = null;
public Integer ticketId = null;
public Integer eventSeriesTicketType = null;
public Integer eventSeriesOwnerTicketType = null;
public BigDecimal ticketPrice = null;
public BigDecimal totalPrice = null;
public Integer count = null;
public String ticketColor = null;
public Boolean showUsedTickets = null;
public String ticketName = null;
public String ticketDisplayString = null;
public Integer ticketDetailsTransferredFrom = null;
public Integer teamPassId = null;
public Boolean isSpecialTicket = null;
public String specialTicketId = null;
public Boolean justChangedBySQL = null;
public Date sqlJustChangedTimeStamp = null;
public String currency = null;
public Integer getId() { return id; }
public TicketDetails setId(Integer value) { this.id = value; return this; }
public Integer getTicketId() { return ticketId; }
public TicketDetails setTicketId(Integer value) { this.ticketId = value; return this; }
public Integer getEventSeriesTicketType() { return eventSeriesTicketType; }
public TicketDetails setEventSeriesTicketType(Integer value) { this.eventSeriesTicketType = value; return this; }
public Integer getEventSeriesOwnerTicketType() { return eventSeriesOwnerTicketType; }
public TicketDetails setEventSeriesOwnerTicketType(Integer value) { this.eventSeriesOwnerTicketType = value; return this; }
public BigDecimal getTicketPrice() { return ticketPrice; }
public TicketDetails setTicketPrice(BigDecimal value) { this.ticketPrice = value; return this; }
public BigDecimal getTotalPrice() { return totalPrice; }
public TicketDetails setTotalPrice(BigDecimal value) { this.totalPrice = value; return this; }
public Integer getCount() { return count; }
public TicketDetails setCount(Integer value) { this.count = value; return this; }
public String getTicketColor() { return ticketColor; }
public TicketDetails setTicketColor(String value) { this.ticketColor = value; return this; }
public Boolean isShowUsedTickets() { return showUsedTickets; }
public TicketDetails setShowUsedTickets(Boolean value) { this.showUsedTickets = value; return this; }
public String getTicketName() { return ticketName; }
public TicketDetails setTicketName(String value) { this.ticketName = value; return this; }
public String getTicketDisplayString() { return ticketDisplayString; }
public TicketDetails setTicketDisplayString(String value) { this.ticketDisplayString = value; return this; }
public Integer getTicketDetailsTransferredFrom() { return ticketDetailsTransferredFrom; }
public TicketDetails setTicketDetailsTransferredFrom(Integer value) { this.ticketDetailsTransferredFrom = value; return this; }
public Integer getTeamPassId() { return teamPassId; }
public TicketDetails setTeamPassId(Integer value) { this.teamPassId = value; return this; }
public Boolean getIsSpecialTicket() { return isSpecialTicket; }
public TicketDetails setIsSpecialTicket(Boolean value) { this.isSpecialTicket = value; return this; }
public String getSpecialTicketId() { return specialTicketId; }
public TicketDetails setSpecialTicketId(String value) { this.specialTicketId = value; return this; }
public Boolean isJustChangedBySQL() { return justChangedBySQL; }
public TicketDetails setJustChangedBySQL(Boolean value) { this.justChangedBySQL = value; return this; }
public Date getSqlJustChangedTimeStamp() { return sqlJustChangedTimeStamp; }
public TicketDetails setSqlJustChangedTimeStamp(Date value) { this.sqlJustChangedTimeStamp = value; return this; }
public String getCurrency() { return currency; }
public TicketDetails setCurrency(String value) { this.currency = value; return this; }
}
public static class TransferTicketResult
{
public Integer statusCode = null;
public String message = null;
public Integer getStatusCode() { return statusCode; }
public TransferTicketResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public TransferTicketResult setMessage(String value) { this.message = value; return this; }
}
}
Java TransferTicketRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /TransferTicket HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"transferFromPhoneVerificationNumber":"String","transferFromDeviceId":"String","transferToPhoneVerificationNumber":"String","eventTicket":{"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},"eventTicketDetails":[{"id":0,"ticketId":0,"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"ticketPrice":0,"totalPrice":0,"count":0,"ticketColor":"String","showUsedTickets":false,"ticketName":"String","ticketDisplayString":"String","ticketDetailsTransferredFrom":0,"teamPassId":0,"isSpecialTicket":false,"specialTicketId":"String","justChangedBySQL":false,"sqlJustChangedTimeStamp":"0001-01-01T00:00:00.0000000","currency":"String"}]}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"statusCode":0,"message":"String"}