@itutoring/itutoring_application_js_api 1.12.8 → 1.13.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.
|
@@ -21,6 +21,9 @@ class InquiryCheckout
|
|
|
21
21
|
static #GET_CHECKOUT_SUBJECTS_COUNT = "GetCheckoutSubjectsCount";
|
|
22
22
|
static #FINISH_MULTIPLE_INQUIRIES = "FinishMultipleInquiries";
|
|
23
23
|
static #IS_INQUIRY_FINISHED = "IsInquiryFinished";
|
|
24
|
+
static #SELECT_OFFER = "SelectOffer";
|
|
25
|
+
static #GET_SELECTED_OFFER = "GetSelectedOffer";
|
|
26
|
+
static #AGREE_OFFER = "AgreeOffer";
|
|
24
27
|
|
|
25
28
|
static async isInquiryFinished(inquiryId)
|
|
26
29
|
{
|
|
@@ -97,6 +100,30 @@ class InquiryCheckout
|
|
|
97
100
|
});
|
|
98
101
|
return res;
|
|
99
102
|
}
|
|
103
|
+
|
|
104
|
+
static async selectOffer(offerId, lessonLength)
|
|
105
|
+
{
|
|
106
|
+
var res = await APIController.Post(this.#MODULE, this.#SELECT_OFFER, {
|
|
107
|
+
'offerId': offerId,
|
|
108
|
+
'lessonLength': lessonLength
|
|
109
|
+
});
|
|
110
|
+
return res;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
static async getSelectedOffer()
|
|
114
|
+
{
|
|
115
|
+
var res = await APIController.Get(this.#MODULE, this.#GET_SELECTED_OFFER);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
static async agreeOffer(billingInfo, infoForLector, lecturePackageId = null)
|
|
119
|
+
{
|
|
120
|
+
var res = await APIController.Post(this.#MODULE, this.#AGREE_OFFER, {
|
|
121
|
+
'billingInfo': billingInfo,
|
|
122
|
+
'infoForLector': infoForLector,
|
|
123
|
+
'lecturePackageId': lecturePackageId
|
|
124
|
+
});
|
|
125
|
+
return res;
|
|
126
|
+
}
|
|
100
127
|
}
|
|
101
128
|
|
|
102
129
|
export default InquiryCheckout;
|
|
@@ -19,6 +19,7 @@ class MarketplaceController
|
|
|
19
19
|
static #SEARCH = "Search";
|
|
20
20
|
static #GET_PRODUCT_PAGE = "GetProductPage";
|
|
21
21
|
static #GET_ORDER_DETAIL = "GetOrderDetail";
|
|
22
|
+
static #GET_INQUIRY_ACCEPT_PAGE = "GetInquiryAcceptPage";
|
|
22
23
|
|
|
23
24
|
static async getOrderPage(orderId)
|
|
24
25
|
{
|
|
@@ -91,6 +92,15 @@ class MarketplaceController
|
|
|
91
92
|
});
|
|
92
93
|
return JSON.parse(res);
|
|
93
94
|
}
|
|
95
|
+
|
|
96
|
+
static async getInquiryAcceptPage(inquiryId, selectedOnly = false)
|
|
97
|
+
{
|
|
98
|
+
var res = await APIController.Get(this.#MODULE, this.#GET_INQUIRY_ACCEPT_PAGE, {
|
|
99
|
+
'inquiryId': inquiryId,
|
|
100
|
+
'selectedOnly': selectedOnly
|
|
101
|
+
});
|
|
102
|
+
return JSON.parse(res);
|
|
103
|
+
}
|
|
94
104
|
}
|
|
95
105
|
|
|
96
106
|
export default MarketplaceController;
|