@itutoring/itutoring_application_js_api 1.5.16 → 1.5.18
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.
|
@@ -34,6 +34,13 @@ class ReservationSystem
|
|
|
34
34
|
static #GET_APPLIED_SALE_COUPONS = "GetAppliedSaleCoupons";
|
|
35
35
|
static #REMOVE_SALE_COUPON = "RemoveSaleCoupon";
|
|
36
36
|
static #GET_SALE_AMOUNTS = "GetSaleAmounts";
|
|
37
|
+
static #GET_CART_ITEMS_COUNT = "GetCartItemsCount";
|
|
38
|
+
|
|
39
|
+
static async getCartItemsCount()
|
|
40
|
+
{
|
|
41
|
+
var count = await APIController.Get(this.#MODULE, this.#GET_CART_ITEMS_COUNT);
|
|
42
|
+
return count;
|
|
43
|
+
}
|
|
37
44
|
|
|
38
45
|
|
|
39
46
|
static async addItemToCart(itemSku)
|
|
@@ -82,12 +89,12 @@ class ReservationSystem
|
|
|
82
89
|
|
|
83
90
|
static async clearCart()
|
|
84
91
|
{
|
|
85
|
-
await APIController.
|
|
92
|
+
await APIController.Post(this.#MODULE, this.#CLEAR_CART);
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
static async applySaleCoupon(code)
|
|
89
96
|
{
|
|
90
|
-
await APIController.Post(this.#MODULE, this.#APPLY_SALE_COUPON, { 'code': code });
|
|
97
|
+
await APIController.Post(this.#MODULE, this.#APPLY_SALE_COUPON, { 'code': code });
|
|
91
98
|
}
|
|
92
99
|
|
|
93
100
|
static async getAppliedSaleCoupons()
|