@felloh-org/lambda-wrapper 1.11.28 → 1.11.29

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.
@@ -96,7 +96,7 @@ let Refund = (_dec = (0, _typeorm.Entity)({
96
96
  }
97
97
 
98
98
  getPublicData() {
99
- var _this$status, _this$requesting_user, _this$authorised_user, _this$organisation;
99
+ var _this$status, _this$requesting_user, _this$authorised_user, _this$organisation, _this$transaction;
100
100
 
101
101
  return {
102
102
  id: this.transaction.id,
@@ -108,6 +108,7 @@ let Refund = (_dec = (0, _typeorm.Entity)({
108
108
  authorised_at: this.authorised_at,
109
109
  organisation: this.organisation && typeof ((_this$organisation = this.organisation) === null || _this$organisation === void 0 ? void 0 : _this$organisation.getPublicCompactData) === 'function' ? this.organisation.getPublicCompactData() : null,
110
110
  completed_at: this.completed_at,
111
+ transaction: this.transaction && typeof ((_this$transaction = this.transaction) === null || _this$transaction === void 0 ? void 0 : _this$transaction.getPublicData) === 'function' ? this.transaction.getPublicData() : null,
111
112
  created_at: this.created_at
112
113
  };
113
114
  }
@@ -202,6 +202,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
202
202
  response.settlement = this.settlement;
203
203
  }
204
204
 
205
+ if (this.refund !== null && typeof this.refund.getPublicData === 'function') {
206
+ response.refund = this.refund.getPublicData();
207
+ }
208
+
205
209
  if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicData === 'function') {
206
210
  response.booking = this.booking.getPublicData();
207
211
  }
@@ -253,6 +257,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
253
257
  response.settlement = this.settlement;
254
258
  }
255
259
 
260
+ if (this.refund !== null && typeof this.refund.getPublicData === 'function') {
261
+ response.refund = this.refund.getPublicData();
262
+ }
263
+
256
264
  if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicCompactData === 'function') {
257
265
  response.booking = this.booking.getPublicCompactData();
258
266
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.28",
3
+ "version": "1.11.29",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {