| POST | /selfService/transferTicket/availableSeats | Seats a buyer may pick for a seated exchange, grouped by section and row |
|---|
namespace TicketUserServices.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type SelfServiceTransferResultBase() =
member val Ok:Boolean = new Boolean() with get,set
member val StatusCode:Int32 = new Int32() with get,set
member val Code:String = null with get,set
member val Message:String = null with get,set
[<AllowNullLiteral>]
type SelfServiceSeatOption() =
member val SeatId:Int32 = new Int32() with get,set
member val SeatName:String = null with get,set
member val Label:String = null with get,set
member val Status:String = null with get,set
member val IsSeat:Boolean = new Boolean() with get,set
member val Selectable:Boolean = new Boolean() with get,set
member val PositionX:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val PositionY:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val Rotation:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val SortOrder:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val RowId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val RowName:String = null with get,set
[<AllowNullLiteral>]
type SelfServiceSeatSection() =
member val SectionId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val SectionName:String = null with get,set
member val PositionX:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val PositionY:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val Rotation:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val ViewType:String = null with get,set
member val Seats:ResizeArray<SelfServiceSeatOption> = new ResizeArray<SelfServiceSeatOption>() with get,set
[<AllowNullLiteral>]
type SelfServiceAvailableSeatsResult() =
inherit SelfServiceTransferResultBase()
member val ToEventId:Int32 = new Int32() with get,set
member val ToTicketTypeName:String = null with get,set
member val AssignedSeatId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val AssignedSeatLabel:String = null with get,set
member val Sections:ResizeArray<SelfServiceSeatSection> = new ResizeArray<SelfServiceSeatSection>() with get,set
member val TotalSeats:Int32 = new Int32() with get,set
member val SelectableSeats:Int32 = new Int32() with get,set
member val Truncated:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type SelfServiceAvailableSeatsRequest() =
member val TicketTokenId:String = null with get,set
member val BuyerPhone:String = null with get,set
member val ToEventId:Int32 = new Int32() with get,set
member val ToOwnerTicketTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val ToSeriesTicketTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
F# 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>