TicketUserServices

<back to all web services

GetTopupSessionRequest

The following routes are available for this service:
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 .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.

GET /transferTicket/topupSession/{Token} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetTopupSessionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AmountIsk>0</AmountIsk>
  <ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
  <FromEventName>String</FromEventName>
  <Message>String</Message>
  <Ok>false</Ok>
  <PaymentPhoneNumber>String</PaymentPhoneNumber>
  <Status>String</Status>
  <StatusCode>0</StatusCode>
  <ToEventName>String</ToEventName>
  <ToEventTimeOfEvent>0001-01-01T00:00:00</ToEventTimeOfEvent>
  <TransferLogId>0</TransferLogId>
</GetTopupSessionResult>