Functions
addLineItems
- addLineItems(cartId: string, cartVersion: number, lineItems: IAddLineItem | IAddLineItem[], token: string): Promise<Cart>
-
Parameters
-
cartId: string
-
cartVersion: number
-
lineItems: IAddLineItem | IAddLineItem[]
-
token: string
Returns Promise<Cart>
changeLineItemQuantity
- changeLineItemQuantity(cartId: string, cartVersion: number, action: IChangeLineItemQuantity, token: string): Promise<Cart>
-
Parameters
-
cartId: string
-
cartVersion: number
-
action: IChangeLineItemQuantity
-
token: string
Returns Promise<Cart>
create
- create(token: string): Promise<Cart>
-
Parameters
Returns Promise<Cart>
createFromOrder
- createFromOrder(orderId: string, token: string): Promise<Cart>
-
Parameters
-
orderId: string
-
token: string
Returns Promise<Cart>
findActiveCart
- findActiveCart(token: string): Promise<Cart>
-
Parameters
Returns Promise<Cart>
findById
- findById(cartId: string, token: string): Promise<Cart>
-
Parameters
-
cartId: string
-
token: string
Returns Promise<Cart>
removeLineItem
- removeLineItem(cartId: string, cartVersion: number, lineItemId: string, token: string): Promise<Cart>
-
Parameters
-
cartId: string
-
cartVersion: number
-
lineItemId: string
-
token: string
Returns Promise<Cart>
setBillingAddress
- setBillingAddress(cartId: string, cartVersion: number, address: Address, token: string): Promise<Cart>
-
Parameters
-
cartId: string
-
cartVersion: number
-
address: Address
-
token: string
Returns Promise<Cart>
setShippingAddress
- setShippingAddress(cartId: string, cartVersion: number, address: Address, token: string): Promise<Cart>
-
Parameters
-
cartId: string
-
cartVersion: number
-
address: Address
-
token: string
Returns Promise<Cart>
setShippingMethod
- setShippingMethod(cartId: string, cartVersion: number, shippingMethodId: string, token: string): Promise<Cart>
-
Parameters
-
cartId: string
-
cartVersion: number
-
shippingMethodId: string
-
token: string
Returns Promise<Cart>
updateByActions
- updateByActions(cartId: string, cartVersion: number, actions: ICartAction | ICartAction[], token: string): Promise<Cart>
-
Parameters
-
cartId: string
-
cartVersion: number
-
actions: ICartAction | ICartAction[]
-
token: string
Returns Promise<Cart>