@felloh-org/lambda-wrapper 1.0.14 → 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.
- package/cli/seed/create-schema.js +2 -0
- package/dist/entity/agent-data/booking/index.js +26 -0
- package/dist/entity/agent-data/supplier/index.js +8 -0
- package/dist/entity/bank/disbursal/index.js +59 -6
- package/dist/entity/bank/index.js +3 -3
- package/dist/entity/bank/ledger/index.js +125 -0
- package/dist/entity/bank/settled-transaction/index.js +97 -0
- package/dist/entity/index.js +5 -1
- package/dist/entity/payment/index.js +5 -1
- package/dist/entity/payment/organisation-payment-provider/index.js +131 -0
- package/dist/entity/payment/payment-link/index.js +38 -0
- package/dist/entity/{bank/beneficiary-organisation → payment/payment-provider}/index.js +17 -30
- package/dist/entity/payment/transaction/index.js +64 -7
- package/dist/entity/total-processing/index.js +16 -0
- package/dist/entity/total-processing/transaction/index.js +126 -0
- package/dist/entity/total-processing/transaction-metadata/index.js +138 -0
- package/dist/entity/trust-payments/batch/index.js +85 -0
- package/dist/entity/trust-payments/chargeback/index.js +128 -0
- package/dist/entity/trust-payments/index.js +20 -0
- package/dist/entity/{bank/beneficiary-provider → trust-payments/merchant}/index.js +28 -27
- package/dist/entity/trust-payments/transaction/index.js +152 -0
- package/dist/entity/user/organisation/index.js +9 -6
- package/dist/entity/user/user/index.js +21 -3
- package/dist/event/user/password/changed/index.js +0 -1
- package/dist/index.js +100 -36
- package/dist/migration/bank/1642313073694-bank-initial.js +0 -10
- package/dist/migration/bank/1645101410250-bank_disbursal.js +28 -0
- package/dist/migration/bank/1645102501719-bank_disbursal_unique.js +17 -0
- package/dist/migration/bank/1645103420324-ledger.js +19 -0
- package/dist/migration/bank/1645103864454-ledger-defaults.js +15 -0
- package/dist/migration/bank/1645108723739-bank-settled-transaction.js +19 -0
- package/dist/migration/payment/1643717852114-payment-providers.js +19 -0
- package/dist/migration/payment/1643718714719-payment-providers-method.js +15 -0
- package/dist/migration/payment/1643719203328-payment-providers-method.js +22 -0
- package/dist/migration/payment/1644395533722-transaction_provider.js +15 -0
- package/dist/migration/payment/1644396011044-transaction_provider_ref.js +13 -0
- package/dist/migration/total-processing/1644309449035-tpro_transactions.js +13 -0
- package/dist/migration/total-processing/1644411639660-total_processing_entity.js +13 -0
- package/dist/migration/total-processing/1644842797566-relations.js +19 -0
- package/dist/migration/total-processing/1644926407236-tp_rec_nullable.js +13 -0
- package/dist/migration/total-processing/1644933594682-tp_rec_status.js +13 -0
- package/dist/migration/total-processing/1645010756173-tp_transaction_metadata.js +15 -0
- package/dist/migration/trust-payments/1644016335590-tp_merchants.js +13 -0
- package/dist/migration/trust-payments/1644018105481-tp_add_batch.js +15 -0
- package/dist/migration/trust-payments/1644020330502-tp_transaction.js +17 -0
- package/dist/migration/trust-payments/1644791277717-chargeback.js +15 -0
- package/dist/model/response/index.js +26 -32
- package/dist/model/response/status-codes.js +66 -0
- package/dist/service/event-bridge.js +11 -2
- package/dist/wrapper/index.js +9 -1
- package/package.json +2 -1
|
@@ -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
|
|
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
|
|
23
|
-
name: '
|
|
24
|
-
schema: '
|
|
25
|
-
}), _dec2 = (0, _typeorm.
|
|
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: "
|
|
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: "
|
|
31
|
-
}), _dec5 = (0, _typeorm.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}),
|
|
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, "
|
|
35
|
+
_initializerDefineProperty(this, "merchant_number", _descriptor, this);
|
|
37
36
|
|
|
38
|
-
_initializerDefineProperty(this, "
|
|
37
|
+
_initializerDefineProperty(this, "mid", _descriptor2, this);
|
|
39
38
|
|
|
40
|
-
_initializerDefineProperty(this, "
|
|
39
|
+
_initializerDefineProperty(this, "name", _descriptor3, this);
|
|
41
40
|
|
|
42
|
-
_initializerDefineProperty(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, "
|
|
46
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "merchant_number", [_dec2], {
|
|
48
47
|
configurable: true,
|
|
49
48
|
enumerable: true,
|
|
50
49
|
writable: true,
|
|
51
|
-
initializer:
|
|
52
|
-
|
|
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, "
|
|
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, "
|
|
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
|
|
72
|
+
return "";
|
|
72
73
|
}
|
|
73
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [
|
|
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 =
|
|
80
|
+
exports.default = Merchant;
|
|
@@ -0,0 +1,152 @@
|
|
|
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 _batch = _interopRequireDefault(require("../batch"));
|
|
11
|
+
|
|
12
|
+
var _merchant = _interopRequireDefault(require("../merchant"));
|
|
13
|
+
|
|
14
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
|
|
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 Transaction = (_dec = (0, _typeorm.Entity)({
|
|
25
|
+
name: 'transaction',
|
|
26
|
+
schema: 'trust_payments'
|
|
27
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _batch.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
28
|
+
name: 'bank_reference',
|
|
29
|
+
referencedColumnName: 'bank_reference'
|
|
30
|
+
}), _dec5 = (0, _typeorm.ManyToOne)(() => _merchant.default), _dec6 = (0, _typeorm.JoinColumn)({
|
|
31
|
+
name: 'merchant_number',
|
|
32
|
+
referencedColumnName: 'merchant_number'
|
|
33
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
34
|
+
type: "date"
|
|
35
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
36
|
+
type: "varchar",
|
|
37
|
+
length: 10
|
|
38
|
+
}), _dec9 = (0, _typeorm.Column)({
|
|
39
|
+
type: "varchar",
|
|
40
|
+
length: 30
|
|
41
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
42
|
+
type: "varchar",
|
|
43
|
+
length: 30
|
|
44
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
45
|
+
type: "varchar",
|
|
46
|
+
length: 40
|
|
47
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
48
|
+
type: "varchar",
|
|
49
|
+
length: 15
|
|
50
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
51
|
+
type: "varchar",
|
|
52
|
+
length: "5"
|
|
53
|
+
}), _dec14 = (0, _typeorm.Column)({
|
|
54
|
+
type: "int"
|
|
55
|
+
}), _dec15 = (0, _typeorm.Column)({
|
|
56
|
+
type: "varchar",
|
|
57
|
+
length: 40
|
|
58
|
+
}), _dec(_class = (_class2 = class Transaction {
|
|
59
|
+
constructor() {
|
|
60
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
61
|
+
|
|
62
|
+
_initializerDefineProperty(this, "bank_reference", _descriptor2, this);
|
|
63
|
+
|
|
64
|
+
_initializerDefineProperty(this, "merchant_number", _descriptor3, this);
|
|
65
|
+
|
|
66
|
+
_initializerDefineProperty(this, "created", _descriptor4, this);
|
|
67
|
+
|
|
68
|
+
_initializerDefineProperty(this, "time", _descriptor5, this);
|
|
69
|
+
|
|
70
|
+
_initializerDefineProperty(this, "card_number", _descriptor6, this);
|
|
71
|
+
|
|
72
|
+
_initializerDefineProperty(this, "card_type", _descriptor7, this);
|
|
73
|
+
|
|
74
|
+
_initializerDefineProperty(this, "capture_method", _descriptor8, this);
|
|
75
|
+
|
|
76
|
+
_initializerDefineProperty(this, "auth_code", _descriptor9, this);
|
|
77
|
+
|
|
78
|
+
_initializerDefineProperty(this, "currency", _descriptor10, this);
|
|
79
|
+
|
|
80
|
+
_initializerDefineProperty(this, "amount", _descriptor11, this);
|
|
81
|
+
|
|
82
|
+
_initializerDefineProperty(this, "merchant_reference", _descriptor12, this);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
86
|
+
configurable: true,
|
|
87
|
+
enumerable: true,
|
|
88
|
+
writable: true,
|
|
89
|
+
initializer: function () {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "bank_reference", [_dec3, _dec4], {
|
|
93
|
+
configurable: true,
|
|
94
|
+
enumerable: true,
|
|
95
|
+
writable: true,
|
|
96
|
+
initializer: function () {
|
|
97
|
+
return _batch.default;
|
|
98
|
+
}
|
|
99
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "merchant_number", [_dec5, _dec6], {
|
|
100
|
+
configurable: true,
|
|
101
|
+
enumerable: true,
|
|
102
|
+
writable: true,
|
|
103
|
+
initializer: function () {
|
|
104
|
+
return _merchant.default;
|
|
105
|
+
}
|
|
106
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created", [_dec7], {
|
|
107
|
+
configurable: true,
|
|
108
|
+
enumerable: true,
|
|
109
|
+
writable: true,
|
|
110
|
+
initializer: null
|
|
111
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "time", [_dec8], {
|
|
112
|
+
configurable: true,
|
|
113
|
+
enumerable: true,
|
|
114
|
+
writable: true,
|
|
115
|
+
initializer: null
|
|
116
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "card_number", [_dec9], {
|
|
117
|
+
configurable: true,
|
|
118
|
+
enumerable: true,
|
|
119
|
+
writable: true,
|
|
120
|
+
initializer: null
|
|
121
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "card_type", [_dec10], {
|
|
122
|
+
configurable: true,
|
|
123
|
+
enumerable: true,
|
|
124
|
+
writable: true,
|
|
125
|
+
initializer: null
|
|
126
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "capture_method", [_dec11], {
|
|
127
|
+
configurable: true,
|
|
128
|
+
enumerable: true,
|
|
129
|
+
writable: true,
|
|
130
|
+
initializer: null
|
|
131
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "auth_code", [_dec12], {
|
|
132
|
+
configurable: true,
|
|
133
|
+
enumerable: true,
|
|
134
|
+
writable: true,
|
|
135
|
+
initializer: null
|
|
136
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec13], {
|
|
137
|
+
configurable: true,
|
|
138
|
+
enumerable: true,
|
|
139
|
+
writable: true,
|
|
140
|
+
initializer: null
|
|
141
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec14], {
|
|
142
|
+
configurable: true,
|
|
143
|
+
enumerable: true,
|
|
144
|
+
writable: true,
|
|
145
|
+
initializer: null
|
|
146
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "merchant_reference", [_dec15], {
|
|
147
|
+
configurable: true,
|
|
148
|
+
enumerable: true,
|
|
149
|
+
writable: true,
|
|
150
|
+
initializer: null
|
|
151
|
+
})), _class2)) || _class);
|
|
152
|
+
exports.default = Transaction;
|
|
@@ -63,20 +63,23 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
63
63
|
this.name = name;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
getPublicCompactData() {
|
|
67
|
+
return {
|
|
68
|
+
id: this.id,
|
|
69
|
+
name: this.name
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
66
73
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec3], {
|
|
67
74
|
configurable: true,
|
|
68
75
|
enumerable: true,
|
|
69
76
|
writable: true,
|
|
70
|
-
initializer:
|
|
71
|
-
return undefined;
|
|
72
|
-
}
|
|
77
|
+
initializer: null
|
|
73
78
|
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "name", [_dec4], {
|
|
74
79
|
configurable: true,
|
|
75
80
|
enumerable: true,
|
|
76
81
|
writable: true,
|
|
77
|
-
initializer:
|
|
78
|
-
return "";
|
|
79
|
-
}
|
|
82
|
+
initializer: null
|
|
80
83
|
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec5], {
|
|
81
84
|
configurable: true,
|
|
82
85
|
enumerable: true,
|
|
@@ -49,9 +49,7 @@ let User = (_dec = (0, _typeorm.Entity)({
|
|
|
49
49
|
}), _dec9 = (0, _typeorm.Column)({
|
|
50
50
|
type: "varchar",
|
|
51
51
|
length: "50"
|
|
52
|
-
}), _dec10 = (0, _typeorm.CreateDateColumn)(), _dec11 = (0, _typeorm.UpdateDateColumn)(), _dec12 = (0, _typeorm.DeleteDateColumn)(), _dec13 = (0, _typeorm.ManyToMany)(() => _organisation.default, organisation => organisation.users, {
|
|
53
|
-
cascade: true
|
|
54
|
-
}), _dec14 = (0, _typeorm.JoinTable)({
|
|
52
|
+
}), _dec10 = (0, _typeorm.CreateDateColumn)(), _dec11 = (0, _typeorm.UpdateDateColumn)(), _dec12 = (0, _typeorm.DeleteDateColumn)(), _dec13 = (0, _typeorm.ManyToMany)(() => _organisation.default, organisation => organisation.users), _dec14 = (0, _typeorm.JoinTable)({
|
|
55
53
|
name: "user_organisation",
|
|
56
54
|
schema: "user",
|
|
57
55
|
joinColumn: {
|
|
@@ -95,6 +93,26 @@ let User = (_dec = (0, _typeorm.Entity)({
|
|
|
95
93
|
this.last_name = lastName;
|
|
96
94
|
}
|
|
97
95
|
|
|
96
|
+
getPublicData() {
|
|
97
|
+
return {
|
|
98
|
+
id: this.id,
|
|
99
|
+
email: this.email,
|
|
100
|
+
mobile: this.mobile,
|
|
101
|
+
status: this.status,
|
|
102
|
+
first_name: this.first_name,
|
|
103
|
+
last_name: this.last_name,
|
|
104
|
+
created_at: this.created_at,
|
|
105
|
+
updated_at: this.updated_at
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
getPublicCompactData() {
|
|
110
|
+
return {
|
|
111
|
+
id: this.id,
|
|
112
|
+
email: this.email
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
98
116
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
99
117
|
configurable: true,
|
|
100
118
|
enumerable: true,
|