@itutoring/itutoring_application_js_api 1.13.1 → 1.13.2
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.
|
@@ -101,23 +101,28 @@ class InquiryCheckout
|
|
|
101
101
|
return res;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
static async selectOffer(offerId, lessonLength)
|
|
104
|
+
static async selectOffer(inquiryId, offerId, lessonLength)
|
|
105
105
|
{
|
|
106
106
|
var res = await APIController.Post(this.#MODULE, this.#SELECT_OFFER, {
|
|
107
|
+
'inquiryId': inquiryId,
|
|
107
108
|
'offerId': offerId,
|
|
108
109
|
'lessonLength': lessonLength
|
|
109
110
|
});
|
|
110
111
|
return res;
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
static async getSelectedOffer()
|
|
114
|
+
static async getSelectedOffer(inquiryId)
|
|
114
115
|
{
|
|
115
|
-
var res = await APIController.Get(this.#MODULE, this.#GET_SELECTED_OFFER
|
|
116
|
+
var res = await APIController.Get(this.#MODULE, this.#GET_SELECTED_OFFER, {
|
|
117
|
+
'inquiryId': inquiryId
|
|
118
|
+
});
|
|
119
|
+
return res;
|
|
116
120
|
}
|
|
117
121
|
|
|
118
|
-
static async agreeOffer(billingInfo, infoForLector, lecturePackageId = null)
|
|
122
|
+
static async agreeOffer(inquiryId, billingInfo, infoForLector, lecturePackageId = null)
|
|
119
123
|
{
|
|
120
124
|
var res = await APIController.Post(this.#MODULE, this.#AGREE_OFFER, {
|
|
125
|
+
'inquiryId': inquiryId,
|
|
121
126
|
'billingInfo': JSON.stringify(billingInfo),
|
|
122
127
|
'infoForLector': infoForLector,
|
|
123
128
|
'lecturePackageId': lecturePackageId
|