@felloh-org/lambda-wrapper 1.11.65 → 1.11.66
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.
|
@@ -47,8 +47,10 @@ var _refund = _interopRequireDefault(require("./refund"));
|
|
|
47
47
|
|
|
48
48
|
var _refundStatus = _interopRequireDefault(require("./refund-status"));
|
|
49
49
|
|
|
50
|
+
var _transactionSurcharge = _interopRequireDefault(require("./transaction-surcharge"));
|
|
51
|
+
|
|
50
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
51
53
|
|
|
52
|
-
const ENTITIES = [_chargeback.default, _creditNote.default, _customer.default, _ecommerce.default, _organisationPaymentProvider.default, _organisationPaymentProviderMethod.default, _paymentLink.default, _paymentLinkType.default, _paymentProvider.default, _refund.default, _refundStatus.default, _tokenisationProvider.default, _transaction.default, _transactionEvent.default, _transactionEventType.default, _transactionMethod.default, _transactionStatus.default, _transactionSource.default, _transactionType.default, _transactionMetadata.default, _transactionReason.default];
|
|
54
|
+
const ENTITIES = [_chargeback.default, _creditNote.default, _customer.default, _ecommerce.default, _organisationPaymentProvider.default, _organisationPaymentProviderMethod.default, _paymentLink.default, _paymentLinkType.default, _paymentProvider.default, _refund.default, _refundStatus.default, _tokenisationProvider.default, _transaction.default, _transactionEvent.default, _transactionEventType.default, _transactionMethod.default, _transactionStatus.default, _transactionSource.default, _transactionType.default, _transactionMetadata.default, _transactionReason.default, _transactionSurcharge.default];
|
|
53
55
|
|
|
54
56
|
var _default = exports.default = ENTITIES;
|
|
@@ -37,11 +37,13 @@ var _transactionSettlement = _interopRequireDefault(require("../../acquirer/tran
|
|
|
37
37
|
|
|
38
38
|
var _tokenisationProvider = _interopRequireDefault(require("../tokenisation-provider"));
|
|
39
39
|
|
|
40
|
+
var _transactionSurcharge = _interopRequireDefault(require("../transaction-surcharge"));
|
|
41
|
+
|
|
40
42
|
var _refund = _interopRequireDefault(require("../refund"));
|
|
41
43
|
|
|
42
44
|
var _customer = _interopRequireDefault(require("../customer"));
|
|
43
45
|
|
|
44
|
-
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, _dec41, _dec42, _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, _descriptor29;
|
|
46
|
+
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, _dec41, _dec42, _dec43, _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, _descriptor29, _descriptor30;
|
|
45
47
|
|
|
46
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
47
49
|
|
|
@@ -103,43 +105,45 @@ let Transaction = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
103
105
|
referencedColumnName: 'id'
|
|
104
106
|
}), _dec27 = (0, _typeorm.OneToMany)(() => _refund.default, refund => refund.transaction, {
|
|
105
107
|
nullable: true
|
|
106
|
-
}), _dec28 = (0, _typeorm.
|
|
108
|
+
}), _dec28 = (0, _typeorm.OneToOne)(() => _transactionSurcharge.default, transactionSurcharge => transactionSurcharge.transaction, {
|
|
109
|
+
nullable: true
|
|
110
|
+
}), _dec29 = (0, _typeorm.Column)({
|
|
107
111
|
type: "varchar",
|
|
108
112
|
length: "250",
|
|
109
113
|
nullable: true
|
|
110
|
-
}),
|
|
114
|
+
}), _dec30 = (0, _typeorm.Column)({
|
|
111
115
|
type: "varchar",
|
|
112
116
|
length: "3",
|
|
113
117
|
default: _currency.DEFAULT_CURRENCY
|
|
114
|
-
}), _dec30 = (0, _typeorm.Column)({
|
|
115
|
-
type: "json",
|
|
116
|
-
nullable: true
|
|
117
118
|
}), _dec31 = (0, _typeorm.Column)({
|
|
118
|
-
type: "
|
|
119
|
+
type: "json",
|
|
119
120
|
nullable: true
|
|
120
121
|
}), _dec32 = (0, _typeorm.Column)({
|
|
121
|
-
type: "
|
|
122
|
+
type: "timestamp with time zone",
|
|
122
123
|
nullable: true
|
|
123
124
|
}), _dec33 = (0, _typeorm.Column)({
|
|
124
125
|
type: "text",
|
|
125
126
|
nullable: true
|
|
126
127
|
}), _dec34 = (0, _typeorm.Column)({
|
|
128
|
+
type: "text",
|
|
129
|
+
nullable: true
|
|
130
|
+
}), _dec35 = (0, _typeorm.Column)({
|
|
127
131
|
type: "varchar",
|
|
128
132
|
length: "15",
|
|
129
133
|
nullable: true
|
|
130
|
-
}),
|
|
134
|
+
}), _dec36 = (0, _typeorm.Column)({
|
|
131
135
|
type: "varchar",
|
|
132
136
|
nullable: true
|
|
133
|
-
}),
|
|
137
|
+
}), _dec37 = (0, _typeorm.CreateDateColumn)({
|
|
134
138
|
type: 'timestamp with time zone'
|
|
135
|
-
}),
|
|
139
|
+
}), _dec38 = (0, _typeorm.UpdateDateColumn)({
|
|
136
140
|
type: 'timestamp with time zone'
|
|
137
|
-
}),
|
|
141
|
+
}), _dec39 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec40 = (0, _typeorm.Column)({
|
|
138
142
|
type: "timestamp with time zone",
|
|
139
143
|
nullable: true
|
|
140
|
-
}),
|
|
144
|
+
}), _dec41 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec42 = (0, _typeorm.ManyToOne)(() => _customer.default, {
|
|
141
145
|
nullable: true
|
|
142
|
-
}),
|
|
146
|
+
}), _dec43 = (0, _typeorm.JoinColumn)({
|
|
143
147
|
name: 'customer_id',
|
|
144
148
|
referencedColumnName: 'id'
|
|
145
149
|
}), _dec(_class = (_class2 = class Transaction {
|
|
@@ -174,33 +178,35 @@ let Transaction = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
174
178
|
|
|
175
179
|
_initializerDefineProperty(this, "refund", _descriptor15, this);
|
|
176
180
|
|
|
177
|
-
_initializerDefineProperty(this, "
|
|
181
|
+
_initializerDefineProperty(this, "surcharge", _descriptor16, this);
|
|
178
182
|
|
|
179
|
-
_initializerDefineProperty(this, "
|
|
183
|
+
_initializerDefineProperty(this, "provider_reference", _descriptor17, this);
|
|
180
184
|
|
|
181
|
-
_initializerDefineProperty(this, "
|
|
185
|
+
_initializerDefineProperty(this, "currency", _descriptor18, this);
|
|
182
186
|
|
|
183
|
-
_initializerDefineProperty(this, "
|
|
187
|
+
_initializerDefineProperty(this, "provider_metadata", _descriptor19, this);
|
|
184
188
|
|
|
185
|
-
_initializerDefineProperty(this, "
|
|
189
|
+
_initializerDefineProperty(this, "completed_at", _descriptor20, this);
|
|
186
190
|
|
|
187
|
-
_initializerDefineProperty(this, "
|
|
191
|
+
_initializerDefineProperty(this, "message", _descriptor21, this);
|
|
188
192
|
|
|
189
|
-
_initializerDefineProperty(this, "
|
|
193
|
+
_initializerDefineProperty(this, "user_agent", _descriptor22, this);
|
|
190
194
|
|
|
191
|
-
_initializerDefineProperty(this, "
|
|
195
|
+
_initializerDefineProperty(this, "ip_address", _descriptor23, this);
|
|
192
196
|
|
|
193
|
-
_initializerDefineProperty(this, "
|
|
197
|
+
_initializerDefineProperty(this, "fingerprint", _descriptor24, this);
|
|
194
198
|
|
|
195
|
-
_initializerDefineProperty(this, "
|
|
199
|
+
_initializerDefineProperty(this, "created_at", _descriptor25, this);
|
|
196
200
|
|
|
197
|
-
_initializerDefineProperty(this, "
|
|
201
|
+
_initializerDefineProperty(this, "updated_at", _descriptor26, this);
|
|
198
202
|
|
|
199
|
-
_initializerDefineProperty(this, "
|
|
203
|
+
_initializerDefineProperty(this, "batch", _descriptor27, this);
|
|
200
204
|
|
|
201
|
-
_initializerDefineProperty(this, "
|
|
205
|
+
_initializerDefineProperty(this, "assigned_at", _descriptor28, this);
|
|
202
206
|
|
|
203
|
-
_initializerDefineProperty(this, "
|
|
207
|
+
_initializerDefineProperty(this, "settlement", _descriptor29, this);
|
|
208
|
+
|
|
209
|
+
_initializerDefineProperty(this, "customer", _descriptor30, this);
|
|
204
210
|
}
|
|
205
211
|
|
|
206
212
|
getPublicData() {
|
|
@@ -426,80 +432,85 @@ let Transaction = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
426
432
|
enumerable: true,
|
|
427
433
|
writable: true,
|
|
428
434
|
initializer: null
|
|
429
|
-
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
435
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "surcharge", [_dec28], {
|
|
436
|
+
configurable: true,
|
|
437
|
+
enumerable: true,
|
|
438
|
+
writable: true,
|
|
439
|
+
initializer: null
|
|
440
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "provider_reference", [_dec29], {
|
|
430
441
|
configurable: true,
|
|
431
442
|
enumerable: true,
|
|
432
443
|
writable: true,
|
|
433
444
|
initializer: function () {
|
|
434
445
|
return "";
|
|
435
446
|
}
|
|
436
|
-
}),
|
|
447
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec30], {
|
|
437
448
|
configurable: true,
|
|
438
449
|
enumerable: true,
|
|
439
450
|
writable: true,
|
|
440
451
|
initializer: function () {
|
|
441
452
|
return _currency.DEFAULT_CURRENCY;
|
|
442
453
|
}
|
|
443
|
-
}),
|
|
454
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "provider_metadata", [_dec31], {
|
|
444
455
|
configurable: true,
|
|
445
456
|
enumerable: true,
|
|
446
457
|
writable: true,
|
|
447
458
|
initializer: null
|
|
448
|
-
}),
|
|
459
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec32], {
|
|
449
460
|
configurable: true,
|
|
450
461
|
enumerable: true,
|
|
451
462
|
writable: true,
|
|
452
463
|
initializer: null
|
|
453
|
-
}),
|
|
464
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec33], {
|
|
454
465
|
configurable: true,
|
|
455
466
|
enumerable: true,
|
|
456
467
|
writable: true,
|
|
457
468
|
initializer: null
|
|
458
|
-
}),
|
|
469
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "user_agent", [_dec34], {
|
|
459
470
|
configurable: true,
|
|
460
471
|
enumerable: true,
|
|
461
472
|
writable: true,
|
|
462
473
|
initializer: null
|
|
463
|
-
}),
|
|
474
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "ip_address", [_dec35], {
|
|
464
475
|
configurable: true,
|
|
465
476
|
enumerable: true,
|
|
466
477
|
writable: true,
|
|
467
478
|
initializer: function () {
|
|
468
479
|
return "";
|
|
469
480
|
}
|
|
470
|
-
}),
|
|
481
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "fingerprint", [_dec36], {
|
|
471
482
|
configurable: true,
|
|
472
483
|
enumerable: true,
|
|
473
484
|
writable: true,
|
|
474
485
|
initializer: function () {
|
|
475
486
|
return "";
|
|
476
487
|
}
|
|
477
|
-
}),
|
|
488
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec37], {
|
|
478
489
|
configurable: true,
|
|
479
490
|
enumerable: true,
|
|
480
491
|
writable: true,
|
|
481
492
|
initializer: null
|
|
482
|
-
}),
|
|
493
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec38], {
|
|
483
494
|
configurable: true,
|
|
484
495
|
enumerable: true,
|
|
485
496
|
writable: true,
|
|
486
497
|
initializer: null
|
|
487
|
-
}),
|
|
498
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec39], {
|
|
488
499
|
configurable: true,
|
|
489
500
|
enumerable: true,
|
|
490
501
|
writable: true,
|
|
491
502
|
initializer: null
|
|
492
|
-
}),
|
|
503
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec40], {
|
|
493
504
|
configurable: true,
|
|
494
505
|
enumerable: true,
|
|
495
506
|
writable: true,
|
|
496
507
|
initializer: null
|
|
497
|
-
}),
|
|
508
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec41], {
|
|
498
509
|
configurable: true,
|
|
499
510
|
enumerable: true,
|
|
500
511
|
writable: true,
|
|
501
512
|
initializer: null
|
|
502
|
-
}),
|
|
513
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, "customer", [_dec42, _dec43], {
|
|
503
514
|
configurable: true,
|
|
504
515
|
enumerable: true,
|
|
505
516
|
writable: true,
|
|
@@ -0,0 +1,80 @@
|
|
|
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 _transaction = _interopRequireDefault(require("../transaction"));
|
|
11
|
+
|
|
12
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
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 }); }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
20
|
+
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.'); }
|
|
21
|
+
|
|
22
|
+
let TransactionSurcharge = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
23
|
+
name: 'transaction_surcharge',
|
|
24
|
+
schema: 'payment'
|
|
25
|
+
}), _dec2 = (0, _typeorm.ManyToOne)(() => _transaction.default, {
|
|
26
|
+
primary: true
|
|
27
|
+
}), _dec3 = (0, _typeorm.JoinColumn)({
|
|
28
|
+
name: 'transaction_id',
|
|
29
|
+
referencedColumnName: 'id'
|
|
30
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
31
|
+
type: "int"
|
|
32
|
+
}), _dec5 = (0, _typeorm.Column)({
|
|
33
|
+
type: "varchar",
|
|
34
|
+
nullable: true,
|
|
35
|
+
length: 10
|
|
36
|
+
}), _dec6 = (0, _typeorm.CreateDateColumn)({
|
|
37
|
+
type: 'timestamp with time zone'
|
|
38
|
+
}), _dec7 = (0, _typeorm.UpdateDateColumn)({
|
|
39
|
+
type: 'timestamp with time zone'
|
|
40
|
+
}), _dec(_class = (_class2 = class TransactionSurcharge {
|
|
41
|
+
constructor() {
|
|
42
|
+
_initializerDefineProperty(this, "transaction", _descriptor, this);
|
|
43
|
+
|
|
44
|
+
_initializerDefineProperty(this, "amount", _descriptor2, this);
|
|
45
|
+
|
|
46
|
+
_initializerDefineProperty(this, "currency", _descriptor3, this);
|
|
47
|
+
|
|
48
|
+
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
49
|
+
|
|
50
|
+
_initializerDefineProperty(this, "updated_at", _descriptor5, this);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec2, _dec3], {
|
|
54
|
+
configurable: true,
|
|
55
|
+
enumerable: true,
|
|
56
|
+
writable: true,
|
|
57
|
+
initializer: function () {
|
|
58
|
+
return _transaction.default;
|
|
59
|
+
}
|
|
60
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec4], {
|
|
61
|
+
configurable: true,
|
|
62
|
+
enumerable: true,
|
|
63
|
+
writable: true,
|
|
64
|
+
initializer: null
|
|
65
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec5], {
|
|
66
|
+
configurable: true,
|
|
67
|
+
enumerable: true,
|
|
68
|
+
writable: true,
|
|
69
|
+
initializer: null
|
|
70
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
|
|
71
|
+
configurable: true,
|
|
72
|
+
enumerable: true,
|
|
73
|
+
writable: true,
|
|
74
|
+
initializer: null
|
|
75
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec7], {
|
|
76
|
+
configurable: true,
|
|
77
|
+
enumerable: true,
|
|
78
|
+
writable: true,
|
|
79
|
+
initializer: null
|
|
80
|
+
})), _class2)) || _class);
|
package/dist/index.js
CHANGED
|
@@ -609,6 +609,12 @@ Object.defineProperty(exports, "TransactionStatusEntity", {
|
|
|
609
609
|
return _transactionStatus.default;
|
|
610
610
|
}
|
|
611
611
|
});
|
|
612
|
+
Object.defineProperty(exports, "TransactionSurchargeEntity", {
|
|
613
|
+
enumerable: true,
|
|
614
|
+
get: function () {
|
|
615
|
+
return _transactionSurcharge.default;
|
|
616
|
+
}
|
|
617
|
+
});
|
|
612
618
|
Object.defineProperty(exports, "TransactionTypeEntity", {
|
|
613
619
|
enumerable: true,
|
|
614
620
|
get: function () {
|
|
@@ -792,6 +798,8 @@ var _refund = _interopRequireDefault(require("./entity/payment/refund"));
|
|
|
792
798
|
|
|
793
799
|
var _refundStatus = _interopRequireDefault(require("./entity/payment/refund-status"));
|
|
794
800
|
|
|
801
|
+
var _transactionSurcharge = _interopRequireDefault(require("./entity/payment/transaction-surcharge"));
|
|
802
|
+
|
|
795
803
|
var _country = _interopRequireDefault(require("./entity/reference/country"));
|
|
796
804
|
|
|
797
805
|
var _transaction3 = _interopRequireDefault(require("./entity/total-processing/transaction"));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class surchargeTable1704881345200 {
|
|
4
|
+
name = 'surchargeTable1704881345200'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "payment"."transaction_surcharge" ("amount" integer NOT NULL, "currency" character varying(10), "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "transaction_id" character varying NOT NULL, CONSTRAINT "PK_f8310df7abd04239acabb0320aa" PRIMARY KEY ("transaction_id"))`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_surcharge" ADD CONSTRAINT "FK_f8310df7abd04239acabb0320aa" FOREIGN KEY ("transaction_id") REFERENCES "payment"."transaction"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_surcharge" DROP CONSTRAINT "FK_f8310df7abd04239acabb0320aa"`);
|
|
13
|
+
await queryRunner.query(`DROP TABLE "payment"."transaction_surcharge"`);
|
|
14
|
+
}
|
|
15
|
+
}
|