@itutoring/itutoring_application_js_api 1.1.6 → 1.1.8

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.
@@ -11,6 +11,7 @@ class WebinarSystem
11
11
  // All method names
12
12
  static #REGISTER = "Register"
13
13
  static #GET_ALL_WEBINARS = "GetAllWebinars";
14
+ static #CONFIRM_WEBINAR_PAID = "ConfirmWebinarPaid";
14
15
 
15
16
  static async Register(email, webinarId)
16
17
  {
@@ -22,6 +23,16 @@ class WebinarSystem
22
23
  return APIController.IntToBool(res);
23
24
  }
24
25
 
26
+ static async ConfirmWebinarPaid(bookId, transactionId)
27
+ {
28
+ var res = await APIController.Get(this.#MODULE, this.#CONFIRM_WEBINAR_PAID, {
29
+ 'bookId': bookId,
30
+ 'transactionId': transactionId,
31
+ });
32
+
33
+ return APIController.IntToBool(res);
34
+ }
35
+
25
36
  static async GetAllWebinars()
26
37
  {
27
38
  var data = await APIController.Get(this.#MODULE, this.#GET_ALL_WEBINARS);
@@ -42,6 +53,8 @@ class WebinarSystem
42
53
  webinar.TeacherId = value['TeacherId'];
43
54
  webinar.TeacherRole = value['TeacherRole'];
44
55
  webinar.Price = value['Price'];
56
+ webinar.TeacherName = value['TeacherName'];
57
+ webinar.TeacherPhotoURL = value['TeacherPhotoURL'];
45
58
 
46
59
  webinars[webinar.ID] = webinar;
47
60
  }
@@ -10,6 +10,8 @@ class Webinar
10
10
  TeacherRole;
11
11
  Price;
12
12
  ID;
13
+ TeacherPhotoURL;
14
+ TeacherName;
13
15
  }
14
16
 
15
17
  export default Webinar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",