@itutoring/itutoring_application_js_api 1.5.20 → 1.5.22

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.
@@ -36,6 +36,13 @@ class ReservationSystem
36
36
  static #GET_SALE_AMOUNTS = "GetSaleAmounts";
37
37
  static #GET_CART_ITEMS_COUNT = "GetCartItemsCount";
38
38
  static #REMOVE_ITEM_FROM_CART = "RemoveItemFromCart";
39
+ static #GET_AVAILABLE_STATES = "GetAvailableStates";
40
+
41
+ static async getAvailableStates()
42
+ {
43
+ var states = await APIController.Get(this.#MODULE, this.#GET_AVAILABLE_STATES);
44
+ return states;
45
+ }
39
46
 
40
47
  static async removeItemFromCart(itemSku)
41
48
  {
@@ -88,9 +95,9 @@ class ReservationSystem
88
95
  return orderId;
89
96
  }
90
97
 
91
- static async sendOrderConfirmationEmail(orderId)
98
+ static async sendOrderConfirmationEmail()
92
99
  {
93
- await APIController.Get(this.#MODULE, this.#SEND_ORDER_CONFIRMATION_EMAIL, { 'orderId': orderId });
100
+ await APIController.Get(this.#MODULE, this.#SEND_ORDER_CONFIRMATION_EMAIL);
94
101
  }
95
102
 
96
103
  static async clearCart()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.5.20",
3
+ "version": "1.5.22",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",