UNPKG

@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.

31 lines (30 loc) 881 B
import type { Shop } from "../../models/shop/shop.model"; import type { Product } from "../../models/shop/product/product.model"; export declare class RibbonHelper { /** * Product needs shipping address. * * @param shop * @param product * @returns {boolean|*} */ static hasShipping(shop: Shop, product: Product): boolean | undefined; /** * Product needs billing address. * @param shop * @param product * @returns {boolean|*} */ static hasBilling(shop: Shop, product: Product): boolean | undefined; /** * User can purchase more than one item. * * @param shop * @param product * @returns {boolean|*} */ static hasCount(shop: Shop, product: Product): boolean | undefined; static isMembershipSubscribed(product: Product & { subscribed: boolean; }): boolean; }