| GET | /transferTicket/topupSession/{Token} | Stubbur-web fetches the details needed to render the topup payment page |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetTopupSessionRequest
{
public String token = null;
public String getToken() { return token; }
public GetTopupSessionRequest setToken(String value) { this.token = value; return this; }
}
public static class GetTopupSessionResult
{
public Boolean ok = null;
public Integer statusCode = null;
public String message = null;
public String status = null;
public Integer transferLogId = null;
public BigDecimal amountIsk = null;
public String fromEventName = null;
public String toEventName = null;
public Date toEventTimeOfEvent = null;
public Date expiresAt = null;
public String paymentPhoneNumber = null;
public Boolean isOk() { return ok; }
public GetTopupSessionResult setOk(Boolean value) { this.ok = value; return this; }
public Integer getStatusCode() { return statusCode; }
public GetTopupSessionResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public GetTopupSessionResult setMessage(String value) { this.message = value; return this; }
public String getStatus() { return status; }
public GetTopupSessionResult setStatus(String value) { this.status = value; return this; }
public Integer getTransferLogId() { return transferLogId; }
public GetTopupSessionResult setTransferLogId(Integer value) { this.transferLogId = value; return this; }
public BigDecimal getAmountIsk() { return amountIsk; }
public GetTopupSessionResult setAmountIsk(BigDecimal value) { this.amountIsk = value; return this; }
public String getFromEventName() { return fromEventName; }
public GetTopupSessionResult setFromEventName(String value) { this.fromEventName = value; return this; }
public String getToEventName() { return toEventName; }
public GetTopupSessionResult setToEventName(String value) { this.toEventName = value; return this; }
public Date getToEventTimeOfEvent() { return toEventTimeOfEvent; }
public GetTopupSessionResult setToEventTimeOfEvent(Date value) { this.toEventTimeOfEvent = value; return this; }
public Date getExpiresAt() { return expiresAt; }
public GetTopupSessionResult setExpiresAt(Date value) { this.expiresAt = value; return this; }
public String getPaymentPhoneNumber() { return paymentPhoneNumber; }
public GetTopupSessionResult setPaymentPhoneNumber(String value) { this.paymentPhoneNumber = value; return this; }
}
}
Java GetTopupSessionRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /transferTicket/topupSession/{Token} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ok":false,"statusCode":0,"message":"String","status":"String","transferLogId":0,"amountIsk":0,"fromEventName":"String","toEventName":"String","toEventTimeOfEvent":"0001-01-01T00:00:00.0000000","expiresAt":"0001-01-01T00:00:00.0000000","paymentPhoneNumber":"String"}