@felloh-org/lambda-wrapper 1.11.70 → 1.11.72

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.
@@ -9,7 +9,7 @@ var _typeorm = require("typeorm");
9
9
 
10
10
  var _organisation = _interopRequireDefault(require("../../user/organisation"));
11
11
 
12
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
12
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
@@ -51,28 +51,36 @@ let BinRules = exports.default = (_dec = (0, _typeorm.Entity)({
51
51
  nullable: true
52
52
  }), _dec11 = (0, _typeorm.Column)({
53
53
  type: "varchar",
54
- length: "5",
54
+ length: "128",
55
55
  nullable: true
56
56
  }), _dec12 = (0, _typeorm.Column)({
57
57
  type: "varchar",
58
- length: "5",
58
+ length: "128",
59
59
  nullable: true
60
60
  }), _dec13 = (0, _typeorm.Column)({
61
61
  type: "varchar",
62
- length: "512",
62
+ length: "128",
63
63
  nullable: true
64
64
  }), _dec14 = (0, _typeorm.Column)({
65
+ type: "varchar",
66
+ length: "128",
67
+ nullable: true
68
+ }), _dec15 = (0, _typeorm.Column)({
69
+ type: "varchar",
70
+ length: "512",
71
+ nullable: true
72
+ }), _dec16 = (0, _typeorm.Column)({
65
73
  type: "varchar",
66
74
  length: "10",
67
75
  nullable: true
68
- }), _dec15 = (0, _typeorm.Column)('decimal', {
76
+ }), _dec17 = (0, _typeorm.Column)('decimal', {
69
77
  precision: 6,
70
78
  scale: 2,
71
79
  nullable: true
72
- }), _dec16 = (0, _typeorm.Column)({
80
+ }), _dec18 = (0, _typeorm.Column)({
73
81
  type: "int",
74
82
  nullable: true
75
- }), _dec17 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class BinRules {
83
+ }), _dec19 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class BinRules {
76
84
  constructor() {
77
85
  _initializerDefineProperty(this, "id", _descriptor, this);
78
86
 
@@ -94,15 +102,19 @@ let BinRules = exports.default = (_dec = (0, _typeorm.Entity)({
94
102
 
95
103
  _initializerDefineProperty(this, "currencyExclude", _descriptor10, this);
96
104
 
97
- _initializerDefineProperty(this, "message", _descriptor11, this);
105
+ _initializerDefineProperty(this, "countryInclude", _descriptor11, this);
106
+
107
+ _initializerDefineProperty(this, "countryExclude", _descriptor12, this);
98
108
 
99
- _initializerDefineProperty(this, "modifierType", _descriptor12, this);
109
+ _initializerDefineProperty(this, "message", _descriptor13, this);
100
110
 
101
- _initializerDefineProperty(this, "percentage", _descriptor13, this);
111
+ _initializerDefineProperty(this, "modifierType", _descriptor14, this);
102
112
 
103
- _initializerDefineProperty(this, "amount", _descriptor14, this);
113
+ _initializerDefineProperty(this, "percentage", _descriptor15, this);
104
114
 
105
- _initializerDefineProperty(this, "created_at", _descriptor15, this);
115
+ _initializerDefineProperty(this, "amount", _descriptor16, this);
116
+
117
+ _initializerDefineProperty(this, "created_at", _descriptor17, this);
106
118
  }
107
119
 
108
120
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -173,31 +185,45 @@ let BinRules = exports.default = (_dec = (0, _typeorm.Entity)({
173
185
  initializer: function () {
174
186
  return "";
175
187
  }
176
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec13], {
188
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "countryInclude", [_dec13], {
189
+ configurable: true,
190
+ enumerable: true,
191
+ writable: true,
192
+ initializer: function () {
193
+ return "";
194
+ }
195
+ }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "countryExclude", [_dec14], {
196
+ configurable: true,
197
+ enumerable: true,
198
+ writable: true,
199
+ initializer: function () {
200
+ return "";
201
+ }
202
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec15], {
177
203
  configurable: true,
178
204
  enumerable: true,
179
205
  writable: true,
180
206
  initializer: function () {
181
207
  return "";
182
208
  }
183
- }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "modifierType", [_dec14], {
209
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "modifierType", [_dec16], {
184
210
  configurable: true,
185
211
  enumerable: true,
186
212
  writable: true,
187
213
  initializer: function () {
188
214
  return "";
189
215
  }
190
- }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "percentage", [_dec15], {
216
+ }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "percentage", [_dec17], {
191
217
  configurable: true,
192
218
  enumerable: true,
193
219
  writable: true,
194
220
  initializer: null
195
- }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec16], {
221
+ }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec18], {
196
222
  configurable: true,
197
223
  enumerable: true,
198
224
  writable: true,
199
225
  initializer: null
200
- }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec17], {
226
+ }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec19], {
201
227
  configurable: true,
202
228
  enumerable: true,
203
229
  writable: true,
@@ -49,8 +49,10 @@ var _refundStatus = _interopRequireDefault(require("./refund-status"));
49
49
 
50
50
  var _transactionSurcharge = _interopRequireDefault(require("./transaction-surcharge"));
51
51
 
52
+ var _organisationTokenisationProvider = _interopRequireDefault(require("./organisation-tokenisation-provider"));
53
+
52
54
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
53
55
 
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];
56
+ const ENTITIES = [_chargeback.default, _creditNote.default, _customer.default, _ecommerce.default, _organisationPaymentProvider.default, _organisationPaymentProviderMethod.default, _organisationTokenisationProvider.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];
55
57
 
56
58
  var _default = exports.default = ENTITIES;
@@ -0,0 +1,79 @@
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 _uuid = require("uuid");
11
+
12
+ var _organisation = _interopRequireDefault(require("../../user/organisation"));
13
+
14
+ var _tokenisationProvider = _interopRequireDefault(require("../tokenisation-provider"));
15
+
16
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ 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 }); }
21
+
22
+ 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; }
23
+
24
+ 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.'); }
25
+
26
+ let OrganisationTokenisationProvider = exports.default = (_dec = (0, _typeorm.Entity)({
27
+ name: 'organisation_tokenisation_provider',
28
+ schema: 'payment'
29
+ }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec4 = (0, _typeorm.JoinColumn)({
30
+ name: 'organisation_id',
31
+ referencedColumnName: 'id'
32
+ }), _dec5 = (0, _typeorm.ManyToOne)(() => _tokenisationProvider.default), _dec6 = (0, _typeorm.JoinColumn)({
33
+ name: 'tokenisation_provider_id',
34
+ referencedColumnName: 'id'
35
+ }), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec8 = (0, _typeorm.UpdateDateColumn)(), _dec(_class = (_class2 = class OrganisationTokenisationProvider {
36
+ constructor() {
37
+ _initializerDefineProperty(this, "id", _descriptor, this);
38
+
39
+ _initializerDefineProperty(this, "organisation", _descriptor2, this);
40
+
41
+ _initializerDefineProperty(this, "tokenisation_provider", _descriptor3, this);
42
+
43
+ _initializerDefineProperty(this, "created_at", _descriptor4, this);
44
+
45
+ _initializerDefineProperty(this, "updated_at", _descriptor5, this);
46
+ }
47
+
48
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
49
+ configurable: true,
50
+ enumerable: true,
51
+ writable: true,
52
+ initializer: function () {
53
+ return (0, _uuid.v4)();
54
+ }
55
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec3, _dec4], {
56
+ configurable: true,
57
+ enumerable: true,
58
+ writable: true,
59
+ initializer: function () {
60
+ return _organisation.default;
61
+ }
62
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "tokenisation_provider", [_dec5, _dec6], {
63
+ configurable: true,
64
+ enumerable: true,
65
+ writable: true,
66
+ initializer: function () {
67
+ return _tokenisationProvider.default;
68
+ }
69
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
70
+ configurable: true,
71
+ enumerable: true,
72
+ writable: true,
73
+ initializer: null
74
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec8], {
75
+ configurable: true,
76
+ enumerable: true,
77
+ writable: true,
78
+ initializer: null
79
+ })), _class2)) || _class);
package/dist/index.js CHANGED
@@ -321,6 +321,12 @@ Object.defineProperty(exports, "OrganisationPayoutConfigEntity", {
321
321
  return _organisationPayoutConfig.default;
322
322
  }
323
323
  });
