Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
GET POST | /ticketOrder/markused |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class MarkTicketAsUsedRequest
{
public String phoneVerificationNumber = null;
public String deviceId = null;
public String ticketTokenId = null;
public Long requestUnixUTCTimeStamp = null;
public RequestSignature signature = null;
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public MarkTicketAsUsedRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getDeviceId() { return deviceId; }
public MarkTicketAsUsedRequest setDeviceId(String value) { this.deviceId = value; return this; }
public String getTicketTokenId() { return ticketTokenId; }
public MarkTicketAsUsedRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
public MarkTicketAsUsedRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
public RequestSignature getSignature() { return signature; }
public MarkTicketAsUsedRequest setSignature(RequestSignature value) { this.signature = value; return this; }
}
public static class RequestSignature
{
public String systemId = null;
public String systemSecret = null;
public String signature = null;
public String getSystemId() { return systemId; }
public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
public String getSystemSecret() { return systemSecret; }
public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
public String getSignature() { return signature; }
public RequestSignature setSignature(String value) { this.signature = value; return this; }
}
public static class MarkTicketAsUsedResponse
{
public Integer statusCode = null;
public Boolean success = null;
public String message = null;
public Integer getStatusCode() { return statusCode; }
public MarkTicketAsUsedResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
public Boolean isSuccess() { return success; }
public MarkTicketAsUsedResponse setSuccess(Boolean value) { this.success = value; return this; }
public String getMessage() { return message; }
public MarkTicketAsUsedResponse setMessage(String value) { this.message = value; return this; }
}
}
Java MarkTicketAsUsedRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketOrder/markused HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
phoneVerificationNumber: String,
deviceId: String,
ticketTokenId: String,
requestUnixUTCTimeStamp: 0,
signature:
{
systemId: String,
systemSecret: String,
signature: String
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { statusCode: 0, success: False, message: String }