@felloh-org/lambda-wrapper 1.11.28 → 1.11.30
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,10 +96,9 @@ 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
|
-
id: this.transaction.id,
|
|
103
102
|
amount: this.amount,
|
|
104
103
|
status: this.status && typeof ((_this$status = this.status) === null || _this$status === void 0 ? void 0 : _this$status.getPublicData) === 'function' ? this.status.getPublicData() : null,
|
|
105
104
|
requesting_user: this.requesting_user && typeof ((_this$requesting_user = this.requesting_user) === null || _this$requesting_user === void 0 ? void 0 : _this$requesting_user.getPublicData) === 'function' ? this.requesting_user.getPublicCompactData() : null,
|
|
@@ -108,6 +107,7 @@ let Refund = (_dec = (0, _typeorm.Entity)({
|
|
|
108
107
|
authorised_at: this.authorised_at,
|
|
109
108
|
organisation: this.organisation && typeof ((_this$organisation = this.organisation) === null || _this$organisation === void 0 ? void 0 : _this$organisation.getPublicCompactData) === 'function' ? this.organisation.getPublicCompactData() : null,
|
|
110
109
|
completed_at: this.completed_at,
|
|
110
|
+
transaction: this.transaction && typeof ((_this$transaction = this.transaction) === null || _this$transaction === void 0 ? void 0 : _this$transaction.getPublicData) === 'function' ? this.transaction.getPublicData() : null,
|
|
111
111
|
created_at: this.created_at
|
|
112
112
|
};
|
|
113
113
|
}
|
|
@@ -179,6 +179,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
getPublicData() {
|
|
182
|
+
var _this$refund, _this$refund$status, _this$refund2;
|
|
183
|
+
|
|
182
184
|
const response = {
|
|
183
185
|
id: this.id,
|
|
184
186
|
amount: this.amount,
|
|
@@ -202,6 +204,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
202
204
|
response.settlement = this.settlement;
|
|
203
205
|
}
|
|
204
206
|
|
|
207
|
+
if (this.refund !== null && typeof ((_this$refund = this.refund) === null || _this$refund === void 0 ? void 0 : (_this$refund$status = _this$refund.status) === null || _this$refund$status === void 0 ? void 0 : _this$refund$status.id) !== 'undefined' && typeof ((_this$refund2 = this.refund) === null || _this$refund2 === void 0 ? void 0 : _this$refund2.getPublicData) === 'function') {
|
|
208
|
+
response.refund = this.refund.getPublicData();
|
|
209
|
+
}
|
|
210
|
+
|
|
205
211
|
if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicData === 'function') {
|
|
206
212
|
response.booking = this.booking.getPublicData();
|
|
207
213
|
}
|
|
@@ -236,6 +242,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
236
242
|
}
|
|
237
243
|
|
|
238
244
|
getPublicCompactData() {
|
|
245
|
+
var _this$refund3, _this$refund3$status, _this$refund4;
|
|
246
|
+
|
|
239
247
|
const response = {
|
|
240
248
|
id: this.id,
|
|
241
249
|
amount: this.amount,
|
|
@@ -253,6 +261,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
253
261
|
response.settlement = this.settlement;
|
|
254
262
|
}
|
|
255
263
|
|
|
264
|
+
if (this.refund !== null && typeof ((_this$refund3 = this.refund) === null || _this$refund3 === void 0 ? void 0 : (_this$refund3$status = _this$refund3.status) === null || _this$refund3$status === void 0 ? void 0 : _this$refund3$status.id) !== 'undefined' && typeof ((_this$refund4 = this.refund) === null || _this$refund4 === void 0 ? void 0 : _this$refund4.getPublicData) === 'function') {
|
|
265
|
+
response.refund = this.refund.getPublicData();
|
|
266
|
+
}
|
|
267
|
+
|
|
256
268
|
if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicCompactData === 'function') {
|
|
257
269
|
response.booking = this.booking.getPublicCompactData();
|
|
258
270
|
}
|