@itutoring/itutoring_application_js_api 1.14.1 → 1.14.3
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/Inventory.js
CHANGED
|
@@ -16,6 +16,16 @@ class Inventory
|
|
|
16
16
|
static #GET_AVAILABLE_ITEMS = "GetAvailableItems";
|
|
17
17
|
static #SALE_COUPON_EXISTS = "SaleCouponExists";
|
|
18
18
|
static #SEARCH = "Search";
|
|
19
|
+
static #GET_ITEM = "GetItem";
|
|
20
|
+
|
|
21
|
+
static async getItem(id)
|
|
22
|
+
{
|
|
23
|
+
var item = await APIController.Get(this.#MODULE, this.#GET_ITEM, {
|
|
24
|
+
'id': id,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
return item;
|
|
28
|
+
}
|
|
19
29
|
|
|
20
30
|
static async saleCouponExists(code)
|
|
21
31
|
{
|
|
@@ -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
|