@felloh-org/lambda-wrapper 1.11.69 → 1.11.71
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/acquirer/bin-rules/index.js +43 -17
- package/dist/entity/basis-theory/token/index.js +36 -10
- package/dist/migration/acquirer/1705493819447-bin_rules_country.js +19 -0
- package/dist/migration/basis-theory/1705330136016-basis_theory_token_bin_brand.js +15 -0
- package/package.json +1 -1
|
@@ -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: "
|
|
54
|
+
length: "128",
|
|
55
55
|
nullable: true
|
|
56
56
|
}), _dec12 = (0, _typeorm.Column)({
|
|
57
57
|
type: "varchar",
|
|
58
|
-
length: "
|
|
58
|
+
length: "128",
|
|
59
59
|
nullable: true
|
|
60
60
|
}), _dec13 = (0, _typeorm.Column)({
|
|
61
61
|
type: "varchar",
|
|
62
|
-
length: "
|
|
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
|
-
}),
|
|
76
|
+
}), _dec17 = (0, _typeorm.Column)('decimal', {
|
|
69
77
|
precision: 6,
|
|
70
78
|
scale: 2,
|
|
71
79
|
nullable: true
|
|
72
|
-
}),
|
|
80
|
+
}), _dec18 = (0, _typeorm.Column)({
|
|
73
81
|
type: "int",
|
|
74
82
|
nullable: true
|
|
75
|
-
}),
|
|
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, "
|
|
105
|
+
_initializerDefineProperty(this, "countryInclude", _descriptor11, this);
|
|
106
|
+
|
|
107
|
+
_initializerDefineProperty(this, "countryExclude", _descriptor12, this);
|
|
98
108
|
|
|
99
|
-
_initializerDefineProperty(this, "
|
|
109
|
+
_initializerDefineProperty(this, "message", _descriptor13, this);
|
|
100
110
|
|
|
101
|
-
_initializerDefineProperty(this, "
|
|
111
|
+
_initializerDefineProperty(this, "modifierType", _descriptor14, this);
|
|
102
112
|
|
|
103
|
-
_initializerDefineProperty(this, "
|
|
113
|
+
_initializerDefineProperty(this, "percentage", _descriptor15, this);
|
|
104
114
|
|
|
105
|
-
_initializerDefineProperty(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, "
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
216
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "percentage", [_dec17], {
|
|
191
217
|
configurable: true,
|
|
192
218
|
enumerable: true,
|
|
193
219
|
writable: true,
|
|
194
220
|
initializer: null
|
|
195
|
-
}),
|
|
221
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec18], {
|
|
196
222
|
configurable: true,
|
|
197
223
|
enumerable: true,
|
|
198
224
|
writable: true,
|
|
199
225
|
initializer: null
|
|
200
|
-
}),
|
|
226
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec19], {
|
|
201
227
|
configurable: true,
|
|
202
228
|
enumerable: true,
|
|
203
229
|
writable: true,
|
|
@@ -9,7 +9,7 @@ var _typeorm = require("typeorm");
|
|
|
9
9
|
|
|
10
10
|
var _customer = _interopRequireDefault(require("../../payment/customer"));
|
|
11
11
|
|
|
12
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
|
|
12
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
@@ -37,11 +37,19 @@ let Token = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
37
37
|
}), _dec6 = (0, _typeorm.Column)({
|
|
38
38
|
type: "boolean",
|
|
39
39
|
default: false
|
|
40
|
-
}), _dec7 = (0, _typeorm.
|
|
40
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
41
|
+
type: "varchar",
|
|
42
|
+
length: "10",
|
|
43
|
+
nullable: true
|
|
44
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
45
|
+
type: "varchar",
|
|
46
|
+
length: "20",
|
|
47
|
+
nullable: true
|
|
48
|
+
}), _dec9 = (0, _typeorm.CreateDateColumn)({
|
|
41
49
|
type: 'timestamp with time zone'
|
|
42
|
-
}),
|
|
50
|
+
}), _dec10 = (0, _typeorm.UpdateDateColumn)({
|
|
43
51
|
type: 'timestamp with time zone'
|
|
44
|
-
}),
|
|
52
|
+
}), _dec11 = (0, _typeorm.DeleteDateColumn)({
|
|
45
53
|
type: 'timestamp with time zone',
|
|
46
54
|
nullable: true
|
|
47
55
|
}), _dec(_class = (_class2 = class Token {
|
|
@@ -54,11 +62,15 @@ let Token = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
54
62
|
|
|
55
63
|
_initializerDefineProperty(this, "store_token", _descriptor4, this);
|
|
56
64
|
|
|
57
|
-
_initializerDefineProperty(this, "
|
|
65
|
+
_initializerDefineProperty(this, "bin", _descriptor5, this);
|
|
66
|
+
|
|
67
|
+
_initializerDefineProperty(this, "card_brand", _descriptor6, this);
|
|
58
68
|
|
|
59
|
-
_initializerDefineProperty(this, "
|
|
69
|
+
_initializerDefineProperty(this, "created_at", _descriptor7, this);
|
|
60
70
|
|
|
61
|
-
_initializerDefineProperty(this, "
|
|
71
|
+
_initializerDefineProperty(this, "updated_at", _descriptor8, this);
|
|
72
|
+
|
|
73
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor9, this);
|
|
62
74
|
}
|
|
63
75
|
|
|
64
76
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -89,17 +101,31 @@ let Token = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
89
101
|
initializer: function () {
|
|
90
102
|
return false;
|
|
91
103
|
}
|
|
92
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
104
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "bin", [_dec7], {
|
|
105
|
+
configurable: true,
|
|
106
|
+
enumerable: true,
|
|
107
|
+
writable: true,
|
|
108
|
+
initializer: function () {
|
|
109
|
+
return "";
|
|
110
|
+
}
|
|
111
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "card_brand", [_dec8], {
|
|
112
|
+
configurable: true,
|
|
113
|
+
enumerable: true,
|
|
114
|
+
writable: true,
|
|
115
|
+
initializer: function () {
|
|
116
|
+
return "";
|
|
117
|
+
}
|
|
118
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec9], {
|
|
93
119
|
configurable: true,
|
|
94
120
|
enumerable: true,
|
|
95
121
|
writable: true,
|
|
96
122
|
initializer: null
|
|
97
|
-
}),
|
|
123
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec10], {
|
|
98
124
|
configurable: true,
|
|
99
125
|
enumerable: true,
|
|
100
126
|
writable: true,
|
|
101
127
|
initializer: null
|
|
102
|
-
}),
|
|
128
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec11], {
|
|
103
129
|
configurable: true,
|
|
104
130
|
enumerable: true,
|
|
105
131
|
writable: true,
|
|
@@ -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,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class basisTheoryTokenBinBrand1705330136016 {
|
|
4
|
+
name = 'basisTheoryTokenBinBrand1705330136016'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" ADD "bin" character varying(10)`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" ADD "card_brand" character varying(20)`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" DROP COLUMN "card_brand"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" DROP COLUMN "bin"`);
|
|
14
|
+
}
|
|
15
|
+
}
|