| POST | /selfService/transferTicket/cancelPending | Call off an unpaid exchange and keep the original ticket |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SelfServiceCancelPendingRequest
{
public String ticketTokenId = null;
public String buyerPhone = null;
public Integer transferLogId = null;
public String getTicketTokenId() { return ticketTokenId; }
public SelfServiceCancelPendingRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
public String getBuyerPhone() { return buyerPhone; }
public SelfServiceCancelPendingRequest setBuyerPhone(String value) { this.buyerPhone = value; return this; }
public Integer getTransferLogId() { return transferLogId; }
public SelfServiceCancelPendingRequest setTransferLogId(Integer value) { this.transferLogId = value; return this; }
}
public static class SelfServiceCancelPendingResult extends SelfServiceTransferResultBase
{
public Integer transferLogId = null;
public String status = null;
public String ticketTokenId = null;
public Integer getTransferLogId() { return transferLogId; }
public SelfServiceCancelPendingResult setTransferLogId(Integer value) { this.transferLogId = value; return this; }
public String getStatus() { return status; }
public SelfServiceCancelPendingResult setStatus(String value) { this.status = value; return this; }
public String getTicketTokenId() { return ticketTokenId; }
public SelfServiceCancelPendingResult setTicketTokenId(String value) { this.ticketTokenId = 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; }
}
}
Java SelfServiceCancelPendingRequest DTOs
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 /selfService/transferTicket/cancelPending HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SelfServiceCancelPendingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<BuyerPhone>String</BuyerPhone>
<TicketTokenId>String</TicketTokenId>
<TransferLogId>0</TransferLogId>
</SelfServiceCancelPendingRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SelfServiceCancelPendingResult 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> <Status>String</Status> <TicketTokenId>String</TicketTokenId> <TransferLogId>0</TransferLogId> </SelfServiceCancelPendingResult>