Pular para o conteúdo

Conta

usernamespace

Perfil, biblioteca, indicações e preferências.

17métodos
usernamespace

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

POST/user/physicalBonds/attach

Assinatura:

attachPhysicalBonds(body?: AttachPhysicalBondsBody, settings?: SdkSettings): Promise<AttachPhysicalBondsResponse>
Nome Tipo Obrigatório
bondNumber string sim
securityCode string sim
type AttachPhysicalBondsBody = { "bondNumber": string; "securityCode": string; };
type AttachPhysicalBondsResponse = { "message": string; "bond": { "number": string; "raffleUUID": string; }; };
const response = await sdk.user.attachPhysicalBonds({ "bondNumber": "string", "securityCode": "string" });

Testar esta função no playground

DELETE/user/profile

Assinatura:

deleteProfile(body?: DeleteProfileBody, settings?: SdkSettings): Promise<DeleteProfileResponse>
Nome Tipo Obrigatório
reason "TOO_MANY_NOTIFICATIONS" | "DONT_KNOW_THE_SITE" | "CANNOT_CONTACT_SUPPORT" | "DONT_TRUST_THEY_WILL_WIN" | "STOPPED_PURCHASING" | "OTHER_REASON" sim
details string sim
type DeleteProfileBody = { "reason": "TOO_MANY_NOTIFICATIONS" | "DONT_KNOW_THE_SITE" | "CANNOT_CONTACT_SUPPORT" | "DONT_TRUST_THEY_WILL_WIN" | "STOPPED_PURCHASING" | "OTHER_REASON"; "details": string; };
type DeleteProfileResponse = unknown;
const response = await sdk.user.deleteProfile({ "reason": "TOO_MANY_NOTIFICATIONS", "details": "string" });

Testar esta função no playground

POST/user/digital-library/items/:id/download-url

Assinatura:

downloadDigitalLibraryItemUrl(id: string, settings?: SdkSettings): Promise<DownloadDigitalLibraryItemUrlResponse>
Nome Tipo
id string
type DownloadDigitalLibraryItemUrlParams = { "id": string; };
type DownloadDigitalLibraryItemUrlResponse = unknown;
const response = await sdk.user.downloadDigitalLibraryItemUrl("string");

Testar esta função no playground

GET/user/balance/history

Assinatura:

getBalanceHistory(query?: GetBalanceHistoryQuery, settings?: SdkSettings): Promise<GetBalanceHistoryResponse>
Nome Tipo Obrigatório
page number não
limit number não
wallet "CREDITS" | "CHECKING_ACCOUNT" | "POINTS" não
type GetBalanceHistoryQuery = { "page"?: number; "limit"?: number; "wallet"?: "CREDITS" | "CHECKING_ACCOUNT" | "POINTS"; };
type GetBalanceHistoryResponse = { "overview": { "currentPage": number; "maxPage": number; "totalItems": number; }; "items": Array<{ "id": number; "value": number; "amount": number; "operation": string; "status": string; "source": string; "wallet": string; "description": string; "errorMessage"?: string; "createdAt": string; }>; };
const response = await sdk.user.getBalanceHistory();

Testar esta função no playground

GET/user/guest/bonds/raffles/:uuid

Assinatura:

