Jogos instantâneos
instantGamesnamespacePartidas, rolls e prêmios instantâneos.
6métodos
instantGamesnamespaceEsta página é gerada automaticamente pelo
@luckymaker/sdk-generator. Não edite manualmente.
getPendingPrizeRolls
Seção intitulada “getPendingPrizeRolls”GET
/user/games/instant/pendingAssinatura:
getPendingPrizeRolls(query?: GetPendingPrizeRollsQuery, settings?: SdkSettings): Promise<GetPendingPrizeRollsResponse>| Nome | Tipo | Obrigatório |
|---|---|---|
drawMethod |
string |
não |
payment |
string |
não |
raffle |
number | string |
não |
type GetPendingPrizeRollsQuery = { "drawMethod"?: string; "payment"?: string; "raffle"?: number | string; };type GetPendingPrizeRollsResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.instantGames.getPendingPrizeRolls();Testar esta função no playground
getPendingPrizeRollsByGamemode
Seção intitulada “getPendingPrizeRollsByGamemode”GET
/user/games/instant/pending/by-gamemodeAssinatura:
getPendingPrizeRollsByGamemode(query?: GetPendingPrizeRollsByGamemodeQuery, settings?: SdkSettings): Promise<GetPendingPrizeRollsByGamemodeResponse>| Nome | Tipo | Obrigatório |
|---|---|---|
page |
number |
sim |
type GetPendingPrizeRollsByGamemodeQuery = { "page": number; };type GetPendingPrizeRollsByGamemodeResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.instantGames.getPendingPrizeRollsByGamemode({ "page": 0 });Testar esta função no playground
getPendingPrizeRollsByRaffle
Seção intitulada “getPendingPrizeRollsByRaffle”GET
/user/games/instant/pending/by-raffleAssinatura:
getPendingPrizeRollsByRaffle(query?: GetPendingPrizeRollsByRaffleQuery, settings?: SdkSettings): Promise<GetPendingPrizeRollsByRaffleResponse>| Nome | Tipo | Obrigatório |
|---|---|---|
page |
number |
sim |
type GetPendingPrizeRollsByRaffleQuery = { "page": number; };type GetPendingPrizeRollsByRaffleResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.instantGames.getPendingPrizeRollsByRaffle({ "page": 0 });Testar esta função no playground
listPrizeMatchesHistory
Seção intitulada “listPrizeMatchesHistory”GET
/user/games/instant/matchesAssinatura:
listPrizeMatchesHistory(query?: ListPrizeMatchesHistoryQuery, settings?: SdkSettings): Promise<ListPrizeMatchesHistoryResponse>| Nome | Tipo | Obrigatório |
|---|---|---|
page |
number |
não |
limit |
number |
não |
status |
"FINISHED" | "CREATED" |
não |
raffle |
string |
não |
gamemode |
string | number |
não |
type ListPrizeMatchesHistoryQuery = { "page"?: number; "limit"?: number; "status"?: "FINISHED" | "CREATED"; "raffle"?: string; "gamemode"?: string | number; };type ListPrizeMatchesHistoryResponse = { "items": Array<{ "uuid": string; "gamemode": string; "isPlayed": boolean; "playedAt": null | string; "createdAt": string; "raffle": { "uuid": string; "title": string; "thumbnail"?: string; }; "prize": null | { "title": string; "kind": string; "monetaryValue"?: number; }; "payment": null | { "uuid": string; "method": string; "createdAt": string; }; "contemplation": { "isWon": boolean; "link"?: string; }; "canPlay": boolean; }>; "summary": { "totalWon": number; "byGamemode": Array<{ "gamemode": string; "totalWon": number; }>; }; "pagination": { "total": number; "page": number; "limit": number; "totalPages": number; }; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.instantGames.listPrizeMatchesHistory();Testar esta função no playground
rollMatch
Seção intitulada “rollMatch”POST
/user/games/instant/matches/:uuid/rollAssinatura:
rollMatch(uuid: string, settings?: SdkSettings): Promise<RollMatchResponse>Parâmetros de rota
Seção intitulada “Parâmetros de rota”| Nome | Tipo |
|---|---|
uuid |
string |
type RollMatchParams = { "uuid": string; };type RollMatchResponse = { "winner": true; "title": string; "monetaryValue": string; } | { "winner": false; "title": null; "monetaryValue": null; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.instantGames.rollMatch("string");Testar esta função no playground
rollMatchesAll
Seção intitulada “rollMatchesAll”POST
/user/games/instant/matches/roll-allAssinatura:
rollMatchesAll(settings?: SdkSettings<RollMatchesAllQuery>): Promise<RollMatchesAllResponse>| Nome | Tipo | Obrigatório |
|---|---|---|
drawMethod |
string |
não |
payment |
string |
não |
raffle |
number | string |
não |
type RollMatchesAllQuery = { "drawMethod"?: string; "payment"?: string; "raffle"?: number | string; };type RollMatchesAllResponse = { "results": Array<{ "winner": boolean; "title": string | null; "monetaryValue": string | null; }>; "pendingCount": number; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.instantGames.rollMatchesAll();