| GET | /ticketHold/availability |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TicketHoldAvailabilityRequest
{
public Integer eventId = null;
public Integer getEventId() { return eventId; }
public TicketHoldAvailabilityRequest setEventId(Integer value) { this.eventId = value; return this; }
}
public static class TicketHoldAvailabilityResult
{
public Integer statusCode = null;
public String message = null;
public ArrayList<CategoryAvailability> perCategory = null;
public Boolean scarcity = null;
public Integer getStatusCode() { return statusCode; }
public TicketHoldAvailabilityResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public TicketHoldAvailabilityResult setMessage(String value) { this.message = value; return this; }
public ArrayList<CategoryAvailability> getPerCategory() { return perCategory; }
public TicketHoldAvailabilityResult setPerCategory(ArrayList<CategoryAvailability> value) { this.perCategory = value; return this; }
public Boolean isScarcity() { return scarcity; }
public TicketHoldAvailabilityResult setScarcity(Boolean value) { this.scarcity = 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 TicketHoldAvailabilityRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /ticketHold/availability HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"statusCode":0,"message":"String","perCategory":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"maxTickets":0,"remaining":0}],"scarcity":false}