| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| 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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<ReseatQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<EventId>0</EventId>
<Moves>
<ReseatMovePair>
<FromSeatId>0</FromSeatId>
<ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
<ToSeatId>0</ToSeatId>
</ReseatMovePair>
</Moves>
</ReseatQuoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ReseatQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Direction>String</Direction>
<Message>String</Message>
<Ok>false</Ok>
<PaymentReference>String</PaymentReference>
<PriceDifference>0</PriceDifference>
<RefundableViaBorgun>false</RefundableViaBorgun>
<Seats>
<ReseatSeatQuote>
<Difference>0</Difference>
<FromPrice>0</FromPrice>
<FromSeatId>0</FromSeatId>
<Message>String</Message>
<Ok>false</Ok>
<TicketTokenId>String</TicketTokenId>
<ToPrice>0</ToPrice>
<ToSeatId>0</ToSeatId>
<ToSeatName>String</ToSeatName>
<ToSectionName>String</ToSectionName>
</ReseatSeatQuote>
</Seats>
<StatusCode>0</StatusCode>
<TotalFromPrice>0</TotalFromPrice>
<TotalToPrice>0</TotalToPrice>
</ReseatQuoteResult>