@felloh-org/lambda-wrapper 1.10.14 → 1.10.15
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.
|
@@ -33,7 +33,9 @@ var _ecommerce = _interopRequireDefault(require("../ecommerce"));
|
|
|
33
33
|
|
|
34
34
|
var _currency = require("../../bank/currency");
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _settledTransaction = _interopRequireDefault(require("../../bank/settled-transaction"));
|
|
37
|
+
|
|
38
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23;
|
|
37
39
|
|
|
38
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
41
|
|
|
@@ -112,7 +114,7 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
112
114
|
}), _dec32 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec33 = (0, _typeorm.Column)({
|
|
113
115
|
type: "timestamp with time zone",
|
|
114
116
|
nullable: true
|
|
115
|
-
}), _dec(_class = (_class2 = class Transaction {
|
|
117
|
+
}), _dec34 = (0, _typeorm.OneToOne)(() => _settledTransaction.default, settledTransaction => settledTransaction.transaction), _dec(_class = (_class2 = class Transaction {
|
|
116
118
|
constructor() {
|
|
117
119
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
118
120
|
|
|
@@ -157,6 +159,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
157
159
|
_initializerDefineProperty(this, "batch", _descriptor21, this);
|
|
158
160
|
|
|
159
161
|
_initializerDefineProperty(this, "assigned_at", _descriptor22, this);
|
|
162
|
+
|
|
163
|
+
_initializerDefineProperty(this, "settlement", _descriptor23, this);
|
|
160
164
|
}
|
|
161
165
|
|
|
162
166
|
getPublicData() {
|
|
@@ -179,6 +183,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
179
183
|
assigned_at: this.assigned_at
|
|
180
184
|
};
|
|
181
185
|
|
|
186
|
+
if (this.settlement !== null && typeof this.settlement !== 'undefined') {
|
|
187
|
+
response.settlement = this.settlement;
|
|
188
|
+
}
|
|
189
|
+
|
|
182
190
|
if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicData === 'function') {
|
|
183
191
|
response.booking = this.booking.getPublicData();
|
|
184
192
|
}
|
|
@@ -226,6 +234,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
226
234
|
assigned_at: this.assigned_at
|
|
227
235
|
};
|
|
228
236
|
|
|
237
|
+
if (this.settlement !== null && typeof this.settlement !== 'undefined') {
|
|
238
|
+
response.settlement = this.settlement;
|
|
239
|
+
}
|
|
240
|
+
|
|
229
241
|
if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicCompactData === 'function') {
|
|
230
242
|
response.booking = this.booking.getPublicCompactData();
|
|
231
243
|
}
|
|
@@ -395,5 +407,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
395
407
|
enumerable: true,
|
|
396
408
|
writable: true,
|
|
397
409
|
initializer: null
|
|
410
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec34], {
|
|
411
|
+
configurable: true,
|
|
412
|
+
enumerable: true,
|
|
413
|
+
writable: true,
|
|
414
|
+
initializer: null
|
|
398
415
|
})), _class2)) || _class);
|
|
399
416
|
exports.default = Transaction;
|