TicketUserServices

<back to all web services

TicketTransferOutgoingRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
POST/ticketTransfer/outgoing
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class TicketTransferOutgoingRequest
    {
        public String phoneVerificationNumber = null;
        
        public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
        public TicketTransferOutgoingRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
    }

    public static class TicketTransferOutgoingResult extends TicketTransferBaseResult
    {
        public ArrayList<TicketTransferOutgoingItem> transfers = null;
        
        public ArrayList<TicketTransferOutgoingItem> getTransfers() { return transfers; }
        public TicketTransferOutgoingResult setTransfers(ArrayList<TicketTransferOutgoingItem> 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 TicketTransferOutgoingItem
    {
        public String transferToken = null;
        public Integer eventId = null;
        public String eventName = null;
        public Date timeOfEvent = null;
        public Integer ticketId = null;
        public String toPhoneDisplay = null;
        public String toEmail = null;
        public String toName = null;
        public String status = null;
        public String failureReason = null;
        public Integer resultingTicketId = null;
        public ArrayList<TicketTransferTicketSummary> tickets = null;
        public Date createdAt = null;
        public Date expiresAt = null;
        public Date acceptedAt = null;
        public Date retractedAt = null;
        public Integer nudgeCount = null;
        public Date lastNudgeAt = null;
        public Boolean canNudge = null;
        
        public String getTransferToken() { return transferToken; }
        public TicketTransferOutgoingItem setTransferToken(String value) { this.transferToken = value; return this; }
        public Integer getEventId() { return eventId; }
        public TicketTransferOutgoingItem setEventId(Integer value) { this.eventId = value; return this; }
        public String getEventName() { return eventName; }
        public TicketTransferOutgoingItem setEventName(String value) { this.eventName = value; return this; }
        public Date getTimeOfEvent() { return timeOfEvent; }
        public TicketTransferOutgoingItem setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
        public Integer getTicketId() { return ticketId; }
        public TicketTransferOutgoingItem setTicketId(Integer value) { this.ticketId = value; return this; }
        public String getToPhoneDisplay() { return toPhoneDisplay; }
        public TicketTransferOutgoingItem setToPhoneDisplay(String value) { this.toPhoneDisplay = value; return this; }
        public String getToEmail() { return toEmail; }
        public TicketTransferOutgoingItem setToEmail(String value) { this.toEmail = value; return this; }
        public String getToName() { return toName; }
        public TicketTransferOutgoingItem setToName(String value) { this.toName = value; return this; }
        public String getStatus() { return status; }
        public TicketTransferOutgoingItem setStatus(String value) { this.status = value; return this; }
        public String getFailureReason() { return failureReason; }
        public TicketTransferOutgoingItem setFailureReason(String value) { this.failureReason = value; return this; }
        public Integer getResultingTicketId() { return resultingTicketId; }
        public TicketTransferOutgoingItem setResultingTicketId(Integer value) { this.resultingTicketId = value; return this; }
        public ArrayList<TicketTransferTicketSummary> getTickets() { return tickets; }
        public TicketTransferOutgoingItem setTickets(ArrayList<TicketTransferTicketSummary> value) { this.tickets = value; return this; }
        public Date getCreatedAt() { return createdAt; }
        public TicketTransferOutgoingItem setCreatedAt(Date value) { this.createdAt = value; return this; }
        public Date getExpiresAt() { return expiresAt; }
        public TicketTransferOutgoingItem setExpiresAt(Date value) { this.expiresAt = value; return this; }
        public Date getAcceptedAt() { return acceptedAt; }
        public TicketTransferOutgoingItem setAcceptedAt(Date value) { this.acceptedAt = value; return this; }
        public Date getRetractedAt() { return retractedAt; }
        public TicketTransferOutgoingItem setRetractedAt(Date value) { this.retractedAt = value; return this; }
        public Integer getNudgeCount() { return nudgeCount; }
        public TicketTransferOutgoingItem setNudgeCount(Integer value) { this.nudgeCount = value; return this; }
        public Date getLastNudgeAt() { return lastNudgeAt; }
        public TicketTransferOutgoingItem setLastNudgeAt(Date value) { this.lastNudgeAt = value; return this; }
        public Boolean isCanNudge() { return canNudge; }
        public TicketTransferOutgoingItem setCanNudge(Boolean value) { this.canNudge = 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 TicketTransferOutgoingRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ticketTransfer/outgoing HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	phoneVerificationNumber: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	transfers: 
	[
		{
			transferToken: String,
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			ticketId: 0,
			toPhoneDisplay: String,
			toEmail: String,
			toName: String,
			status: String,
			failureReason: String,
			resultingTicketId: 0,
			tickets: 
			[
				{
					ticketName: String,
					ticketDisplayString: String,
					count: 0
				}
			],
			createdAt: 0001-01-01,
			expiresAt: 0001-01-01,
			acceptedAt: 0001-01-01,
			retractedAt: 0001-01-01,
			nudgeCount: 0,
			lastNudgeAt: 0001-01-01,
			canNudge: False
		}
	],
	statusCode: 0,
	message: String,
	errorCode: String
}