@itutoring/itutoring_application_js_api 1.14.3 → 1.15.1
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 +8 -0
- package/modules/Checkout.js +16 -0
- package/package.json +1 -1
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
|
{
|
package/modules/Checkout.js
CHANGED
|
@@ -17,6 +17,22 @@ 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
|
+
static #CONVERT_ORDER_VARIABLE_SYMBOL_TO_ID = "ConvertOrderVariableSymbolToId";
|
|
22
|
+
|
|
23
|
+
static async convertOrderVariableSymbolToId(variableSymbol)
|
|
24
|
+
{
|
|
25
|
+
var res = await APIController.Get(this.#MODULE, this.#CONVERT_ORDER_VARIABLE_SYMBOL_TO_ID, {
|
|
26
|
+
"variableSymbol": variableSymbol
|
|
27
|
+
});
|
|
28
|
+
return res;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static async getBillingInfo()
|
|
32
|
+
{
|
|
33
|
+
var res = await APIController.Get(this.#MODULE, this.#GET_BILLING_INFO);
|
|
34
|
+
return res;
|
|
35
|
+
}
|
|
20
36
|
|
|
21
37
|
static async getAvailableStates()
|
|
22
38
|
{
|