TicketUserServices

<back to all web services

TicketHoldExtendRequest

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

public class dtos
{

    public static class TicketHoldExtendRequest
    {
        public String reservationTokenId = null;
        public Long requestUnixUTCTimeStamp = null;
        public RequestSignature signature = null;
        
        public String getReservationTokenId() { return reservationTokenId; }
        public TicketHoldExtendRequest setReservationTokenId(String value) { this.reservationTokenId = value; return this; }
        public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
        public TicketHoldExtendRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public TicketHoldExtendRequest setSignature(RequestSignature value) { this.signature = 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 TicketHoldExtendRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"reservationTokenId":"String","requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":0,"message":"String","reservationTokenId":"String","expiresUtc":"0001-01-01T00:00:00.0000000","lines":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"quantity":0}],"perCategory":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"maxTickets":0,"remaining":0}],"scarcity":false}