@selldone/sdk-storefront
Version:
A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.
19 lines (18 loc) • 830 B
TypeScript
import { XapiLottery } from "../XapiLottery";
import { Lottery } from "@selldone/core-js/models/shop/incentives/lottery/lottery.model";
/**
* Fetches the lottery prizes that the current customer has won.
* Allows customers to browse through their won prizes and opt to redeem one during an order placement.
*
* @param {xapi.lottery.get.IOptions} [options] - Options to customize the retrieval, such as limiting the number of results.
* @returns {Promise<xapi.lottery.get.IResponse>} The prizes won by the customer.
*/
export default function fetchLotteryPrizes(this: XapiLottery, options?: xapi.lottery.get.IOptions): Promise<xapi.lottery.get.IResponse>;
export declare namespace xapi.lottery.get {
interface IResponse {
prizes: Partial<Lottery>[];
}
interface IOptions {
limit?: number;
}
}