@felloh-org/lambda-wrapper 1.6.9 → 1.6.10

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,23 +11,27 @@ class TransactionWebhook {
11
11
  }
12
12
 
13
13
  get() {
14
- var _this$transaction, _this$transaction2, _this$transaction3, _this$transaction3$pa, _this$transaction4, _this$transaction4$or, _this$transaction5, _this$transaction6, _this$transaction6$st, _this$transaction7, _this$transaction8;
14
+ var _this$transaction, _this$transaction2, _this$transaction3, _this$transaction3$bo, _this$transaction4, _this$transaction4$bo, _this$transaction5, _this$transaction5$pa, _this$transaction6, _this$transaction6$or, _this$transaction7, _this$transaction8, _this$transaction8$st, _this$transaction9, _this$transaction10;
15
15
 
16
16
  return {
17
17
  transaction: {
18
18
  id: (_this$transaction = this.transaction) === null || _this$transaction === void 0 ? void 0 : _this$transaction.id
19
19
  },
20
20
  amount: (_this$transaction2 = this.transaction) === null || _this$transaction2 === void 0 ? void 0 : _this$transaction2.amount,
21
+ booking: {
22
+ id: (_this$transaction3 = this.transaction) === null || _this$transaction3 === void 0 ? void 0 : (_this$transaction3$bo = _this$transaction3.booking) === null || _this$transaction3$bo === void 0 ? void 0 : _this$transaction3$bo.id,
23
+ booking_reference: (_this$transaction4 = this.transaction) === null || _this$transaction4 === void 0 ? void 0 : (_this$transaction4$bo = _this$transaction4.booking) === null || _this$transaction4$bo === void 0 ? void 0 : _this$transaction4$bo.booking_reference
24
+ },
21
25
  payment_link: {
22
- id: (_this$transaction3 = this.transaction) === null || _this$transaction3 === void 0 ? void 0 : (_this$transaction3$pa = _this$transaction3.payment_link) === null || _this$transaction3$pa === void 0 ? void 0 : _this$transaction3$pa.id
26
+ id: (_this$transaction5 = this.transaction) === null || _this$transaction5 === void 0 ? void 0 : (_this$transaction5$pa = _this$transaction5.payment_link) === null || _this$transaction5$pa === void 0 ? void 0 : _this$transaction5$pa.id
23
27
  },
24
28
  provider: {
25
- name: (_this$transaction4 = this.transaction) === null || _this$transaction4 === void 0 ? void 0 : (_this$transaction4$or = _this$transaction4.organisation_payment_provider) === null || _this$transaction4$or === void 0 ? void 0 : _this$transaction4$or.name,
26
- reference: (_this$transaction5 = this.transaction) === null || _this$transaction5 === void 0 ? void 0 : _this$transaction5.provider_reference
29
+ name: (_this$transaction6 = this.transaction) === null || _this$transaction6 === void 0 ? void 0 : (_this$transaction6$or = _this$transaction6.organisation_payment_provider) === null || _this$transaction6$or === void 0 ? void 0 : _this$transaction6$or.name,
30
+ reference: (_this$transaction7 = this.transaction) === null || _this$transaction7 === void 0 ? void 0 : _this$transaction7.provider_reference
27
31
  },
28
- status: (_this$transaction6 = this.transaction) === null || _this$transaction6 === void 0 ? void 0 : (_this$transaction6$st = _this$transaction6.status) === null || _this$transaction6$st === void 0 ? void 0 : _this$transaction6$st.id,
29
- completed_at: (_this$transaction7 = this.transaction) === null || _this$transaction7 === void 0 ? void 0 : _this$transaction7.completed_at,
30
- currency: (_this$transaction8 = this.transaction) === null || _this$transaction8 === void 0 ? void 0 : _this$transaction8.currency
32
+ status: (_this$transaction8 = this.transaction) === null || _this$transaction8 === void 0 ? void 0 : (_this$transaction8$st = _this$transaction8.status) === null || _this$transaction8$st === void 0 ? void 0 : _this$transaction8$st.id,
33
+ completed_at: (_this$transaction9 = this.transaction) === null || _this$transaction9 === void 0 ? void 0 : _this$transaction9.completed_at,
34
+ currency: (_this$transaction10 = this.transaction) === null || _this$transaction10 === void 0 ? void 0 : _this$transaction10.currency
31
35
  };
32
36
  }
33
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.6.9",
3
+ "version": "1.6.10",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {