@itutoring/itutoring_application_js_api 1.5.15 → 1.5.17

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.
@@ -5,6 +5,16 @@ class Inventory
5
5
  static #MODULE = "Inventory";
6
6
 
7
7
  static #GET_AVAILABLE_ITEMS = "GetAvailableItems";
8
+ static #SALE_COUPON_EXISTS = "SaleCouponExists";
9
+
10
+ static async saleCouponExists(code)
11
+ {
12
+ var exists = await APIController.Get(this.#MODULE, this.#SALE_COUPON_EXISTS, {
13
+ 'code': code,
14
+ });
15
+
16
+ return exists;
17
+ }
8
18
 
9
19
  static async getAvailableItems(category = "ANY", max = -1, offset = 0, filter = {})
10
20
  {
@@ -82,7 +82,7 @@ class ReservationSystem
82
82
 
83
83
  static async clearCart()
84
84
  {
85
- await APIController.Get(this.#MODULE, this.#CLEAR_CART);
85
+ await APIController.Post(this.#MODULE, this.#CLEAR_CART);
86
86
  }
87
87
 
88
88
  static async applySaleCoupon(code)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.5.15",
3
+ "version": "1.5.17",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",