| All Verbs | /qry/rounds/draw |
|---|
export class Pool
{
public id: number;
public name: string;
public coefficient: number;
public rtp: number;
public threshold: number;
public balance: number;
public rrtp: number;
public rBalance: number;
public constructor(init?: Partial<Pool>) { (Object as any).assign(this, init); }
}
export class DrawItem
{
public ordinal: number;
public number: number;
public coefficient: number;
public isDoubleTriple: boolean;
public constitutesJackpot: boolean;
public hits: number;
public win: number;
public constructor(init?: Partial<DrawItem>) { (Object as any).assign(this, init); }
}
export enum CustomBetType
{
FirstNumberOdd = 4,
FirstNumberEven = 5,
FirstNumberLessThan24_5 = 6,
FirstNumberGreaterThan24_5 = 7,
SumOfFirstFiveLessThan122_5 = 8,
SumOfFirstFiveGreaterThan122_5 = 9,
FirstColor1 = 10,
FirstColor2 = 11,
FirstColor3 = 12,
FirstColor4 = 13,
FirstColor5 = 14,
FirstColor6 = 15,
FirstColor7 = 16,
FirstColor8 = 17,
MoreOddNumbers = 18,
MoreEvenNumbers = 19,
}
export class CustomBetOutcome
{
public type: CustomBetType;
public coef: number;
public winCount: number;
public win: number;
public isWin: boolean;
public results: string;
public constructor(init?: Partial<CustomBetOutcome>) { (Object as any).assign(this, init); }
}
export class BettingApp
{
public name: string;
public version: string;
public constructor(init?: Partial<BettingApp>) { (Object as any).assign(this, init); }
}
export class Ref
{
public id: string;
public val: string;
public constructor(init?: Partial<Ref>) { (Object as any).assign(this, init); }
}
export class RefEx extends Ref
{
public data: RecordDictionary<string, string>;
public constructor(init?: Partial<RefEx>) { super(init); (Object as any).assign(this, init); }
}
export class Origin
{
public application: BettingApp;
public ip: string;
public organization: RefEx;
public region: Ref;
public locationGroup: Ref;
public location: RefEx;
public device: RefEx;
public clerk: Ref;
public constructor(init?: Partial<Origin>) { (Object as any).assign(this, init); }
}
export class WinnerByCode
{
public roundId: string;
public drawnAtUtc: string;
public slipId: string;
public betId: string;
public code: string;
public amount: number;
public origin: Origin;
public bettor: Ref;
public locationAddressOrBettorInfo: string;
public constructor(init?: Partial<WinnerByCode>) { (Object as any).assign(this, init); }
}
export class SuperWinWinner
{
public isDrawn: boolean;
public drawnAtUtc: string;
public roundId: string;
public betId: string;
public slipId: string;
public origin: Origin;
public bettor: Ref;
public code: string;
public amount: number;
public locationAddressOrBettorInfo: string;
public constructor(init?: Partial<SuperWinWinner>) { (Object as any).assign(this, init); }
}
export class SuperWinInfo
{
public isActive: boolean;
public winner: SuperWinWinner;
public availableAmount: number;
public allPrizesAwarded: boolean;
public constructor(init?: Partial<SuperWinInfo>) { (Object as any).assign(this, init); }
}
export class JackPot5Winner
{
public betId: string;
public nrOfCombinations: number;
public winningsAmount: number;
public origin: Origin;
public bettor: Ref;
public payload: { [index:string]: string; };
public constructor(init?: Partial<JackPot5Winner>) { (Object as any).assign(this, init); }
}
export class Jackpot5Info
{
public isHit: boolean;
public amountAccumulated: number;
public amountAwarded: number;
public nrOfWinners: number;
public jackPot5Winners: JackPot5Winner[];
public constructor(init?: Partial<Jackpot5Info>) { (Object as any).assign(this, init); }
}
export class GlobalCodePotInfo
{
public isActive: boolean;
public isDrawn: boolean;
public winner: WinnerByCode;
public inertCode: string;
public accumulation: number;
public constructor(init?: Partial<GlobalCodePotInfo>) { (Object as any).assign(this, init); }
}
export class RoundOutcome
{
public draw: DrawItem[];
public customBetOutcomes: CustomBetOutcome[];
public lcpWinners: WinnerByCode[];
public superWinInfo: SuperWinInfo;
public jackpot5Info: Jackpot5Info;
public globalCodePotInfo: GlobalCodePotInfo;
public stake: number;
public betCount: number;
public winnings: number;
public balance: number;
public returnToPlayer: number;
public winCount: number;
public slipWinCount: number;
public winCountPct: number;
public slipCount: number;
public unitBetCount: number;
public constructor(init?: Partial<RoundOutcome>) { (Object as any).assign(this, init); }
}
export class Draw
{
public id: string;
public sequence: string;
public inputAccumulation: Pool[];
public outputAccumulation: Pool[];
public outcome: RoundOutcome;
public constructor(init?: Partial<Draw>) { (Object as any).assign(this, init); }
}
export class GetDraw
{
public id: string;
public constructor(init?: Partial<GetDraw>) { (Object as any).assign(this, init); }
}
export class Dictionary<T> { [Key: string]: T; }
export class RecordDictionary<TKey, TVal> extends Dictionary<TVal>
{
public constructor(init?: Partial<RecordDictionary<TKey, TVal>>) { super(); (Object as any).assign(this, init); }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/rounds/draw HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: String,
sequence: String,
inputAccumulation:
[
{
id: 0,
name: String,
amount: 0,
reserveAmount: 0
}
],
outputAccumulation:
[
{
id: 0,
name: String,
amount: 0,
reserveAmount: 0
}
],
outcome:
{
draw:
[
{
ordinal: 0,
number: 0,
coefficient: 0,
isDoubleTriple: False,
constitutesJackpot: False,
hits: 0,
win: 0
}
],
customBetOutcomes:
[
{
type: 4,
coef: 0,
winCount: 0,
win: 0,
isWin: False,
results: String
}
],
lcpWinners:
[
{
roundId: String,
drawnAtUtc: 0001-01-01,
slipId: String,
betId: String,
code: String,
amount: 0,
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
},
locationAddressOrBettorInfo: String
}
],
superWinInfo:
{
isActive: False,
winner:
{
isDrawn: False,
drawnAtUtc: 0001-01-01,
roundId: String,
betId: String,
slipId: 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
},
code: String,
amount: 0,
locationAddressOrBettorInfo: String
},
availableAmount: 0,
allPrizesAwarded: False
},
jackpot5Info:
{
isHit: False,
amountAccumulated: 0,
amountAwarded: 0,
nrOfWinners: 0,
jackPot5Winners:
[
{
betId: String,
nrOfCombinations: 0,
winningsAmount: 0,
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
},
payload:
{
String: String
}
}
]
},
globalCodePotInfo:
{
isActive: False,
isDrawn: True,
winner:
{
roundId: String,
drawnAtUtc: 0001-01-01,
slipId: String,
betId: String,
code: String,
amount: 0,
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
},
locationAddressOrBettorInfo: String
},
inertCode: String,
accumulation: 0
},
stake: 0,
betCount: 0,
winnings: 0,
balance: 0,
returnToPlayer: 0,
winCount: 0,
slipWinCount: 0,
winCountPct: 0,
slipCount: 0,
unitBetCount: 0
}
}