@felloh-org/lambda-wrapper 1.11.91 → 1.11.93
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.
|
@@ -9,13 +9,11 @@ var _typeorm = require("typeorm");
|
|
|
9
9
|
|
|
10
10
|
var _paymentProvider = _interopRequireDefault(require("../../payment/payment-provider"));
|
|
11
11
|
|
|
12
|
-
var _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
13
|
-
|
|
14
12
|
var _transactionSettlement = _interopRequireDefault(require("../transaction-settlement"));
|
|
15
13
|
|
|
16
14
|
var _adjustment = _interopRequireDefault(require("../adjustment"));
|
|
17
15
|
|
|
18
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
16
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
|
|
19
17
|
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
@@ -46,9 +44,12 @@ let Batch = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
46
44
|
}), _dec9 = (0, _typeorm.OneToMany)(() => _adjustment.default, adjustment => adjustment.batch), _dec10 = (0, _typeorm.OneToMany)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.batch), _dec11 = (0, _typeorm.Column)({
|
|
47
45
|
type: "boolean",
|
|
48
46
|
default: false
|
|
49
|
-
}), _dec12 = (0, _typeorm.
|
|
47
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
48
|
+
type: "boolean",
|
|
49
|
+
default: false
|
|
50
|
+
}), _dec13 = (0, _typeorm.CreateDateColumn)({
|
|
50
51
|
type: 'timestamp with time zone'
|
|
51
|
-
}),
|
|
52
|
+
}), _dec14 = (0, _typeorm.UpdateDateColumn)({
|
|
52
53
|
type: 'timestamp with time zone'
|
|
53
54
|
}), _dec(_class = (_class2 = class Batch {
|
|
54
55
|
constructor() {
|
|
@@ -70,9 +71,11 @@ let Batch = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
70
71
|
|
|
71
72
|
_initializerDefineProperty(this, "found_in_felloh_managed_trust", _descriptor9, this);
|
|
72
73
|
|
|
73
|
-
_initializerDefineProperty(this, "
|
|
74
|
+
_initializerDefineProperty(this, "found_in_customer_account", _descriptor10, this);
|
|
74
75
|
|
|
75
|
-
_initializerDefineProperty(this, "
|
|
76
|
+
_initializerDefineProperty(this, "created_at", _descriptor11, this);
|
|
77
|
+
|
|
78
|
+
_initializerDefineProperty(this, "updated_at", _descriptor12, this);
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
getPublicData() {
|
|
@@ -142,12 +145,19 @@ let Batch = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
142
145
|
initializer: function () {
|
|
143
146
|
return false;
|
|
144
147
|
}
|
|
145
|
-
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
148
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "found_in_customer_account", [_dec12], {
|
|
149
|
+
configurable: true,
|
|
150
|
+
enumerable: true,
|
|
151
|
+
writable: true,
|
|
152
|
+
initializer: function () {
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec13], {
|
|
146
156
|
configurable: true,
|
|
147
157
|
enumerable: true,
|
|
148
158
|
writable: true,
|
|
149
159
|
initializer: null
|
|
150
|
-
}),
|
|
160
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec14], {
|
|
151
161
|
configurable: true,
|
|
152
162
|
enumerable: true,
|
|
153
163
|
writable: true,
|
|
@@ -305,6 +305,10 @@ let Transaction = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
305
305
|
assigned_at: this.assigned_at
|
|
306
306
|
};
|
|
307
307
|
|
|
308
|
+
if (this.customer !== null && typeof this.customer.id !== 'undefined') {
|
|
309
|
+
response.customer = this.customer.getPublicData();
|
|
310
|
+
}
|
|
311
|
+
|
|
308
312
|
if (this.settlement !== null && typeof this.settlement !== 'undefined') {
|
|
309
313
|
response.settlement = this.settlement;
|
|
310
314
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class foundCustomerAccount1713365208792 {
|
|
4
|
+
name = 'foundCustomerAccount1713365208792'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "acquirer"."batch" ADD "found_in_customer_account" boolean NOT NULL DEFAULT false`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "acquirer"."batch" DROP COLUMN "found_in_customer_account"`);
|
|
12
|
+
}
|
|
13
|
+
}
|