TicketUserServices

<back to all web services

ReseatQuoteRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/EventSeating/ReseatQuote
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ReseatQuoteRequest
    {
        public Integer eventId = null;
        public ArrayList<ReseatMovePair> moves = null;
        
        public Integer getEventId() { return eventId; }
        public ReseatQuoteRequest setEventId(Integer value) { this.eventId = value; return this; }
        public ArrayList<ReseatMovePair> getMoves() { return moves; }
        public ReseatQuoteRequest setMoves(ArrayList<ReseatMovePair> value) { this.moves = value; return this; }
    }

    public static class ReseatMovePair
    {
        public Integer fromSeatId = null;
        public Integer toSeatId = null;
        public Integer toOwnerTicketTypeId = null;
        
        public Integer getFromSeatId() { return fromSeatId; }
        public ReseatMovePair setFromSeatId(Integer value) { this.fromSeatId = value; return this; }
        public Integer getToSeatId() { return toSeatId; }
        public ReseatMovePair setToSeatId(Integer value) { this.toSeatId = value; return this; }
        public Integer getToOwnerTicketTypeId() { return toOwnerTicketTypeId; }
        public ReseatMovePair setToOwnerTicketTypeId(Integer value) { this.toOwnerTicketTypeId = value; return this; }
    }

    public static class ReseatQuoteResult
    {
        public Boolean ok = null;
        public Integer statusCode = null;
        public String message = null;
        public BigDecimal totalFromPrice = null;
        public BigDecimal totalToPrice = null;
        public BigDecimal priceDifference = null;
        public String direction = null;
        public Boolean refundableViaBorgun = null;
        public String paymentReference = null;
        public ArrayList<ReseatSeatQuote> seats = null;
        
        public Boolean isOk() { return ok; }
        public ReseatQuoteResult setOk(Boolean value) { this.ok = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public ReseatQuoteResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public ReseatQuoteResult setMessage(String value) { this.message = value; return this; }
        public BigDecimal getTotalFromPrice() { return totalFromPrice; }
        public ReseatQuoteResult setTotalFromPrice(BigDecimal value) { this.totalFromPrice = value; return this; }
        public BigDecimal getTotalToPrice() { return totalToPrice; }
        public ReseatQuoteResult setTotalToPrice(BigDecimal value) { this.totalToPrice = value; return this; }
        public BigDecimal getPriceDifference() { return priceDifference; }
        public ReseatQuoteResult setPriceDifference(BigDecimal value) { this.priceDifference = value; return this; }
        public String getDirection() { return direction; }
        public ReseatQuoteResult setDirection(String value) { this.direction = value; return this; }
        public Boolean isRefundableViaBorgun() { return refundableViaBorgun; }
        public ReseatQuoteResult setRefundableViaBorgun(Boolean value) { this.refundableViaBorgun = value; return this; }
        public String getPaymentReference() { return paymentReference; }
        public ReseatQuoteResult setPaymentReference(String value) { this.paymentReference = value; return this; }
        public ArrayList<ReseatSeatQuote> getSeats() { return seats; }
        public ReseatQuoteResult setSeats(ArrayList<ReseatSeatQuote> value) { this.seats = value; return this; }
    }

    public static class ReseatSeatQuote
    {
        public Integer fromSeatId = null;
        public Integer toSeatId = null;
        public String ticketTokenId = null;
        public BigDecimal fromPrice = null;
        public BigDecimal toPrice = null;
        public BigDecimal difference = null;
        public String toSectionName = null;
        public String toSeatName = null;
        public Boolean ok = null;
        public String message = null;
        
        public Integer getFromSeatId() { return fromSeatId; }
        public ReseatSeatQuote setFromSeatId(Integer value) { this.fromSeatId = value; return this; }
        public Integer getToSeatId() { return toSeatId; }
        public ReseatSeatQuote setToSeatId(Integer value) { this.toSeatId = value; return this; }
        public String getTicketTokenId() { return ticketTokenId; }
        public ReseatSeatQuote setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
        public BigDecimal getFromPrice() { return fromPrice; }
        public ReseatSeatQuote setFromPrice(BigDecimal value) { this.fromPrice = value; return this; }
        public BigDecimal getToPrice() { return toPrice; }
        public ReseatSeatQuote setToPrice(BigDecimal value) { this.toPrice = value; return this; }
        public BigDecimal getDifference() { return difference; }
        public ReseatSeatQuote setDifference(BigDecimal value) { this.difference = value; return this; }
        public String getToSectionName() { return toSectionName; }
        public ReseatSeatQuote setToSectionName(String value) { this.toSectionName = value; return this; }
        public String getToSeatName() { return toSeatName; }
        public ReseatSeatQuote setToSeatName(String value) { this.toSeatName = value; return this; }
        public Boolean isOk() { return ok; }
        public ReseatSeatQuote setOk(Boolean value) { this.ok = value; return this; }
        public String getMessage() { return message; }
        public ReseatSeatQuote setMessage(String value) { this.message = value; return this; }
    }

}

Java ReseatQuoteRequest DTOs

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

HTTP + JSV

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

POST /EventSeating/ReseatQuote HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventId: 0,
	moves: 
	[
		{
			fromSeatId: 0,
			toSeatId: 0,
			toOwnerTicketTypeId: 0
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ok: False,
	statusCode: 0,
	message: String,
	totalFromPrice: 0,
	totalToPrice: 0,
	priceDifference: 0,
	direction: String,
	refundableViaBorgun: False,
	paymentReference: String,
	seats: 
	[
		{
			fromSeatId: 0,
			toSeatId: 0,
			ticketTokenId: String,
			fromPrice: 0,
			toPrice: 0,
			difference: 0,
			toSectionName: String,
			toSeatName: String,
			ok: False,
			message: String
		}
	]
}