| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /transferTicket/quote | Read-only price-diff lookup for a prospective ticket transfer |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TransferTicketQuoteRequest
{
public String ticketTokenId = null;
public Integer toEventId = null;
public Integer userId = null;
public Integer toOwnerTicketTypeId = null;
public Integer toSeriesTicketTypeId = null;
public String getTicketTokenId() { return ticketTokenId; }
public TransferTicketQuoteRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
public Integer getToEventId() { return toEventId; }
public TransferTicketQuoteRequest setToEventId(Integer value) { this.toEventId = value; return this; }
public Integer getUserId() { return userId; }
public TransferTicketQuoteRequest setUserId(Integer value) { this.userId = value; return this; }
public Integer getToOwnerTicketTypeId() { return toOwnerTicketTypeId; }
public TransferTicketQuoteRequest setToOwnerTicketTypeId(Integer value) { this.toOwnerTicketTypeId = value; return this; }
public Integer getToSeriesTicketTypeId() { return toSeriesTicketTypeId; }
public TransferTicketQuoteRequest setToSeriesTicketTypeId(Integer value) { this.toSeriesTicketTypeId = value; return this; }
}
public static class TransferTicketQuoteResult
{
public Boolean ok = null;
public Integer statusCode = null;
public String code = null;
public String message = null;
public TransferQuoteEventSide from = null;
public TransferQuoteEventSide to = null;
public BigDecimal priceDifference = null;
public String direction = null;
public Boolean refundableViaBorgun = null;
public Boolean afterPayout = null;
public Boolean isOk() { return ok; }
public TransferTicketQuoteResult setOk(Boolean value) { this.ok = value; return this; }
public Integer getStatusCode() { return statusCode; }
public TransferTicketQuoteResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getCode() { return code; }
public TransferTicketQuoteResult setCode(String value) { this.code = value; return this; }
public String getMessage() { return message; }
public TransferTicketQuoteResult setMessage(String value) { this.message = value; return this; }
public TransferQuoteEventSide getFrom() { return from; }
public TransferTicketQuoteResult setFrom(TransferQuoteEventSide value) { this.from = value; return this; }
public TransferQuoteEventSide getTo() { return to; }
public TransferTicketQuoteResult setTo(TransferQuoteEventSide value) { this.to = value; return this; }
public BigDecimal getPriceDifference() { return priceDifference; }
public TransferTicketQuoteResult setPriceDifference(BigDecimal value) { this.priceDifference = value; return this; }
public String getDirection() { return direction; }
public TransferTicketQuoteResult setDirection(String value) { this.direction = value; return this; }
public Boolean isRefundableViaBorgun() { return refundableViaBorgun; }
public TransferTicketQuoteResult setRefundableViaBorgun(Boolean value) { this.refundableViaBorgun = value; return this; }
public Boolean isAfterPayout() { return afterPayout; }
public TransferTicketQuoteResult setAfterPayout(Boolean value) { this.afterPayout = value; return this; }
}
public static class TransferQuoteEventSide
{
public Integer eventId = null;
public String eventName = null;
public Date timeOfEvent = null;
public BigDecimal ticketPrice = null;
public String paymentMethodId = null;
public String paymentReference = null;
public Integer availableSeats = null;
public Integer getEventId() { return eventId; }
public TransferQuoteEventSide setEventId(Integer value) { this.eventId = value; return this; }
public String getEventName() { return eventName; }
public TransferQuoteEventSide setEventName(String value) { this.eventName = value; return this; }
public Date getTimeOfEvent() { return timeOfEvent; }
public TransferQuoteEventSide setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
public BigDecimal getTicketPrice() { return ticketPrice; }
public TransferQuoteEventSide setTicketPrice(BigDecimal value) { this.ticketPrice = value; return this; }
public String getPaymentMethodId() { return paymentMethodId; }
public TransferQuoteEventSide setPaymentMethodId(String value) { this.paymentMethodId = value; return this; }
public String getPaymentReference() { return paymentReference; }
public TransferQuoteEventSide setPaymentReference(String value) { this.paymentReference = value; return this; }
public Integer getAvailableSeats() { return availableSeats; }
public TransferQuoteEventSide setAvailableSeats(Integer value) { this.availableSeats = value; return this; }
}
}
Java TransferTicketQuoteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /transferTicket/quote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ticketTokenId":"String","toEventId":0,"userId":0,"toOwnerTicketTypeId":0,"toSeriesTicketTypeId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ok":false,"statusCode":0,"code":"String","message":"String","from":{"eventId":0,"eventName":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","ticketPrice":0,"paymentMethodId":"String","paymentReference":"String","availableSeats":0},"to":{"eventId":0,"eventName":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","ticketPrice":0,"paymentMethodId":"String","paymentReference":"String","availableSeats":0},"priceDifference":0,"direction":"String","refundableViaBorgun":false,"afterPayout":false}