@itutoring/itutoring_application_js_api 1.14.2 → 1.15.0

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/Cart.js CHANGED
@@ -14,6 +14,14 @@ class Cart
14
14
  static #GET_SALE_AMMOUNTS = "GetSaleAmounts";
15
15
  static #GET_ITEMS_COUNT = "GetItemsCount";
16
16
  static #REMOVE_ITEM = "RemoveItem";
17
+ static #GET_ORDER_REQUIREMENTS = "GetOrderRequirements";
18
+
19
+ static async getOrderRequirements()
20
+ {
21
+ var res = await APIController.Get(this.#MODULE, this.#GET_ORDER_REQUIREMENTS);
22
+ return res;
23
+ }
24
+
17
25
 
18
26
  static async addItem(itemInstanceId)
19
27
  {
@@ -17,6 +17,13 @@ class Checkout
17
17
  static #INITIATE_PURCHASE = "InitiatePurchase";
18
18
  static #GET_TRANSACTION_STATUS = "GetTransactionStatus";
19
19
  static #UPDATE_PAYMENT_STATUS_EXTERNAL = "UpdatePaymentStatusExternal";
20
+ static #GET_BILLING_INFO = "GetBillingInfo";
21
+
22
+ static async getBillingInfo()
23
+ {
24
+ var res = await APIController.Get(this.#MODULE, this.#GET_BILLING_INFO);
25
+ return res;
26
+ }
20
27
 
21
28
  static async getAvailableStates()
22
29
  {
@@ -22,10 +22,11 @@ class MarketplaceController
22
22
  static #GET_INQUIRY_ACCEPT_PAGE = "GetInquiryAcceptPage";
23
23
  static #GET_LECTURE_PACKAGE_SELECT_PAGE = "GetLecturePackageSelectPage";
24
24
 
25
- static async getLecturePackageSelectPage(customerId, len = null, type = null, count = null)
25
+ static async getLecturePackageSelectPage(customerId, loginToken = '', len = null, type = null, count = null)
26
26
  {
27
27
  var res = await APIController.Get(this.#MODULE, this.#GET_LECTURE_PACKAGE_SELECT_PAGE, {
28
28
  'customerId': customerId,
29
+ 'loginToken': loginToken,
29
30
  'len': len,
30
31
  'type': type,
31
32
  'count': count
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.14.2",
3
+ "version": "1.15.0",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",