Methods
add(name, discount, availableFrom, availableUntil, menuItems, recurringType, dayOfWeek) → {Promise.<any>}
Create a new combo item
Parameters:
Name | Type | Default | Description |
---|---|---|---|
name |
string
|
Name of Combo Item |
|
discount |
int
|
Discount Applied to Original Value of Items |
|
availableFrom |
string
|
Starting Date of Availability |
|
availableUntil |
string
|
Ending Date of Availability |
|
menuItems |
Object
|
||
recurringType |
int
|
null |
Weekly, Monthly etc |
dayOfWeek |
string
|
null |
The days of the week in which the combo is active (Monday or Tuesday etc) |
Returns:
- Type:
-
Promise.<any>
- Returns the id of the combo item object added
delete(id) → {Promise.<any>}
Delete a combo item
Parameters:
Name | Type | Description |
---|---|---|
id |
int
|
The unique identifier of the combo item object |
Returns:
- Type:
-
Promise.<any>