Classes
Members
Methods
cart_add(parent_cart_key, cart_type, nameopt, customer_commentopt, shipping_address_keyopt, shipping_keyopt, discount_keyopt) → {Promise.<Response>}
Add a new cart node
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
parent_cart_key |
string
|
Key of the parent cart | |
cart_type |
CartType
|
Type of the cart node, see `CartType` | |
name |
string
|
<optional> |
Optional. Name of the cart node |
customer_comment |
string
|
<optional> |
Optional. Comment to this node, by customer. |
shipping_address_key |
string
|
<optional> |
Optional. Key of the address |
shipping_key |
string
|
<optional> |
Optional. Key of the shipping |
discount_key |
string
|
<optional> |
Optional. Key of the discount |
Returns:
- Type:
-
Promise.<Response>
cart_list(cart_key) → {Promise.<Response>}
List root nodes or children of a cart
If a cart key is provided, the direct children (nodes and leafs) will
be returned.
Otherwise (without a key), the root nodes will be returned.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
cart_key |
string
|
list direct children (nodes and leafs) of this parent node |
Returns:
- Type:
-
Promise.<Response>
cart_remove(cart_key) → {Promise.<Response>}
Remove a cart node.
Removes itself and all children
- Source:
Parameters:
Name | Type | Description |
---|---|---|
cart_key |
string
|
Key of the cart node to be removed |
Returns:
- Type:
-
Promise.<Response>
cart_update(cart_key, cart_type, nameopt, customer_commentopt, shipping_address_keyopt, shipping_keyopt, discount_keyopt) → {Promise.<Response>}
Update an existing cart node
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cart_key |
string
|
Key of the cart node to be updated | |
cart_type |
CartType
|
Type of the cart node, see `CartType` | |
name |
string
|
<optional> |
Optional. Name of the cart node |
customer_comment |
string
|
<optional> |
Optional. Comment to this node, by customer. |
shipping_address_key |
string
|
<optional> |
Optional. Key of the address |
shipping_key |
string
|
<optional> |
Optional. Key of the shipping |
discount_key |
string
|
<optional> |
Optional. Key of the discount |
Returns:
- Type:
-
Promise.<Response>
discount_add(code, discount_key) → {Response.<Response>}
Add a Discount to the current Cart.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
code |
string
|
Human readable Discount Code |
discount_key |
string
|
Database Key from a Discount. |
Returns:
- Type:
-
Response.<Response>
discount_remove(discount_key) → {Promise.<Response>}
Removes a Discount by the Database Key
- Source:
Parameters:
Name | Type | Description |
---|---|---|
discount_key |
string
|
Database Key from a Discount. |
Returns:
- Type:
-
Promise.<Response>
shipping_list(cart_key) → {Promise.<Response>}
Lists available shipping options for a (sub)cart
- Source:
Parameters:
Name | Type | Description |
---|---|---|
cart_key |
string
|
Key of the parent cart |
Returns:
- Type:
-
Promise.<Response>
List of ShippingsSkels