getBondsRaffle(uuid: string, query?: GetBondsRaffleQuery, settings?: SdkSettings): Promise<GetBondsRaffleResponse>
Nome Tipo
uuid string
Nome Tipo Obrigatório
page number não
perPage number não
type GetBondsRaffleParams = { "uuid": string; };
type GetBondsRaffleQuery = { "page"?: number; "perPage"?: number; };
type GetBondsRaffleResponse = { "raffle": { "id": number; "uuid": string; "title": string; "thumbnail": string; "susepProcess"?: string; "regulation"?: string; "digitsPerLuckyNumber"?: number; "kind"?: "MAIN" | "SECONDARY" | "GAMBLING"; "edition"?: string; "gambling"?: { "minimumBetPrice"?: string; "maximumBetPrice"?: string; "highestMultiplier"?: number; }; "hideRaffleCountdown"?: boolean | null; "marquee"?: { "text": string; }; "gallery"?: Array<{ "_id"?: string; "type": "YOUTUBE"; "purpose": "RESULTS_LIVE"; "url": string; } | { "_id"?: string; "type": "LIVESTREAM"; "endedAt"?: string; "embedURL": string; "thumbnailURL": string; "publishedAt": string; } | { "_id"?: string; "type": "RESULT"; "embedURL": string; "thumbnailURL": string; "publishedAt": string; } | { "_id"?: string; "type": "IMAGE"; "mediaId"?: string; "url"?: string; "purpose": "BANNER" | "RESULTS_BANNER"; } | { "_id"?: string; "type": "VIDEO"; "mediaId"?: string; "variants"?: Array<{ "format": string; "url": string; "dimensions": string; }>; }>; "highestMatrixNumber"?: number; "participationRules"?: { "canPurchaseBondsDirectly"?: boolean; "allowedCountryStates"?: Array<string>; "allowedCities"?: Array<string>; "supportsFastSignUp"?: boolean; }; "whereToWatch"?: { "facebook"?: string; "youtube"?: string; "twitch"?: string; }; "startAt": string; "endAt": string; "prizes"?: Array<{ "id": number; "name": string; "raffleKind": string; }>; "instantPrizes"?: { "drawMethods": Array<string>; }; "cart"?: { "selectorAmounts"?: Array<number>; "defaultAmountButtonIndex"?: number; "defaultAmountForLandingPage"?: number; "popularAmountButtonIndex"?: number; "increasingAmount"?: number; "minimumAmount"?: number; "selectorButtonLabels"?: Array<{ "text": string; "color": string; "icon"?: string; } | null>; "at"?: { "LANDING_PAGE"?: { "selectorAmounts"?: Array<number>; "defaultAmountButtonIndex"?: number; "defaultAmountForLandingPage"?: number; "popularAmountButtonIndex"?: number; "increasingAmount"?: number; "minimumAmount"?: number; "selectorButtonLabels"?: Array<{ "text": string; "color": string; "icon"?: string; } | null>; }; }; }; "category"?: { "slug": string; }; "drawDate"?: string; "results"?: Array<{ "winner": { "number": number; "name": string; "city": string; "state": string; "neighborhood": string; }; "prize": { "name": string; }; }>; "isOpenForPurchase": boolean; }; "total": number; "instantPrizes"?: false | Array<{ "number": string; "awardedItem"?: { "icon"?: string; "title": string; "subtitle": string; }; "type": "SCRATCH_CARD"; "itemsFound": Array<{ "icon"?: string; "title": string; "subtitle": string; }>; }>; "bonds": Array<{ "luckyNumber": string; "matrixChances": Array<{ "chanceIndex": number; "numbers": Array<string>; }>; }>; };
const response = await sdk.user.getBondsRaffle("string");

Testar esta função no playground

GET/user/communication-options

Assinatura:

getCommunicationOptions(settings?: SdkSettings): Promise<GetCommunicationOptionsResponse>
type GetCommunicationOptionsResponse = { "mediums": { "SMS": boolean; "PUSH": boolean; "WHATSAPP": boolean; "EMAIL": boolean; }; "categories": { "PAYMENT_STATUS": boolean; "PROMOTIONAL": boolean; "MARKETING": boolean; "NEWSLETTER": boolean; }; };
const response = await sdk.user.getCommunicationOptions();

Testar esta função no playground

GET/user/digital-library

Assinatura:

getDigitalLibrary(query?: GetDigitalLibraryQuery, settings?: SdkSettings): Promise<GetDigitalLibraryResponse>
Nome Tipo Obrigatório
page number não
perPage number não
type GetDigitalLibraryQuery = { "page"?: number; "perPage"?: number; };
type GetDigitalLibraryResponse = unknown;
const response = await sdk.user.getDigitalLibrary();

Testar esta função no playground

GET/user/digital-library/items/:id/detail

Assinatura:

getDigitalLibraryItemDetail(id: string, settings?: SdkSettings): Promise<GetDigitalLibraryItemDetailResponse>
Nome Tipo
id string
type GetDigitalLibraryItemDetailParams = { "id": string; };
type GetDigitalLibraryItemDetailResponse = unknown;
const response = await sdk.user.getDigitalLibraryItemDetail("string");

Testar esta função no playground

GET/user/digital-library/items/:id/playback

Assinatura:

