TicketUserServices

<back to all web services

TicketTransferIncomingRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<TicketTransferIncomingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <PhoneVerificationNumber>String</PhoneVerificationNumber>
</TicketTransferIncomingRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<TicketTransferIncomingResult 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>
  <Transfers>
    <TicketTransferIncomingItem>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <EventId>0</EventId>
      <EventName>String</EventName>
      <ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
      <FromPhoneDisplay>String</FromPhoneDisplay>
      <Tickets>
        <TicketTransferTicketSummary>
          <Count>0</Count>
          <TicketDisplayString>String</TicketDisplayString>
          <TicketName>String</TicketName>
        </TicketTransferTicketSummary>
      </Tickets>
      <TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
      <TransferToken>String</TransferToken>
    </TicketTransferIncomingItem>
  </Transfers>
</TicketTransferIncomingResult>