| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /ticketTransfer/incoming |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TicketTransferIncomingRequest
{
public String phoneVerificationNumber = null;
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public TicketTransferIncomingRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
}
public static class TicketTransferIncomingResult extends TicketTransferBaseResult
{
public ArrayList<TicketTransferIncomingItem> transfers = null;
public ArrayList<TicketTransferIncomingItem> getTransfers() { return transfers; }
public TicketTransferIncomingResult setTransfers(ArrayList<TicketTransferIncomingItem> value) { this.transfers = 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; }
}
public static class TicketTransferIncomingItem
{
public String transferToken = null;
public Integer eventId = null;
public String eventName = null;
public Date timeOfEvent = null;
public String fromPhoneDisplay = null;
public ArrayList<TicketTransferTicketSummary> tickets = null;
public Date createdAt = null;
public Date expiresAt = null;
public String getTransferToken() { return transferToken; }
public TicketTransferIncomingItem setTransferToken(String value) { this.transferToken = value; return this; }
public Integer getEventId() { return eventId; }
public TicketTransferIncomingItem setEventId(Integer value) { this.eventId = value; return this; }
public String getEventName() { return eventName; }
public TicketTransferIncomingItem setEventName(String value) { this.eventName = value; return this; }
public Date getTimeOfEvent() { return timeOfEvent; }
public TicketTransferIncomingItem setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
public String getFromPhoneDisplay() { return fromPhoneDisplay; }
public TicketTransferIncomingItem setFromPhoneDisplay(String value) { this.fromPhoneDisplay = value; return this; }
public ArrayList<TicketTransferTicketSummary> getTickets() { return tickets; }
public TicketTransferIncomingItem setTickets(ArrayList<TicketTransferTicketSummary> value) { this.tickets = value; return this; }
public Date getCreatedAt() { return createdAt; }
public TicketTransferIncomingItem setCreatedAt(Date value) { this.createdAt = value; return this; }
public Date getExpiresAt() { return expiresAt; }
public TicketTransferIncomingItem setExpiresAt(Date value) { this.expiresAt = value; return this; }
}
public static class TicketTransferTicketSummary
{
public String ticketName = null;
public String ticketDisplayString = null;
public Integer count = null;
public String getTicketName() { return ticketName; }
public TicketTransferTicketSummary setTicketName(String value) { this.ticketName = value; return this; }
public String getTicketDisplayString() { return ticketDisplayString; }
public TicketTransferTicketSummary setTicketDisplayString(String value) { this.ticketDisplayString = value; return this; }
public Integer getCount() { return count; }
public TicketTransferTicketSummary setCount(Integer value) { this.count = value; return this; }
}
}
Java TicketTransferIncomingRequest 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 /ticketTransfer/incoming HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"phoneVerificationNumber":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"transfers":[{"transferToken":"String","eventId":0,"eventName":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","fromPhoneDisplay":"String","tickets":[{"ticketName":"String","ticketDisplayString":"String","count":0}],"createdAt":"0001-01-01T00:00:00.0000000","expiresAt":"0001-01-01T00:00:00.0000000"}],"statusCode":0,"message":"String","errorCode":"String"}