| POST | /selfService/transferTicket/targetTicketTypes | Ticket types on the target event a buyer may exchange into, with per-option price difference and blocking reason |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SelfServiceTransferTargetTicketTypesRequest
{
public String ticketTokenId = null;
public String buyerPhone = null;
public Integer toEventId = null;
public Integer sectionId = null;
public String getTicketTokenId() { return ticketTokenId; }
public SelfServiceTransferTargetTicketTypesRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
public String getBuyerPhone() { return buyerPhone; }
public SelfServiceTransferTargetTicketTypesRequest setBuyerPhone(String value) { this.buyerPhone = value; return this; }
public Integer getToEventId() { return toEventId; }
public SelfServiceTransferTargetTicketTypesRequest setToEventId(Integer value) { this.toEventId = value; return this; }
public Integer getSectionId() { return sectionId; }
public SelfServiceTransferTargetTicketTypesRequest setSectionId(Integer value) { this.sectionId = value; return this; }
}
public static class SelfServiceTransferTargetTicketTypesResult extends SelfServiceTransferResultBase
{
public BigDecimal sourceTicketPrice = null;
public String sourceTicketTypeName = null;
public Integer toEventId = null;
public Boolean targetIsSeated = null;
public ArrayList<SelfServiceTargetTicketTypeOption> options = null;
public BigDecimal getSourceTicketPrice() { return sourceTicketPrice; }
public SelfServiceTransferTargetTicketTypesResult setSourceTicketPrice(BigDecimal value) { this.sourceTicketPrice = value; return this; }
public String getSourceTicketTypeName() { return sourceTicketTypeName; }
public SelfServiceTransferTargetTicketTypesResult setSourceTicketTypeName(String value) { this.sourceTicketTypeName = value; return this; }
public Integer getToEventId() { return toEventId; }
public SelfServiceTransferTargetTicketTypesResult setToEventId(Integer value) { this.toEventId = value; return this; }
public Boolean isTargetIsSeated() { return targetIsSeated; }
public SelfServiceTransferTargetTicketTypesResult setTargetIsSeated(Boolean value) { this.targetIsSeated = value; return this; }
public ArrayList<SelfServiceTargetTicketTypeOption> getOptions() { return options; }
public SelfServiceTransferTargetTicketTypesResult setOptions(ArrayList<SelfServiceTargetTicketTypeOption> value) { this.options = 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 SelfServiceTargetTicketTypeOption
{
public Integer ownerTicketTypeId = null;
public Integer seriesTicketTypeId = null;
public String name = null;
public BigDecimal price = null;
public String direction = null;
public BigDecimal priceDifference = null;
public Boolean nameMatchesSource = null;
public Boolean selectable = null;
public String blockedReason = null;
public String blockedMessage = null;
public Integer maxTickets = null;
public Integer ticketsSold = null;
public Integer ticketsLeft = null;
public String saleStatus = null;
public Date saleStartsUTC = null;
public Date saleEndsUTC = null;
public Integer getOwnerTicketTypeId() { return ownerTicketTypeId; }
public SelfServiceTargetTicketTypeOption setOwnerTicketTypeId(Integer value) { this.ownerTicketTypeId = value; return this; }
public Integer getSeriesTicketTypeId() { return seriesTicketTypeId; }
public SelfServiceTargetTicketTypeOption setSeriesTicketTypeId(Integer value) { this.seriesTicketTypeId = value; return this; }
public String getName() { return name; }
public SelfServiceTargetTicketTypeOption setName(String value) { this.name = value; return this; }
public BigDecimal getPrice() { return price; }
public SelfServiceTargetTicketTypeOption setPrice(BigDecimal value) { this.price = value; return this; }
public String getDirection() { return direction; }
public SelfServiceTargetTicketTypeOption setDirection(String value) { this.direction = value; return this; }
public BigDecimal getPriceDifference() { return priceDifference; }
public SelfServiceTargetTicketTypeOption setPriceDifference(BigDecimal value) { this.priceDifference = value; return this; }
public Boolean isNameMatchesSource() { return nameMatchesSource; }
public SelfServiceTargetTicketTypeOption setNameMatchesSource(Boolean value) { this.nameMatchesSource = value; return this; }
public Boolean isSelectable() { return selectable; }
public SelfServiceTargetTicketTypeOption setSelectable(Boolean value) { this.selectable = value; return this; }
public String getBlockedReason() { return blockedReason; }
public SelfServiceTargetTicketTypeOption setBlockedReason(String value) { this.blockedReason = value; return this; }
public String getBlockedMessage() { return blockedMessage; }
public SelfServiceTargetTicketTypeOption setBlockedMessage(String value) { this.blockedMessage = value; return this; }
public Integer getMaxTickets() { return maxTickets; }
public SelfServiceTargetTicketTypeOption setMaxTickets(Integer value) { this.maxTickets = value; return this; }
public Integer getTicketsSold() { return ticketsSold; }
public SelfServiceTargetTicketTypeOption setTicketsSold(Integer value) { this.ticketsSold = value; return this; }
public Integer getTicketsLeft() { return ticketsLeft; }
public SelfServiceTargetTicketTypeOption setTicketsLeft(Integer value) { this.ticketsLeft = value; return this; }
public String getSaleStatus() { return saleStatus; }
public SelfServiceTargetTicketTypeOption setSaleStatus(String value) { this.saleStatus = value; return this; }
public Date getSaleStartsUTC() { return saleStartsUTC; }
public SelfServiceTargetTicketTypeOption setSaleStartsUTC(Date value) { this.saleStartsUTC = value; return this; }
public Date getSaleEndsUTC() { return saleEndsUTC; }
public SelfServiceTargetTicketTypeOption setSaleEndsUTC(Date value) { this.saleEndsUTC = value; return this; }
}
}
Java SelfServiceTransferTargetTicketTypesRequest 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 /selfService/transferTicket/targetTicketTypes HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SelfServiceTransferTargetTicketTypesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<BuyerPhone>String</BuyerPhone>
<SectionId>0</SectionId>
<TicketTokenId>String</TicketTokenId>
<ToEventId>0</ToEventId>
</SelfServiceTransferTargetTicketTypesRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SelfServiceTransferTargetTicketTypesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Code>String</Code>
<Message>String</Message>
<Ok>false</Ok>
<StatusCode>0</StatusCode>
<Options>
<SelfServiceTargetTicketTypeOption>
<BlockedMessage>String</BlockedMessage>
<BlockedReason>String</BlockedReason>
<Direction>String</Direction>
<MaxTickets>0</MaxTickets>
<Name>String</Name>
<NameMatchesSource>false</NameMatchesSource>
<OwnerTicketTypeId>0</OwnerTicketTypeId>
<Price>0</Price>
<PriceDifference>0</PriceDifference>
<SaleEndsUTC>0001-01-01T00:00:00</SaleEndsUTC>
<SaleStartsUTC>0001-01-01T00:00:00</SaleStartsUTC>
<SaleStatus>String</SaleStatus>
<Selectable>false</Selectable>
<SeriesTicketTypeId>0</SeriesTicketTypeId>
<TicketsLeft>0</TicketsLeft>
<TicketsSold>0</TicketsSold>
</SelfServiceTargetTicketTypeOption>
</Options>
<SourceTicketPrice>0</SourceTicketPrice>
<SourceTicketTypeName>String</SourceTicketTypeName>
<TargetIsSeated>false</TargetIsSeated>
<ToEventId>0</ToEventId>
</SelfServiceTransferTargetTicketTypesResult>