@felloh-org/lambda-wrapper 1.11.64 → 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.Column)({
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
- }), _dec29 = (0, _typeorm.Column)({
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: "timestamp with time zone",
119
+ type: "json",
119
120
  nullable: true
120
121
  }), _dec32 = (0, _typeorm.Column)({
121
- type: "text",
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
- }), _dec35 = (0, _typeorm.Column)({
134
+ }), _dec36 = (0, _typeorm.Column)({
131
135
  type: "varchar",
132
136
  nullable: true
133
- }), _dec36 = (0, _typeorm.CreateDateColumn)({
137
+ }), _dec37 = (0, _typeorm.CreateDateColumn)({
134
138
  type: 'timestamp with time zone'
135
- }), _dec37 = (0, _typeorm.UpdateDateColumn)({
139
+ }), _dec38 = (0, _typeorm.UpdateDateColumn)({
136
140
  type: 'timestamp with time zone'
137
- }), _dec38 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec39 = (0, _typeorm.Column)({
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
- }), _dec40 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec41 = (0, _typeorm.ManyToOne)(() => _customer.default, {
144
+ }), _dec41 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec42 = (0, _typeorm.ManyToOne)(() => _customer.default, {
141
145
  nullable: true
142
- }), _dec42 = (0, _typeorm.JoinColumn)({
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, "provider_reference", _descriptor16, this);
181
+ _initializerDefineProperty(this, "surcharge", _descriptor16, this);
178
182
 
179
- _initializerDefineProperty(this, "currency", _descriptor17, this);
183
+ _initializerDefineProperty(this, "provider_reference", _descriptor17, this);
180
184
 
181
- _initializerDefineProperty(this, "provider_metadata", _descriptor18, this);
185
+ _initializerDefineProperty(this, "currency", _descriptor18, this);
182
186
 
183
- _initializerDefineProperty(this, "completed_at", _descriptor19, this);
187
+ _initializerDefineProperty(this, "provider_metadata", _descriptor19, this);
184
188
 
185
- _initializerDefineProperty(this, "message", _descriptor20, this);
189
+ _initializerDefineProperty(this, "completed_at", _descriptor20, this);
186
190
 
187
- _initializerDefineProperty(this, "user_agent", _descriptor21, this);
191
+ _initializerDefineProperty(this, "message", _descriptor21, this);
188
192
 
189
- _initializerDefineProperty(this, "ip_address", _descriptor22, this);
193
+ _initializerDefineProperty(this, "user_agent", _descriptor22, this);
190
194
 
191
- _initializerDefineProperty(this, "fingerprint", _descriptor23, this);
195
+ _initializerDefineProperty(this, "ip_address", _descriptor23, this);
192
196
 
193
- _initializerDefineProperty(this, "created_at", _descriptor24, this);
197
+ _initializerDefineProperty(this, "fingerprint", _descriptor24, this);
194
198
 
195
- _initializerDefineProperty(this, "updated_at", _descriptor25, this);
199
+ _initializerDefineProperty(this, "created_at", _descriptor25, this);
196
200
 
197
- _initializerDefineProperty(this, "batch", _descriptor26, this);
201
+ _initializerDefineProperty(this, "updated_at", _descriptor26, this);
198
202
 
199
- _initializerDefineProperty(this, "assigned_at", _descriptor27, this);
203
+ _initializerDefineProperty(this, "batch", _descriptor27, this);
200
204
 
201
- _initializerDefineProperty(this, "settlement", _descriptor28, this);
205
+ _initializerDefineProperty(this, "assigned_at", _descriptor28, this);
202
206
 
203
- _initializerDefineProperty(this, "customer", _descriptor29, 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, "provider_reference", [_dec28], {
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
- }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec29], {
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
- }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "provider_metadata", [_dec30], {
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
- }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec31], {
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
- }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec32], {
464
+ }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec33], {
454
465
  configurable: true,
455
466
  enumerable: true,
456
467
  writable: true,
457
468
  initializer: null
458
- }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "user_agent", [_dec33], {
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
- }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "ip_address", [_dec34], {
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
- }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "fingerprint", [_dec35], {
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
- }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec36], {
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
- }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec37], {
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
- }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec38], {
498
+ }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec39], {
488
499
  configurable: true,
489
500
  enumerable: true,
490
501
  writable: true,
491
502
  initializer: null
492
- }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec39], {
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
- }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec40], {
508
+ }), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec41], {
498
509
  configurable: true,
499
510
  enumerable: true,
500
511
  writable: true,
501
512
  initializer: null
502
- }), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, "customer", [_dec41, _dec42], {
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);
@@ -33,8 +33,10 @@ var _organisationPartner = _interopRequireDefault(require("./organisation-partne
33
33
 
34
34
  var _webhookLog = _interopRequireDefault(require("./webhook-log"));
35
35
 
36
+ var _mailerLog = _interopRequireDefault(require("./mailer-log"));
37
+
36
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
39
 
38
- const ENTITIES = [_feature.default, _loginLink.default, _organisation.default, _organisationFeature.default, _organisationPartner.default, _organisationPayoutConfig.default, _organisationType.default, _organisationWebhook.default, _role.default, _user.default, _userActivity.default, _userRole.default, _webhookLog.default, _webhookTypes.default];
40
+ const ENTITIES = [_feature.default, _loginLink.default, _organisation.default, _organisationFeature.default, _organisationPartner.default, _organisationPayoutConfig.default, _organisationType.default, _organisationWebhook.default, _role.default, _user.default, _userActivity.default, _userRole.default, _webhookLog.default, _webhookTypes.default, _mailerLog.default];
39
41
 
40
42
  var _default = exports.default = ENTITIES;
@@ -0,0 +1,75 @@
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, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
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 MailerLog = exports.default = (_dec = (0, _typeorm.Entity)({
19
+ name: 'mailer_log',
20
+ schema: 'user'
21
+ }), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
22
+ type: "varchar",
23
+ length: "150"
24
+ }), _dec4 = (0, _typeorm.Column)({
25
+ type: "varchar",
26
+ length: "100"
27
+ }), _dec5 = (0, _typeorm.CreateDateColumn)({
28
+ type: 'timestamp with time zone',
29
+ default: () => 'NOW()'
30
+ }), _dec6 = (0, _typeorm.UpdateDateColumn)({
31
+ type: 'timestamp with time zone',
32
+ default: () => 'NOW()'
33
+ }), _dec(_class = (_class2 = class MailerLog {
34
+ constructor() {
35
+ _initializerDefineProperty(this, "id", _descriptor, this);
36
+
37
+ _initializerDefineProperty(this, "email", _descriptor2, this);
38
+
39
+ _initializerDefineProperty(this, "template", _descriptor3, this);
40
+
41
+ _initializerDefineProperty(this, "created_at", _descriptor4, this);
42
+
43
+ _initializerDefineProperty(this, "updated_at", _descriptor5, this);
44
+ }
45
+
46
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
47
+ configurable: true,
48
+ enumerable: true,
49
+ writable: true,
50
+ initializer: null
51
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "email", [_dec3], {
52
+ configurable: true,
53
+ enumerable: true,
54
+ writable: true,
55
+ initializer: function () {
56
+ return "";
57
+ }
58
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "template", [_dec4], {
59
+ configurable: true,
60
+ enumerable: true,
61
+ writable: true,
62
+ initializer: function () {
63
+ return "";
64
+ }
65
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec5], {
66
+ configurable: true,
67
+ enumerable: true,
68
+ writable: true,
69
+ initializer: null
70
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec6], {
71
+ configurable: true,
72
+ enumerable: true,
73
+ writable: true,
74
+ initializer: null
75
+ })), _class2)) || _class);
@@ -9,7 +9,7 @@ var _typeorm = require("typeorm");
9
9
 
