Classes
Members
Methods
basket_list() → {Promise.<Response>}
List the children of the basket (the cart stored in the session)
- Source:
Returns:
- Type:
-
Promise.<Response>
basket_view() → {Promise.<Response>}
View the basket (the cart stored in the session) itself
- Source:
Returns:
- Type:
-
Promise.<Response>
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>
order_checkout_order(key) → {Promise.<Response>}
The final order now step
- Source:
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
The key of the order |
Returns:
- Type:
-
Promise.<Response>
order_checkout_start(key) → {Promise.<Response>}
Start the checkout process
- Source:
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
The key of the order |
Returns:
- Type:
-
Promise.<Response>
order_list(param) → {Promise.<Response>}
List the orders of the current user
- Source:
Parameters:
Name | Type | Description |
---|---|---|
param |
object
|
Any key-value pairs for filtering or ordering |
Returns:
- Type:
-
Promise.<Response>
order_view(order_key) → {Promise.<Response>}
View an order
- Source:
Parameters:
Name | Type | Description |
---|---|---|
order_key |
String
|
Key of the order to view. Use "SESSION" as key to view the order of the current session |
Returns:
- Type:
-
Promise.<Response>
payment_providers_list(onlyAvailableopt) → {Promise.<Response>}
Get a list of payment providers.
This API method returns a JSON response containing a object of
payment providers. The keys in the response represent provider
identifiers, and the values are objects describing the details of
each provider.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
onlyAvailable |
boolean
|
<optional> |
true | If true, only payment providers that are currently available will be included in the response. If false, all providers will be listed regardless of availability. |
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