@felloh-org/lambda-wrapper 1.0.17 → 1.0.18

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.
Files changed (43) hide show
  1. package/cli/seed/create-schema.js +2 -0
  2. package/dist/entity/bank/disbursal/index.js +59 -6
  3. package/dist/entity/bank/index.js +3 -3
  4. package/dist/entity/bank/ledger/index.js +125 -0
  5. package/dist/entity/bank/settled-transaction/index.js +97 -0
  6. package/dist/entity/index.js +5 -1
  7. package/dist/entity/payment/index.js +5 -1
  8. package/dist/entity/payment/organisation-payment-provider/index.js +131 -0
  9. package/dist/entity/{bank/beneficiary-organisation → payment/payment-provider}/index.js +17 -30
  10. package/dist/entity/payment/transaction/index.js +34 -7
  11. package/dist/entity/total-processing/index.js +16 -0
  12. package/dist/entity/total-processing/transaction/index.js +126 -0
  13. package/dist/entity/total-processing/transaction-metadata/index.js +138 -0
  14. package/dist/entity/trust-payments/batch/index.js +85 -0
  15. package/dist/entity/trust-payments/chargeback/index.js +128 -0
  16. package/dist/entity/trust-payments/index.js +20 -0
  17. package/dist/entity/{bank/beneficiary-provider → trust-payments/merchant}/index.js +28 -27
  18. package/dist/entity/trust-payments/transaction/index.js +152 -0
  19. package/dist/entity/user/organisation/index.js +2 -6
  20. package/dist/entity/user/user/index.js +1 -3
  21. package/dist/index.js +100 -36
  22. package/dist/migration/bank/1642313073694-bank-initial.js +0 -10
  23. package/dist/migration/bank/1645101410250-bank_disbursal.js +28 -0
  24. package/dist/migration/bank/1645102501719-bank_disbursal_unique.js +17 -0
  25. package/dist/migration/bank/1645103420324-ledger.js +19 -0
  26. package/dist/migration/bank/1645103864454-ledger-defaults.js +15 -0
  27. package/dist/migration/bank/1645108723739-bank-settled-transaction.js +19 -0
  28. package/dist/migration/payment/1643717852114-payment-providers.js +19 -0
  29. package/dist/migration/payment/1643718714719-payment-providers-method.js +15 -0
  30. package/dist/migration/payment/1643719203328-payment-providers-method.js +22 -0
  31. package/dist/migration/payment/1644395533722-transaction_provider.js +15 -0
  32. package/dist/migration/payment/1644396011044-transaction_provider_ref.js +13 -0
  33. package/dist/migration/total-processing/1644309449035-tpro_transactions.js +13 -0
  34. package/dist/migration/total-processing/1644411639660-total_processing_entity.js +13 -0
  35. package/dist/migration/total-processing/1644842797566-relations.js +19 -0
  36. package/dist/migration/total-processing/1644926407236-tp_rec_nullable.js +13 -0
  37. package/dist/migration/total-processing/1644933594682-tp_rec_status.js +13 -0
  38. package/dist/migration/total-processing/1645010756173-tp_transaction_metadata.js +15 -0
  39. package/dist/migration/trust-payments/1644016335590-tp_merchants.js +13 -0
  40. package/dist/migration/trust-payments/1644018105481-tp_add_batch.js +15 -0
  41. package/dist/migration/trust-payments/1644020330502-tp_transaction.js +17 -0
  42. package/dist/migration/trust-payments/1644791277717-chargeback.js +15 -0
  43. package/package.json +2 -1
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _transaction = _interopRequireDefault(require("./transaction"));
9
+
10
+ var _transactionMetadata = _interopRequireDefault(require("./transaction-metadata"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ const ENTITIES = [_transaction.default, _transactionMetadata.default];
15
+ var _default = ENTITIES;
16
+ exports.default = _default;
@@ -0,0 +1,126 @@
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 Transaction = (_dec = (0, _typeorm.Entity)({
19
+ name: 'transaction',
20
+ schema: 'total_processing'
21
+ }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
22
+ type: "varchar",
23
+ length: 2
24
+ }), _dec4 = (0, _typeorm.Column)({
25
+ type: "int"
26
+ }), _dec5 = (0, _typeorm.Column)({
27
+ type: "varchar",
28
+ length: 5
29
+ }), _dec6 = (0, _typeorm.Column)({
30
+ type: "varchar",
31
+ length: 50,
32
+ nullable: true
33
+ }), _dec7 = (0, _typeorm.Column)({
34
+ type: "varchar",
35
+ length: 30,
36
+ nullable: true
37
+ }), _dec8 = (0, _typeorm.Column)({
38
+ type: "varchar",
39
+ length: 50
40
+ }), _dec9 = (0, _typeorm.Column)({
41
+ type: "int",
42
+ nullable: true
43
+ }), _dec10 = (0, _typeorm.Column)({
44
+ type: "timestamp without time zone"
45
+ }), _dec11 = (0, _typeorm.Column)({
46
+ type: "varchar",
47
+ length: 1500
48
+ }), _dec(_class = (_class2 = class Transaction {
49
+ constructor() {
50
+ _initializerDefineProperty(this, "ndc", _descriptor, this);
51
+
52
+ _initializerDefineProperty(this, "risk_score", _descriptor2, this);
53
+
54
+ _initializerDefineProperty(this, "amount", _descriptor3, this);
55
+
56
+ _initializerDefineProperty(this, "currency", _descriptor4, this);
57
+
58
+ _initializerDefineProperty(this, "entity_id", _descriptor5, this);
59
+
60
+ _initializerDefineProperty(this, "reconciliation_id", _descriptor6, this);
61
+
62
+ _initializerDefineProperty(this, "merchant_account_id", _descriptor7, this);
63
+
64
+ _initializerDefineProperty(this, "status", _descriptor8, this);
65
+
66
+ _initializerDefineProperty(this, "processing_time", _descriptor9, this);
67
+
68
+ _initializerDefineProperty(this, "merchant_name", _descriptor10, this);
69
+ }
70
+
71
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "ndc", [_dec2], {
72
+ configurable: true,
73
+ enumerable: true,
74
+ writable: true,
75
+ initializer: function () {
76
+ return undefined;
77
+ }
78
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "risk_score", [_dec3], {
79
+ configurable: true,
80
+ enumerable: true,
81
+ writable: true,
82
+ initializer: null
83
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec4], {
84
+ configurable: true,
85
+ enumerable: true,
86
+ writable: true,
87
+ initializer: null
88
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec5], {
89
+ configurable: true,
90
+ enumerable: true,
91
+ writable: true,
92
+ initializer: null
93
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "entity_id", [_dec6], {
94
+ configurable: true,
95
+ enumerable: true,
96
+ writable: true,
97
+ initializer: null
98
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "reconciliation_id", [_dec7], {
99
+ configurable: true,
100
+ enumerable: true,
101
+ writable: true,
102
+ initializer: null
103
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "merchant_account_id", [_dec8], {
104
+ configurable: true,
105
+ enumerable: true,
106
+ writable: true,
107
+ initializer: null
108
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec9], {
109
+ configurable: true,
110
+ enumerable: true,
111
+ writable: true,
112
+ initializer: null
113
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "processing_time", [_dec10], {
114
+ configurable: true,
115
+ enumerable: true,
116
+ writable: true,
117
+ initializer: function () {
118
+ return null;
119
+ }
120
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "merchant_name", [_dec11], {
121
+ configurable: true,
122
+ enumerable: true,
123
+ writable: true,
124
+ initializer: null
125
+ })), _class2)) || _class);
126
+ exports.default = Transaction;
@@ -0,0 +1,138 @@
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, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
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 TransactionMetadata = (_dec = (0, _typeorm.Entity)({
23
+ name: 'transaction_metadata',
24
+ schema: 'total_processing'
25
+ }), _dec2 = (0, _typeorm.ManyToOne)(() => _transaction.default, {
26
+ primary: true
27
+ }), _dec3 = (0, _typeorm.JoinColumn)({
28
+ name: 'ndc',
29
+ referencedColumnName: 'ndc'
30
+ }), _dec4 = (0, _typeorm.Column)({
31
+ type: "varchar",
32
+ nullable: true,
33
+ length: 20
34
+ }), _dec5 = (0, _typeorm.Column)({
35
+ type: "varchar",
36
+ nullable: true,
37
+ length: 20
38
+ }), _dec6 = (0, _typeorm.Column)({
39
+ type: "varchar",
40
+ nullable: true,
41
+ length: 20
42
+ }), _dec7 = (0, _typeorm.Column)({
43
+ type: "varchar",
44
+ nullable: true,
45
+ length: 10
46
+ }), _dec8 = (0, _typeorm.Column)({
47
+ type: "varchar",
48
+ nullable: true,
49
+ length: 10
50
+ }), _dec9 = (0, _typeorm.Column)({
51
+ type: "varchar",
52
+ nullable: true,
53
+ length: 10
54
+ }), _dec10 = (0, _typeorm.Column)({
55
+ type: "varchar",
56
+ nullable: true,
57
+ length: 4
58
+ }), _dec11 = (0, _typeorm.Column)({
59
+ type: "varchar",
60
+ nullable: true,
61
+ length: 150
62
+ }), _dec12 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class TransactionMetadata {
63
+ constructor() {
64
+ _initializerDefineProperty(this, "ndc", _descriptor, this);
65
+
66
+ _initializerDefineProperty(this, "card_type", _descriptor2, this);
67
+
68
+ _initializerDefineProperty(this, "bin_type", _descriptor3, this);
69
+
70
+ _initializerDefineProperty(this, "payment_brand", _descriptor4, this);
71
+
72
+ _initializerDefineProperty(this, "payment_type", _descriptor5, this);
73
+
74
+ _initializerDefineProperty(this, "issuing_country", _descriptor6, this);
75
+
76
+ _initializerDefineProperty(this, "currency", _descriptor7, this);
77
+
78
+ _initializerDefineProperty(this, "last_four_digits", _descriptor8, this);
79
+
80
+ _initializerDefineProperty(this, "cardholder_name", _descriptor9, this);
81
+
82
+ _initializerDefineProperty(this, "created_at", _descriptor10, this);
83
+ }
84
+
85
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "ndc", [_dec2, _dec3], {
86
+ configurable: true,
87
+ enumerable: true,
88
+ writable: true,
89
+ initializer: function () {
90
+ return _transaction.default;
91
+ }
92
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "card_type", [_dec4], {
93
+ configurable: true,
94
+ enumerable: true,
95
+ writable: true,
96
+ initializer: null
97
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "bin_type", [_dec5], {
98
+ configurable: true,
99
+ enumerable: true,
100
+ writable: true,
101
+ initializer: null
102
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "payment_brand", [_dec6], {
103
+ configurable: true,
104
+ enumerable: true,
105
+ writable: true,
106
+ initializer: null
107
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "payment_type", [_dec7], {
108
+ configurable: true,
109
+ enumerable: true,
110
+ writable: true,
111
+ initializer: null
112
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "issuing_country", [_dec8], {
113
+ configurable: true,
114
+ enumerable: true,
115
+ writable: true,
116
+ initializer: null
117
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec9], {
118
+ configurable: true,
119
+ enumerable: true,
120
+ writable: true,
121
+ initializer: null
122
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "last_four_digits", [_dec10], {
123
+ configurable: true,
124
+ enumerable: true,
125
+ writable: true,
126
+ initializer: null
127
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "cardholder_name", [_dec11], {
128
+ configurable: true,
129
+ enumerable: true,
130
+ writable: true,
131
+ initializer: null
132
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec12], {
133
+ configurable: true,
134
+ enumerable: true,
135
+ writable: true,
136
+ initializer: null
137
+ })), _class2)) || _class);
138
+ exports.default = TransactionMetadata;
@@ -0,0 +1,85 @@
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 _merchant = _interopRequireDefault(require("../merchant"));
11
+
12
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
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 Batch = (_dec = (0, _typeorm.Entity)({
23
+ name: 'batch',
24
+ schema: 'trust_payments'
25
+ }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _merchant.default), _dec4 = (0, _typeorm.JoinColumn)({
26
+ name: 'merchant_number',
27
+ referencedColumnName: 'merchant_number'
28
+ }), _dec5 = (0, _typeorm.Column)({
29
+ type: "int"
30
+ }), _dec6 = (0, _typeorm.Column)({
31
+ type: "date"
32
+ }), _dec7 = (0, _typeorm.Column)({
33
+ type: "varchar",
34
+ length: "5"
35
+ }), _dec8 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Batch {
36
+ constructor() {
37
+ _initializerDefineProperty(this, "bank_reference", _descriptor, this);
38
+
39
+ _initializerDefineProperty(this, "merchant_number", _descriptor2, this);
40
+
41
+ _initializerDefineProperty(this, "amount", _descriptor3, this);
42
+
43
+ _initializerDefineProperty(this, "posting_date", _descriptor4, this);
44
+
45
+ _initializerDefineProperty(this, "currency", _descriptor5, this);
46
+
47
+ _initializerDefineProperty(this, "created_at", _descriptor6, this);
48
+ }
49
+
50
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "bank_reference", [_dec2], {
51
+ configurable: true,
52
+ enumerable: true,
53
+ writable: true,
54
+ initializer: function () {
55
+ return undefined;
56
+ }
57
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "merchant_number", [_dec3, _dec4], {
58
+ configurable: true,
59
+ enumerable: true,
60
+ writable: true,
61
+ initializer: function () {
62
+ return _merchant.default;
63
+ }
64
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec5], {
65
+ configurable: true,
66
+ enumerable: true,
67
+ writable: true,
68
+ initializer: null
69
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "posting_date", [_dec6], {
70
+ configurable: true,
71
+ enumerable: true,
72
+ writable: true,
73
+ initializer: null
74
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec7], {
75
+ configurable: true,
76
+ enumerable: true,
77
+ writable: true,
78
+ initializer: null
79
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec8], {
80
+ configurable: true,
81
+ enumerable: true,
82
+ writable: true,
83
+ initializer: null
84
+ })), _class2)) || _class);
85
+ exports.default = Batch;
@@ -0,0 +1,128 @@
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 _merchant = _interopRequireDefault(require("../merchant"));
11
+
12
+ var _transaction = _interopRequireDefault(require("../transaction"));
13
+
14
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ 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 }); }
19
+
20
+ 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; }
21
+
22
+ 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.'); }
23
+
24
+ let Chargeback = (_dec = (0, _typeorm.Entity)({
25
+ name: 'chargeback',
26
+ schema: 'trust_payments'
27
+ }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
28
+ type: "date",
29
+ nullable: true
30
+ }), _dec4 = (0, _typeorm.Column)({
31
+ type: "varchar",
32
+ length: "20"
33
+ }), _dec5 = (0, _typeorm.ManyToOne)(() => _merchant.default), _dec6 = (0, _typeorm.JoinColumn)({
34
+ name: 'merchant_number',
35
+ referencedColumnName: 'merchant_number'
36
+ }), _dec7 = (0, _typeorm.Column)({
37
+ type: "varchar",
38
+ length: "100"
39
+ }), _dec8 = (0, _typeorm.Column)({
40
+ type: "int"
41
+ }), _dec9 = (0, _typeorm.Column)({
42
+ type: "date"
43
+ }), _dec10 = (0, _typeorm.Column)({
44
+ type: "date"
45
+ }), _dec11 = (0, _typeorm.Column)({
46
+ type: "varchar",
47
+ length: "100"
48
+ }), _dec12 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Chargeback {
49
+ constructor() {
50
+ _initializerDefineProperty(this, "id", _descriptor, this);
51
+
52
+ _initializerDefineProperty(this, "received_date", _descriptor2, this);
53
+
54
+ _initializerDefineProperty(this, "status", _descriptor3, this);
55
+
56
+ _initializerDefineProperty(this, "merchant_number", _descriptor4, this);
57
+
58
+ _initializerDefineProperty(this, "reason", _descriptor5, this);
59
+
60
+ _initializerDefineProperty(this, "amount", _descriptor6, this);
61
+
62
+ _initializerDefineProperty(this, "due_date", _descriptor7, this);
63
+
64
+ _initializerDefineProperty(this, "posting_date", _descriptor8, this);
65
+
66
+ _initializerDefineProperty(this, "merchant_reference", _descriptor9, this);
67
+
68
+ _initializerDefineProperty(this, "created_at", _descriptor10, this);
69
+ }
70
+
71
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
72
+ configurable: true,
73
+ enumerable: true,
74
+ writable: true,
75
+ initializer: function () {
76
+ return undefined;
77
+ }
78
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "received_date", [_dec3], {
79
+ configurable: true,
80
+ enumerable: true,
81
+ writable: true,
82
+ initializer: null
83
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec4], {
84
+ configurable: true,
85
+ enumerable: true,
86
+ writable: true,
87
+ initializer: null
88
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "merchant_number", [_dec5, _dec6], {
89
+ configurable: true,
90
+ enumerable: true,
91
+ writable: true,
92
+ initializer: function () {
93
+ return _merchant.default;
94
+ }
95
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "reason", [_dec7], {
96
+ configurable: true,
97
+ enumerable: true,
98
+ writable: true,
99
+ initializer: null
100
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec8], {
101
+ configurable: true,
102
+ enumerable: true,
103
+ writable: true,
104
+ initializer: null
105
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "due_date", [_dec9], {
106
+ configurable: true,
107
+ enumerable: true,
108
+ writable: true,
109
+ initializer: null
110
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "posting_date", [_dec10], {
111
+ configurable: true,
112
+ enumerable: true,
113
+ writable: true,
114
+ initializer: null
115
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "merchant_reference", [_dec11], {
116
+ configurable: true,
117
+ enumerable: true,
118
+ writable: true,
119
+ initializer: function () {
120
+ return _transaction.default;
121
+ }
122
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec12], {
123
+ configurable: true,
124
+ enumerable: true,
125
+ writable: true,
126
+ initializer: null
127
+ })), _class2)) || _class);
128
+ exports.default = Chargeback;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _merchant = _interopRequireDefault(require("./merchant"));
9
+
10
+ var _batch = _interopRequireDefault(require("./batch"));
11
+
12
+ var _transaction = _interopRequireDefault(require("./transaction"));
13
+
14
+ var _chargeback = _interopRequireDefault(require("./chargeback"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ const ENTITIES = [_batch.default, _merchant.default, _transaction.default, _chargeback.default];
19
+ var _default = ENTITIES;
20
+ exports.default = _default;
@@ -7,11 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _typeorm = require("typeorm");
9
9
 
10
- var _account = _interopRequireDefault(require("../account"));
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 }; }
10
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
15
11
 
16
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 }); }
17
13
 
@@ -19,61 +15,66 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
19
15
 
20
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.'); }
21
17
 
22
- let BeneficiaryProvider = (_dec = (0, _typeorm.Entity)({
23
- name: 'beneficiary_provider',
24
- schema: 'bank'
25
- }), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
18
+ let Merchant = (_dec = (0, _typeorm.Entity)({
19
+ name: 'merchant',
20
+ schema: 'trust_payments'
21
+ }), _dec2 = (0, _typeorm.PrimaryColumn)({
26
22
  type: "varchar",
27
- length: "15"
23
+ length: "150"
24
+ }), _dec3 = (0, _typeorm.Column)({
25
+ type: "varchar",
26
+ length: "150"
28
27
  }), _dec4 = (0, _typeorm.Column)({
29
28
  type: "varchar",
30
- length: "50"
31
- }), _dec5 = (0, _typeorm.ManyToOne)(() => _account.default), _dec6 = (0, _typeorm.JoinColumn)({
32
- name: 'account_iban',
33
- referencedColumnName: 'iban'
34
- }), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class BeneficiaryProvider {
29
+ length: "150"
30
+ }), _dec5 = (0, _typeorm.Column)({
31
+ type: "varchar",
32
+ length: "20"
33
+ }), _dec6 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Merchant {
35
34
  constructor() {
36
- _initializerDefineProperty(this, "id", _descriptor, this);
35
+ _initializerDefineProperty(this, "merchant_number", _descriptor, this);
37
36
 
38
- _initializerDefineProperty(this, "provider", _descriptor2, this);
37
+ _initializerDefineProperty(this, "mid", _descriptor2, this);
39
38
 
40
- _initializerDefineProperty(this, "provider_reference", _descriptor3, this);
39
+ _initializerDefineProperty(this, "name", _descriptor3, this);
41
40
 
42
- _initializerDefineProperty(this, "account", _descriptor4, this);
41
+ _initializerDefineProperty(this, "status", _descriptor4, this);
43
42
 
44
43
  _initializerDefineProperty(this, "created_at", _descriptor5, this);
45
44
  }
46
45
 
47
- }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
46
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "merchant_number", [_dec2], {
48
47
  configurable: true,
49
48
  enumerable: true,
50
49
  writable: true,
51
- initializer: null
52
- }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "provider", [_dec3], {
50
+ initializer: function () {
51
+ return undefined;
52
+ }
53
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "mid", [_dec3], {
53
54
  configurable: true,
54
55
  enumerable: true,
55
56
  writable: true,
56
57
  initializer: function () {
57
58
  return "";
58
59
  }
59
- }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "provider_reference", [_dec4], {
60
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "name", [_dec4], {
60
61
  configurable: true,
61
62
  enumerable: true,
62
63
  writable: true,
63
64
  initializer: function () {
64
65
  return "";
65
66
  }
66
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "account", [_dec5, _dec6], {
67
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec5], {
67
68
  configurable: true,
68
69
  enumerable: true,
69
70
  writable: true,
70
71
  initializer: function () {
71
- return _account.default;
72
+ return "";
72
73
  }
73
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
74
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
74
75
  configurable: true,
75
76
  enumerable: true,
76
77
  writable: true,
77
78
  initializer: null
78
79
  })), _class2)) || _class);
79
- exports.default = BeneficiaryProvider;
80
+ exports.default = Merchant;