Pular para o conteúdo

Ofertas

offersnamespace

Ofertas públicas e ofertas personalizadas.

5métodos
offersnamespace

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

POST/user/offers/:id/claim

Assinatura:

claimOffer(id: string, body?: ClaimOfferBody, settings?: SdkSettings): Promise<ClaimOfferResponse>
Nome Tipo
id string
Nome Tipo Obrigatório
code string não
type ClaimOfferParams = { "id": string; };
type ClaimOfferBody = { "code"?: string; };
type ClaimOfferResponse = unknown;
const response = await sdk.offers.claimOffer("string", { "code": "string" });

Testar esta função no playground

GET/offers

Assinatura:

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

Testar esta função no playground

GET/user/offers/coupons

Assinatura:

listCoupons(settings?: SdkSettings): Promise<ListCouponsResponse>
type ListCouponsResponse = unknown;
const response = await sdk.offers.listCoupons();

Testar esta função no playground

GET/user/offers

Assinatura:

listOffers(settings?: SdkSettings): Promise<ListOffersResponse>
type ListOffersResponse = unknown;
const response = await sdk.offers.listOffers();

Testar esta função no playground

GET/offers/public

Assinatura:

listPublic(settings?: SdkSettings): Promise<ListPublicResponse>
type ListPublicResponse = unknown;
const response = await sdk.offers.listPublic();

Testar esta função no playground