getDigitalLibraryItemPlayback(id: string, settings?: SdkSettings): Promise<GetDigitalLibraryItemPlaybackResponse>
Nome Tipo
id string
type GetDigitalLibraryItemPlaybackParams = { "id": string; };
type GetDigitalLibraryItemPlaybackResponse = unknown;
const response = await sdk.user.getDigitalLibraryItemPlayback("string");

Testar esta função no playground

GET/user/notifications/info

Assinatura:

getNotificationsInfo(settings?: SdkSettings): Promise<GetNotificationsInfoResponse>
type GetNotificationsInfoResponse = { "id": { "value": string; "hash": string; }; "email": { "value": string; "hash": string; }; "tel": { "value": string; "hash": string; }; };
const response = await sdk.user.getNotificationsInfo();

Testar esta função no playground

GET/user/profile

Assinatura:

getProfile(settings?: SdkSettings): Promise<GetProfileResponse>
type GetProfileResponse = { "id": number; "email": string; "name"?: string; "originalName"?: string; "socialName"?: string | null; "cpf": string; "idd"?: string; "tel": string; "birthdate"?: string; "gender"?: "M" | "F" | "O" | "N" | null; "address": { "cep": string; "streetName": string; "number"?: string; "neighborhood": string; "complement"?: string; "city": string; "state": string; }; "creditsAmount"?: number; "checkingAccountAmount"?: number; };
const response = await sdk.user.getProfile();

Testar esta função no playground

GET/user/referral/history

Assinatura:

getReferralHistory(query?: GetReferralHistoryQuery, settings?: SdkSettings): Promise<GetReferralHistoryResponse>
Nome Tipo Obrigatório
from string não
to string não
page number não
perPage number não
type GetReferralHistoryQuery = { "from"?: string; "to"?: string; "page"?: number; "perPage"?: number; };
type GetReferralHistoryResponse = unknown;
const response = await sdk.user.getReferralHistory();

Testar esta função no playground

GET/user/referral/me

Assinatura:

getReferralProgram(settings?: SdkSettings): Promise<GetReferralProgramResponse>
type GetReferralProgramResponse = unknown;
const response = await sdk.user.getReferralProgram();

Testar esta função no playground

GET/user/guest/bonds

Assinatura:

listGuestPurchasedRaffle(query?: ListGuestPurchasedRaffleQuery, settings?: SdkSettings): Promise<ListGuestPurchasedRaffleResponse>
Nome Tipo Obrigatório
page number não
drawedAt "FUTURE" | "PAST" não
type ListGuestPurchasedRaffleQuery = { "page"?: number; "drawedAt"?: "FUTURE" | "PAST"; };
type ListGuestPurchasedRaffleResponse = Array<{ "uuid": string; "title": string; "thumbnail": string; "susepProcess"?: string; "regulation"?: string; "digitsPerLuckyNumber"?: number; "kind"?: "MAIN" | "SECONDARY" | "GAMBLING"; "edition"?: string; "gambling"?: { "minimumBetPrice"?: string; "maximumBetPrice"?: string; "highestMultiplier"?: number; }; "hideRaffleCountdown"?: boolean | null; "marquee"?: { "text": string; }; "gallery"?: Array<{ "_id"?: string; "type": "YOUTUBE"; "purpose": "RESULTS_LIVE"; "url": string; } | { "_id"?: string; "type": "LIVESTREAM"; "endedAt"?: string; "embedURL": string; "thumbnailURL": string; "publishedAt": string; } | { "_id"?: string; "type": "RESULT"; "embedURL": string; "thumbnailURL": string; "publishedAt": string; } | { "_id"?: string; "type": "IMAGE"; "mediaId"?: string; "url"?: string; "purpose": "BANNER" | "RESULTS_BANNER"; } | { "_id"?: string; "type": "VIDEO"; "mediaId"?: string; "variants"?: Array<{ "format": string; "url": string; "dimensions": string; }>; }>; "highestMatrixNumber"?: number; "participationRules"?: { "canPurchaseBondsDirectly"?: boolean; "allowedCountryStates"?: Array<string>; "allowedCities"?: Array<string>; "supportsFastSignUp"?: boolean; }; "whereToWatch"?: { "facebook"?: string; "youtube"?: string; "twitch"?: string; }; "startAt": string; "endAt": string; "prizes"?: Array<{ "id": number; "name": string; "raffleKind": string; }>; "instantPrizes"?: { "drawMethods": Array<string>; }; "cart"?: { "selectorAmounts"?: Array<number>; "defaultAmountButtonIndex"?: number; "defaultAmountForLandingPage"?: number; "popularAmountButtonIndex"?: number; "increasingAmount"?: number; "minimumAmount"?: number; "selectorButtonLabels"?: Array<{ "text": string; "color": string; "icon"?: string; } | null>; "at"?: { "LANDING_PAGE"?: { "selectorAmounts"?: Array<number>; "defaultAmountButtonIndex"?: number; "defaultAmountForLandingPage"?: number; "popularAmountButtonIndex"?: number; "increasingAmount"?: number; "minimumAmount"?: number; "selectorButtonLabels"?: Array<{ "text": string; "color": string; "icon"?: string; } | null>; }; }; }; "category"?: { "slug": string; }; "drawDate"?: string; "results"?: Array<{ "winner": { "number": number; "name": string; "city": string; "state": string; "neighborhood": string; }; "prize": { "name": string; }; }>; "bondCount": number; }>;
const response = await sdk.user.listGuestPurchasedRaffle();

