| POST | /ticketHold/extend |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class CategoryAvailability
Public Overridable Property EventSeriesTicketType As Nullable(Of Integer)
Public Overridable Property EventSeriesOwnerTicketType As Nullable(Of Integer)
Public Overridable Property MaxTickets As Nullable(Of Integer)
Public Overridable Property Remaining As Integer
End Class
Public Partial Class CategoryHoldLine
Public Overridable Property EventSeriesTicketType As Nullable(Of Integer)
Public Overridable Property EventSeriesOwnerTicketType As Nullable(Of Integer)
Public Overridable Property Quantity As Integer
End Class
Public Partial Class RequestSignature
Public Overridable Property SystemId As String
Public Overridable Property SystemSecret As String
Public Overridable Property Signature As String
End Class
Public Partial Class TicketHoldExtendRequest
Public Overridable Property ReservationTokenId As String
Public Overridable Property RequestUnixUTCTimeStamp As Long
Public Overridable Property Signature As RequestSignature
End Class
Public Partial Class TicketHoldResult
Public Sub New()
Lines = New List(Of CategoryHoldLine)
PerCategory = New List(Of CategoryAvailability)
End Sub
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
Public Overridable Property ReservationTokenId As String
Public Overridable Property ExpiresUtc As Nullable(Of Date)
Public Overridable Property Lines As List(Of CategoryHoldLine)
Public Overridable Property PerCategory As List(Of CategoryAvailability)
Public Overridable Property Scarcity As Boolean
End Class
End Namespace
End Namespace
VB.NET TicketHoldExtendRequest 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 /ticketHold/extend HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<TicketHoldExtendRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<ReservationTokenId>String</ReservationTokenId>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
</TicketHoldExtendRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<TicketHoldResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<ExpiresUtc>0001-01-01T00:00:00</ExpiresUtc>
<Lines>
<CategoryHoldLine>
<EventSeriesOwnerTicketType>0</EventSeriesOwnerTicketType>
<EventSeriesTicketType>0</EventSeriesTicketType>
<Quantity>0</Quantity>
</CategoryHoldLine>
</Lines>
<Message>String</Message>
<PerCategory>
<CategoryAvailability>
<EventSeriesOwnerTicketType>0</EventSeriesOwnerTicketType>
<EventSeriesTicketType>0</EventSeriesTicketType>
<MaxTickets>0</MaxTickets>
<Remaining>0</Remaining>
</CategoryAvailability>
</PerCategory>
<ReservationTokenId>String</ReservationTokenId>
<Scarcity>false</Scarcity>
<StatusCode>0</StatusCode>
</TicketHoldResult>