@itutoring/itutoring_application_js_api 1.5.17 → 1.5.19

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,19 @@ 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
+ static #REMOVE_ITEM_FROM_CART = "RemoveItemFromCart";
39
+
40
+ static async removeItemFromCart(itemSku)
41
+ {
42
+ await APIController.Post(this.#MODULE, this.#REMOVE_ITEM_FROM_CART, { 'sku': itemSku });
43
+ }
44
+
45
+ static async getCartItemsCount()
46
+ {
47
+ var count = await APIController.Get(this.#MODULE, this.#GET_CART_ITEMS_COUNT);
48
+ return count;
49
+ }
37
50
 
38
51
 
39
52
  static async addItemToCart(itemSku)
@@ -87,7 +100,7 @@ class ReservationSystem
87
100
 
88
101
  static async applySaleCoupon(code)
89
102
  {
90
- await APIController.Post(this.#MODULE, this.#APPLY_SALE_COUPON, { 'code': code });
103
+ await APIController.Post(this.#MODULE, this.#APPLY_SALE_COUPON, { 'code': code });
91
104
  }
92
105
 
93
106
  static async getAppliedSaleCoupons()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.5.17",
3
+ "version": "1.5.19",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",