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.

14 lines (13 loc) 781 B
import { Product } from "../../models/shop/product/product.model"; import { ProductVariant } from "../../models/shop/product/product_variant.model"; import { Vendor } from "../../models/shop/vendor/vendor.model"; import { ExtraPricing } from "../../models/shop/extra-pricing/extra-pricing.model"; import { VendorProduct } from "../../models"; export declare class ExtraPricingHelper { static GetListOfExtraPricings(product: Product & { product_variants?: ProductVariant[]; vendors: Vendor[]; extra_pricings?: ExtraPricing[]; }, currentVariant: ProductVariant | null, selectedVendorProduct: VendorProduct | null): ExtraPricing[] | undefined; static FindMatchInList(extra_pricings: ExtraPricing[] | null, quantity: number): ExtraPricing | null; }