@felloh-org/lambda-wrapper 1.11.34 → 1.11.36
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.
- package/dist/entity/operations/fingerprint-exclusion/index.js +39 -0
- package/dist/entity/payment/refund/index.js +53 -31
- package/dist/entity/payment/transaction/index.js +27 -15
- package/dist/migration/operations/1695820446445-fingerprint.js +15 -0
- package/dist/migration/payment/1695986876527-refund_failure_reason.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
11
|
+
|
|
12
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
|
+
|
|
14
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
15
|
+
|
|
16
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
+
|
|
18
|
+
let IpExclusion = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'fingerprint_exclusion',
|
|
20
|
+
schema: 'operations'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class IpExclusion {
|
|
22
|
+
constructor() {
|
|
23
|
+
_initializerDefineProperty(this, "fingerprint", _descriptor, this);
|
|
24
|
+
|
|
25
|
+
_initializerDefineProperty(this, "created_at", _descriptor2, this);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "fingerprint", [_dec2], {
|
|
29
|
+
configurable: true,
|
|
30
|
+
enumerable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
initializer: null
|
|
33
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec3], {
|
|
34
|
+
configurable: true,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
initializer: null
|
|
38
|
+
})), _class2)) || _class);
|
|
39
|
+
exports.default = IpExclusion;
|
|
@@ -15,7 +15,7 @@ var _user = _interopRequireDefault(require("../../user/user"));
|
|
|
15
15
|
|
|
16
16
|
var _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
17
17
|
|
|
18
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -38,36 +38,42 @@ let Refund = (_dec = (0, _typeorm.Entity)({
|
|
|
38
38
|
referencedColumnName: 'id'
|
|
39
39
|
}), _dec6 = (0, _typeorm.Column)({
|
|
40
40
|
type: "int"
|
|
41
|
-
}), _dec7 = (0, _typeorm.
|
|
41
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
42
|
+
type: "text",
|
|
43
|
+
nullable: true
|
|
44
|
+
}), _dec8 = (0, _typeorm.ManyToOne)(() => _user.default), _dec9 = (0, _typeorm.JoinColumn)({
|
|
42
45
|
name: 'requesting_user_id',
|
|
43
46
|
referencedColumnName: 'id'
|
|
44
|
-
}),
|
|
47
|
+
}), _dec10 = (0, _typeorm.ManyToOne)(() => _user.default, {
|
|
45
48
|
nullable: true
|
|
46
|
-
}),
|
|
49
|
+
}), _dec11 = (0, _typeorm.JoinColumn)({
|
|
47
50
|
name: 'authorised_user_id',
|
|
48
51
|
referencedColumnName: 'id'
|
|
49
|
-
}),
|
|
52
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
50
53
|
type: "varchar",
|
|
51
54
|
length: "36",
|
|
52
55
|
nullable: true
|
|
53
|
-
}),
|
|
56
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
54
57
|
type: "timestamp with time zone",
|
|
55
58
|
nullable: true
|
|
56
|
-
}),
|
|
59
|
+
}), _dec14 = (0, _typeorm.ManyToOne)(() => _organisation.default, {
|
|
57
60
|
nullable: true
|
|
58
|
-
}),
|
|
61
|
+
}), _dec15 = (0, _typeorm.JoinColumn)({
|
|
59
62
|
name: 'organisation_id',
|
|
60
63
|
referencedColumnName: 'id'
|
|
61
|
-
}),
|
|
64
|
+
}), _dec16 = (0, _typeorm.Column)({
|
|
62
65
|
type: "timestamp with time zone",
|
|
63
66
|
nullable: true
|
|
64
|
-
}),
|
|
67
|
+
}), _dec17 = (0, _typeorm.CreateDateColumn)({
|
|
65
68
|
type: 'timestamp with time zone'
|
|
66
|
-
}),
|
|
69
|
+
}), _dec18 = (0, _typeorm.UpdateDateColumn)({
|
|
67
70
|
type: 'timestamp with time zone'
|
|
68
|
-
}),
|
|
71
|
+
}), _dec19 = (0, _typeorm.DeleteDateColumn)({
|
|
69
72
|
type: 'timestamp with time zone',
|
|
70
73
|
nullable: true
|
|
74
|
+
}), _dec20 = (0, _typeorm.Column)({
|
|
75
|
+
type: "text",
|
|
76
|
+
nullable: true
|
|
71
77
|
}), _dec(_class = (_class2 = class Refund {
|
|
72
78
|
constructor() {
|
|
73
79
|
_initializerDefineProperty(this, "transaction", _descriptor, this);
|
|
@@ -76,23 +82,27 @@ let Refund = (_dec = (0, _typeorm.Entity)({
|
|
|
76
82
|
|
|
77
83
|
_initializerDefineProperty(this, "amount", _descriptor3, this);
|
|
78
84
|
|
|
79
|
-
_initializerDefineProperty(this, "
|
|
85
|
+
_initializerDefineProperty(this, "description", _descriptor4, this);
|
|
80
86
|
|
|
81
|
-
_initializerDefineProperty(this, "
|
|
87
|
+
_initializerDefineProperty(this, "requesting_user", _descriptor5, this);
|
|
82
88
|
|
|
83
|
-
_initializerDefineProperty(this, "
|
|
89
|
+
_initializerDefineProperty(this, "authorised_user", _descriptor6, this);
|
|
84
90
|
|
|
85
|
-
_initializerDefineProperty(this, "
|
|
91
|
+
_initializerDefineProperty(this, "authorisation_code", _descriptor7, this);
|
|
86
92
|
|
|
87
|
-
_initializerDefineProperty(this, "
|
|
93
|
+
_initializerDefineProperty(this, "authorised_at", _descriptor8, this);
|
|
88
94
|
|
|
89
|
-
_initializerDefineProperty(this, "
|
|
95
|
+
_initializerDefineProperty(this, "organisation", _descriptor9, this);
|
|
90
96
|
|
|
91
|
-
_initializerDefineProperty(this, "
|
|
97
|
+
_initializerDefineProperty(this, "completed_at", _descriptor10, this);
|
|
92
98
|
|
|
93
|
-
_initializerDefineProperty(this, "
|
|
99
|
+
_initializerDefineProperty(this, "created_at", _descriptor11, this);
|
|
94
100
|
|
|
95
|
-
_initializerDefineProperty(this, "
|
|
101
|
+
_initializerDefineProperty(this, "updated_at", _descriptor12, this);
|
|
102
|
+
|
|
103
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor13, this);
|
|
104
|
+
|
|
105
|
+
_initializerDefineProperty(this, "error", _descriptor14, this);
|
|
96
106
|
}
|
|
97
107
|
|
|
98
108
|
getPublicData() {
|
|
@@ -100,6 +110,7 @@ let Refund = (_dec = (0, _typeorm.Entity)({
|
|
|
100
110
|
|
|
101
111
|
return {
|
|
102
112
|
amount: this.amount,
|
|
113
|
+
description: this.description,
|
|
103
114
|
status: this.status && typeof ((_this$status = this.status) === null || _this$status === void 0 ? void 0 : _this$status.getPublicData) === 'function' ? this.status.getPublicData() : null,
|
|
104
115
|
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
116
|
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,
|
|
@@ -108,7 +119,8 @@ let Refund = (_dec = (0, _typeorm.Entity)({
|
|
|
108
119
|
organisation: this.organisation && typeof ((_this$organisation = this.organisation) === null || _this$organisation === void 0 ? void 0 : _this$organisation.getPublicCompactData) === 'function' ? this.organisation.getPublicCompactData() : null,
|
|
109
120
|
completed_at: this.completed_at,
|
|
110
121
|
transaction: this.transaction && typeof ((_this$transaction = this.transaction) === null || _this$transaction === void 0 ? void 0 : _this$transaction.getPublicData) === 'function' ? this.transaction.getPublicData() : null,
|
|
111
|
-
created_at: this.created_at
|
|
122
|
+
created_at: this.created_at,
|
|
123
|
+
error_message: this.error
|
|
112
124
|
};
|
|
113
125
|
}
|
|
114
126
|
|
|
@@ -131,55 +143,65 @@ let Refund = (_dec = (0, _typeorm.Entity)({
|
|
|
131
143
|
enumerable: true,
|
|
132
144
|
writable: true,
|
|
133
145
|
initializer: null
|
|
134
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
146
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec7], {
|
|
147
|
+
configurable: true,
|
|
148
|
+
enumerable: true,
|
|
149
|
+
writable: true,
|
|
150
|
+
initializer: null
|
|
151
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "requesting_user", [_dec8, _dec9], {
|
|
135
152
|
configurable: true,
|
|
136
153
|
enumerable: true,
|
|
137
154
|
writable: true,
|
|
138
155
|
initializer: function () {
|
|
139
156
|
return _user.default;
|
|
140
157
|
}
|
|
141
|
-
}),
|
|
158
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "authorised_user", [_dec10, _dec11], {
|
|
142
159
|
configurable: true,
|
|
143
160
|
enumerable: true,
|
|
144
161
|
writable: true,
|
|
145
162
|
initializer: function () {
|
|
146
163
|
return _user.default;
|
|
147
164
|
}
|
|
148
|
-
}),
|
|
165
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "authorisation_code", [_dec12], {
|
|
149
166
|
configurable: true,
|
|
150
167
|
enumerable: true,
|
|
151
168
|
writable: true,
|
|
152
169
|
initializer: function () {
|
|
153
170
|
return "";
|
|
154
171
|
}
|
|
155
|
-
}),
|
|
172
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "authorised_at", [_dec13], {
|
|
156
173
|
configurable: true,
|
|
157
174
|
enumerable: true,
|
|
158
175
|
writable: true,
|
|
159
176
|
initializer: null
|
|
160
|
-
}),
|
|
177
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec14, _dec15], {
|
|
161
178
|
configurable: true,
|
|
162
179
|
enumerable: true,
|
|
163
180
|
writable: true,
|
|
164
181
|
initializer: function () {
|
|
165
182
|
return _organisation.default;
|
|
166
183
|
}
|
|
167
|
-
}),
|
|
184
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec16], {
|
|
185
|
+
configurable: true,
|
|
186
|
+
enumerable: true,
|
|
187
|
+
writable: true,
|
|
188
|
+
initializer: null
|
|
189
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec17], {
|
|
168
190
|
configurable: true,
|
|
169
191
|
enumerable: true,
|
|
170
192
|
writable: true,
|
|
171
193
|
initializer: null
|
|
172
|
-
}),
|
|
194
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec18], {
|
|
173
195
|
configurable: true,
|
|
174
196
|
enumerable: true,
|
|
175
197
|
writable: true,
|
|
176
198
|
initializer: null
|
|
177
|
-
}),
|
|
199
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec19], {
|
|
178
200
|
configurable: true,
|
|
179
201
|
enumerable: true,
|
|
180
202
|
writable: true,
|
|
181
203
|
initializer: null
|
|
182
|
-
}),
|
|
204
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "error", [_dec20], {
|
|
183
205
|
configurable: true,
|
|
184
206
|
enumerable: true,
|
|
185
207
|
writable: true,
|
|
@@ -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, _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;
|
|
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, _dec40, _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, _descriptor28;
|
|
43
43
|
|
|
44
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
45
|
|
|
@@ -125,14 +125,17 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
125
125
|
type: "varchar",
|
|
126
126
|
length: "15",
|
|
127
127
|
nullable: true
|
|
128
|
-
}), _dec35 = (0, _typeorm.
|
|
128
|
+
}), _dec35 = (0, _typeorm.Column)({
|
|
129
|
+
type: "varchar",
|
|
130
|
+
nullable: true
|
|
131
|
+
}), _dec36 = (0, _typeorm.CreateDateColumn)({
|
|
129
132
|
type: 'timestamp with time zone'
|
|
130
|
-
}),
|
|
133
|
+
}), _dec37 = (0, _typeorm.UpdateDateColumn)({
|
|
131
134
|
type: 'timestamp with time zone'
|
|
132
|
-
}),
|
|
135
|
+
}), _dec38 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec39 = (0, _typeorm.Column)({
|
|
133
136
|
type: "timestamp with time zone",
|
|
134
137
|
nullable: true
|
|
135
|
-
}),
|
|
138
|
+
}), _dec40 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec(_class = (_class2 = class Transaction {
|
|
136
139
|
constructor() {
|
|
137
140
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
138
141
|
|
|
@@ -178,15 +181,17 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
178
181
|
|
|
179
182
|
_initializerDefineProperty(this, "ip_address", _descriptor22, this);
|
|
180
183
|
|
|
181
|
-
_initializerDefineProperty(this, "
|
|
184
|
+
_initializerDefineProperty(this, "fingerprint", _descriptor23, this);
|
|
185
|
+
|
|
186
|
+
_initializerDefineProperty(this, "created_at", _descriptor24, this);
|
|
182
187
|
|
|
183
|
-
_initializerDefineProperty(this, "updated_at",
|
|
188
|
+
_initializerDefineProperty(this, "updated_at", _descriptor25, this);
|
|
184
189
|
|
|
185
|
-
_initializerDefineProperty(this, "batch",
|
|
190
|
+
_initializerDefineProperty(this, "batch", _descriptor26, this);
|
|
186
191
|
|
|
187
|
-
_initializerDefineProperty(this, "assigned_at",
|
|
192
|
+
_initializerDefineProperty(this, "assigned_at", _descriptor27, this);
|
|
188
193
|
|
|
189
|
-
_initializerDefineProperty(this, "settlement",
|
|
194
|
+
_initializerDefineProperty(this, "settlement", _descriptor28, this);
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
getPublicData() {
|
|
@@ -449,27 +454,34 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
449
454
|
initializer: function () {
|
|
450
455
|
return "";
|
|
451
456
|
}
|
|
452
|
-
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
457
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "fingerprint", [_dec35], {
|
|
458
|
+
configurable: true,
|
|
459
|
+
enumerable: true,
|
|
460
|
+
writable: true,
|
|
461
|
+
initializer: function () {
|
|
462
|
+
return "";
|
|
463
|
+
}
|
|
464
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec36], {
|
|
453
465
|
configurable: true,
|
|
454
466
|
enumerable: true,
|
|
455
467
|
writable: true,
|
|
456
468
|
initializer: null
|
|
457
|
-
}),
|
|
469
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec37], {
|
|
458
470
|
configurable: true,
|
|
459
471
|
enumerable: true,
|
|
460
472
|
writable: true,
|
|
461
473
|
initializer: null
|
|
462
|
-
}),
|
|
474
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec38], {
|
|
463
475
|
configurable: true,
|
|
464
476
|
enumerable: true,
|
|
465
477
|
writable: true,
|
|
466
478
|
initializer: null
|
|
467
|
-
}),
|
|
479
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec39], {
|
|
468
480
|
configurable: true,
|
|
469
481
|
enumerable: true,
|
|
470
482
|
writable: true,
|
|
471
483
|
initializer: null
|
|
472
|
-
}),
|
|
484
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec40], {
|
|
473
485
|
configurable: true,
|
|
474
486
|
enumerable: true,
|
|
475
487
|
writable: true,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class fingerprint1695820446445 {
|
|
4
|
+
name = 'fingerprint1695820446445'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "operations"."fingerprint_exclusion" ("fingerprint" character varying NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_0915dcafbf46800ad6b2c0fc017" PRIMARY KEY ("fingerprint"))`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "fingerprint" character varying`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "fingerprint"`);
|
|
13
|
+
await queryRunner.query(`DROP TABLE "operations"."fingerprint_exclusion"`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class refundFailureReason1695986876527 {
|
|
4
|
+
name = 'refundFailureReason1695986876527'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."refund" ADD "description" text`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."refund" ADD "error" text`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "payment"."refund" DROP COLUMN "error"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "payment"."refund" DROP COLUMN "description"`);
|
|
14
|
+
}
|
|
15
|
+
}
|