Pular para o conteúdo

Jogos instantâneos

instantGamesnamespace

Partidas, rolls e prêmios instantâneos.

6métodos
instantGamesnamespace

Esta página é gerada automaticamente pelo @luckymaker/sdk-generator. Não edite manualmente.

GET/user/games/instant/pending

Assinatura:

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;
const response = await sdk.instantGames.getPendingPrizeRolls();

Testar esta função no playground

GET/user/games/instant/pending/by-gamemode

Assinatura:

getPendingPrizeRollsByGamemode(query?: GetPendingPrizeRollsByGamemodeQuery, settings?: SdkSettings): Promise<GetPendingPrizeRollsByGamemodeResponse>
Nome Tipo Obrigatório
page number sim
type GetPendingPrizeRollsByGamemodeQuery = { "page": number; };
type GetPendingPrizeRollsByGamemodeResponse = unknown;
const response = await sdk.instantGames.getPendingPrizeRollsByGamemode({ "page": 0 });

Testar esta função no playground

GET/user/games/instant/pending/by-raffle

Assinatura:

getPendingPrizeRollsByRaffle(query?: GetPendingPrizeRollsByRaffleQuery, settings?: SdkSettings): Promise<GetPendingPrizeRollsByRaffleResponse>
Nome Tipo Obrigatório
page number sim
type GetPendingPrizeRollsByRaffleQuery = { "page": number; };
type GetPendingPrizeRollsByRaffleResponse = unknown;
const response = await sdk.instantGames.getPendingPrizeRollsByRaffle({ "page": 0 });

Testar esta função no playground

GET/user/games/instant/matches

Assinatura:

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; }; };
const response = await sdk.instantGames.listPrizeMatchesHistory();

Testar esta função no playground

POST/user/games/instant/matches/:uuid/roll

Assinatura:

rollMatch(uuid: string, settings?: SdkSettings): Promise<RollMatchResponse>
Nome Tipo
uuid string
type RollMatchParams = { "uuid": string; };
type RollMatchResponse = { "winner": true; "title": string; "monetaryValue": string; } | { "winner": false; "title": null; "monetaryValue": null; };
const response = await sdk.instantGames.rollMatch("string");

Testar esta função no playground

POST/user/games/instant/matches/roll-all

Assinatura:

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; };
const response = await sdk.instantGames.rollMatchesAll();

Testar esta função no playground