324
+ Object.defineProperty(exports, "OrganisationTokenisationProviderEntity", {
325
+ enumerable: true,
326
+ get: function () {
327
+ return _organisationTokenisationProvider.default;
328
+ }
329
+ });
324
330
  Object.defineProperty(exports, "OrganisationWebhookEntity", {
325
331
  enumerable: true,
326
332
  get: function () {
@@ -772,6 +778,8 @@ var _customer = _interopRequireDefault(require("./entity/payment/customer"));
772
778
 
773
779
  var _organisationPaymentProviderMethod = _interopRequireDefault(require("./entity/payment/organisation-payment-provider-method"));
774
780
 
781
+ var _organisationTokenisationProvider = _interopRequireDefault(require("./entity/payment/organisation-tokenisation-provider"));
782
+
775
783
  var _paymentLink = _interopRequireDefault(require("./entity/payment/payment-link"));
776
784
 
777
785
  var _paymentLinkType = _interopRequireDefault(require("./entity/payment/payment-link-type"));
@@ -0,0 +1,19 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class binRulesCountry1705493819447 {
4
+ name = 'binRulesCountry1705493819447'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ADD "countryInclude" character varying(128)`);
8
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ADD "countryExclude" character varying(128)`);
9
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ALTER COLUMN "currencyInclude" TYPE varchar(128)`);
10
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ALTER COLUMN "currencyExclude" TYPE varchar(128)`);
11
+ }
12
+
13
+ async down(queryRunner) {
14
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" DROP COLUMN "countryInclude"`);
15
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" DROP COLUMN "countryExclude"`);
16
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ALTER COLUMN "currencyInclude" TYPE varchar(5)`);
17
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ALTER COLUMN "currencyExclude" TYPE varchar(5)`);
18
+ }
19
+ }
@@ -0,0 +1,17 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class orgTokenisationProvider1705495053739 {
4
+ name = 'orgTokenisationProvider1705495053739'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`CREATE TABLE "payment"."organisation_tokenisation_provider" ("id" character varying NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "updated_at" TIMESTAMP NOT NULL DEFAULT now(), "organisation_id" character varying(150), "tokenisation_provider_id" character varying, CONSTRAINT "PK_7c6436cfe326d95b333b8bb92ea" PRIMARY KEY ("id"))`);
8
+ await queryRunner.query(`ALTER TABLE "payment"."organisation_tokenisation_provider" ADD CONSTRAINT "FK_b714375ff13ab6152fe2522a617" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
9
+ await queryRunner.query(`ALTER TABLE "payment"."organisation_tokenisation_provider" ADD CONSTRAINT "FK_691b2217274cfcdc296fb976ab4" FOREIGN KEY ("tokenisation_provider_id") REFERENCES "payment"."tokenisation_provider"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
10
+ }
11
+
12
+ async down(queryRunner) {
13
+ await queryRunner.query(`ALTER TABLE "payment"."organisation_tokenisation_provider" DROP CONSTRAINT "FK_691b2217274cfcdc296fb976ab4"`);
14
+ await queryRunner.query(`ALTER TABLE "payment"."organisation_tokenisation_provider" DROP CONSTRAINT "FK_b714375ff13ab6152fe2522a617"`);
15
+ await queryRunner.query(`DROP TABLE "payment"."organisation_tokenisation_provider"`);
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.70",
3
+ "version": "1.11.72",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {