@itutoring/itutoring_application_js_api 1.13.1 → 1.13.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.
@@ -24,6 +24,15 @@ class InquiryCheckout
24
24
  static #SELECT_OFFER = "SelectOffer";
25
25
  static #GET_SELECTED_OFFER = "GetSelectedOffer";
26
26
  static #AGREE_OFFER = "AgreeOffer";
27
+ static #GET_INQUIRY_TYPE = "GetInquiryType";
28
+
29
+ static async getInquiryType(inquiryId)
30
+ {
31
+ var res = await APIController.Get(this.#MODULE, this.#GET_INQUIRY_TYPE, {
32
+ 'inquiryId': inquiryId
33
+ });
34
+ return res;
35
+ }
27
36
 
28
37
  static async isInquiryFinished(inquiryId)
29
38
  {
@@ -101,23 +110,28 @@ class InquiryCheckout
101
110
  return res;
102
111
  }
103
112
 
104
- static async selectOffer(offerId, lessonLength)
113
+ static async selectOffer(inquiryId, offerId, lessonLength)
105
114
  {
106
115
  var res = await APIController.Post(this.#MODULE, this.#SELECT_OFFER, {
116
+ 'inquiryId': inquiryId,
107
117
  'offerId': offerId,
108
118
  'lessonLength': lessonLength
109
119
  });
110
120
  return res;
111
121
  }
112
122
 
113
- static async getSelectedOffer()
123
+ static async getSelectedOffer(inquiryId)
114
124
  {
115
- var res = await APIController.Get(this.#MODULE, this.#GET_SELECTED_OFFER);
125
+ var res = await APIController.Get(this.#MODULE, this.#GET_SELECTED_OFFER, {
126
+ 'inquiryId': inquiryId
127
+ });
128
+ return res;
116
129
  }
117
130
 
118
- static async agreeOffer(billingInfo, infoForLector, lecturePackageId = null)
131
+ static async agreeOffer(inquiryId, billingInfo, infoForLector, lecturePackageId = null)
119
132
  {
120
133
  var res = await APIController.Post(this.#MODULE, this.#AGREE_OFFER, {
134
+ 'inquiryId': inquiryId,
121
135
  'billingInfo': JSON.stringify(billingInfo),
122
136
  'infoForLector': infoForLector,
123
137
  'lecturePackageId': lecturePackageId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.13.1",
3
+ "version": "1.13.3",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",