| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /ticketTransfer/createPending |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TicketTransferCreatePendingRequest
{
public String phoneVerificationNumber = null;
public String transferFromPhoneVerificationNumber = null;
public String transferToPhoneVerificationNumber = null;
public Ticket eventTicket = null;
public ArrayList<TicketDetails> eventTicketDetails = null;
public String toEmail = null;
public String toName = null;
public String idempotencyKey = null;
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public TicketTransferCreatePendingRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getTransferFromPhoneVerificationNumber() { return transferFromPhoneVerificationNumber; }
public TicketTransferCreatePendingRequest setTransferFromPhoneVerificationNumber(String value) { this.transferFromPhoneVerificationNumber = value; return this; }
public String getTransferToPhoneVerificationNumber() { return transferToPhoneVerificationNumber; }
public TicketTransferCreatePendingRequest setTransferToPhoneVerificationNumber(String value) { this.transferToPhoneVerificationNumber = value; return this; }
public Ticket getEventTicket() { return eventTicket; }
public TicketTransferCreatePendingRequest setEventTicket(Ticket value) { this.eventTicket = value; return this; }
public ArrayList<TicketDetails> getEventTicketDetails() { return eventTicketDetails; }
public TicketTransferCreatePendingRequest setEventTicketDetails(ArrayList<TicketDetails> value) { this.eventTicketDetails = value; return this; }
public String getToEmail() { return toEmail; }
public TicketTransferCreatePendingRequest setToEmail(String value) { this.toEmail = value; return this; }
public String getToName() { return toName; }
public TicketTransferCreatePendingRequest setToName(String value) { this.toName = value; return this; }
public String getIdempotencyKey() { return idempotencyKey; }
public TicketTransferCreatePendingRequest setIdempotencyKey(String value) { this.idempotencyKey = 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 String discountCode = null;
public BigDecimal totalDiscount = null;
public BigDecimal totalAmountBeforeDiscount = 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 String getDiscountCode() { return discountCode; }
public Ticket setDiscountCode(String value) { this.discountCode = value; return this; }
public BigDecimal getTotalDiscount() { return totalDiscount; }
public Ticket setTotalDiscount(BigDecimal value) { this.totalDiscount = value; return this; }
public BigDecimal getTotalAmountBeforeDiscount() { return totalAmountBeforeDiscount; }
public Ticket setTotalAmountBeforeDiscount(BigDecimal value) { this.totalAmountBeforeDiscount = 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 String discountCode = null;
public BigDecimal totalDiscount = null;
public BigDecimal totalAmountBeforeDiscount = null;
public BigDecimal ticketPriceBeforeDiscount = 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 String getDiscountCode() { return discountCode; }
public TicketDetails setDiscountCode(String value) { this.discountCode = value; return this; }
public BigDecimal getTotalDiscount() { return totalDiscount; }
public TicketDetails setTotalDiscount(BigDecimal value) { this.totalDiscount = value; return this; }
public BigDecimal getTotalAmountBeforeDiscount() { return totalAmountBeforeDiscount; }
public TicketDetails setTotalAmountBeforeDiscount(BigDecimal value) { this.totalAmountBeforeDiscount = value; return this; }
public BigDecimal getTicketPriceBeforeDiscount() { return ticketPriceBeforeDiscount; }
public TicketDetails setTicketPriceBeforeDiscount(BigDecimal value) { this.ticketPriceBeforeDiscount = value; return this; }
}
public static class TicketTransferCreatePendingResult extends TicketTransferBaseResult
{
public String transferToken = null;
public String status = null;
public String toPhoneCanonical = null;
public String toPhoneDisplay = null;
public String toPhoneRaw = null;
public Date expiresAt = null;
public Integer eventId = null;
public String eventName = null;
public String getTransferToken() { return transferToken; }
public TicketTransferCreatePendingResult setTransferToken(String value) { this.transferToken = value; return this; }
public String getStatus() { return status; }
public TicketTransferCreatePendingResult setStatus(String value) { this.status = value; return this; }
public String getToPhoneCanonical() { return toPhoneCanonical; }
public TicketTransferCreatePendingResult setToPhoneCanonical(String value) { this.toPhoneCanonical = value; return this; }
public String getToPhoneDisplay() { return toPhoneDisplay; }
public TicketTransferCreatePendingResult setToPhoneDisplay(String value) { this.toPhoneDisplay = value; return this; }
public String getToPhoneRaw() { return toPhoneRaw; }
public TicketTransferCreatePendingResult setToPhoneRaw(String value) { this.toPhoneRaw = value; return this; }
public Date getExpiresAt() { return expiresAt; }
public TicketTransferCreatePendingResult setExpiresAt(Date value) { this.expiresAt = value; return this; }
public Integer getEventId() { return eventId; }
public TicketTransferCreatePendingResult setEventId(Integer value) { this.eventId = value; return this; }
public String getEventName() { return eventName; }
public TicketTransferCreatePendingResult setEventName(String value) { this.eventName = value; return this; }
}
public static class TicketTransferBaseResult
{
public Integer statusCode = null;
public String message = null;
public String errorCode = null;
public Integer getStatusCode() { return statusCode; }
public TicketTransferBaseResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public TicketTransferBaseResult setMessage(String value) { this.message = value; return this; }
public String getErrorCode() { return errorCode; }
public TicketTransferBaseResult setErrorCode(String value) { this.errorCode = value; return this; }
}
}
Java TicketTransferCreatePendingRequest 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 /ticketTransfer/createPending HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<TicketTransferCreatePendingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<EventTicket xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:Currency>String</d2p1:Currency>
<d2p1:DeviceId>String</d2p1:DeviceId>
<d2p1:DiscountCode>String</d2p1:DiscountCode>
<d2p1:EventId>0</d2p1:EventId>
<d2p1:FreeTicketCardId>0</d2p1:FreeTicketCardId>
<d2p1:FreeTicketCardTypeId>String</d2p1:FreeTicketCardTypeId>
<d2p1:FreeTicketFromId>String</d2p1:FreeTicketFromId>
<d2p1:FreeTicketFromTypeId>String</d2p1:FreeTicketFromTypeId>
<d2p1:ID>0</d2p1:ID>
<d2p1:IsFree>false</d2p1:IsFree>
<d2p1:LastTicketStatus>String</d2p1:LastTicketStatus>
<d2p1:MultipleScanCodes>false</d2p1:MultipleScanCodes>
<d2p1:OriginalPhoneVerificationNumber>String</d2p1:OriginalPhoneVerificationNumber>
<d2p1:PaymentId>String</d2p1:PaymentId>
<d2p1:PaymentMethodId>String</d2p1:PaymentMethodId>
<d2p1:PaymentPhoneNumber>String</d2p1:PaymentPhoneNumber>
<d2p1:PaymentReference>String</d2p1:PaymentReference>
<d2p1:PhoneVerificationId>0</d2p1:PhoneVerificationId>
<d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber>
<d2p1:ScanCode>String</d2p1:ScanCode>
<d2p1:ScanCodeNotActive>false</d2p1:ScanCodeNotActive>
<d2p1:ScanCodeType>String</d2p1:ScanCodeType>
<d2p1:SeatsReservationId>String</d2p1:SeatsReservationId>
<d2p1:TeamPassId>0</d2p1:TeamPassId>
<d2p1:TicketHasExpired>false</d2p1:TicketHasExpired>
<d2p1:TicketStatus>String</d2p1:TicketStatus>
<d2p1:TicketTokenId>String</d2p1:TicketTokenId>
<d2p1:TicketTransferredFrom>0</d2p1:TicketTransferredFrom>
<d2p1:TimeStampLastStatusChange>0001-01-01T00:00:00</d2p1:TimeStampLastStatusChange>
<d2p1:TimeStampOrdered>0001-01-01T00:00:00</d2p1:TimeStampOrdered>
<d2p1:TimestampActivated>0001-01-01T00:00:00</d2p1:TimestampActivated>
<d2p1:TimestampBought>0001-01-01T00:00:00</d2p1:TimestampBought>
<d2p1:TotalAmountBeforeDiscount>0</d2p1:TotalAmountBeforeDiscount>
<d2p1:TotalDiscount>0</d2p1:TotalDiscount>
<d2p1:TotalPaidForTicket>0</d2p1:TotalPaidForTicket>
<d2p1:UserAuthId>0</d2p1:UserAuthId>
<d2p1:UserId>0</d2p1:UserId>
</EventTicket>
<EventTicketDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:TicketDetails>
<d2p1:Count>0</d2p1:Count>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:DiscountCode>String</d2p1:DiscountCode>
<d2p1:EventSeriesOwnerTicketType>0</d2p1:EventSeriesOwnerTicketType>
<d2p1:EventSeriesTicketType>0</d2p1:EventSeriesTicketType>
<d2p1:ID>0</d2p1:ID>
<d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket>
<d2p1:JustChangedBySQL>false</d2p1:JustChangedBySQL>
<d2p1:SQLJustChangedTimeStamp>0001-01-01T00:00:00</d2p1:SQLJustChangedTimeStamp>
<d2p1:ShowUsedTickets>false</d2p1:ShowUsedTickets>
<d2p1:SpecialTicketId>String</d2p1:SpecialTicketId>
<d2p1:TeamPassId>0</d2p1:TeamPassId>
<d2p1:TicketColor>String</d2p1:TicketColor>
<d2p1:TicketDetailsTransferredFrom>0</d2p1:TicketDetailsTransferredFrom>
<d2p1:TicketDisplayString>String</d2p1:TicketDisplayString>
<d2p1:TicketId>0</d2p1:TicketId>
<d2p1:TicketName>String</d2p1:TicketName>
<d2p1:TicketPrice>0</d2p1:TicketPrice>
<d2p1:TicketPriceBeforeDiscount>0</d2p1:TicketPriceBeforeDiscount>
<d2p1:TotalAmountBeforeDiscount>0</d2p1:TotalAmountBeforeDiscount>
<d2p1:TotalDiscount>0</d2p1:TotalDiscount>
<d2p1:TotalPrice>0</d2p1:TotalPrice>
</d2p1:TicketDetails>
</EventTicketDetails>
<IdempotencyKey>String</IdempotencyKey>
<PhoneVerificationNumber>String</PhoneVerificationNumber>
<ToEmail>String</ToEmail>
<ToName>String</ToName>
<TransferFromPhoneVerificationNumber>String</TransferFromPhoneVerificationNumber>
<TransferToPhoneVerificationNumber>String</TransferToPhoneVerificationNumber>
</TicketTransferCreatePendingRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <TicketTransferCreatePendingResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <ErrorCode>String</ErrorCode> <Message>String</Message> <StatusCode>0</StatusCode> <EventId>0</EventId> <EventName>String</EventName> <ExpiresAt>0001-01-01T00:00:00</ExpiresAt> <Status>String</Status> <ToPhoneCanonical>String</ToPhoneCanonical> <ToPhoneDisplay>String</ToPhoneDisplay> <ToPhoneRaw>String</ToPhoneRaw> <TransferToken>String</TransferToken> </TicketTransferCreatePendingResult>