| POST | /ticketHold/release |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TicketHoldReleaseRequest
{
public String reservationTokenId = null;
public Long requestUnixUTCTimeStamp = null;
public RequestSignature signature = null;
public String getReservationTokenId() { return reservationTokenId; }
public TicketHoldReleaseRequest setReservationTokenId(String value) { this.reservationTokenId = value; return this; }
public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
public TicketHoldReleaseRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
public RequestSignature getSignature() { return signature; }
public TicketHoldReleaseRequest 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 TicketHoldReleaseRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketHold/release HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
reservationTokenId: String,
requestUnixUTCTimeStamp: 0,
signature:
{
systemId: String,
systemSecret: String,
signature: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
statusCode: 0,
message: String,
reservationTokenId: String,
expiresUtc: 0001-01-01,
lines:
[
{
eventSeriesTicketType: 0,
eventSeriesOwnerTicketType: 0,
quantity: 0
}
],
perCategory:
[
{
eventSeriesTicketType: 0,
eventSeriesOwnerTicketType: 0,
maxTickets: 0,
remaining: 0
}
],
scarcity: False
}