TicketUserServices

<back to all web services

SelfServiceTransferTargetEventsRequest

Requires Authentication
The following routes are available for this service:
POST/selfService/transferTicket/targetEventsEvents a buyer may exchange their ticket onto (same series, same owner, still upcoming, source event included)
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SelfServiceTransferTargetEventsRequest
    {
        public String ticketTokenId = null;
        public String buyerPhone = null;
        
        public String getTicketTokenId() { return ticketTokenId; }
        public SelfServiceTransferTargetEventsRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
        public String getBuyerPhone() { return buyerPhone; }
        public SelfServiceTransferTargetEventsRequest setBuyerPhone(String value) { this.buyerPhone = value; return this; }
    }

    public static class SelfServiceTransferTargetEventsResult extends SelfServiceTransferResultBase
    {
        public Integer eventSeriesId = null;
        public Integer sourceEventId = null;
        public String sourceEventName = null;
        public Date sourceEventTimeOfEvent = null;
        public BigDecimal sourceTicketPrice = null;
        public String sourceTicketTypeName = null;
        public ArrayList<SelfServiceTargetEvent> events = null;
        
        public Integer getEventSeriesId() { return eventSeriesId; }
        public SelfServiceTransferTargetEventsResult setEventSeriesId(Integer value) { this.eventSeriesId = value; return this; }
        public Integer getSourceEventId() { return sourceEventId; }
        public SelfServiceTransferTargetEventsResult setSourceEventId(Integer value) { this.sourceEventId = value; return this; }
        public String getSourceEventName() { return sourceEventName; }
        public SelfServiceTransferTargetEventsResult setSourceEventName(String value) { this.sourceEventName = value; return this; }
        public Date getSourceEventTimeOfEvent() { return sourceEventTimeOfEvent; }
        public SelfServiceTransferTargetEventsResult setSourceEventTimeOfEvent(Date value) { this.sourceEventTimeOfEvent = value; return this; }
        public BigDecimal getSourceTicketPrice() { return sourceTicketPrice; }
        public SelfServiceTransferTargetEventsResult setSourceTicketPrice(BigDecimal value) { this.sourceTicketPrice = value; return this; }
        public String getSourceTicketTypeName() { return sourceTicketTypeName; }
        public SelfServiceTransferTargetEventsResult setSourceTicketTypeName(String value) { this.sourceTicketTypeName = value; return this; }
        public ArrayList<SelfServiceTargetEvent> getEvents() { return events; }
        public SelfServiceTransferTargetEventsResult setEvents(ArrayList<SelfServiceTargetEvent> value) { this.events = value; return this; }
    }

    public static class SelfServiceTransferResultBase
    {
        public Boolean ok = null;
        public Integer statusCode = null;
        public String code = null;
        public String message = null;
        
        public Boolean isOk() { return ok; }
        public SelfServiceTransferResultBase setOk(Boolean value) { this.ok = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public SelfServiceTransferResultBase setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getCode() { return code; }
        public SelfServiceTransferResultBase setCode(String value) { this.code = value; return this; }
        public String getMessage() { return message; }
        public SelfServiceTransferResultBase setMessage(String value) { this.message = value; return this; }
    }

    public static class SelfServiceTargetEvent
    {
        public Integer eventId = null;
        public String eventName = null;
        public Date timeOfEvent = null;
        public Boolean isSeated = null;
        public Boolean isSourceEvent = null;
        public Boolean saleNotOpenYet = null;
        public Date ticketSaleStartsUTC = null;
        
        public Integer getEventId() { return eventId; }
        public SelfServiceTargetEvent setEventId(Integer value) { this.eventId = value; return this; }
        public String getEventName() { return eventName; }
        public SelfServiceTargetEvent setEventName(String value) { this.eventName = value; return this; }
        public Date getTimeOfEvent() { return timeOfEvent; }
        public SelfServiceTargetEvent setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
        public Boolean getIsSeated() { return isSeated; }
        public SelfServiceTargetEvent setIsSeated(Boolean value) { this.isSeated = value; return this; }
        public Boolean getIsSourceEvent() { return isSourceEvent; }
        public SelfServiceTargetEvent setIsSourceEvent(Boolean value) { this.isSourceEvent = value; return this; }
        public Boolean isSaleNotOpenYet() { return saleNotOpenYet; }
        public SelfServiceTargetEvent setSaleNotOpenYet(Boolean value) { this.saleNotOpenYet = value; return this; }
        public Date getTicketSaleStartsUTC() { return ticketSaleStartsUTC; }
        public SelfServiceTargetEvent setTicketSaleStartsUTC(Date value) { this.ticketSaleStartsUTC = value; return this; }
    }

}

Java SelfServiceTransferTargetEventsRequest 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 /selfService/transferTicket/targetEvents HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	eventSeriesId: 0,
	sourceEventId: 0,
	sourceEventName: String,
	sourceEventTimeOfEvent: 0001-01-01,
	sourceTicketPrice: 0,
	sourceTicketTypeName: String,
	events: 
	[
		{
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			isSeated: False,
			isSourceEvent: False,
			saleNotOpenYet: False,
			ticketSaleStartsUTC: 0001-01-01
		}
	],
	ok: False,
	statusCode: 0,
	code: String,
	message: String
}