@felloh-org/lambda-wrapper 1.11.18 → 1.11.20
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/index.js +143 -0
- package/dist/entity/acquirer/bin-rules/index.js +204 -0
- package/dist/entity/acquirer/index.js +5 -1
- package/dist/index.js +16 -0
- package/dist/migration/acquirer/1692873462263-acquirer_bin_list.js +13 -0
- package/dist/migration/acquirer/1692877747460-acquirer_bin_rules.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,143 @@
|
|
|
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, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
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 Bin = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'bin',
|
|
20
|
+
schema: 'acquirer'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
|
|
22
|
+
type: "varchar",
|
|
23
|
+
length: "10",
|
|
24
|
+
nullable: true
|
|
25
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
26
|
+
type: "varchar",
|
|
27
|
+
length: "128",
|
|
28
|
+
nullable: true
|
|
29
|
+
}), _dec5 = (0, _typeorm.Column)({
|
|
30
|
+
type: "varchar",
|
|
31
|
+
length: "128",
|
|
32
|
+
nullable: true
|
|
33
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
34
|
+
type: "varchar",
|
|
35
|
+
length: "128",
|
|
36
|
+
nullable: true
|
|
37
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
38
|
+
type: "varchar",
|
|
39
|
+
length: "128",
|
|
40
|
+
nullable: true
|
|
41
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
42
|
+
type: "varchar",
|
|
43
|
+
length: "1024",
|
|
44
|
+
nullable: true
|
|
45
|
+
}), _dec9 = (0, _typeorm.Column)({
|
|
46
|
+
type: "varchar",
|
|
47
|
+
length: "5",
|
|
48
|
+
nullable: true
|
|
49
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
50
|
+
type: "varchar",
|
|
51
|
+
length: "5",
|
|
52
|
+
nullable: true
|
|
53
|
+
}), _dec11 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Bin {
|
|
54
|
+
constructor() {
|
|
55
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
56
|
+
|
|
57
|
+
_initializerDefineProperty(this, "number", _descriptor2, this);
|
|
58
|
+
|
|
59
|
+
_initializerDefineProperty(this, "scheme", _descriptor3, this);
|
|
60
|
+
|
|
61
|
+
_initializerDefineProperty(this, "brand", _descriptor4, this);
|
|
62
|
+
|
|
63
|
+
_initializerDefineProperty(this, "type", _descriptor5, this);
|
|
64
|
+
|
|
65
|
+
_initializerDefineProperty(this, "level", _descriptor6, this);
|
|
66
|
+
|
|
67
|
+
_initializerDefineProperty(this, "issuer", _descriptor7, this);
|
|
68
|
+
|
|
69
|
+
_initializerDefineProperty(this, "currency", _descriptor8, this);
|
|
70
|
+
|
|
71
|
+
_initializerDefineProperty(this, "country", _descriptor9, this);
|
|
72
|
+
|
|
73
|
+
_initializerDefineProperty(this, "created_at", _descriptor10, this);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
77
|
+
configurable: true,
|
|
78
|
+
enumerable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
initializer: null
|
|
81
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "number", [_dec3], {
|
|
82
|
+
configurable: true,
|
|
83
|
+
enumerable: true,
|
|
84
|
+
writable: true,
|
|
85
|
+
initializer: function () {
|
|
86
|
+
return "";
|
|
87
|
+
}
|
|
88
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "scheme", [_dec4], {
|
|
89
|
+
configurable: true,
|
|
90
|
+
enumerable: true,
|
|
91
|
+
writable: true,
|
|
92
|
+
initializer: function () {
|
|
93
|
+
return "";
|
|
94
|
+
}
|
|
95
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "brand", [_dec5], {
|
|
96
|
+
configurable: true,
|
|
97
|
+
enumerable: true,
|
|
98
|
+
writable: true,
|
|
99
|
+
initializer: function () {
|
|
100
|
+
return "";
|
|
101
|
+
}
|
|
102
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "type", [_dec6], {
|
|
103
|
+
configurable: true,
|
|
104
|
+
enumerable: true,
|
|
105
|
+
writable: true,
|
|
106
|
+
initializer: function () {
|
|
107
|
+
return "";
|
|
108
|
+
}
|
|
109
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "level", [_dec7], {
|
|
110
|
+
configurable: true,
|
|
111
|
+
enumerable: true,
|
|
112
|
+
writable: true,
|
|
113
|
+
initializer: function () {
|
|
114
|
+
return "";
|
|
115
|
+
}
|
|
116
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "issuer", [_dec8], {
|
|
117
|
+
configurable: true,
|
|
118
|
+
enumerable: true,
|
|
119
|
+
writable: true,
|
|
120
|
+
initializer: function () {
|
|
121
|
+
return "";
|
|
122
|
+
}
|
|
123
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec9], {
|
|
124
|
+
configurable: true,
|
|
125
|
+
enumerable: true,
|
|
126
|
+
writable: true,
|
|
127
|
+
initializer: function () {
|
|
128
|
+
return "";
|
|
129
|
+
}
|
|
130
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "country", [_dec10], {
|
|
131
|
+
configurable: true,
|
|
132
|
+
enumerable: true,
|
|
133
|
+
writable: true,
|
|
134
|
+
initializer: function () {
|
|
135
|
+
return "";
|
|
136
|
+
}
|
|
137
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec11], {
|
|
138
|
+
configurable: true,
|
|
139
|
+
enumerable: true,
|
|
140
|
+
writable: true,
|
|
141
|
+
initializer: null
|
|
142
|
+
})), _class2)) || _class);
|
|
143
|
+
exports.default = Bin;
|
|
@@ -0,0 +1,204 @@
|
|
|
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 _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
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;
|
|
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 BinRules = (_dec = (0, _typeorm.Entity)({
|
|
23
|
+
name: 'bin_rules',
|
|
24
|
+
schema: 'acquirer'
|
|
25
|
+
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
26
|
+
name: 'organisation_id',
|
|
27
|
+
referencedColumnName: 'id'
|
|
28
|
+
}), _dec5 = (0, _typeorm.Column)({
|
|
29
|
+
type: "varchar",
|
|
30
|
+
length: "128",
|
|
31
|
+
nullable: true
|
|
32
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
33
|
+
type: "varchar",
|
|
34
|
+
length: "128",
|
|
35
|
+
nullable: true
|
|
36
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
37
|
+
type: "varchar",
|
|
38
|
+
length: "128",
|
|
39
|
+
nullable: true
|
|
40
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
41
|
+
type: "varchar",
|
|
42
|
+
length: "128",
|
|
43
|
+
nullable: true
|
|
44
|
+
}), _dec9 = (0, _typeorm.Column)({
|
|
45
|
+
type: "varchar",
|
|
46
|
+
length: "128",
|
|
47
|
+
nullable: true
|
|
48
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
49
|
+
type: "varchar",
|
|
50
|
+
length: "128",
|
|
51
|
+
nullable: true
|
|
52
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
53
|
+
type: "varchar",
|
|
54
|
+
length: "5",
|
|
55
|
+
nullable: true
|
|
56
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
57
|
+
type: "varchar",
|
|
58
|
+
length: "5",
|
|
59
|
+
nullable: true
|
|
60
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
61
|
+
type: "varchar",
|
|
62
|
+
length: "512",
|
|
63
|
+
nullable: true
|
|
64
|
+
}), _dec14 = (0, _typeorm.Column)({
|
|
65
|
+
type: "varchar",
|
|
66
|
+
length: "10",
|
|
67
|
+
nullable: true
|
|
68
|
+
}), _dec15 = (0, _typeorm.Column)('decimal', {
|
|
69
|
+
precision: 6,
|
|
70
|
+
scale: 2
|
|
71
|
+
}), _dec16 = (0, _typeorm.Column)({
|
|
72
|
+
type: "int"
|
|
73
|
+
}), _dec17 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class BinRules {
|
|
74
|
+
constructor() {
|
|
75
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
76
|
+
|
|
77
|
+
_initializerDefineProperty(this, "organisation", _descriptor2, this);
|
|
78
|
+
|
|
79
|
+
_initializerDefineProperty(this, "schemeInclude", _descriptor3, this);
|
|
80
|
+
|
|
81
|
+
_initializerDefineProperty(this, "schemeExclude", _descriptor4, this);
|
|
82
|
+
|
|
83
|
+
_initializerDefineProperty(this, "typeInclude", _descriptor5, this);
|
|
84
|
+
|
|
85
|
+
_initializerDefineProperty(this, "typeExclude", _descriptor6, this);
|
|
86
|
+
|
|
87
|
+
_initializerDefineProperty(this, "levelInclude", _descriptor7, this);
|
|
88
|
+
|
|
89
|
+
_initializerDefineProperty(this, "levelExclude", _descriptor8, this);
|
|
90
|
+
|
|
91
|
+
_initializerDefineProperty(this, "currencyInclude", _descriptor9, this);
|
|
92
|
+
|
|
93
|
+
_initializerDefineProperty(this, "currencyExclude", _descriptor10, this);
|
|
94
|
+
|
|
95
|
+
_initializerDefineProperty(this, "message", _descriptor11, this);
|
|
96
|
+
|
|
97
|
+
_initializerDefineProperty(this, "modifierType", _descriptor12, this);
|
|
98
|
+
|
|
99
|
+
_initializerDefineProperty(this, "percentage", _descriptor13, this);
|
|
100
|
+
|
|
101
|
+
_initializerDefineProperty(this, "amount", _descriptor14, this);
|
|
102
|
+
|
|
103
|
+
_initializerDefineProperty(this, "created_at", _descriptor15, this);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
107
|
+
configurable: true,
|
|
108
|
+
enumerable: true,
|
|
109
|
+
writable: true,
|
|
110
|
+
initializer: null
|
|
111
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec3, _dec4], {
|
|
112
|
+
configurable: true,
|
|
113
|
+
enumerable: true,
|
|
114
|
+
writable: true,
|
|
115
|
+
initializer: function () {
|
|
116
|
+
return _organisation.default;
|
|
117
|
+
}
|
|
118
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "schemeInclude", [_dec5], {
|
|
119
|
+
configurable: true,
|
|
120
|
+
enumerable: true,
|
|
121
|
+
writable: true,
|
|
122
|
+
initializer: function () {
|
|
123
|
+
return "";
|
|
124
|
+
}
|
|
125
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "schemeExclude", [_dec6], {
|
|
126
|
+
configurable: true,
|
|
127
|
+
enumerable: true,
|
|
128
|
+
writable: true,
|
|
129
|
+
initializer: function () {
|
|
130
|
+
return "";
|
|
131
|
+
}
|
|
132
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "typeInclude", [_dec7], {
|
|
133
|
+
configurable: true,
|
|
134
|
+
enumerable: true,
|
|
135
|
+
writable: true,
|
|
136
|
+
initializer: function () {
|
|
137
|
+
return "";
|
|
138
|
+
}
|
|
139
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "typeExclude", [_dec8], {
|
|
140
|
+
configurable: true,
|
|
141
|
+
enumerable: true,
|
|
142
|
+
writable: true,
|
|
143
|
+
initializer: function () {
|
|
144
|
+
return "";
|
|
145
|
+
}
|
|
146
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "levelInclude", [_dec9], {
|
|
147
|
+
configurable: true,
|
|
148
|
+
enumerable: true,
|
|
149
|
+
writable: true,
|
|
150
|
+
initializer: function () {
|
|
151
|
+
return "";
|
|
152
|
+
}
|
|
153
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "levelExclude", [_dec10], {
|
|
154
|
+
configurable: true,
|
|
155
|
+
enumerable: true,
|
|
156
|
+
writable: true,
|
|
157
|
+
initializer: function () {
|
|
158
|
+
return "";
|
|
159
|
+
}
|
|
160
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "currencyInclude", [_dec11], {
|
|
161
|
+
configurable: true,
|
|
162
|
+
enumerable: true,
|
|
163
|
+
writable: true,
|
|
164
|
+
initializer: function () {
|
|
165
|
+
return "";
|
|
166
|
+
}
|
|
167
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "currencyExclude", [_dec12], {
|
|
168
|
+
configurable: true,
|
|
169
|
+
enumerable: true,
|
|
170
|
+
writable: true,
|
|
171
|
+
initializer: function () {
|
|
172
|
+
return "";
|
|
173
|
+
}
|
|
174
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec13], {
|
|
175
|
+
configurable: true,
|
|
176
|
+
enumerable: true,
|
|
177
|
+
writable: true,
|
|
178
|
+
initializer: function () {
|
|
179
|
+
return "";
|
|
180
|
+
}
|
|
181
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "modifierType", [_dec14], {
|
|
182
|
+
configurable: true,
|
|
183
|
+
enumerable: true,
|
|
184
|
+
writable: true,
|
|
185
|
+
initializer: function () {
|
|
186
|
+
return "";
|
|
187
|
+
}
|
|
188
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "percentage", [_dec15], {
|
|
189
|
+
configurable: true,
|
|
190
|
+
enumerable: true,
|
|
191
|
+
writable: true,
|
|
192
|
+
initializer: null
|
|
193
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec16], {
|
|
194
|
+
configurable: true,
|
|
195
|
+
enumerable: true,
|
|
196
|
+
writable: true,
|
|
197
|
+
initializer: null
|
|
198
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec17], {
|
|
199
|
+
configurable: true,
|
|
200
|
+
enumerable: true,
|
|
201
|
+
writable: true,
|
|
202
|
+
initializer: null
|
|
203
|
+
})), _class2)) || _class);
|
|
204
|
+
exports.default = BinRules;
|
|
@@ -11,8 +11,12 @@ var _transactionSettlement = _interopRequireDefault(require("./transaction-settl
|
|
|
11
11
|
|
|
12
12
|
var _adjustment = _interopRequireDefault(require("./adjustment"));
|
|
13
13
|
|
|
14
|
+
var _bin = _interopRequireDefault(require("./bin"));
|
|
15
|
+
|
|
16
|
+
var _binRules = _interopRequireDefault(require("./bin-rules"));
|
|
17
|
+
|
|
14
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
19
|
|
|
16
|
-
const ENTITIES = [_adjustment.default, _batch.default, _transactionSettlement.default];
|
|
20
|
+
const ENTITIES = [_adjustment.default, _batch.default, _bin.default, _binRules.default, _transactionSettlement.default];
|
|
17
21
|
var _default = ENTITIES;
|
|
18
22
|
exports.default = _default;
|
package/dist/index.js
CHANGED
|
@@ -57,6 +57,18 @@ Object.defineProperty(exports, "BenficiaryEntity", {
|
|
|
57
57
|
return _beneficiary.default;
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
Object.defineProperty(exports, "BinEntity", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _bin.default;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "BinRulesEntity", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _binRules.default;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
60
72
|
Object.defineProperty(exports, "BookingBankTransaction", {
|
|
61
73
|
enumerable: true,
|
|
62
74
|
get: function () {
|
|
@@ -658,6 +670,10 @@ var _batch = _interopRequireDefault(require("./entity/acquirer/batch"));
|
|
|
658
670
|
|
|
659
671
|
var _transactionSettlement = _interopRequireDefault(require("./entity/acquirer/transaction-settlement"));
|
|
660
672
|
|
|
673
|
+
var _bin = _interopRequireDefault(require("./entity/acquirer/bin"));
|
|
674
|
+
|
|
675
|
+
var _binRules = _interopRequireDefault(require("./entity/acquirer/bin-rules"));
|
|
676
|
+
|
|
661
677
|
var _booking = _interopRequireDefault(require("./entity/agent-data/booking"));
|
|
662
678
|
|
|
663
679
|
var _bookingComponent = _interopRequireDefault(require("./entity/agent-data/booking-component"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class acquirerBinList1692873462263 {
|
|
4
|
+
name = 'acquirerBinList1692873462263'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "acquirer"."bin" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "number" character varying(10), "scheme" character varying(128), "brand" character varying(128), "type" character varying(128), "level" character varying(128), "issuer" character varying(1024), "currency" character varying(5), "country" character varying(5), "created_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_d7465c0f329ed814805c985d8d1" PRIMARY KEY ("id"))`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`DROP TABLE "acquirer"."bin"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class acquirerBinRules1692877747460 {
|
|
4
|
+
name = 'acquirerBinRules1692877747460'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "acquirer"."bin_rules" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "schemeInclude" character varying(128), "schemeExclude" character varying(128), "typeInclude" character varying(128), "typeExclude" character varying(128), "levelInclude" character varying(128), "levelExclude" character varying(128), "currencyInclude" character varying(5), "currencyExclude" character varying(5), "message" character varying(512), "modifierType" character varying(10), "percentage" numeric(6,2) NOT NULL, "amount" integer NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "organisation_id" character varying(150), CONSTRAINT "PK_c084672b8785e39d8732b6a1618" PRIMARY KEY ("id"))`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ADD CONSTRAINT "FK_fe2347c8c30afe35319515a0a83" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" DROP CONSTRAINT "FK_fe2347c8c30afe35319515a0a83"`);
|
|
13
|
+
await queryRunner.query(`DROP TABLE "acquirer"."bin_rules"`);
|
|
14
|
+
}
|
|
15
|
+
}
|