TicketUserServices

<back to all web services

SelfServiceTransferConfirmRequest

Requires Authentication
The following routes are available for this service:
POST/selfService/transferTicket/confirmExecute a buyer-initiated ticket exchange
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SelfServiceTransferConfirmRequest
    {
        public String ticketTokenId = null;
        public String buyerPhone = null;
        public Integer toEventId = null;
        public Integer toOwnerTicketTypeId = null;
        public Integer toSeriesTicketTypeId = null;
        public Integer toSeatId = null;
        public String idempotencyKey = null;
        public BigDecimal expectedPriceDifference = null;
        
        public String getTicketTokenId() { return ticketTokenId; }
        public SelfServiceTransferConfirmRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
        public String getBuyerPhone() { return buyerPhone; }
        public SelfServiceTransferConfirmRequest setBuyerPhone(String value) { this.buyerPhone = value; return this; }
        public Integer getToEventId() { return toEventId; }
        public SelfServiceTransferConfirmRequest setToEventId(Integer value) { this.toEventId = value; return this; }
        public Integer getToOwnerTicketTypeId() { return toOwnerTicketTypeId; }
        public SelfServiceTransferConfirmRequest setToOwnerTicketTypeId(Integer value) { this.toOwnerTicketTypeId = value; return this; }
        public Integer getToSeriesTicketTypeId() { return toSeriesTicketTypeId; }
        public SelfServiceTransferConfirmRequest setToSeriesTicketTypeId(Integer value) { this.toSeriesTicketTypeId = value; return this; }
        public Integer getToSeatId() { return toSeatId; }
        public SelfServiceTransferConfirmRequest setToSeatId(Integer value) { this.toSeatId = value; return this; }
        public String getIdempotencyKey() { return idempotencyKey; }
        public SelfServiceTransferConfirmRequest setIdempotencyKey(String value) { this.idempotencyKey = value; return this; }
        public BigDecimal getExpectedPriceDifference() { return expectedPriceDifference; }
        public SelfServiceTransferConfirmRequest setExpectedPriceDifference(BigDecimal value) { this.expectedPriceDifference = value; return this; }
    }

    public static class SelfServiceTransferConfirmResult extends SelfServiceTransferResultBase
    {
        public Integer transferLogId = null;
        public String newTicketTokenId = null;
        public String direction = null;
        public BigDecimal priceDifference = null;
        public BigDecimal originalTicketPrice = null;
        public BigDecimal targetTicketPrice = null;
        public Integer assignedSeatId = null;
        public String assignedSeatLabel = null;
        public TransferTopupInstruction topup = null;
        
        public Integer getTransferLogId() { return transferLogId; }
        public SelfServiceTransferConfirmResult setTransferLogId(Integer value) { this.transferLogId = value; return this; }
        public String getNewTicketTokenId() { return newTicketTokenId; }
        public SelfServiceTransferConfirmResult setNewTicketTokenId(String value) { this.newTicketTokenId = value; return this; }
        public String getDirection() { return direction; }
        public SelfServiceTransferConfirmResult setDirection(String value) { this.direction = value; return this; }
        public BigDecimal getPriceDifference() { return priceDifference; }
        public SelfServiceTransferConfirmResult setPriceDifference(BigDecimal value) { this.priceDifference = value; return this; }
        public BigDecimal getOriginalTicketPrice() { return originalTicketPrice; }
        public SelfServiceTransferConfirmResult setOriginalTicketPrice(BigDecimal value) { this.originalTicketPrice = value; return this; }
        public BigDecimal getTargetTicketPrice() { return targetTicketPrice; }
        public SelfServiceTransferConfirmResult setTargetTicketPrice(BigDecimal value) { this.targetTicketPrice = value; return this; }
        public Integer getAssignedSeatId() { return assignedSeatId; }
        public SelfServiceTransferConfirmResult setAssignedSeatId(Integer value) { this.assignedSeatId = value; return this; }
        public String getAssignedSeatLabel() { return assignedSeatLabel; }
        public SelfServiceTransferConfirmResult setAssignedSeatLabel(String value) { this.assignedSeatLabel = value; return this; }
        public TransferTopupInstruction getTopup() { return topup; }
        public SelfServiceTransferConfirmResult setTopup(TransferTopupInstruction value) { this.topup = 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 TransferTopupInstruction
    {
        public BigDecimal amountIsk = null;
        public String paymentLinkUrl = null;
        public String sessionToken = null;
        public Date expiresAt = null;
        
        public BigDecimal getAmountIsk() { return amountIsk; }
        public TransferTopupInstruction setAmountIsk(BigDecimal value) { this.amountIsk = value; return this; }
        public String getPaymentLinkUrl() { return paymentLinkUrl; }
        public TransferTopupInstruction setPaymentLinkUrl(String value) { this.paymentLinkUrl = value; return this; }
        public String getSessionToken() { return sessionToken; }
        public TransferTopupInstruction setSessionToken(String value) { this.sessionToken = value; return this; }
        public Date getExpiresAt() { return expiresAt; }
        public TransferTopupInstruction setExpiresAt(Date value) { this.expiresAt = value; return this; }
    }

}

Java SelfServiceTransferConfirmRequest DTOs

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

HTTP + XML

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

POST /selfService/transferTicket/confirm HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SelfServiceTransferConfirmRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <BuyerPhone>String</BuyerPhone>
  <ExpectedPriceDifference>0</ExpectedPriceDifference>
  <IdempotencyKey>String</IdempotencyKey>
  <TicketTokenId>String</TicketTokenId>
  <ToEventId>0</ToEventId>
  <ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
  <ToSeatId>0</ToSeatId>
  <ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
</SelfServiceTransferConfirmRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SelfServiceTransferConfirmResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Code>String</Code>
  <Message>String</Message>
  <Ok>false</Ok>
  <StatusCode>0</StatusCode>
  <AssignedSeatId>0</AssignedSeatId>
  <AssignedSeatLabel>String</AssignedSeatLabel>
  <Direction>String</Direction>
  <NewTicketTokenId>String</NewTicketTokenId>
  <OriginalTicketPrice>0</OriginalTicketPrice>
  <PriceDifference>0</PriceDifference>
  <TargetTicketPrice>0</TargetTicketPrice>
  <Topup>
    <AmountIsk>0</AmountIsk>
    <ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
    <PaymentLinkUrl>String</PaymentLinkUrl>
    <SessionToken>String</SessionToken>
  </Topup>
  <TransferLogId>0</TransferLogId>
</SelfServiceTransferConfirmResult>