@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.
14 lines (13 loc) • 611 B
TypeScript
import { Currency } from "@selldone/core-js/enums/payment/Currency";
import { Coupon } from "@selldone/core-js/models/shop/incentives/coupon/coupon.model";
import { XapiCoupon } from "../XapiCoupon";
/**
* Fetches eligible coupons for the buyer.
* Retrieves previously entered coupon codes from local storage.
*/
export default function fetchAvailableCoupons(this: XapiCoupon, currency: keyof typeof Currency): import("@selldone/core-js").IExtendedPromiseWithCache<xapi.coupons.get.IResponse>;
export declare namespace xapi.coupons.get {
interface IResponse {
coupons: Partial<Coupon>[];
}
}