@felloh-org/lambda-wrapper 1.11.17 → 1.11.18

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.
@@ -19,7 +19,9 @@ var _currency = _interopRequireDefault(require("../../bank/currency"));
19
19
 
20
20
  var _organisationPaymentProviderMethod = _interopRequireDefault(require("../organisation-payment-provider-method"));
21
21
 
22
- 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, _descriptor15, _descriptor16;
22
+ var _tokenisationProvider = _interopRequireDefault(require("../tokenisation-provider"));
23
+
24
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;
23
25
 
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
27
 
@@ -58,28 +60,33 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
58
60
  name: "currency_id",
59
61
  referencedColumnName: "id"
60
62
  }
61
- }), _dec11 = (0, _typeorm.Column)({
63
+ }), _dec11 = (0, _typeorm.ManyToOne)(() => _tokenisationProvider.default, {
64
+ nullable: true
65
+ }), _dec12 = (0, _typeorm.JoinColumn)({
66
+ name: 'tokenisation_provider_id',
67
+ referencedColumnName: 'id'
68
+ }), _dec13 = (0, _typeorm.Column)({
62
69
  type: "varchar",
63
70
  length: "150"
64
- }), _dec12 = (0, _typeorm.Column)({
71
+ }), _dec14 = (0, _typeorm.Column)({
65
72
  type: "json",
66
73
  nullable: true
67
- }), _dec13 = (0, _typeorm.Column)({
74
+ }), _dec15 = (0, _typeorm.Column)({
68
75
  type: "varchar",
69
76
  length: "512"
70
- }), _dec14 = (0, _typeorm.Column)({
77
+ }), _dec16 = (0, _typeorm.Column)({
71
78
  type: "varchar",
72
79
  length: "4"
73
- }), _dec15 = (0, _typeorm.Column)({
80
+ }), _dec17 = (0, _typeorm.Column)({
74
81
  type: "boolean",
75
82
  default: false
76
- }), _dec16 = (0, _typeorm.Column)({
83
+ }), _dec18 = (0, _typeorm.Column)({
77
84
  type: "boolean",
78
85
  default: false
79
- }), _dec17 = (0, _typeorm.Column)({
86
+ }), _dec19 = (0, _typeorm.Column)({
80
87
  type: "boolean",
81
88
  default: false
82
- }), _dec18 = (0, _typeorm.CreateDateColumn)(), _dec19 = (0, _typeorm.UpdateDateColumn)(), _dec20 = (0, _typeorm.DeleteDateColumn)(), _dec(_class = (_class2 = class OrganisationPaymentProvider {
89
+ }), _dec20 = (0, _typeorm.CreateDateColumn)(), _dec21 = (0, _typeorm.UpdateDateColumn)(), _dec22 = (0, _typeorm.DeleteDateColumn)(), _dec(_class = (_class2 = class OrganisationPaymentProvider {
83
90
  constructor() {
84
91
  _initializerDefineProperty(this, "id", _descriptor, this);
85
92
 
@@ -93,25 +100,27 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
93
100
 
94
101
  _initializerDefineProperty(this, "currencies", _descriptor6, this);
95
102
 
96
- _initializerDefineProperty(this, "public_key", _descriptor7, this);
103
+ _initializerDefineProperty(this, "tokenisation_provider", _descriptor7, this);
97
104
 
98
- _initializerDefineProperty(this, "public_creds", _descriptor8, this);
105
+ _initializerDefineProperty(this, "public_key", _descriptor8, this);
99
106
 
100
- _initializerDefineProperty(this, "secret_key", _descriptor9, this);
107
+ _initializerDefineProperty(this, "public_creds", _descriptor9, this);
101
108
 
102
- _initializerDefineProperty(this, "secret_key_last_four", _descriptor10, this);
109
+ _initializerDefineProperty(this, "secret_key", _descriptor10, this);
103
110
 
104
- _initializerDefineProperty(this, "is_active", _descriptor11, this);
111
+ _initializerDefineProperty(this, "secret_key_last_four", _descriptor11, this);
105
112
 
106
- _initializerDefineProperty(this, "googlepay_enabled", _descriptor12, this);
113
+ _initializerDefineProperty(this, "is_active", _descriptor12, this);
107
114
 
108
- _initializerDefineProperty(this, "applepay_enabled", _descriptor13, this);
115
+ _initializerDefineProperty(this, "googlepay_enabled", _descriptor13, this);
109
116
 
110
- _initializerDefineProperty(this, "created_at", _descriptor14, this);
117
+ _initializerDefineProperty(this, "applepay_enabled", _descriptor14, this);
111
118
 
112
- _initializerDefineProperty(this, "updated_at", _descriptor15, this);
119
+ _initializerDefineProperty(this, "created_at", _descriptor15, this);
113
120
 
114
- _initializerDefineProperty(this, "deleted_at", _descriptor16, this);
121
+ _initializerDefineProperty(this, "updated_at", _descriptor16, this);
122
+
123
+ _initializerDefineProperty(this, "deleted_at", _descriptor17, this);
115
124
  }
116
125
 
117
126
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -152,64 +161,71 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
152
161
  enumerable: true,
153
162
  writable: true,
154
163
  initializer: null
155
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "public_key", [_dec11], {
164
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "tokenisation_provider", [_dec11, _dec12], {
165
+ configurable: true,
166
+ enumerable: true,
167
+ writable: true,
168
+ initializer: function () {
169
+ return _tokenisationProvider.default;
170
+ }
171
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "public_key", [_dec13], {
156
172
  configurable: true,
157
173
  enumerable: true,
158
174
  writable: true,
159
175
  initializer: function () {
160
176
  return "";
161
177
  }
162
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "public_creds", [_dec12], {
178
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "public_creds", [_dec14], {
163
179
  configurable: true,
164
180
  enumerable: true,
165
181
  writable: true,
166
182
  initializer: null
167
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "secret_key", [_dec13], {
183
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "secret_key", [_dec15], {
168
184
  configurable: true,
169
185
  enumerable: true,
170
186
  writable: true,
171
187
  initializer: function () {
172
188
  return "";
173
189
  }
174
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "secret_key_last_four", [_dec14], {
190
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "secret_key_last_four", [_dec16], {
175
191
  configurable: true,
176
192
  enumerable: true,
177
193
  writable: true,
178
194
  initializer: function () {
179
195
  return "";
180
196
  }
181
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "is_active", [_dec15], {
197
+ }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "is_active", [_dec17], {
182
198
  configurable: true,
183
199
  enumerable: true,
184
200
  writable: true,
185
201
  initializer: function () {
186
202
  return false;
187
203
  }
188
- }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "googlepay_enabled", [_dec16], {
204
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "googlepay_enabled", [_dec18], {
189
205
  configurable: true,
190
206
  enumerable: true,
191
207
  writable: true,
192
208
  initializer: function () {
193
209
  return false;
194
210
  }
195
- }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "applepay_enabled", [_dec17], {
211
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "applepay_enabled", [_dec19], {
196
212
  configurable: true,
197
213
  enumerable: true,
198
214
  writable: true,
199
215
  initializer: function () {
200
216
  return false;
201
217
  }
202
- }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec18], {
218
+ }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec20], {
203
219
  configurable: true,
204
220
  enumerable: true,
205
221
  writable: true,
206
222
  initializer: null
207
- }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec19], {
223
+ }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec21], {
208
224
  configurable: true,
209
225
  enumerable: true,
210
226
  writable: true,
211
227
  initializer: null
212
- }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec20], {
228
+ }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec22], {
213
229
  configurable: true,
214
230
  enumerable: true,
215
231
  writable: true,
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _typeorm = require("typeorm");
9
9
 
10
- var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
10
+ var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
11
11
 
12
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
13
 
@@ -18,11 +18,17 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
18
18
  let TokenisationProvider = (_dec = (0, _typeorm.Entity)({
19
19
  name: 'tokenisation_provider',
20
20
  schema: 'payment'
21
- }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class TokenisationProvider {
21
+ }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
22
+ type: "varchar",
23
+ length: "250",
24
+ nullable: true
25
+ }), _dec4 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class TokenisationProvider {
22
26
  constructor() {
23
27
  _initializerDefineProperty(this, "id", _descriptor, this);
24
28
 
25
- _initializerDefineProperty(this, "created_at", _descriptor2, this);
29
+ _initializerDefineProperty(this, "display_name", _descriptor2, this);
30
+
31
+ _initializerDefineProperty(this, "created_at", _descriptor3, this);
26
32
  }
27
33
 
28
34
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -30,7 +36,14 @@ let TokenisationProvider = (_dec = (0, _typeorm.Entity)({
30
36
  enumerable: true,
31
37
  writable: true,
32
38
  initializer: null
33
- }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec3], {
39
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "display_name", [_dec3], {
40
+ configurable: true,
41
+ enumerable: true,
42
+ writable: true,
43
+ initializer: function () {
44
+ return "";
45
+ }
46
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec4], {
34
47
  configurable: true,
35
48
  enumerable: true,
36
49
  writable: true,
@@ -35,7 +35,9 @@ var _currency = require("../../bank/currency");
35
35
 
36
36
  var _transactionSettlement = _interopRequireDefault(require("../../acquirer/transaction-settlement"));
37
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;
38
+ var _tokenisationProvider = _interopRequireDefault(require("../tokenisation-provider"));
39
+
40
+ 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, _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;
39
41
 
40
42
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41
43
 
@@ -90,31 +92,36 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
90
92
  }), _dec24 = (0, _typeorm.JoinColumn)({
91
93
  name: 'organisation_payment_provider_id',
92
94
  referencedColumnName: 'id'
93
- }), _dec25 = (0, _typeorm.Column)({
95
+ }), _dec25 = (0, _typeorm.ManyToOne)(() => _tokenisationProvider.default, {
96
+ nullable: true
97
+ }), _dec26 = (0, _typeorm.JoinColumn)({
98
+ name: 'tokenisation_provider_id',
99
+ referencedColumnName: 'id'
100
+ }), _dec27 = (0, _typeorm.Column)({
94
101
  type: "varchar",
95
102
  length: "250",
96
103
  nullable: true
97
- }), _dec26 = (0, _typeorm.Column)({
104
+ }), _dec28 = (0, _typeorm.Column)({
98
105
  type: "varchar",
99
106
  length: "3",
100
107
  default: _currency.DEFAULT_CURRENCY
101
- }), _dec27 = (0, _typeorm.Column)({
108
+ }), _dec29 = (0, _typeorm.Column)({
102
109
  type: "json",
103
110
  nullable: true
104
- }), _dec28 = (0, _typeorm.Column)({
111
+ }), _dec30 = (0, _typeorm.Column)({
105
112
  type: "timestamp with time zone",
106
113
  nullable: true
107
- }), _dec29 = (0, _typeorm.Column)({
114
+ }), _dec31 = (0, _typeorm.Column)({
108
115
  type: "text",
109
116
  nullable: true
110
- }), _dec30 = (0, _typeorm.CreateDateColumn)({
117
+ }), _dec32 = (0, _typeorm.CreateDateColumn)({
111
118
  type: 'timestamp with time zone'
112
- }), _dec31 = (0, _typeorm.UpdateDateColumn)({
119
+ }), _dec33 = (0, _typeorm.UpdateDateColumn)({
113
120
  type: 'timestamp with time zone'
114
- }), _dec32 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec33 = (0, _typeorm.Column)({
121
+ }), _dec34 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec35 = (0, _typeorm.Column)({
115
122
  type: "timestamp with time zone",
116
123
  nullable: true
117
- }), _dec34 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec(_class = (_class2 = class Transaction {
124
+ }), _dec36 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec(_class = (_class2 = class Transaction {
118
125
  constructor() {
119
126
  _initializerDefineProperty(this, "id", _descriptor, this);
120
127
 
@@ -142,25 +149,27 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
142
149
 
143
150
  _initializerDefineProperty(this, "organisation_payment_provider", _descriptor13, this);
144
151
 
145
- _initializerDefineProperty(this, "provider_reference", _descriptor14, this);
152
+ _initializerDefineProperty(this, "tokenisation_provider", _descriptor14, this);
153
+
154
+ _initializerDefineProperty(this, "provider_reference", _descriptor15, this);
146
155
 
147
- _initializerDefineProperty(this, "currency", _descriptor15, this);
156
+ _initializerDefineProperty(this, "currency", _descriptor16, this);
148
157
 
149
- _initializerDefineProperty(this, "provider_metadata", _descriptor16, this);
158
+ _initializerDefineProperty(this, "provider_metadata", _descriptor17, this);
150
159
 
151
- _initializerDefineProperty(this, "completed_at", _descriptor17, this);
160
+ _initializerDefineProperty(this, "completed_at", _descriptor18, this);
152
161
 
153
- _initializerDefineProperty(this, "message", _descriptor18, this);
162
+ _initializerDefineProperty(this, "message", _descriptor19, this);
154
163
 
155
- _initializerDefineProperty(this, "created_at", _descriptor19, this);
164
+ _initializerDefineProperty(this, "created_at", _descriptor20, this);
156
165
 
157
- _initializerDefineProperty(this, "updated_at", _descriptor20, this);
166
+ _initializerDefineProperty(this, "updated_at", _descriptor21, this);
158
167
 
159
- _initializerDefineProperty(this, "batch", _descriptor21, this);
168
+ _initializerDefineProperty(this, "batch", _descriptor22, this);
160
169
 
161
- _initializerDefineProperty(this, "assigned_at", _descriptor22, this);
170
+ _initializerDefineProperty(this, "assigned_at", _descriptor23, this);
162
171
 
163
- _initializerDefineProperty(this, "settlement", _descriptor23, this);
172
+ _initializerDefineProperty(this, "settlement", _descriptor24, this);
164
173
  }
165
174
 
166
175
  getPublicData() {
@@ -358,56 +367,63 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
358
367
  initializer: function () {
359
368
  return _organisationPaymentProvider.default;
360
369
  }
361
- }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "provider_reference", [_dec25], {
370
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "tokenisation_provider", [_dec25, _dec26], {
371
+ configurable: true,
372
+ enumerable: true,
373
+ writable: true,
374
+ initializer: function () {
375
+ return _tokenisationProvider.default;
376
+ }
377
+ }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "provider_reference", [_dec27], {
362
378
  configurable: true,
363
379
  enumerable: true,
364
380
  writable: true,
365
381
  initializer: function () {
366
382
  return "";
367
383
  }
368
- }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec26], {
384
+ }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec28], {
369
385
  configurable: true,
370
386
  enumerable: true,
371
387
  writable: true,
372
388
  initializer: function () {
373
389
  return _currency.DEFAULT_CURRENCY;
374
390
  }
375
- }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "provider_metadata", [_dec27], {
391
+ }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "provider_metadata", [_dec29], {
376
392
  configurable: true,
377
393
  enumerable: true,
378
394
  writable: true,
379
395
  initializer: null
380
- }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec28], {
396
+ }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec30], {
381
397
  configurable: true,
382
398
  enumerable: true,
383
399
  writable: true,
384
400
  initializer: null
385
- }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec29], {
401
+ }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec31], {
386
402
  configurable: true,
387
403
  enumerable: true,
388
404
  writable: true,
389
405
  initializer: null
390
- }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec30], {
406
+ }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec32], {
391
407
  configurable: true,
392
408
  enumerable: true,
393
409
  writable: true,
394
410
  initializer: null
395
- }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec31], {
411
+ }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec33], {
396
412
  configurable: true,
397
413
  enumerable: true,
398
414
  writable: true,
399
415
  initializer: null
400
- }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec32], {
416
+ }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec34], {
401
417
  configurable: true,
402
418
  enumerable: true,
403
419
  writable: true,
404
420
  initializer: null
405
- }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec33], {
421
+ }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec35], {
406
422
  configurable: true,
407
423
  enumerable: true,
408
424
  writable: true,
409
425
  initializer: null
410
- }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec34], {
426
+ }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec36], {
411
427
  configurable: true,
412
428
  enumerable: true,
413
429
  writable: true,
@@ -0,0 +1,21 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class tokenisationProviderLinks1692784096414 {
4
+ name = 'tokenisationProviderLinks1692784096414'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "payment"."tokenisation_provider" ADD "display_name" character varying(250)`);
8
+ await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" ADD "tokenisation_provider_id" character varying`);
9
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "tokenisation_provider_id" character varying`);
10
+ await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" ADD CONSTRAINT "FK_b8e3120cfd1e8a0548f7831b157" FOREIGN KEY ("tokenisation_provider_id") REFERENCES "payment"."tokenisation_provider"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
11
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD CONSTRAINT "FK_85fc0a2a28257e303931645d424" FOREIGN KEY ("tokenisation_provider_id") REFERENCES "payment"."tokenisation_provider"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
12
+ }
13
+
14
+ async down(queryRunner) {
15
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP CONSTRAINT "FK_85fc0a2a28257e303931645d424"`);
16
+ await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" DROP CONSTRAINT "FK_b8e3120cfd1e8a0548f7831b157"`);
17
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "tokenisation_provider_id"`);
18
+ await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" DROP COLUMN "tokenisation_provider_id"`);
19
+ await queryRunner.query(`ALTER TABLE "payment"."tokenisation_provider" DROP COLUMN "display_name"`);
20
+ }
21
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.17",
3
+ "version": "1.11.18",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {