TicketUserServices

<back to all web services

TicketHoldFindAndReserveRequest

The following routes are available for this service:
POST/ticketHold/findAndReserve
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class TicketHoldFindAndReserveRequest
    {
        public Integer eventId = null;
        public ArrayList<HoldLineRequest> lines = null;
        public String deviceId = null;
        public String phoneVerificationNumber = null;
        public String reservationTokenId = null;
        public Long requestUnixUTCTimeStamp = null;
        public RequestSignature signature = null;
        
        public Integer getEventId() { return eventId; }
        public TicketHoldFindAndReserveRequest setEventId(Integer value) { this.eventId = value; return this; }
        public ArrayList<HoldLineRequest> getLines() { return lines; }
        public TicketHoldFindAndReserveRequest setLines(ArrayList<HoldLineRequest> value) { this.lines = value; return this; }
        public String getDeviceId() { return deviceId; }
        public TicketHoldFindAndReserveRequest setDeviceId(String value) { this.deviceId = value; return this; }
        public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
        public TicketHoldFindAndReserveRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
        public String getReservationTokenId() { return reservationTokenId; }
        public TicketHoldFindAndReserveRequest setReservationTokenId(String value) { this.reservationTokenId = value; return this; }
        public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
        public TicketHoldFindAndReserveRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public TicketHoldFindAndReserveRequest setSignature(RequestSignature value) { this.signature = value; return this; }
    }

    public static class HoldLineRequest
    {
        public Integer eventSeriesTicketType = null;
        public Integer eventSeriesOwnerTicketType = null;
        public Integer quantity = null;
        
        public Integer getEventSeriesTicketType() { return eventSeriesTicketType; }
        public HoldLineRequest setEventSeriesTicketType(Integer value) { this.eventSeriesTicketType = value; return this; }
        public Integer getEventSeriesOwnerTicketType() { return eventSeriesOwnerTicketType; }
        public HoldLineRequest setEventSeriesOwnerTicketType(Integer value) { this.eventSeriesOwnerTicketType = value; return this; }
        public Integer getQuantity() { return quantity; }
        public HoldLineRequest setQuantity(Integer value) { this.quantity = value; return this; }
    }

    public static class RequestSignature
    {
        public String systemId = null;
        public String systemSecret = null;
        public String signature = null;
        
        public String getSystemId() { return systemId; }
        public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
        public String getSystemSecret() { return systemSecret; }
        public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
        public String getSignature() { return signature; }
        public RequestSignature setSignature(String value) { this.signature = value; return this; }
    }

    public static class TicketHoldResult
    {
        public Integer statusCode = null;
        public String message = null;
        public String reservationTokenId = null;
        public Date expiresUtc = null;
        public ArrayList<CategoryHoldLine> lines = null;
        public ArrayList<CategoryAvailability> perCategory = null;
        public Boolean scarcity = null;
        
        public Integer getStatusCode() { return statusCode; }
        public TicketHoldResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public TicketHoldResult setMessage(String value) { this.message = value; return this; }
        public String getReservationTokenId() { return reservationTokenId; }
        public TicketHoldResult setReservationTokenId(String value) { this.reservationTokenId = value; return this; }
        public Date getExpiresUtc() { return expiresUtc; }
        public TicketHoldResult setExpiresUtc(Date value) { this.expiresUtc = value; return this; }
        public ArrayList<CategoryHoldLine> getLines() { return lines; }
        public TicketHoldResult setLines(ArrayList<CategoryHoldLine> value) { this.lines = value; return this; }
        public ArrayList<CategoryAvailability> getPerCategory() { return perCategory; }
        public TicketHoldResult setPerCategory(ArrayList<CategoryAvailability> value) { this.perCategory = value; return this; }
        public Boolean isScarcity() { return scarcity; }
        public TicketHoldResult setScarcity(Boolean value) { this.scarcity = value; return this; }
    }

    public static class CategoryHoldLine
    {
        public Integer eventSeriesTicketType = null;
        public Integer eventSeriesOwnerTicketType = null;
        public Integer quantity = null;
        
        public Integer getEventSeriesTicketType() { return eventSeriesTicketType; }
        public CategoryHoldLine setEventSeriesTicketType(Integer value) { this.eventSeriesTicketType = value; return this; }
        public Integer getEventSeriesOwnerTicketType() { return eventSeriesOwnerTicketType; }
        public CategoryHoldLine setEventSeriesOwnerTicketType(Integer value) { this.eventSeriesOwnerTicketType = value; return this; }
        public Integer getQuantity() { return quantity; }
        public CategoryHoldLine setQuantity(Integer value) { this.quantity = value; return this; }
    }

    public static class CategoryAvailability
    {
        public Integer eventSeriesTicketType = null;
        public Integer eventSeriesOwnerTicketType = null;
        public Integer maxTickets = null;
        public Integer remaining = null;
        
        public Integer getEventSeriesTicketType() { return eventSeriesTicketType; }
        public CategoryAvailability setEventSeriesTicketType(Integer value) { this.eventSeriesTicketType = value; return this; }
        public Integer getEventSeriesOwnerTicketType() { return eventSeriesOwnerTicketType; }
        public CategoryAvailability setEventSeriesOwnerTicketType(Integer value) { this.eventSeriesOwnerTicketType = value; return this; }
        public Integer getMaxTickets() { return maxTickets; }
        public CategoryAvailability setMaxTickets(Integer value) { this.maxTickets = value; return this; }
        public Integer getRemaining() { return remaining; }
        public CategoryAvailability setRemaining(Integer value) { this.remaining = value; return this; }
    }

}

Java TicketHoldFindAndReserveRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ticketHold/findAndReserve HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<TicketHoldFindAndReserveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <DeviceId>String</DeviceId>
  <EventId>0</EventId>
  <Lines>
    <HoldLineRequest>
      <EventSeriesOwnerTicketType>0</EventSeriesOwnerTicketType>
      <EventSeriesTicketType>0</EventSeriesTicketType>
      <Quantity>0</Quantity>
    </HoldLineRequest>
  </Lines>
  <PhoneVerificationNumber>String</PhoneVerificationNumber>
  <RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
  <ReservationTokenId>String</ReservationTokenId>
  <Signature>
    <Signature>String</Signature>
    <SystemId>String</SystemId>
    <SystemSecret>String</SystemSecret>
  </Signature>
</TicketHoldFindAndReserveRequest>
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>