@felloh-org/lambda-wrapper 1.11.31 → 1.11.33
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.
|
@@ -95,26 +95,21 @@ let Refund = (_dec = (0, _typeorm.Entity)({
|
|
|
95
95
|
_initializerDefineProperty(this, "deleted_at", _descriptor12, this);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
getPublicData(
|
|
98
|
+
getPublicData() {
|
|
99
99
|
var _this$status, _this$requesting_user, _this$authorised_user, _this$organisation, _this$transaction;
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
return {
|
|
102
102
|
amount: this.amount,
|
|
103
103
|
status: this.status && typeof ((_this$status = this.status) === null || _this$status === void 0 ? void 0 : _this$status.getPublicData) === 'function' ? this.status.getPublicData() : null,
|
|
104
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,
|
|
105
105
|
authorised_user: this.authorised_user && typeof ((_this$authorised_user = this.authorised_user) === null || _this$authorised_user === void 0 ? void 0 : _this$authorised_user.getPublicData) === 'function' ? this.authorised_user.getPublicCompactData() : null,
|
|
106
|
+
authorisation_code: this.authorisation_code,
|
|
106
107
|
authorised_at: this.authorised_at,
|
|
107
108
|
organisation: this.organisation && typeof ((_this$organisation = this.organisation) === null || _this$organisation === void 0 ? void 0 : _this$organisation.getPublicCompactData) === 'function' ? this.organisation.getPublicCompactData() : null,
|
|
108
109
|
completed_at: this.completed_at,
|
|
109
110
|
transaction: this.transaction && typeof ((_this$transaction = this.transaction) === null || _this$transaction === void 0 ? void 0 : _this$transaction.getPublicData) === 'function' ? this.transaction.getPublicData() : null,
|
|
110
111
|
created_at: this.created_at
|
|
111
112
|
};
|
|
112
|
-
|
|
113
|
-
if (showAuthorisationCode === true) {
|
|
114
|
-
response.authorisation_code = this.authorisation_code;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return response;
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec2, _dec3], {
|
|
@@ -39,7 +39,7 @@ var _tokenisationProvider = _interopRequireDefault(require("../tokenisation-prov
|
|
|
39
39
|
|
|
40
40
|
var _refund = _interopRequireDefault(require("../refund"));
|
|
41
41
|
|
|
42
|
-
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, _dec35, _dec36, _dec37, _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, _descriptor24, _descriptor25;
|
|
42
|
+
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, _dec35, _dec36, _dec37, _dec38, _dec39, _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, _descriptor24, _descriptor25, _descriptor26, _descriptor27;
|
|
43
43
|
|
|
44
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
45
|
|
|
@@ -118,14 +118,21 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
118
118
|
}), _dec32 = (0, _typeorm.Column)({
|
|
119
119
|
type: "text",
|
|
120
120
|
nullable: true
|
|
121
|
-
}), _dec33 = (0, _typeorm.
|
|
121
|
+
}), _dec33 = (0, _typeorm.Column)({
|
|
122
|
+
type: "text",
|
|
123
|
+
nullable: true
|
|
124
|
+
}), _dec34 = (0, _typeorm.Column)({
|
|
125
|
+
type: "varchar",
|
|
126
|
+
length: "15",
|
|
127
|
+
nullable: true
|
|
128
|
+
}), _dec35 = (0, _typeorm.CreateDateColumn)({
|
|
122
129
|
type: 'timestamp with time zone'
|
|
123
|
-
}),
|
|
130
|
+
}), _dec36 = (0, _typeorm.UpdateDateColumn)({
|
|
124
131
|
type: 'timestamp with time zone'
|
|
125
|
-
}),
|
|
132
|
+
}), _dec37 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec38 = (0, _typeorm.Column)({
|
|
126
133
|
type: "timestamp with time zone",
|
|
127
134
|
nullable: true
|
|
128
|
-
}),
|
|
135
|
+
}), _dec39 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec(_class = (_class2 = class Transaction {
|
|
129
136
|
constructor() {
|
|
130
137
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
131
138
|
|
|
@@ -167,15 +174,19 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
167
174
|
|
|
168
175
|
_initializerDefineProperty(this, "message", _descriptor20, this);
|
|
169
176
|
|
|
170
|
-
_initializerDefineProperty(this, "
|
|
177
|
+
_initializerDefineProperty(this, "user_agent", _descriptor21, this);
|
|
171
178
|
|
|
172
|
-
_initializerDefineProperty(this, "
|
|
179
|
+
_initializerDefineProperty(this, "ip_address", _descriptor22, this);
|
|
173
180
|
|
|
174
|
-
_initializerDefineProperty(this, "
|
|
181
|
+
_initializerDefineProperty(this, "created_at", _descriptor23, this);
|
|
175
182
|
|
|
176
|
-
_initializerDefineProperty(this, "
|
|
183
|
+
_initializerDefineProperty(this, "updated_at", _descriptor24, this);
|
|
177
184
|
|
|
178
|
-
_initializerDefineProperty(this, "
|
|
185
|
+
_initializerDefineProperty(this, "batch", _descriptor25, this);
|
|
186
|
+
|
|
187
|
+
_initializerDefineProperty(this, "assigned_at", _descriptor26, this);
|
|
188
|
+
|
|
189
|
+
_initializerDefineProperty(this, "settlement", _descriptor27, this);
|
|
179
190
|
}
|
|
180
191
|
|
|
181
192
|
getPublicData() {
|
|
@@ -426,27 +437,39 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
426
437
|
enumerable: true,
|
|
427
438
|
writable: true,
|
|
428
439
|
initializer: null
|
|
429
|
-
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
440
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "user_agent", [_dec33], {
|
|
441
|
+
configurable: true,
|
|
442
|
+
enumerable: true,
|
|
443
|
+
writable: true,
|
|
444
|
+
initializer: null
|
|
445
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "ip_address", [_dec34], {
|
|
446
|
+
configurable: true,
|
|
447
|
+
enumerable: true,
|
|
448
|
+
writable: true,
|
|
449
|
+
initializer: function () {
|
|
450
|
+
return "";
|
|
451
|
+
}
|
|
452
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec35], {
|
|
430
453
|
configurable: true,
|
|
431
454
|
enumerable: true,
|
|
432
455
|
writable: true,
|
|
433
456
|
initializer: null
|
|
434
|
-
}),
|
|
457
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec36], {
|
|
435
458
|
configurable: true,
|
|
436
459
|
enumerable: true,
|
|
437
460
|
writable: true,
|
|
438
461
|
initializer: null
|
|
439
|
-
}),
|
|
462
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec37], {
|
|
440
463
|
configurable: true,
|
|
441
464
|
enumerable: true,
|
|
442
465
|
writable: true,
|
|
443
466
|
initializer: null
|
|
444
|
-
}),
|
|
467
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec38], {
|
|
445
468
|
configurable: true,
|
|
446
469
|
enumerable: true,
|
|
447
470
|
writable: true,
|
|
448
471
|
initializer: null
|
|
449
|
-
}),
|
|
472
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec39], {
|
|
450
473
|
configurable: true,
|
|
451
474
|
enumerable: true,
|
|
452
475
|
writable: true,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class transactionTracing1695734492122 {
|
|
4
|
+
name = 'transactionTracing1695734492122'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "user_agent" text`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "ip_address" character varying(15)`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "ip_address"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "user_agent"`);
|
|
14
|
+
}
|
|
15
|
+
}
|