TicketUserServices

<back to all web services

SelfServiceAvailableSeatsRequest

Requires Authentication
The following routes are available for this service:
POST/selfService/transferTicket/availableSeatsSeats a buyer may pick for a seated exchange, grouped by section and row
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SelfServiceAvailableSeatsRequest
    {
        public String ticketTokenId = null;
        public String buyerPhone = null;
        public Integer toEventId = null;
        public Integer toOwnerTicketTypeId = null;
        public Integer toSeriesTicketTypeId = null;
        
        public String getTicketTokenId() { return ticketTokenId; }
        public SelfServiceAvailableSeatsRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
        public String getBuyerPhone() { return buyerPhone; }
        public SelfServiceAvailableSeatsRequest setBuyerPhone(String value) { this.buyerPhone = value; return this; }
        public Integer getToEventId() { return toEventId; }
        public SelfServiceAvailableSeatsRequest setToEventId(Integer value) { this.toEventId = value; return this; }
        public Integer getToOwnerTicketTypeId() { return toOwnerTicketTypeId; }
        public SelfServiceAvailableSeatsRequest setToOwnerTicketTypeId(Integer value) { this.toOwnerTicketTypeId = value; return this; }
        public Integer getToSeriesTicketTypeId() { return toSeriesTicketTypeId; }
        public SelfServiceAvailableSeatsRequest setToSeriesTicketTypeId(Integer value) { this.toSeriesTicketTypeId = value; return this; }
    }

    public static class SelfServiceAvailableSeatsResult extends SelfServiceTransferResultBase
    {
        public Integer toEventId = null;
        public String toTicketTypeName = null;
        public Integer assignedSeatId = null;
        public String assignedSeatLabel = null;
        public ArrayList<SelfServiceSeatSection> sections = null;
        public Integer totalSeats = null;
        public Integer selectableSeats = null;
        public Boolean truncated = null;
        
        public Integer getToEventId() { return toEventId; }
        public SelfServiceAvailableSeatsResult setToEventId(Integer value) { this.toEventId = value; return this; }
        public String getToTicketTypeName() { return toTicketTypeName; }
        public SelfServiceAvailableSeatsResult setToTicketTypeName(String value) { this.toTicketTypeName = value; return this; }
        public Integer getAssignedSeatId() { return assignedSeatId; }
        public SelfServiceAvailableSeatsResult setAssignedSeatId(Integer value) { this.assignedSeatId = value; return this; }
        public String getAssignedSeatLabel() { return assignedSeatLabel; }
        public SelfServiceAvailableSeatsResult setAssignedSeatLabel(String value) { this.assignedSeatLabel = value; return this; }
        public ArrayList<SelfServiceSeatSection> getSections() { return sections; }
        public SelfServiceAvailableSeatsResult setSections(ArrayList<SelfServiceSeatSection> value) { this.sections = value; return this; }
        public Integer getTotalSeats() { return totalSeats; }
        public SelfServiceAvailableSeatsResult setTotalSeats(Integer value) { this.totalSeats = value; return this; }
        public Integer getSelectableSeats() { return selectableSeats; }
        public SelfServiceAvailableSeatsResult setSelectableSeats(Integer value) { this.selectableSeats = value; return this; }
        public Boolean isTruncated() { return truncated; }
        public SelfServiceAvailableSeatsResult setTruncated(Boolean value) { this.truncated = value; return this; }
    }

    public static class SelfServiceTransferResultBase
    {
        public Boolean ok = null;
        public Integer statusCode = null;
        public String code = null;
        public String message = null;
        
        public Boolean isOk() { return ok; }
        public SelfServiceTransferResultBase setOk(Boolean value) { this.ok = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public SelfServiceTransferResultBase setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getCode() { return code; }
        public SelfServiceTransferResultBase setCode(String value) { this.code = value; return this; }
        public String getMessage() { return message; }
        public SelfServiceTransferResultBase setMessage(String value) { this.message = value; return this; }
    }

    public static class SelfServiceSeatSection
    {
        public Integer sectionId = null;
        public String sectionName = null;
        public BigDecimal positionX = null;
        public BigDecimal positionY = null;
        public BigDecimal rotation = null;
        public String viewType = null;
        public ArrayList<SelfServiceSeatOption> seats = null;
        
        public Integer getSectionId() { return sectionId; }
        public SelfServiceSeatSection setSectionId(Integer value) { this.sectionId = value; return this; }
        public String getSectionName() { return sectionName; }
        public SelfServiceSeatSection setSectionName(String value) { this.sectionName = value; return this; }
        public BigDecimal getPositionX() { return positionX; }
        public SelfServiceSeatSection setPositionX(BigDecimal value) { this.positionX = value; return this; }
        public BigDecimal getPositionY() { return positionY; }
        public SelfServiceSeatSection setPositionY(BigDecimal value) { this.positionY = value; return this; }
        public BigDecimal getRotation() { return rotation; }
        public SelfServiceSeatSection setRotation(BigDecimal value) { this.rotation = value; return this; }
        public String getViewType() { return viewType; }
        public SelfServiceSeatSection setViewType(String value) { this.viewType = value; return this; }
        public ArrayList<SelfServiceSeatOption> getSeats() { return seats; }
        public SelfServiceSeatSection setSeats(ArrayList<SelfServiceSeatOption> value) { this.seats = value; return this; }
    }

    public static class SelfServiceSeatOption
    {
        public Integer seatId = null;
        public String seatName = null;
        public String label = null;
        public String status = null;
        public Boolean isSeat = null;
        public Boolean selectable = null;
        public BigDecimal positionX = null;
        public BigDecimal positionY = null;
        public BigDecimal rotation = null;
        public BigDecimal sortOrder = null;
        public Integer rowId = null;
        public String rowName = null;
        
        public Integer getSeatId() { return seatId; }
        public SelfServiceSeatOption setSeatId(Integer value) { this.seatId = value; return this; }
        public String getSeatName() { return seatName; }
        public SelfServiceSeatOption setSeatName(String value) { this.seatName = value; return this; }
        public String getLabel() { return label; }
        public SelfServiceSeatOption setLabel(String value) { this.label = value; return this; }
        public String getStatus() { return status; }
        public SelfServiceSeatOption setStatus(String value) { this.status = value; return this; }
        public Boolean getIsSeat() { return isSeat; }
        public SelfServiceSeatOption setIsSeat(Boolean value) { this.isSeat = value; return this; }
        public Boolean isSelectable() { return selectable; }
        public SelfServiceSeatOption setSelectable(Boolean value) { this.selectable = value; return this; }
        public BigDecimal getPositionX() { return positionX; }
        public SelfServiceSeatOption setPositionX(BigDecimal value) { this.positionX = value; return this; }
        public BigDecimal getPositionY() { return positionY; }
        public SelfServiceSeatOption setPositionY(BigDecimal value) { this.positionY = value; return this; }
        public BigDecimal getRotation() { return rotation; }
        public SelfServiceSeatOption setRotation(BigDecimal value) { this.rotation = value; return this; }
        public BigDecimal getSortOrder() { return sortOrder; }
        public SelfServiceSeatOption setSortOrder(BigDecimal value) { this.sortOrder = value; return this; }
        public Integer getRowId() { return rowId; }
        public SelfServiceSeatOption setRowId(Integer value) { this.rowId = value; return this; }
        public String getRowName() { return rowName; }
        public SelfServiceSeatOption setRowName(String value) { this.rowName = value; return this; }
    }

}

Java SelfServiceAvailableSeatsRequest DTOs

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

HTTP + CSV

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

POST /selfService/transferTicket/availableSeats HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ticketTokenId":"String","buyerPhone":"String","toEventId":0,"toOwnerTicketTypeId":0,"toSeriesTicketTypeId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"toEventId":0,"toTicketTypeName":"String","assignedSeatId":0,"assignedSeatLabel":"String","sections":[{"sectionId":0,"sectionName":"String","positionX":0,"positionY":0,"rotation":0,"viewType":"String","seats":[{"seatId":0,"seatName":"String","label":"String","status":"String","isSeat":false,"selectable":false,"positionX":0,"positionY":0,"rotation":0,"sortOrder":0,"rowId":0,"rowName":"String"}]}],"totalSeats":0,"selectableSeats":0,"truncated":false,"ok":false,"statusCode":0,"code":"String","message":"String"}