Betting.WebApi

<back to all web services

GetProductInstanceConfiguration

The following routes are available for this service:
All Verbs/qry/configurations/productInstances
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    public static class GetProductInstanceConfiguration
    {
        public String id = null;
        public Origin origin = null;
        
        public String getId() { return id; }
        public GetProductInstanceConfiguration setId(String value) { this.id = value; return this; }
        public Origin getOrigin() { return origin; }
        public GetProductInstanceConfiguration setOrigin(Origin value) { this.origin = 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 class ProductInstanceConfiguration
    {
        public String id = null;
        public BettingPolicies bettingPolicies = null;
        public String apiUrl = null;
        public HashMap<String,String> settings = null;
        
        public String getId() { return id; }
        public ProductInstanceConfiguration setId(String value) { this.id = value; return this; }
        public BettingPolicies getBettingPolicies() { return bettingPolicies; }
        public ProductInstanceConfiguration setBettingPolicies(BettingPolicies value) { this.bettingPolicies = value; return this; }
        public String getApiUrl() { return apiUrl; }
        public ProductInstanceConfiguration setApiUrl(String value) { this.apiUrl = value; return this; }
        public HashMap<String,String> getSettings() { return settings; }
        public ProductInstanceConfiguration setSettings(HashMap<String,String> value) { this.settings = value; return this; }
    }

    public static class BettingPolicies
    {
        public RecordList<PayinConstraint> payinConstraints = null;
        public String payinTaxationPolicyId = null;
        public RecordList<WinningsCap> winningsCaps = null;
        public String winningsTaxationPolicyId = null;
        
        public RecordList<PayinConstraint> getPayinConstraints() { return payinConstraints; }
        public BettingPolicies setPayinConstraints(RecordList<PayinConstraint> value) { this.payinConstraints = value; return this; }
        public String getPayinTaxationPolicyId() { return payinTaxationPolicyId; }
        public BettingPolicies setPayinTaxationPolicyId(String value) { this.payinTaxationPolicyId = value; return this; }
        public RecordList<WinningsCap> getWinningsCaps() { return winningsCaps; }
        public BettingPolicies setWinningsCaps(RecordList<WinningsCap> value) { this.winningsCaps = value; return this; }
        public String getWinningsTaxationPolicyId() { return winningsTaxationPolicyId; }
        public BettingPolicies setWinningsTaxationPolicyId(String value) { this.winningsTaxationPolicyId = value; return this; }
    }

    public static class RecordList<T> extends ArrayList<T>
    {
        
    }

    public static class PayinConstraint
    {
        public PayinConstraintType type = null;
        public Money min = null;
        @SerializedName("default") public Money Default = null;
        public Money warningThreshold = null;
        public Money max = null;
        
        public PayinConstraintType getType() { return type; }
        public PayinConstraint setType(PayinConstraintType value) { this.type = value; return this; }
        public Money getMin() { return min; }
        public PayinConstraint setMin(Money value) { this.min = value; return this; }
        public Money getDefault() { return Default; }
        public PayinConstraint setDefault(Money value) { this.Default = value; return this; }
        public Money getWarningThreshold() { return warningThreshold; }
        public PayinConstraint setWarningThreshold(Money value) { this.warningThreshold = value; return this; }
        public Money getMax() { return max; }
        public PayinConstraint setMax(Money value) { this.max = value; return this; }
    }

    public static enum PayinConstraintType
    {
        @SerializedName("0") SingleBet(0),
        @SerializedName("1") MultiBet(1),
        @SerializedName("2") SystemBet(2);

        private final int value;
        PayinConstraintType(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static class Money
    {
        public BigDecimal amount = null;
        public String currency = null;
        
        public BigDecimal getAmount() { return amount; }
        public Money setAmount(BigDecimal value) { this.amount = value; return this; }
        public String getCurrency() { return currency; }
        public Money setCurrency(String value) { this.currency = value; return this; }
    }

    public static class WinningsCap
    {
        public WinningsCapType type = null;
        public Money cap = null;
        
        public WinningsCapType getType() { return type; }
        public WinningsCap setType(WinningsCapType value) { this.type = value; return this; }
        public Money getCap() { return cap; }
        public WinningsCap setCap(Money value) { this.cap = value; return this; }
    }

    public static enum WinningsCapType
    {
        @SerializedName("0") SingleBet(0),
        @SerializedName("1") MultiBet(1),
        @SerializedName("2") SystemBet(2);

        private final int value;
        WinningsCapType(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

}

Java GetProductInstanceConfiguration 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /qry/configurations/productInstances HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"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"}}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":"String","bettingPolicies":{"payinConstraints":[{"type":0,"min":{"amount":0,"currency":"String"},"default":{"amount":0,"currency":"String"},"warningThreshold":{"amount":0,"currency":"String"},"max":{"amount":0,"currency":"String"}}],"payinTaxationPolicyId":"String","winningsCaps":[{"type":0,"cap":{"amount":0,"currency":"String"}}],"winningsTaxationPolicyId":"String"},"apiUrl":"String","settings":{"String":"String"}}