| All Verbs | /cmd/notify/frontend/ |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class NotifyFrontend
{
public AcceptedSlipInfo acceptedSlipInfo = null;
public ErrorInfo errorInfo = null;
public ConfirmationInfo confirmationInfo = null;
public String slipCancellationId = null;
public WalletUpdateInfo walletUpdatedInfo = null;
public UserNotificationsUpdatedInfo userNotificationsUpdated = null;
public ApplicationEventsUpdated applicationEventsUpdated = null;
public SlipDeliveryIssueRefundRequestUpdated slipDeliveryIssueRefundRequestUpdated = null;
public AcceptedSlipInfo getAcceptedSlipInfo() { return acceptedSlipInfo; }
public NotifyFrontend setAcceptedSlipInfo(AcceptedSlipInfo value) { this.acceptedSlipInfo = value; return this; }
public ErrorInfo getErrorInfo() { return errorInfo; }
public NotifyFrontend setErrorInfo(ErrorInfo value) { this.errorInfo = value; return this; }
public ConfirmationInfo getConfirmationInfo() { return confirmationInfo; }
public NotifyFrontend setConfirmationInfo(ConfirmationInfo value) { this.confirmationInfo = value; return this; }
public String getSlipCancellationId() { return slipCancellationId; }
public NotifyFrontend setSlipCancellationId(String value) { this.slipCancellationId = value; return this; }
public WalletUpdateInfo getWalletUpdatedInfo() { return walletUpdatedInfo; }
public NotifyFrontend setWalletUpdatedInfo(WalletUpdateInfo value) { this.walletUpdatedInfo = value; return this; }
public UserNotificationsUpdatedInfo getUserNotificationsUpdated() { return userNotificationsUpdated; }
public NotifyFrontend setUserNotificationsUpdated(UserNotificationsUpdatedInfo value) { this.userNotificationsUpdated = value; return this; }
public ApplicationEventsUpdated getApplicationEventsUpdated() { return applicationEventsUpdated; }
public NotifyFrontend setApplicationEventsUpdated(ApplicationEventsUpdated value) { this.applicationEventsUpdated = value; return this; }
public SlipDeliveryIssueRefundRequestUpdated getSlipDeliveryIssueRefundRequestUpdated() { return slipDeliveryIssueRefundRequestUpdated; }
public NotifyFrontend setSlipDeliveryIssueRefundRequestUpdated(SlipDeliveryIssueRefundRequestUpdated value) { this.slipDeliveryIssueRefundRequestUpdated = value; return this; }
}
public static class AcceptedSlipInfo
{
public String id = null;
public Origin origin = null;
public Ref bettor = null;
public SlipSubmissionStatus slipSubmissionStatus = null;
public String getId() { return id; }
public AcceptedSlipInfo setId(String value) { this.id = value; return this; }
public Origin getOrigin() { return origin; }
public AcceptedSlipInfo setOrigin(Origin value) { this.origin = value; return this; }
public Ref getBettor() { return bettor; }
public AcceptedSlipInfo setBettor(Ref value) { this.bettor = value; return this; }
public SlipSubmissionStatus getSlipSubmissionStatus() { return slipSubmissionStatus; }
public AcceptedSlipInfo setSlipSubmissionStatus(SlipSubmissionStatus value) { this.slipSubmissionStatus = value; return this; }
}
public static class Origin
{
public BettingApp application = null;
public String ip = null;
public RefEx organization = null;
public Ref region = null;
public Ref locationGroup = null;
public RefEx location = null;
public RefEx device = null;
public Ref clerk = null;
public BettingApp getApplication() { return application; }
public Origin setApplication(BettingApp value) { this.application = value; return this; }
public String getIp() { return ip; }
public Origin setIp(String value) { this.ip = value; return this; }
public RefEx getOrganization() { return organization; }
public Origin setOrganization(RefEx value) { this.organization = value; return this; }
public Ref getRegion() { return region; }
public Origin setRegion(Ref value) { this.region = value; return this; }
public Ref getLocationGroup() { return locationGroup; }
public Origin setLocationGroup(Ref value) { this.locationGroup = value; return this; }
public RefEx getLocation() { return location; }
public Origin setLocation(RefEx value) { this.location = value; return this; }
public RefEx getDevice() { return device; }
public Origin setDevice(RefEx value) { this.device = value; return this; }
public Ref getClerk() { return clerk; }
public Origin setClerk(Ref value) { this.clerk = value; return this; }
}
public static class BettingApp
{
public String name = null;
public String version = null;
public String getName() { return name; }
public BettingApp setName(String value) { this.name = value; return this; }
public String getVersion() { return version; }
public BettingApp setVersion(String value) { this.version = value; return this; }
}
public static class RefEx extends Ref
{
public RecordDictionary<String, String> data = null;
public RecordDictionary<String, String> getData() { return data; }
public RefEx setData(RecordDictionary<String, String> value) { this.data = value; return this; }
}
public static class Ref
{
public String id = null;
public String val = null;
public String getId() { return id; }
public Ref setId(String value) { this.id = value; return this; }
public String getVal() { return val; }
public Ref setVal(String value) { this.val = value; return this; }
}
public static class RecordDictionary<TKey, TVal> extends HashMap<TKey,TVal>
{
}
public static enum SlipSubmissionStatus
{
@SerializedName("0") Pending(0),
@SerializedName("2") Accepted(2),
@SerializedName("3") Rejected(3),
@SerializedName("4") Failed(4);
private final int value;
SlipSubmissionStatus(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class ErrorInfo
{
public Origin origin = null;
public String errorCode = null;
public String errorDescription = null;
public HashMap<String,String> payload = null;
public Origin getOrigin() { return origin; }
public ErrorInfo setOrigin(Origin value) { this.origin = value; return this; }
public String getErrorCode() { return errorCode; }
public ErrorInfo setErrorCode(String value) { this.errorCode = value; return this; }
public String getErrorDescription() { return errorDescription; }
public ErrorInfo setErrorDescription(String value) { this.errorDescription = value; return this; }
public HashMap<String,String> getPayload() { return payload; }
public ErrorInfo setPayload(HashMap<String,String> value) { this.payload = value; return this; }
}
public static class ConfirmationInfo
{
public Ref bettor = null;
public Origin origin = null;
public String confirmationCode = null;
public String confirmationDescription = null;
public HashMap<String,String> payload = null;
public Ref getBettor() { return bettor; }
public ConfirmationInfo setBettor(Ref value) { this.bettor = value; return this; }
public Origin getOrigin() { return origin; }
public ConfirmationInfo setOrigin(Origin value) { this.origin = value; return this; }
public String getConfirmationCode() { return confirmationCode; }
public ConfirmationInfo setConfirmationCode(String value) { this.confirmationCode = value; return this; }
public String getConfirmationDescription() { return confirmationDescription; }
public ConfirmationInfo setConfirmationDescription(String value) { this.confirmationDescription = value; return this; }
public HashMap<String,String> getPayload() { return payload; }
public ConfirmationInfo setPayload(HashMap<String,String> value) { this.payload = value; return this; }
}
public static class WalletUpdateInfo
{
public Ref bettor = null;
public Origin origin = null;
public WalletTransactionInfo transactionInfo = null;
public Ref getBettor() { return bettor; }
public WalletUpdateInfo setBettor(Ref value) { this.bettor = value; return this; }
public Origin getOrigin() { return origin; }
public WalletUpdateInfo setOrigin(Origin value) { this.origin = value; return this; }
public WalletTransactionInfo getTransactionInfo() { return transactionInfo; }
public WalletUpdateInfo setTransactionInfo(WalletTransactionInfo value) { this.transactionInfo = value; return this; }
}
public static class WalletTransactionInfo
{
public String reason = null;
public String getReason() { return reason; }
public WalletTransactionInfo setReason(String value) { this.reason = value; return this; }
}
public static class UserNotificationsUpdatedInfo
{
public String id = null;
public String getId() { return id; }
public UserNotificationsUpdatedInfo setId(String value) { this.id = value; return this; }
}
public static class ApplicationEventsUpdated
{
}
public static class SlipDeliveryIssueRefundRequestUpdated
{
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/notify/frontend/ HTTP/1.1
Host: api.sbbet.ath.cx
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"acceptedSlipInfo":{"id":"String","origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"bettor":{"id":"String","val":"String"},"slipSubmissionStatus":0},"errorInfo":{"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"errorCode":"String","errorDescription":"String","payload":{"String":"String"}},"confirmationInfo":{"bettor":{"id":"String","val":"String"},"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"confirmationCode":"String","confirmationDescription":"String","payload":{"String":"String"}},"slipCancellationId":"String","walletUpdatedInfo":{"bettor":{"id":"String","val":"String"},"origin":{"application":{"name":"String","version":"String"},"ip":"String","organization":{"data":{"String":"String"},"id":"String","val":"String"},"region":{"id":"String","val":"String"},"locationGroup":{"id":"String","val":"String"},"location":{"data":{"String":"String"},"id":"String","val":"String"},"device":{"data":{"String":"String"},"id":"String","val":"String"},"clerk":{"id":"String","val":"String"}},"transactionInfo":{"reason":"String"}},"userNotificationsUpdated":{"id":"String"},"applicationEventsUpdated":{},"slipDeliveryIssueRefundRequestUpdated":{}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}