@liquidcommerceteam/elements-sdk
Version:
LiquidCommerce Elements SDK
16 lines (15 loc) • 727 B
TypeScript
import type { ICartItemStore, ICartTotalsStore, IRetailerFulfillmentStore, IRetailerStore } from '@/core/store';
import type { ICart, ICartItem, ICartRetailer, IRetailerFulfillments } from '@/interfaces/cloud';
/**
* Map API cart item to store structure
*/
export declare function buildCartItemStore(apiItem: ICartItem): ICartItemStore;
/**
* Build cart totals from API response
*/
export declare function buildCartTotals(cart: ICart): ICartTotalsStore;
export declare function buildRetailerStore(retailer: ICartRetailer): IRetailerStore;
/**
* Build fulfillment store from API data
*/
export declare function buildFulfillmentStore(fulfillment: IRetailerFulfillments, retailer: ICartRetailer): IRetailerFulfillmentStore;