Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
GET POST | /ticketOrder/status |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetTicketStatusRequest
{
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 GetTicketStatusRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getDeviceId() { return deviceId; }
public GetTicketStatusRequest setDeviceId(String value) { this.deviceId = value; return this; }
public String getTicketTokenId() { return ticketTokenId; }
public GetTicketStatusRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
public GetTicketStatusRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
public RequestSignature getSignature() { return signature; }
public GetTicketStatusRequest 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 GetTicketStatusResponse
{
public Integer statusCode = null;
public Boolean success = null;
public String message = null;
public String ticketStatus = null;
public Integer getStatusCode() { return statusCode; }
public GetTicketStatusResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
public Boolean isSuccess() { return success; }
public GetTicketStatusResponse setSuccess(Boolean value) { this.success = value; return this; }
public String getMessage() { return message; }
public GetTicketStatusResponse setMessage(String value) { this.message = value; return this; }
public String getTicketStatus() { return ticketStatus; }
public GetTicketStatusResponse setTicketStatus(String value) { this.ticketStatus = value; return this; }
}
}
Java GetTicketStatusRequest 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 /ticketOrder/status HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/json
Content-Type: application/json
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: application/json Content-Length: length {"statusCode":0,"success":false,"message":"String","ticketStatus":"String"}