Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/packages / features / ShippingMethods / state / ShippingMethodContainer.d.ts
Size: Mime:
import { ShippingMethodInputType, ShippingMethodItemLiteType, IndexedItemLevelShippingSelectedShippingMethodsItemType } from './typings';
/**
 * @todo need to use queries...
 */
export declare class ShippingMethodContainer {
    /**
     * this is for the cart
     */
    shippingMethodsList: ShippingMethodItemLiteType[];
    /**
     * this is for item level shipping
     */
    shippingMethodsListIndexedByItem: Map<number, {
        cartItemId: number;
        shippingMethodsList: ShippingMethodItemLiteType[];
    }>;
    readonly itemLevelShippingMethodsList: {
        cartItemId: number;
        shippingMethodsList: ShippingMethodItemLiteType[];
    }[];
    readonly selectedShippingMethodItemForCart: ShippingMethodItemLiteType | undefined;
    /**
     * may not be needed YAGNI
     */
    readonly selectedItemLevelShippingMethodList: IndexedItemLevelShippingSelectedShippingMethodsItemType[];
    findShippingMethodObjForCartItemId(cartItemId: number): {
        cartItemId: number;
        shippingMethodsList: ShippingMethodItemLiteType[];
    } | undefined;
    fetchShippingMethods(variables?: ShippingMethodInputType): Promise<void>;
    /**
     * @alias updateShippingMethods
     */
    selectShippingMethod(variables: ShippingMethodInputType): Promise<void>;
    clear(): void;
}