1 | import { ClientApplication } from '../../client';
|
2 | import { ActionSet } from '../helper';
|
3 | import { Action, AddCustomerAddressPayload, AddLineItemPayload, Options, Payload, RemoveLineItemDiscountPayload, RemoveLineItemPayload, RemoveLineItemPropertiesPayload, RemovePropertiesPayload, SetCustomerPayload, SetDiscountPayload, SetLineItemDiscountPayload, SetLineItemPropertiesPayload, SetPropertiesPayload, UpdateCustomerAddressPayload, UpdateLineItemPayload } from './types';
|
4 |
|
5 |
|
6 |
|
7 | export declare class Cart extends ActionSet {
|
8 | constructor(app: ClientApplication<any>, options?: Options);
|
9 | dispatch(action: Action.FETCH | Action.REMOVE_CUSTOMER | Action.REMOVE_DISCOUNT | Action.CLEAR): Cart;
|
10 | dispatch(action: Action.UPDATE, payload: Payload): Cart;
|
11 | dispatch(action: Action.SET_CUSTOMER, payload: SetCustomerPayload): Cart;
|
12 | dispatch(action: Action.ADD_CUSTOMER_ADDRESS, payload: AddCustomerAddressPayload): Cart;
|
13 | dispatch(action: Action.UPDATE_CUSTOMER_ADDRESS, payload: UpdateCustomerAddressPayload): Cart;
|
14 | dispatch(action: Action.SET_DISCOUNT, payload: SetDiscountPayload): Cart;
|
15 | dispatch(action: Action.SET_PROPERTIES, payload: SetPropertiesPayload): Cart;
|
16 | dispatch(action: Action.REMOVE_PROPERTIES, payload: RemovePropertiesPayload): Cart;
|
17 | dispatch(action: Action.ADD_LINE_ITEM, payload: AddLineItemPayload): Cart;
|
18 | dispatch(action: Action.UPDATE_LINE_ITEM, payload: UpdateLineItemPayload): Cart;
|
19 | dispatch(action: Action.REMOVE_LINE_ITEM, payload: RemoveLineItemPayload): Cart;
|
20 | dispatch(action: Action.SET_LINE_ITEM_DISCOUNT, payload: SetLineItemDiscountPayload): Cart;
|
21 | dispatch(action: Action.REMOVE_LINE_ITEM_DISCOUNT, payload: RemoveLineItemDiscountPayload): Cart;
|
22 | dispatch(action: Action.SET_LINE_ITEM_PROPERTIES, payload: SetLineItemPropertiesPayload): Cart;
|
23 | dispatch(action: Action.REMOVE_LINE_ITEM_PROPERTIES, payload: RemoveLineItemPropertiesPayload): Cart;
|
24 | private dispatchCartAction;
|
25 | }
|
26 | export declare function create(app: ClientApplication<any>, options?: Options): Cart;
|