Testar esta função no playground

GET/user/referral/me/links

Assinatura:

listReferralPublicLinks(settings?: SdkSettings): Promise<ListReferralPublicLinksResponse>
type ListReferralPublicLinksResponse = { "links": Array<{ "campaignId": string; "link": string; }>; };
const response = await sdk.user.listReferralPublicLinks();

Testar esta função no playground

POST/user/communication-options

Assinatura:

setCommunicationOptions(body?: SetCommunicationOptionsBody, settings?: SdkSettings): Promise<SetCommunicationOptionsResponse>
Nome Tipo Obrigatório
mediums { "SMS": boolean; "PUSH": boolean; "WHATSAPP": boolean; "EMAIL": boolean; } sim
categories { "PAYMENT_STATUS": boolean; "PROMOTIONAL": boolean; "MARKETING": boolean; "NEWSLETTER": boolean; } sim
type SetCommunicationOptionsBody = { "mediums": { "SMS": boolean; "PUSH": boolean; "WHATSAPP": boolean; "EMAIL": boolean; }; "categories": { "PAYMENT_STATUS": boolean; "PROMOTIONAL": boolean; "MARKETING": boolean; "NEWSLETTER": boolean; }; };
type SetCommunicationOptionsResponse = unknown;
const response = await sdk.user.setCommunicationOptions({ "mediums": { "SMS": true, "PUSH": true, "WHATSAPP": true, "EMAIL": true }, "categories": { "PAYMENT_STATUS": true, "PROMOTIONAL": true, "MARKETING": true, "NEWSLETTER": true } });

Testar esta função no playground

PUT/user/profile

Assinatura:

updateProfile(body?: UpdateProfileBody, settings?: SdkSettings): Promise<UpdateProfileResponse>
Nome Tipo Obrigatório
email string não
name string não
originalName string não
socialName string | null não
idd string não
tel string não
birthdate string não
gender "M" | "F" | "O" | "N" | null não
address { "cep"?: string; "streetName"?: string | null; "number"?: string; "neighborhood"?: string | null; "complement"?: string; } não
type UpdateProfileBody = { "email"?: string; "name"?: string; "originalName"?: string; "socialName"?: string | null; "idd"?: string; "tel"?: string; "birthdate"?: string; "gender"?: "M" | "F" | "O" | "N" | null; "address"?: { "cep"?: string; "streetName"?: string | null; "number"?: string; "neighborhood"?: string | null; "complement"?: string; }; };
type UpdateProfileResponse = { "id": number; "email": string; "name"?: string; "originalName"?: string; "socialName"?: string | null; "cpf": string; "idd"?: string; "tel": string; "birthdate"?: string; "gender"?: "M" | "F" | "O" | "N" | null; "address": { "cep": string; "streetName": string; "number"?: string; "neighborhood": string; "complement"?: string; "city": string; "state": string; }; "creditsAmount"?: number; "checkingAccountAmount"?: number; };
const response = await sdk.user.updateProfile({ "email": "string", "name": "string", "originalName": "string", "socialName": "string", "idd": "string", "tel": "string", "birthdate": "string", "gender": "M", "address": { "cep": "string", "streetName": "string", "number": "string", "neighborhood": "string", "complement": "string" } });

Testar esta função no playground