@felloh-org/lambda-wrapper 1.11.17 → 1.11.19
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/index.js +3 -1
- package/dist/entity/payment/organisation-payment-provider/index.js +45 -29
- package/dist/entity/payment/tokenisation-provider/index.js +17 -4
- package/dist/entity/payment/transaction/index.js +46 -30
- package/dist/index.js +8 -0
- package/dist/migration/acquirer/1692873462263-acquirer_bin_list.js +13 -0
- package/dist/migration/payment/1692784096414-tokenisation_provider_links.js +21 -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;
|
|
@@ -11,8 +11,10 @@ var _transactionSettlement = _interopRequireDefault(require("./transaction-settl
|
|
|
11
11
|
|
|
12
12
|
var _adjustment = _interopRequireDefault(require("./adjustment"));
|
|
13
13
|
|
|
14
|
+
var _bin = _interopRequireDefault(require("./bin"));
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
|
-
const ENTITIES = [_adjustment.default, _batch.default, _transactionSettlement.default];
|
|
18
|
+
const ENTITIES = [_adjustment.default, _batch.default, _bin.default, _transactionSettlement.default];
|
|
17
19
|
var _default = ENTITIES;
|
|
18
20
|
exports.default = _default;
|
|
@@ -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
|
|
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.
|
|
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
|
-
}),
|
|
71
|
+
}), _dec14 = (0, _typeorm.Column)({
|
|
65
72
|
type: "json",
|
|
66
73
|
nullable: true
|
|
67
|
-
}),
|
|
74
|
+
}), _dec15 = (0, _typeorm.Column)({
|
|
68
75
|
type: "varchar",
|
|
69
76
|
length: "512"
|
|
70
|
-
}),
|
|
77
|
+
}), _dec16 = (0, _typeorm.Column)({
|
|
71
78
|
type: "varchar",
|
|
72
79
|
length: "4"
|
|
73
|
-
}),
|
|
80
|
+
}), _dec17 = (0, _typeorm.Column)({
|
|
74
81
|
type: "boolean",
|
|
75
82
|
default: false
|
|
76
|
-
}),
|
|
83
|
+
}), _dec18 = (0, _typeorm.Column)({
|
|
77
84
|
type: "boolean",
|
|
78
85
|
default: false
|
|
79
|
-
}),
|
|
86
|
+
}), _dec19 = (0, _typeorm.Column)({
|
|
80
87
|
type: "boolean",
|
|
81
88
|
default: false
|
|
82
|
-
}),
|
|
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, "
|
|
103
|
+
_initializerDefineProperty(this, "tokenisation_provider", _descriptor7, this);
|
|
97
104
|
|
|
98
|
-
_initializerDefineProperty(this, "
|
|
105
|
+
_initializerDefineProperty(this, "public_key", _descriptor8, this);
|
|
99
106
|
|
|
100
|
-
_initializerDefineProperty(this, "
|
|
107
|
+
_initializerDefineProperty(this, "public_creds", _descriptor9, this);
|
|
101
108
|
|
|
102
|
-
_initializerDefineProperty(this, "
|
|
109
|
+
_initializerDefineProperty(this, "secret_key", _descriptor10, this);
|
|
103
110
|
|
|
104
|
-
_initializerDefineProperty(this, "
|
|
111
|
+
_initializerDefineProperty(this, "secret_key_last_four", _descriptor11, this);
|
|
105
112
|
|
|
106
|
-
_initializerDefineProperty(this, "
|
|
113
|
+
_initializerDefineProperty(this, "is_active", _descriptor12, this);
|
|
107
114
|
|
|
108
|
-
_initializerDefineProperty(this, "
|
|
115
|
+
_initializerDefineProperty(this, "googlepay_enabled", _descriptor13, this);
|
|
109
116
|
|
|
110
|
-
_initializerDefineProperty(this, "
|
|
117
|
+
_initializerDefineProperty(this, "applepay_enabled", _descriptor14, this);
|
|
111
118
|
|
|
112
|
-
_initializerDefineProperty(this, "
|
|
119
|
+
_initializerDefineProperty(this, "created_at", _descriptor15, this);
|
|
113
120
|
|
|
114
|
-
_initializerDefineProperty(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, "
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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.
|
|
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, "
|
|
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, "
|
|
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
|
|
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.
|
|
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
|
-
}),
|
|
104
|
+
}), _dec28 = (0, _typeorm.Column)({
|
|
98
105
|
type: "varchar",
|
|
99
106
|
length: "3",
|
|
100
107
|
default: _currency.DEFAULT_CURRENCY
|
|
101
|
-
}),
|
|
108
|
+
}), _dec29 = (0, _typeorm.Column)({
|
|
102
109
|
type: "json",
|
|
103
110
|
nullable: true
|
|
104
|
-
}),
|
|
111
|
+
}), _dec30 = (0, _typeorm.Column)({
|
|
105
112
|
type: "timestamp with time zone",
|
|
106
113
|
nullable: true
|
|
107
|
-
}),
|
|
114
|
+
}), _dec31 = (0, _typeorm.Column)({
|
|
108
115
|
type: "text",
|
|
109
116
|
nullable: true
|
|
110
|
-
}),
|
|
117
|
+
}), _dec32 = (0, _typeorm.CreateDateColumn)({
|
|
111
118
|
type: 'timestamp with time zone'
|
|
112
|
-
}),
|
|
119
|
+
}), _dec33 = (0, _typeorm.UpdateDateColumn)({
|
|
113
120
|
type: 'timestamp with time zone'
|
|
114
|
-
}),
|
|
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
|
-
}),
|
|
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, "
|
|
152
|
+
_initializerDefineProperty(this, "tokenisation_provider", _descriptor14, this);
|
|
153
|
+
|
|
154
|
+
_initializerDefineProperty(this, "provider_reference", _descriptor15, this);
|
|
146
155
|
|
|
147
|
-
_initializerDefineProperty(this, "currency",
|
|
156
|
+
_initializerDefineProperty(this, "currency", _descriptor16, this);
|
|
148
157
|
|
|
149
|
-
_initializerDefineProperty(this, "provider_metadata",
|
|
158
|
+
_initializerDefineProperty(this, "provider_metadata", _descriptor17, this);
|
|
150
159
|
|
|
151
|
-
_initializerDefineProperty(this, "completed_at",
|
|
160
|
+
_initializerDefineProperty(this, "completed_at", _descriptor18, this);
|
|
152
161
|
|
|
153
|
-
_initializerDefineProperty(this, "message",
|
|
162
|
+
_initializerDefineProperty(this, "message", _descriptor19, this);
|
|
154
163
|
|
|
155
|
-
_initializerDefineProperty(this, "created_at",
|
|
164
|
+
_initializerDefineProperty(this, "created_at", _descriptor20, this);
|
|
156
165
|
|
|
157
|
-
_initializerDefineProperty(this, "updated_at",
|
|
166
|
+
_initializerDefineProperty(this, "updated_at", _descriptor21, this);
|
|
158
167
|
|
|
159
|
-
_initializerDefineProperty(this, "batch",
|
|
168
|
+
_initializerDefineProperty(this, "batch", _descriptor22, this);
|
|
160
169
|
|
|
161
|
-
_initializerDefineProperty(this, "assigned_at",
|
|
170
|
+
_initializerDefineProperty(this, "assigned_at", _descriptor23, this);
|
|
162
171
|
|
|
163
|
-
_initializerDefineProperty(this, "settlement",
|
|
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, "
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
401
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec31], {
|
|
386
402
|
configurable: true,
|
|
387
403
|
enumerable: true,
|
|
388
404
|
writable: true,
|
|
389
405
|
initializer: null
|
|
390
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
416
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec34], {
|
|
401
417
|
configurable: true,
|
|
402
418
|
enumerable: true,
|
|
403
419
|
writable: true,
|
|
404
420
|
initializer: null
|
|
405
|
-
}),
|
|
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
|
-
}),
|
|
426
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec36], {
|
|
411
427
|
configurable: true,
|
|
412
428
|
enumerable: true,
|
|
413
429
|
writable: true,
|
package/dist/index.js
CHANGED
|
@@ -57,6 +57,12 @@ 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
|
+
});
|
|
60
66
|
Object.defineProperty(exports, "BookingBankTransaction", {
|
|
61
67
|
enumerable: true,
|
|
62
68
|
get: function () {
|
|
@@ -658,6 +664,8 @@ var _batch = _interopRequireDefault(require("./entity/acquirer/batch"));
|
|
|
658
664
|
|
|
659
665
|
var _transactionSettlement = _interopRequireDefault(require("./entity/acquirer/transaction-settlement"));
|
|
660
666
|
|
|
667
|
+
var _bin = _interopRequireDefault(require("./entity/acquirer/bin"));
|
|
668
|
+
|
|
661
669
|
var _booking = _interopRequireDefault(require("./entity/agent-data/booking"));
|
|
662
670
|
|
|
663
671
|
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,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
|
+
}
|