Conta
usernamespacePerfil, biblioteca, indicações e preferências.
usernamespaceEsta página é gerada automaticamente pelo
@luckymaker/sdk-generator. Não edite manualmente.
attachPhysicalBonds
Seção intitulada “attachPhysicalBonds”/user/physicalBonds/attachAssinatura:
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; }; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.attachPhysicalBonds({ "bondNumber": "string", "securityCode": "string" });Testar esta função no playground
deleteProfile
Seção intitulada “deleteProfile”/user/profileAssinatura:
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;Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.deleteProfile({ "reason": "TOO_MANY_NOTIFICATIONS", "details": "string" });Testar esta função no playground
downloadDigitalLibraryItemUrl
Seção intitulada “downloadDigitalLibraryItemUrl”/user/digital-library/items/:id/download-urlAssinatura:
downloadDigitalLibraryItemUrl(id: string, settings?: SdkSettings): Promise<DownloadDigitalLibraryItemUrlResponse>Parâmetros de rota
Seção intitulada “Parâmetros de rota”| Nome | Tipo |
|---|---|
id |
string |
type DownloadDigitalLibraryItemUrlParams = { "id": string; };type DownloadDigitalLibraryItemUrlResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.downloadDigitalLibraryItemUrl("string");Testar esta função no playground
getBalanceHistory
Seção intitulada “getBalanceHistory”/user/balance/historyAssinatura:
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; }>; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getBalanceHistory();Testar esta função no playground
getBondsRaffle
Seção intitulada “getBondsRaffle”/user/guest/bonds/raffles/:uuidAssinatura:
getBondsRaffle(uuid: string, query?: GetBondsRaffleQuery, settings?: SdkSettings): Promise<GetBondsRaffleResponse>Parâmetros de rota
Seção intitulada “Parâmetros de rota”| 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>; }>; }>; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getBondsRaffle("string");Testar esta função no playground
getCommunicationOptions
Seção intitulada “getCommunicationOptions”/user/communication-optionsAssinatura:
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; }; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getCommunicationOptions();Testar esta função no playground
getDigitalLibrary
Seção intitulada “getDigitalLibrary”/user/digital-libraryAssinatura:
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;Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getDigitalLibrary();Testar esta função no playground
getDigitalLibraryItemDetail
Seção intitulada “getDigitalLibraryItemDetail”/user/digital-library/items/:id/detailAssinatura:
getDigitalLibraryItemDetail(id: string, settings?: SdkSettings): Promise<GetDigitalLibraryItemDetailResponse>Parâmetros de rota
Seção intitulada “Parâmetros de rota”| Nome | Tipo |
|---|---|
id |
string |
type GetDigitalLibraryItemDetailParams = { "id": string; };type GetDigitalLibraryItemDetailResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getDigitalLibraryItemDetail("string");Testar esta função no playground
getDigitalLibraryItemPlayback
Seção intitulada “getDigitalLibraryItemPlayback”/user/digital-library/items/:id/playbackAssinatura:
getDigitalLibraryItemPlayback(id: string, settings?: SdkSettings): Promise<GetDigitalLibraryItemPlaybackResponse>Parâmetros de rota
Seção intitulada “Parâmetros de rota”| Nome | Tipo |
|---|---|
id |
string |
type GetDigitalLibraryItemPlaybackParams = { "id": string; };type GetDigitalLibraryItemPlaybackResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getDigitalLibraryItemPlayback("string");Testar esta função no playground
getNotificationsInfo
Seção intitulada “getNotificationsInfo”/user/notifications/infoAssinatura:
getNotificationsInfo(settings?: SdkSettings): Promise<GetNotificationsInfoResponse>type GetNotificationsInfoResponse = { "id": { "value": string; "hash": string; }; "email": { "value": string; "hash": string; }; "tel": { "value": string; "hash": string; }; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getNotificationsInfo();Testar esta função no playground
getProfile
Seção intitulada “getProfile”/user/profileAssinatura:
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; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getProfile();Testar esta função no playground
getReferralHistory
Seção intitulada “getReferralHistory”/user/referral/historyAssinatura:
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;Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getReferralHistory();Testar esta função no playground
getReferralProgram
Seção intitulada “getReferralProgram”/user/referral/meAssinatura:
getReferralProgram(settings?: SdkSettings): Promise<GetReferralProgramResponse>type GetReferralProgramResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.getReferralProgram();Testar esta função no playground
listGuestPurchasedRaffle
Seção intitulada “listGuestPurchasedRaffle”/user/guest/bondsAssinatura:
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; }>;Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.listGuestPurchasedRaffle();Testar esta função no playground
listReferralPublicLinks
Seção intitulada “listReferralPublicLinks”/user/referral/me/linksAssinatura:
listReferralPublicLinks(settings?: SdkSettings): Promise<ListReferralPublicLinksResponse>type ListReferralPublicLinksResponse = { "links": Array<{ "campaignId": string; "link": string; }>; };Exemplo
Seção intitulada “Exemplo”const response = await sdk.user.listReferralPublicLinks();Testar esta função no playground
setCommunicationOptions
Seção intitulada “setCommunicationOptions”/user/communication-optionsAssinatura:
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;Exemplo
Seção intitulada “Exemplo”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
updateProfile
Seção intitulada “updateProfile”/user/profileAssinatura:
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; };Exemplo
Seção intitulada “Exemplo”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" } });