@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.
17 lines (16 loc) • 841 B
TypeScript
import type { BasketItem } from "../../models/shop/order/basket/basket_item.model";
import type { Basket } from "../../models/shop/order/basket/basket.model";
import { Product } from "../../models/shop/product/product.model";
import { ProductVariant } from "../../models/shop/product/product_variant.model";
export declare class BasketHelper {
static GetBasketItemWeight(item: BasketItem, total?: boolean): number;
static GetTotalBasketItemsWeight(basket: Basket): number;
static GetBasketItemSize(item: BasketItem, total?: boolean): number[];
static FindItem(basket: Basket, product: Product, currentVariant: ProductVariant): BasketItem | undefined;
/**
* It needs pricing by the seller after checkout.
* @param basket
* @constructor
*/
static IsServiceAndNeedPricing(basket: Basket): boolean;
}