| POST | /selfService/transferTicket/availableSeats | Seats a buyer may pick for a seated exchange, grouped by section and row |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SelfServiceAvailableSeatsRequest
{
public String ticketTokenId = null;
public String buyerPhone = null;
public Integer toEventId = null;
public Integer toOwnerTicketTypeId = null;
public Integer toSeriesTicketTypeId = null;
public String getTicketTokenId() { return ticketTokenId; }
public SelfServiceAvailableSeatsRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
public String getBuyerPhone() { return buyerPhone; }
public SelfServiceAvailableSeatsRequest setBuyerPhone(String value) { this.buyerPhone = value; return this; }
public Integer getToEventId() { return toEventId; }
public SelfServiceAvailableSeatsRequest setToEventId(Integer value) { this.toEventId = value; return this; }
public Integer getToOwnerTicketTypeId() { return toOwnerTicketTypeId; }
public SelfServiceAvailableSeatsRequest setToOwnerTicketTypeId(Integer value) { this.toOwnerTicketTypeId = value; return this; }
public Integer getToSeriesTicketTypeId() { return toSeriesTicketTypeId; }
public SelfServiceAvailableSeatsRequest setToSeriesTicketTypeId(Integer value) { this.toSeriesTicketTypeId = value; return this; }
}
public static class SelfServiceAvailableSeatsResult extends SelfServiceTransferResultBase
{
public Integer toEventId = null;
public String toTicketTypeName = null;
public Integer assignedSeatId = null;
public String assignedSeatLabel = null;
public ArrayList<SelfServiceSeatSection> sections = null;
public Integer totalSeats = null;
public Integer selectableSeats = null;
public Boolean truncated = null;
public Integer getToEventId() { return toEventId; }
public SelfServiceAvailableSeatsResult setToEventId(Integer value) { this.toEventId = value; return this; }
public String getToTicketTypeName() { return toTicketTypeName; }
public SelfServiceAvailableSeatsResult setToTicketTypeName(String value) { this.toTicketTypeName = value; return this; }
public Integer getAssignedSeatId() { return assignedSeatId; }
public SelfServiceAvailableSeatsResult setAssignedSeatId(Integer value) { this.assignedSeatId = value; return this; }
public String getAssignedSeatLabel() { return assignedSeatLabel; }
public SelfServiceAvailableSeatsResult setAssignedSeatLabel(String value) { this.assignedSeatLabel = value; return this; }
public ArrayList<SelfServiceSeatSection> getSections() { return sections; }
public SelfServiceAvailableSeatsResult setSections(ArrayList<SelfServiceSeatSection> value) { this.sections = value; return this; }
public Integer getTotalSeats() { return totalSeats; }
public SelfServiceAvailableSeatsResult setTotalSeats(Integer value) { this.totalSeats = value; return this; }
public Integer getSelectableSeats() { return selectableSeats; }
public SelfServiceAvailableSeatsResult setSelectableSeats(Integer value) { this.selectableSeats = value; return this; }
public Boolean isTruncated() { return truncated; }
public SelfServiceAvailableSeatsResult setTruncated(Boolean value) { this.truncated = 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 SelfServiceSeatSection
{
public Integer sectionId = null;
public String sectionName = null;
public BigDecimal positionX = null;
public BigDecimal positionY = null;
public BigDecimal rotation = null;
public String viewType = null;
public ArrayList<SelfServiceSeatOption> seats = null;
public Integer getSectionId() { return sectionId; }
public SelfServiceSeatSection setSectionId(Integer value) { this.sectionId = value; return this; }
public String getSectionName() { return sectionName; }
public SelfServiceSeatSection setSectionName(String value) { this.sectionName = value; return this; }
public BigDecimal getPositionX() { return positionX; }
public SelfServiceSeatSection setPositionX(BigDecimal value) { this.positionX = value; return this; }
public BigDecimal getPositionY() { return positionY; }
public SelfServiceSeatSection setPositionY(BigDecimal value) { this.positionY = value; return this; }
public BigDecimal getRotation() { return rotation; }
public SelfServiceSeatSection setRotation(BigDecimal value) { this.rotation = value; return this; }
public String getViewType() { return viewType; }
public SelfServiceSeatSection setViewType(String value) { this.viewType = value; return this; }
public ArrayList<SelfServiceSeatOption> getSeats() { return seats; }
public SelfServiceSeatSection setSeats(ArrayList<SelfServiceSeatOption> value) { this.seats = value; return this; }
}
public static class SelfServiceSeatOption
{
public Integer seatId = null;
public String seatName = null;
public String label = null;
public String status = null;
public Boolean isSeat = null;
public Boolean selectable = null;
public BigDecimal positionX = null;
public BigDecimal positionY = null;
public BigDecimal rotation = null;
public BigDecimal sortOrder = null;
public Integer rowId = null;
public String rowName = null;
public Integer getSeatId() { return seatId; }
public SelfServiceSeatOption setSeatId(Integer value) { this.seatId = value; return this; }
public String getSeatName() { return seatName; }
public SelfServiceSeatOption setSeatName(String value) { this.seatName = value; return this; }
public String getLabel() { return label; }
public SelfServiceSeatOption setLabel(String value) { this.label = value; return this; }
public String getStatus() { return status; }
public SelfServiceSeatOption setStatus(String value) { this.status = value; return this; }
public Boolean getIsSeat() { return isSeat; }
public SelfServiceSeatOption setIsSeat(Boolean value) { this.isSeat = value; return this; }
public Boolean isSelectable() { return selectable; }
public SelfServiceSeatOption setSelectable(Boolean value) { this.selectable = value; return this; }
public BigDecimal getPositionX() { return positionX; }
public SelfServiceSeatOption setPositionX(BigDecimal value) { this.positionX = value; return this; }
public BigDecimal getPositionY() { return positionY; }
public SelfServiceSeatOption setPositionY(BigDecimal value) { this.positionY = value; return this; }
public BigDecimal getRotation() { return rotation; }
public SelfServiceSeatOption setRotation(BigDecimal value) { this.rotation = value; return this; }
public BigDecimal getSortOrder() { return sortOrder; }
public SelfServiceSeatOption setSortOrder(BigDecimal value) { this.sortOrder = value; return this; }
public Integer getRowId() { return rowId; }
public SelfServiceSeatOption setRowId(Integer value) { this.rowId = value; return this; }
public String getRowName() { return rowName; }
public SelfServiceSeatOption setRowName(String value) { this.rowName = value; return this; }
}
}
Java SelfServiceAvailableSeatsRequest 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/availableSeats HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SelfServiceAvailableSeatsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<BuyerPhone>String</BuyerPhone>
<TicketTokenId>String</TicketTokenId>
<ToEventId>0</ToEventId>
<ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
<ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
</SelfServiceAvailableSeatsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SelfServiceAvailableSeatsResult 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>
<AssignedSeatId>0</AssignedSeatId>
<AssignedSeatLabel>String</AssignedSeatLabel>
<Sections>
<SelfServiceSeatSection>
<PositionX>0</PositionX>
<PositionY>0</PositionY>
<Rotation>0</Rotation>
<Seats>
<SelfServiceSeatOption>
<IsSeat>false</IsSeat>
<Label>String</Label>
<PositionX>0</PositionX>
<PositionY>0</PositionY>
<Rotation>0</Rotation>
<RowId>0</RowId>
<RowName>String</RowName>
<SeatId>0</SeatId>
<SeatName>String</SeatName>
<Selectable>false</Selectable>
<SortOrder>0</SortOrder>
<Status>String</Status>
</SelfServiceSeatOption>
</Seats>
<SectionId>0</SectionId>
<SectionName>String</SectionName>
<ViewType>String</ViewType>
</SelfServiceSeatSection>
</Sections>
<SelectableSeats>0</SelectableSeats>
<ToEventId>0</ToEventId>
<ToTicketTypeName>String</ToTicketTypeName>
<TotalSeats>0</TotalSeats>
<Truncated>false</Truncated>
</SelfServiceAvailableSeatsResult>