Ofertas
offersnamespaceOfertas públicas e ofertas personalizadas.
5métodos
offersnamespaceEsta página é gerada automaticamente pelo
@luckymaker/sdk-generator. Não edite manualmente.
claimOffer
Seção intitulada “claimOffer”POST
/user/offers/:id/claimAssinatura:
claimOffer(id: string, body?: ClaimOfferBody, settings?: SdkSettings): Promise<ClaimOfferResponse>Parâmetros de rota
Seção intitulada “Parâmetros de rota”| Nome | Tipo |
|---|---|
id |
string |
| Nome | Tipo | Obrigatório |
|---|---|---|
code |
string |
não |
type ClaimOfferParams = { "id": string; };type ClaimOfferBody = { "code"?: string; };type ClaimOfferResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.offers.claimOffer("string", { "code": "string" });Testar esta função no playground
getOffers
Seção intitulada “getOffers”GET
/offersAssinatura:
getOffers(query?: GetOffersQuery, settings?: SdkSettings): Promise<GetOffersResponse>| Nome | Tipo | Obrigatório |
|---|---|---|
id |
string | number |
não |
code |
string |
não |
type GetOffersQuery = { "id"?: string | number; "code"?: string; };type GetOffersResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.offers.getOffers();Testar esta função no playground
listCoupons
Seção intitulada “listCoupons”GET
/user/offers/couponsAssinatura:
listCoupons(settings?: SdkSettings): Promise<ListCouponsResponse>type ListCouponsResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.offers.listCoupons();Testar esta função no playground
listOffers
Seção intitulada “listOffers”GET
/user/offersAssinatura:
listOffers(settings?: SdkSettings): Promise<ListOffersResponse>type ListOffersResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.offers.listOffers();Testar esta função no playground
listPublic
Seção intitulada “listPublic”GET
/offers/publicAssinatura:
listPublic(settings?: SdkSettings): Promise<ListPublicResponse>type ListPublicResponse = unknown;Exemplo
Seção intitulada “Exemplo”const response = await sdk.offers.listPublic();