| 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.*
open class SelfServiceAvailableSeatsRequest
{
var ticketTokenId:String? = null
var buyerPhone:String? = null
var toEventId:Int? = null
var toOwnerTicketTypeId:Int? = null
var toSeriesTicketTypeId:Int? = null
}
open class SelfServiceAvailableSeatsResult : SelfServiceTransferResultBase()
{
var toEventId:Int? = null
var toTicketTypeName:String? = null
var assignedSeatId:Int? = null
var assignedSeatLabel:String? = null
var sections:ArrayList<SelfServiceSeatSection> = ArrayList<SelfServiceSeatSection>()
var totalSeats:Int? = null
var selectableSeats:Int? = null
var truncated:Boolean? = null
}
open class SelfServiceTransferResultBase
{
var ok:Boolean? = null
var statusCode:Int? = null
var code:String? = null
var message:String? = null
}
open class SelfServiceSeatSection
{
var sectionId:Int? = null
var sectionName:String? = null
var positionX:BigDecimal? = null
var positionY:BigDecimal? = null
var rotation:BigDecimal? = null
var viewType:String? = null
var seats:ArrayList<SelfServiceSeatOption> = ArrayList<SelfServiceSeatOption>()
}
open class SelfServiceSeatOption
{
var seatId:Int? = null
var seatName:String? = null
var label:String? = null
var status:String? = null
var isSeat:Boolean? = null
var selectable:Boolean? = null
var positionX:BigDecimal? = null
var positionY:BigDecimal? = null
var rotation:BigDecimal? = null
var sortOrder:BigDecimal? = null
var rowId:Int? = null
var rowName:String? = null
}
Kotlin 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>