@itutoring/itutoring_application_js_api 1.5.21 → 1.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/ReservationSystem.js +10 -2
- package/package.json +1 -1
|
@@ -37,6 +37,14 @@ class ReservationSystem
|
|
|
37
37
|
static #GET_CART_ITEMS_COUNT = "GetCartItemsCount";
|
|
38
38
|
static #REMOVE_ITEM_FROM_CART = "RemoveItemFromCart";
|
|
39
39
|
static #GET_AVAILABLE_STATES = "GetAvailableStates";
|
|
40
|
+
static #ORDER_IS_PLACED = "OrderIsPlaced";
|
|
41
|
+
|
|
42
|
+
static async orderIsPlaced()
|
|
43
|
+
{
|
|
44
|
+
var res = await APIController.Get(this.#MODULE, this.#ORDER_IS_PLACED);
|
|
45
|
+
|
|
46
|
+
return res;
|
|
47
|
+
}
|
|
40
48
|
|
|
41
49
|
static async getAvailableStates()
|
|
42
50
|
{
|
|
@@ -95,9 +103,9 @@ class ReservationSystem
|
|
|
95
103
|
return orderId;
|
|
96
104
|
}
|
|
97
105
|
|
|
98
|
-
static async sendOrderConfirmationEmail(
|
|
106
|
+
static async sendOrderConfirmationEmail()
|
|
99
107
|
{
|
|
100
|
-
await APIController.Get(this.#MODULE, this.#SEND_ORDER_CONFIRMATION_EMAIL
|
|
108
|
+
await APIController.Get(this.#MODULE, this.#SEND_ORDER_CONFIRMATION_EMAIL);
|
|
101
109
|
}
|
|
102
110
|
|
|
103
111
|
static async clearCart()
|