10
10
  var _organisationWebhook = _interopRequireDefault(require("../organisation-webhook"));
11
11
 
12
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
12
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
@@ -28,10 +28,13 @@ let WebhookLog = exports.default = (_dec = (0, _typeorm.Entity)({
28
28
  }), _dec5 = (0, _typeorm.Column)({
29
29
  type: "boolean",
30
30
  default: false
31
- }), _dec6 = (0, _typeorm.CreateDateColumn)({
31
+ }), _dec6 = (0, _typeorm.Column)({
32
+ type: "text",
33
+ nullable: true
34
+ }), _dec7 = (0, _typeorm.CreateDateColumn)({
32
35
  type: 'timestamp with time zone',
33
36
  default: () => 'NOW()'
34
- }), _dec7 = (0, _typeorm.UpdateDateColumn)({
37
+ }), _dec8 = (0, _typeorm.UpdateDateColumn)({
35
38
  type: 'timestamp with time zone',
36
39
  default: () => 'NOW()'
37
40
  }), _dec(_class = (_class2 = class WebhookLog {
@@ -42,9 +45,11 @@ let WebhookLog = exports.default = (_dec = (0, _typeorm.Entity)({
42
45
 
43
46
  _initializerDefineProperty(this, "is_success", _descriptor3, this);
44
47
 
45
- _initializerDefineProperty(this, "created_at", _descriptor4, this);
48
+ _initializerDefineProperty(this, "response", _descriptor4, this);
46
49
 
47
- _initializerDefineProperty(this, "updated_at", _descriptor5, this);
50
+ _initializerDefineProperty(this, "created_at", _descriptor5, this);
51
+
52
+ _initializerDefineProperty(this, "updated_at", _descriptor6, this);
48
53
  }
49
54
 
50
55
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -66,12 +71,17 @@ let WebhookLog = exports.default = (_dec = (0, _typeorm.Entity)({
66
71
  initializer: function () {
67
72
  return false;
68
73
  }
69
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
74
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "response", [_dec6], {
75
+ configurable: true,
76
+ enumerable: true,
77
+ writable: true,
78
+ initializer: null
79
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
70
80
  configurable: true,
71
81
  enumerable: true,
72
82
  writable: true,
73
83
  initializer: null
74
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec7], {
84
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec8], {
75
85
  configurable: true,
76
86
  enumerable: true,
77
87
  writable: true,
package/dist/index.js CHANGED
@@ -219,6 +219,12 @@ Object.defineProperty(exports, "LoginLinkEntity", {
219
219
  return _loginLink.default;
220
220
  }
221
221
  });
222
+ Object.defineProperty(exports, "MailerLog", {
223
+ enumerable: true,
224
+ get: function () {
225
+ return _mailerLog.default;
226
+ }
227
+ });
222
228
  Object.defineProperty(exports, "Model", {
223
229
  enumerable: true,
224
230
  get: function () {
@@ -603,6 +609,12 @@ Object.defineProperty(exports, "TransactionStatusEntity", {
603
609
  return _transactionStatus.default;
604
610
  }
605
611
  });
612
+ Object.defineProperty(exports, "TransactionSurchargeEntity", {
613
+ enumerable: true,
614
+ get: function () {
615
+ return _transactionSurcharge.default;
616
+ }
617
+ });
606
618
  Object.defineProperty(exports, "TransactionTypeEntity", {
607
619
  enumerable: true,
608
620
  get: function () {
@@ -786,6 +798,8 @@ var _refund = _interopRequireDefault(require("./entity/payment/refund"));
786
798
 
787
799
  var _refundStatus = _interopRequireDefault(require("./entity/payment/refund-status"));
788
800
 
801
+ var _transactionSurcharge = _interopRequireDefault(require("./entity/payment/transaction-surcharge"));
802
+
789
803
  var _country = _interopRequireDefault(require("./entity/reference/country"));
790
804
 
791
805
  var _transaction3 = _interopRequireDefault(require("./entity/total-processing/transaction"));
@@ -836,6 +850,8 @@ var _organisationPartner = _interopRequireDefault(require("./entity/user/organis
836
850
 
837
851
  var _webhookLog = _interopRequireDefault(require("./entity/user/webhook-log"));
838
852
 
853
+ var _mailerLog = _interopRequireDefault(require("./entity/user/mailer-log"));
854
+
839
855
  var _batch3 = _interopRequireDefault(require("./entity/nuvei/batch"));
840
856
 
841
857
  var _merchant2 = _interopRequireDefault(require("./entity/nuvei/merchant"));
@@ -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
+ }
@@ -0,0 +1,15 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class webhookResponse1704271899435 {
4
+ name = 'webhookResponse1704271899435'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`CREATE TABLE "user"."mailer_log" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "email" character varying(150) NOT NULL, "template" character varying(100) NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), CONSTRAINT "PK_8f2f1bf1151bf572199fb251081" PRIMARY KEY ("id"))`);
8
+ await queryRunner.query(`ALTER TABLE "user"."webhook_log" ADD "response" text`);
9
+ }
10
+
11
+ async down(queryRunner) {
12
+ await queryRunner.query(`ALTER TABLE "user"."webhook_log" DROP COLUMN "response"`);
13
+ await queryRunner.query(`DROP TABLE "user"."mailer_log"`);
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.64",
3
+ "version": "1.11.66",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {