@tomei/finance 0.3.0 → 0.3.1
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/account/account.d.ts +24 -27
- package/dist/account/account.js +47 -67
- package/dist/account/account.js.map +1 -1
- package/dist/account/account.repository.d.ts +3 -14
- package/dist/account/account.repository.js +4 -39
- package/dist/account/account.repository.js.map +1 -1
- package/dist/account/interfaces/account-attr.interface.d.ts +15 -7
- package/dist/account-system-entity/account-system-entity.d.ts +2 -2
- package/dist/account-system-entity/account-system-entity.js +1 -1
- package/dist/account-system-entity/post-history.repository.d.ts +2 -2
- package/dist/account-system-entity/post-history.repository.js +1 -1
- package/dist/customer/customer.d.ts +3 -3
- package/dist/customer/customer.js +1 -2
- package/dist/customer/customer.js.map +1 -1
- package/dist/customer/finance-customer.repository.d.ts +2 -2
- package/dist/customer/finance-customer.repository.js +1 -1
- package/dist/customer/interfaces/finance-customer.repository.interface.d.ts +2 -2
- package/dist/document/document-item.d.ts +1 -1
- package/dist/document/document-item.js +1 -2
- package/dist/document/document-item.js.map +1 -1
- package/dist/document/document-item.repository.d.ts +2 -2
- package/dist/document/document-item.repository.js +1 -1
- package/dist/document/document.d.ts +14 -16
- package/dist/document/document.js +50 -38
- package/dist/document/document.js.map +1 -1
- package/dist/document/document.repository.d.ts +3 -14
- package/dist/document/document.repository.js +4 -39
- package/dist/document/document.repository.js.map +1 -1
- package/dist/document/interfaces/document-item.repository.interface.d.ts +2 -2
- package/dist/enum/index.d.ts +2 -1
- package/dist/enum/index.js +3 -1
- package/dist/enum/index.js.map +1 -1
- package/dist/enum/payment-status.enum.d.ts +4 -0
- package/dist/enum/payment-status.enum.js +9 -0
- package/dist/enum/payment-status.enum.js.map +1 -0
- package/dist/finance-company/finance-company.d.ts +5 -8
- package/dist/finance-company/finance-company.js +10 -15
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/finance-company/finance-company.repository.d.ts +2 -2
- package/dist/finance-company/finance-company.repository.js +1 -1
- package/dist/index.d.ts +11 -8
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/interfaces/account-system.interface.d.ts +2 -2
- package/dist/journal-entry/journal-entry.d.ts +5 -7
- package/dist/journal-entry/journal-entry.js +8 -9
- package/dist/journal-entry/journal-entry.js.map +1 -1
- package/dist/journal-entry/journal-entry.repository.d.ts +3 -13
- package/dist/journal-entry/journal-entry.repository.js +5 -38
- package/dist/journal-entry/journal-entry.repository.js.map +1 -1
- package/dist/ledger-transaction/ledger-transaction.d.ts +1 -1
- package/dist/ledger-transaction/ledger-transaction.js +1 -2
- package/dist/ledger-transaction/ledger-transaction.js.map +1 -1
- package/dist/models/account.entity.d.ts +7 -3
- package/dist/models/account.entity.js +69 -34
- package/dist/models/account.entity.js.map +1 -1
- package/dist/models/finance-company.entity.d.ts +0 -4
- package/dist/models/finance-company.entity.js +0 -20
- package/dist/models/finance-company.entity.js.map +1 -1
- package/dist/models/payment-item.entity.d.ts +1 -0
- package/dist/models/payment-item.entity.js +7 -0
- package/dist/models/payment-item.entity.js.map +1 -1
- package/dist/models/payment-method-type.entity.d.ts +13 -0
- package/dist/models/payment-method-type.entity.js +86 -0
- package/dist/models/payment-method-type.entity.js.map +1 -0
- package/dist/models/payment-method.entity.d.ts +7 -0
- package/dist/models/payment-method.entity.js +46 -0
- package/dist/models/payment-method.entity.js.map +1 -0
- package/dist/models/payment.entity.d.ts +15 -10
- package/dist/models/payment.entity.js +92 -34
- package/dist/models/payment.entity.js.map +1 -1
- package/dist/payment/interfaces/payment-attr.interface.d.ts +11 -8
- package/dist/payment/interfaces/payment-attr.interface.js.map +1 -1
- package/dist/payment/interfaces/payment-item-attr.interface.d.ts +1 -0
- package/dist/payment/interfaces/payment-item-attr.interface.js.map +1 -1
- package/dist/payment/payment-item.repository.d.ts +3 -15
- package/dist/payment/payment-item.repository.js +4 -43
- package/dist/payment/payment-item.repository.js.map +1 -1
- package/dist/payment/payment.d.ts +46 -48
- package/dist/payment/payment.js +105 -126
- package/dist/payment/payment.js.map +1 -1
- package/dist/payment/payment.repository.d.ts +3 -14
- package/dist/payment/payment.repository.js +4 -39
- package/dist/payment/payment.repository.js.map +1 -1
- package/dist/payment-item/interfaces/payment-item-attr.interface.d.ts +8 -0
- package/dist/payment-item/interfaces/payment-item-attr.interface.js +7 -0
- package/dist/payment-item/interfaces/payment-item-attr.interface.js.map +1 -0
- package/{src/payment/interfaces/payment-item.repository.interface.ts → dist/payment-item/interfaces/payment-item.repository.interface.d.ts} +0 -1
- package/dist/payment-item/interfaces/payment-item.repository.interface.js +3 -0
- package/dist/payment-item/interfaces/payment-item.repository.interface.js.map +1 -0
- package/dist/payment-item/payment-item.d.ts +22 -0
- package/dist/payment-item/payment-item.js +42 -0
- package/dist/payment-item/payment-item.js.map +1 -0
- package/dist/payment-item/payment-item.repository.d.ts +5 -0
- package/dist/payment-item/payment-item.repository.js +12 -0
- package/dist/payment-item/payment-item.repository.js.map +1 -0
- package/dist/payment-method/interfaces/payment-method-attr.interface.d.ts +4 -0
- package/dist/payment-method/interfaces/payment-method-attr.interface.js +3 -0
- package/dist/payment-method/interfaces/payment-method-attr.interface.js.map +1 -0
- package/dist/payment-method/payment-method.d.ts +10 -0
- package/dist/payment-method/payment-method.js +15 -0
- package/dist/payment-method/payment-method.js.map +1 -0
- package/dist/payment-method/payment-method.repository.d.ts +5 -0
- package/dist/payment-method/payment-method.repository.js +12 -0
- package/dist/payment-method/payment-method.repository.js.map +1 -0
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.d.ts +8 -0
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js +3 -0
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js.map +1 -0
- package/dist/payment-method-type/payment-method-type.d.ts +14 -0
- package/dist/payment-method-type/payment-method-type.js +15 -0
- package/dist/payment-method-type/payment-method-type.js.map +1 -0
- package/dist/payment-method-type/payment-method-type.repository.d.ts +5 -0
- package/dist/payment-method-type/payment-method-type.repository.js +12 -0
- package/dist/payment-method-type/payment-method-type.repository.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/finance-account-migration.js +30 -16
- package/migrations/finance-company-migration.js +0 -14
- package/migrations/finance-payment-item-migration.js +4 -0
- package/migrations/finance-payment-method-migration.js +21 -0
- package/migrations/finance-payment-method-type-migration.js +55 -0
- package/migrations/finance-payment-migration.js +42 -25
- package/package.json +4 -4
- package/src/account/account.repository.ts +5 -38
- package/src/account/account.ts +79 -100
- package/src/account/interfaces/account-attr.interface.ts +15 -7
- package/src/account-system-entity/account-system-entity.ts +4 -4
- package/src/account-system-entity/post-history.repository.ts +3 -3
- package/src/customer/customer.ts +3 -3
- package/src/customer/finance-customer.repository.ts +2 -2
- package/src/customer/interfaces/finance-customer.repository.interface.ts +2 -2
- package/src/document/document-item.repository.ts +2 -2
- package/src/document/document-item.ts +1 -1
- package/src/document/document.repository.ts +5 -35
- package/src/document/document.ts +66 -55
- package/src/document/interfaces/document-item.repository.interface.ts +2 -2
- package/src/enum/index.ts +2 -0
- package/src/enum/payment-status.enum.ts +4 -0
- package/src/finance-company/finance-company.repository.ts +3 -3
- package/src/finance-company/finance-company.ts +14 -26
- package/src/index.ts +13 -7
- package/src/interfaces/account-system.interface.ts +2 -2
- package/src/journal-entry/journal-entry.repository.ts +5 -34
- package/src/journal-entry/journal-entry.ts +13 -16
- package/src/ledger-transaction/ledger-transaction.ts +1 -1
- package/src/models/account.entity.ts +67 -32
- package/src/models/finance-company.entity.ts +0 -16
- package/src/models/payment-item.entity.ts +6 -0
- package/src/models/payment-method-type.entity.ts +70 -0
- package/src/models/payment-method.entity.ts +28 -0
- package/src/models/payment.entity.ts +86 -31
- package/src/payment/interfaces/payment-attr.interface.ts +11 -8
- package/src/payment/payment.repository.ts +5 -35
- package/src/payment/payment.ts +150 -179
- package/src/{payment → payment-item}/interfaces/payment-item-attr.interface.ts +1 -0
- package/src/payment-item/payment-item.repository.ts +11 -0
- package/src/payment-item/payment-item.ts +58 -0
- package/src/payment-method/interfaces/payment-method-attr.interface.ts +4 -0
- package/src/payment-method/payment-method.repository.ts +11 -0
- package/src/payment-method/payment-method.ts +20 -0
- package/src/payment-method-type/interfaces/payment-method-type-attr.interface.ts +8 -0
- package/src/payment-method-type/payment-method-type.repository.ts +11 -0
- package/src/payment-method-type/payment-method-type.ts +24 -0
- package/src/account/interfaces/account.repository.interface.ts +0 -4
- package/src/document/interfaces/document.repository.interface.ts +0 -4
- package/src/journal-entry/interfaces/journal-entry.repository.interface.ts +0 -11
- package/src/payment/interfaces/payment.repository.interface.ts +0 -4
- package/src/payment/payment-item.repository.ts +0 -49
package/dist/payment/payment.js
CHANGED
|
@@ -9,146 +9,125 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
const payment_entity_1 = require("../models/payment.entity");
|
|
14
|
-
const axios_1 = require("axios");
|
|
12
|
+
const general_1 = require("@tomei/general");
|
|
15
13
|
const account_system_entity_1 = require("../account-system-entity/account-system-entity");
|
|
14
|
+
const payment_repository_1 = require("./payment.repository");
|
|
15
|
+
const payment_item_1 = require("../payment-item/payment-item");
|
|
16
16
|
class Payment extends account_system_entity_1.AccountSystemEntity {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.AccountingSystem = AccountingSystem;
|
|
20
|
-
this.PaymentRepository = PaymentRepository;
|
|
21
|
-
this.PaymentItemRepository = PaymentItemRepository;
|
|
22
|
-
this.Customer = Customer;
|
|
23
|
-
this.ReceivableAccount = ReceivableAccount;
|
|
24
|
-
this.DepositAccount = DepositAccount;
|
|
25
|
-
this.PaymentItems = PaymentItems;
|
|
26
|
-
if (Params) {
|
|
27
|
-
this.init(Params);
|
|
28
|
-
}
|
|
29
|
-
if (sequelize) {
|
|
30
|
-
this.sequelize = sequelize;
|
|
31
|
-
}
|
|
17
|
+
get PaymentId() {
|
|
18
|
+
return this._PaymentId;
|
|
32
19
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.Currency = Params.Currency;
|
|
36
|
-
if (Params.Method)
|
|
37
|
-
this.Method = Params.Method;
|
|
38
|
-
if (Params.MethodParty)
|
|
39
|
-
this.MethodParty = Params.MethodParty;
|
|
40
|
-
if (Params.PaymentType)
|
|
41
|
-
this.PaymentType = Params.PaymentType;
|
|
20
|
+
set PaymentId(id) {
|
|
21
|
+
this._PaymentId = id;
|
|
42
22
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (this.PaymentItems.length === 0) {
|
|
46
|
-
throw new Error('Payment must have at least one payment item');
|
|
47
|
-
}
|
|
48
|
-
this.PaymentItems.forEach((paymentItem) => {
|
|
49
|
-
this.Amount += paymentItem.Amount;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return this.Amount;
|
|
23
|
+
get Status() {
|
|
24
|
+
return this._Status;
|
|
53
25
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
throw new Error('Currency is missing.');
|
|
57
|
-
}
|
|
58
|
-
return this.Currency;
|
|
26
|
+
set Status(status) {
|
|
27
|
+
this._Status = status;
|
|
59
28
|
}
|
|
60
|
-
|
|
61
|
-
this.
|
|
29
|
+
get ReceivedBy() {
|
|
30
|
+
return this._ReceivedBy;
|
|
62
31
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (!this.DepositAccountNo) {
|
|
66
|
-
this.DepositAccountNo = yield this.DepositAccount.getAccountNo();
|
|
67
|
-
}
|
|
68
|
-
return this.DepositAccountNo;
|
|
69
|
-
});
|
|
32
|
+
set ReceivedBy(id) {
|
|
33
|
+
this._ReceivedBy = id;
|
|
70
34
|
}
|
|
71
|
-
|
|
72
|
-
return
|
|
73
|
-
|
|
74
|
-
|
|
35
|
+
get UpdatedBy() {
|
|
36
|
+
return this._UpdatedBy;
|
|
37
|
+
}
|
|
38
|
+
set UpdatedBy(id) {
|
|
39
|
+
this._UpdatedBy = id;
|
|
40
|
+
}
|
|
41
|
+
get UpdatedAt() {
|
|
42
|
+
return this._UpdatedAt;
|
|
43
|
+
}
|
|
44
|
+
set UpdatedAt(date) {
|
|
45
|
+
this._UpdatedAt = date;
|
|
46
|
+
}
|
|
47
|
+
get RepositoryBase() {
|
|
48
|
+
return Payment._RepositoryBase;
|
|
49
|
+
}
|
|
50
|
+
get ObjectId() {
|
|
51
|
+
return this.PaymentId;
|
|
52
|
+
}
|
|
53
|
+
get ObjectName() {
|
|
54
|
+
return this.PaymentId;
|
|
55
|
+
}
|
|
56
|
+
get TableName() {
|
|
57
|
+
return 'finance_Payment';
|
|
58
|
+
}
|
|
59
|
+
constructor(dbTransaction, paymentId) {
|
|
60
|
+
super();
|
|
61
|
+
this._PaymentId = 'New';
|
|
62
|
+
this._PaymentItems = null;
|
|
63
|
+
this.RepositoryBase.findOne({
|
|
64
|
+
where: {
|
|
65
|
+
PaymentId: paymentId,
|
|
66
|
+
},
|
|
67
|
+
transaction: dbTransaction,
|
|
68
|
+
})
|
|
69
|
+
.then((paymentData) => {
|
|
70
|
+
if (paymentData) {
|
|
71
|
+
this.PaymentType = paymentData.PaymentType;
|
|
72
|
+
this.PaymentDate = paymentData.PaymentDate;
|
|
73
|
+
this.CompanyId = paymentData.CompanyId;
|
|
74
|
+
this.MethodTypeId = paymentData.MethodTypeId;
|
|
75
|
+
this.Currency = paymentData.Currency;
|
|
76
|
+
this.Amount = paymentData.Amount;
|
|
77
|
+
this.Status = paymentData.Status;
|
|
78
|
+
this.TransactionId = paymentData.TransactionId;
|
|
79
|
+
this.TransactionApprovalCode = paymentData.TransactionApprovalCode;
|
|
80
|
+
this.TransactionAccountName = paymentData.TransactionAccountName;
|
|
81
|
+
this.TransactionAccountNo = paymentData.TransactionAccountNo;
|
|
82
|
+
this.ReceivedBy = paymentData.ReceivedBy;
|
|
83
|
+
this.UpdatedAt = paymentData.UpdatedAt;
|
|
84
|
+
this.UpdatedBy = paymentData.UpdatedBy;
|
|
85
|
+
this.Remarks = paymentData.Remarks;
|
|
86
|
+
this.AccSystemRefId = paymentData.AccSystemRefId;
|
|
87
|
+
this.PostedToAccSystemYN = paymentData.PostedToAccSystemYN;
|
|
88
|
+
this.PostedById = paymentData.PostedById;
|
|
89
|
+
this.PostedDateTime = paymentData.PostedDateTime;
|
|
75
90
|
}
|
|
76
|
-
|
|
91
|
+
else {
|
|
92
|
+
const notFoundError = new general_1.RecordNotFoundError('No Record Found.');
|
|
93
|
+
throw notFoundError;
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
.catch((err) => {
|
|
97
|
+
console.log('Payment Class constructor err: ', err);
|
|
77
98
|
});
|
|
78
99
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
if (!this.Method) {
|
|
93
|
-
throw new Error('Method is required.');
|
|
94
|
-
}
|
|
95
|
-
if (this.PaymentItems.length === 0) {
|
|
96
|
-
throw new Error('Payment must have at least one payment item');
|
|
97
|
-
}
|
|
98
|
-
this.ReceivableAccountNo = yield this.ReceivableAccount.getAccountNo();
|
|
99
|
-
this.DepositAccountNo = yield this.DepositAccount.getAccountNo();
|
|
100
|
-
this.ObjectId = yield this.AccountingSystem.makePayment(this.Customer, this);
|
|
101
|
-
this.Status = 'Successfull';
|
|
102
|
-
const paymentAttribute = {
|
|
103
|
-
PaymentId: this.ObjectId,
|
|
104
|
-
AccountNo: this.DepositAccountNo,
|
|
105
|
-
PaymentType: this.PaymentType,
|
|
106
|
-
PaymentDate: new Date(),
|
|
107
|
-
Currency: this.Currency,
|
|
108
|
-
Amount: this.Amount,
|
|
109
|
-
Status: this.Status,
|
|
110
|
-
Method: this.Method,
|
|
111
|
-
MethodParty: this.MethodParty,
|
|
112
|
-
ReceivedBy: this.ReceivableAccountNo,
|
|
113
|
-
UpdatedAt: new Date(),
|
|
114
|
-
UpdatedBy: 'System',
|
|
115
|
-
};
|
|
116
|
-
const payment = yield this.PaymentRepository.create(paymentAttribute, {
|
|
117
|
-
transaction,
|
|
100
|
+
get PaymentItems() {
|
|
101
|
+
if (this._PaymentItems === null) {
|
|
102
|
+
this._PaymentItems = new Array();
|
|
103
|
+
if (this.PaymentId !== 'New') {
|
|
104
|
+
this.paymentItemRepository
|
|
105
|
+
.findAll({
|
|
106
|
+
where: {
|
|
107
|
+
PaymentId: this.PaymentId,
|
|
108
|
+
},
|
|
109
|
+
})
|
|
110
|
+
.then((allPaymentItems) => {
|
|
111
|
+
this._PaymentItems = allPaymentItems;
|
|
118
112
|
});
|
|
119
|
-
const paymentItemsData = [];
|
|
120
|
-
this.PaymentItems.forEach((paymentItem) => __awaiter(this, void 0, void 0, function* () {
|
|
121
|
-
paymentItemsData.push({
|
|
122
|
-
PaymentId: this.ObjectId,
|
|
123
|
-
PayForObjectId: paymentItem.ObjectId,
|
|
124
|
-
PayForObjectType: paymentItem.Type,
|
|
125
|
-
Amount: paymentItem.Amount,
|
|
126
|
-
Currency: paymentItem.Currency,
|
|
127
|
-
});
|
|
128
|
-
}));
|
|
129
|
-
yield this.PaymentItemRepository.bulkCreate(paymentItemsData, {
|
|
130
|
-
transaction,
|
|
131
|
-
});
|
|
132
|
-
const payload = {
|
|
133
|
-
Action: 'Create',
|
|
134
|
-
Activity: 'Payment Created',
|
|
135
|
-
Description: `Account (ID: ${this.ObjectId}) has been created`,
|
|
136
|
-
EntityType: typeof payment_entity_1.default,
|
|
137
|
-
EntityValueBefore: JSON.stringify({}),
|
|
138
|
-
EntityValueAfter: JSON.stringify(payment),
|
|
139
|
-
PerformedById: payment.UpdatedBy,
|
|
140
|
-
PerformedAt: payment.UpdatedAt,
|
|
141
|
-
EntityId: this.ObjectId,
|
|
142
|
-
};
|
|
143
|
-
yield axios_1.default.post(`${process.env.COMMON_API_URL}/activity-histories`, payload);
|
|
144
|
-
yield transaction.commit();
|
|
145
|
-
}
|
|
146
|
-
catch (error) {
|
|
147
|
-
yield transaction.rollback();
|
|
148
|
-
throw error;
|
|
149
113
|
}
|
|
114
|
+
}
|
|
115
|
+
return this._PaymentItems;
|
|
116
|
+
}
|
|
117
|
+
newPaymentItem(objectBeingPaidFor) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
const paymentItem = new payment_item_1.default(new Payment(null, this.PaymentId), objectBeingPaidFor);
|
|
120
|
+
this.PaymentItems.push(paymentItem);
|
|
121
|
+
return paymentItem;
|
|
150
122
|
});
|
|
151
123
|
}
|
|
124
|
+
init(Params) {
|
|
125
|
+
if (Params.Currency)
|
|
126
|
+
this.Currency = Params.Currency;
|
|
127
|
+
if (Params.PaymentType)
|
|
128
|
+
this.PaymentType = Params.PaymentType;
|
|
129
|
+
}
|
|
152
130
|
}
|
|
153
|
-
exports.
|
|
131
|
+
exports.default = Payment;
|
|
132
|
+
Payment._RepositoryBase = new payment_repository_1.PaymentRepository();
|
|
154
133
|
//# sourceMappingURL=payment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../src/payment/payment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../src/payment/payment.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
2
2
|
import PaymentModel from '../models/payment.entity';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare class PaymentRepository extends BaseRepository<PaymentModel> implements IPaymentRepository {
|
|
6
|
-
private readonly paymentModel;
|
|
7
|
-
constructor(paymentModel: typeof PaymentModel);
|
|
8
|
-
create(data: IPaymentAttr, options?: any): Promise<PaymentModel> | any;
|
|
9
|
-
findAll(options: any): Promise<PaymentModel[]>;
|
|
10
|
-
findAllWithPagination(options: any): Promise<{
|
|
11
|
-
count: number;
|
|
12
|
-
rows: PaymentModel[];
|
|
13
|
-
}>;
|
|
14
|
-
findOne(options: any): Promise<PaymentModel>;
|
|
15
|
-
update(data: IPaymentAttr, options?: any): any;
|
|
3
|
+
export declare class PaymentRepository extends RepositoryBase<PaymentModel> implements IRepositoryBase<PaymentModel> {
|
|
4
|
+
constructor();
|
|
16
5
|
}
|
|
@@ -1,47 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.PaymentRepository = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const sequelize_1 = require("@nestjs/sequelize");
|
|
18
4
|
const general_1 = require("@tomei/general");
|
|
19
5
|
const payment_entity_1 = require("../models/payment.entity");
|
|
20
|
-
|
|
21
|
-
constructor(
|
|
22
|
-
super(
|
|
23
|
-
this.paymentModel = paymentModel;
|
|
6
|
+
class PaymentRepository extends general_1.RepositoryBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(payment_entity_1.default);
|
|
24
9
|
}
|
|
25
|
-
|
|
26
|
-
return this.paymentModel.create(Object.assign({}, data), options);
|
|
27
|
-
}
|
|
28
|
-
findAll(options) {
|
|
29
|
-
return this.paymentModel.findAll(options);
|
|
30
|
-
}
|
|
31
|
-
findAllWithPagination(options) {
|
|
32
|
-
return this.paymentModel.findAndCountAll(options);
|
|
33
|
-
}
|
|
34
|
-
findOne(options) {
|
|
35
|
-
return this.paymentModel.findOne(options);
|
|
36
|
-
}
|
|
37
|
-
update(data, options) {
|
|
38
|
-
return this.paymentModel.update(Object.assign({}, data), options);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
PaymentRepository = __decorate([
|
|
42
|
-
(0, common_1.Injectable)(),
|
|
43
|
-
__param(0, (0, sequelize_1.InjectModel)(payment_entity_1.default)),
|
|
44
|
-
__metadata("design:paramtypes", [Object])
|
|
45
|
-
], PaymentRepository);
|
|
10
|
+
}
|
|
46
11
|
exports.PaymentRepository = PaymentRepository;
|
|
47
12
|
//# sourceMappingURL=payment.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.repository.js","sourceRoot":"","sources":["../../src/payment/payment.repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payment.repository.js","sourceRoot":"","sources":["../../src/payment/payment.repository.ts"],"names":[],"mappings":";;;AAAA,4CAAiE;AACjE,6DAAoD;AAEpD,MAAa,iBACX,SAAQ,wBAA4B;IAGpC;QACE,KAAK,CAAC,wBAAY,CAAC,CAAC;IACtB,CAAC;CACF;AAPD,8CAOC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-item-attr.interface.js","sourceRoot":"","sources":["../../../src/payment-item/interfaces/payment-item-attr.interface.ts"],"names":[],"mappings":";;;AAAA,MAAa,gBAAgB;CAO5B;AAPD,4CAOC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-item.repository.interface.js","sourceRoot":"","sources":["../../../src/payment-item/interfaces/payment-item.repository.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ObjectBase } from '@tomei/general';
|
|
2
|
+
import Payment from '../payment/payment';
|
|
3
|
+
export default class PaymentItem extends ObjectBase {
|
|
4
|
+
private _PaymentId;
|
|
5
|
+
private _PayForObjectId;
|
|
6
|
+
private _PayForObjectType;
|
|
7
|
+
Currency: string;
|
|
8
|
+
Amount: number;
|
|
9
|
+
_TableName: string;
|
|
10
|
+
_ObjectId: string;
|
|
11
|
+
_ObjectName: string;
|
|
12
|
+
get PaymentId(): string;
|
|
13
|
+
private set PaymentId(value);
|
|
14
|
+
get PayForObjectId(): string;
|
|
15
|
+
private set PayForObjectId(value);
|
|
16
|
+
get PayForObjectType(): string;
|
|
17
|
+
private set PayForObjectType(value);
|
|
18
|
+
get ObjectId(): string;
|
|
19
|
+
get ObjectName(): string;
|
|
20
|
+
get TableName(): string;
|
|
21
|
+
constructor(payment: Payment, objectBeingPaidFor: ObjectBase);
|
|
22
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const general_1 = require("@tomei/general");
|
|
4
|
+
class PaymentItem extends general_1.ObjectBase {
|
|
5
|
+
get PaymentId() {
|
|
6
|
+
return this._PaymentId;
|
|
7
|
+
}
|
|
8
|
+
set PaymentId(id) {
|
|
9
|
+
this._PaymentId = id;
|
|
10
|
+
}
|
|
11
|
+
get PayForObjectId() {
|
|
12
|
+
return this._PayForObjectId;
|
|
13
|
+
}
|
|
14
|
+
set PayForObjectId(id) {
|
|
15
|
+
this._PayForObjectId = id;
|
|
16
|
+
}
|
|
17
|
+
get PayForObjectType() {
|
|
18
|
+
return this._PayForObjectType;
|
|
19
|
+
}
|
|
20
|
+
set PayForObjectType(type) {
|
|
21
|
+
this._PayForObjectType = type;
|
|
22
|
+
}
|
|
23
|
+
get ObjectId() {
|
|
24
|
+
return '';
|
|
25
|
+
}
|
|
26
|
+
get ObjectName() {
|
|
27
|
+
return '';
|
|
28
|
+
}
|
|
29
|
+
get TableName() {
|
|
30
|
+
return 'finance_PaymentItem';
|
|
31
|
+
}
|
|
32
|
+
constructor(payment, objectBeingPaidFor) {
|
|
33
|
+
super();
|
|
34
|
+
this.Currency = 'MYR';
|
|
35
|
+
this.Amount = 0;
|
|
36
|
+
this.PaymentId = payment.PaymentId;
|
|
37
|
+
this.PayForObjectId = objectBeingPaidFor.ObjectId;
|
|
38
|
+
this.PayForObjectType = typeof objectBeingPaidFor;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.default = PaymentItem;
|
|
42
|
+
//# sourceMappingURL=payment-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-item.js","sourceRoot":"","sources":["../../src/payment-item/payment-item.ts"],"names":[],"mappings":";;AAAA,4CAA4C;AAG5C,MAAqB,WAAY,SAAQ,oBAAU;IAWjD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAY,SAAS,CAAC,EAAU;QAC9B,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;IACvB,CAAC;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED,IAAY,cAAc,CAAC,EAAU;QACnC,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IAED,IAAY,gBAAgB,CAAC,IAAY;QACvC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAChC,CAAC;IAGD,IAAI,QAAQ;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,SAAS;QACX,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAED,YAAY,OAAgB,EAAE,kBAA8B;QAC1D,KAAK,EAAE,CAAC;QA7CV,aAAQ,GAAG,KAAK,CAAC;QACjB,WAAM,GAAG,CAAC,CAAC;QA6CT,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,kBAAkB,CAAC,QAAQ,CAAC;QAClD,IAAI,CAAC,gBAAgB,GAAG,OAAO,kBAAkB,CAAC;IACpD,CAAC;CACF;AAtDD,8BAsDC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
2
|
+
import PaymentItemModel from '../models/payment-item.entity';
|
|
3
|
+
export declare class PaymentItemRepository extends RepositoryBase<PaymentItemModel> implements IRepositoryBase<PaymentItemModel> {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentItemRepository = void 0;
|
|
4
|
+
const general_1 = require("@tomei/general");
|
|
5
|
+
const payment_item_entity_1 = require("../models/payment-item.entity");
|
|
6
|
+
class PaymentItemRepository extends general_1.RepositoryBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(payment_item_entity_1.default);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PaymentItemRepository = PaymentItemRepository;
|
|
12
|
+
//# sourceMappingURL=payment-item.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-item.repository.js","sourceRoot":"","sources":["../../src/payment-item/payment-item.repository.ts"],"names":[],"mappings":";;;AAAA,4CAAiE;AACjE,uEAA6D;AAE7D,MAAa,qBACX,SAAQ,wBAAgC;IAGxC;QACE,KAAK,CAAC,6BAAgB,CAAC,CAAC;IAC1B,CAAC;CACF;AAPD,sDAOC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method-attr.interface.js","sourceRoot":"","sources":["../../../src/payment-method/interfaces/payment-method-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class PaymentMethod {
|
|
4
|
+
get ObjectId() {
|
|
5
|
+
return '';
|
|
6
|
+
}
|
|
7
|
+
get ObjectName() {
|
|
8
|
+
return '';
|
|
9
|
+
}
|
|
10
|
+
get TableName() {
|
|
11
|
+
return 'finance_PaymentMethod';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.default = PaymentMethod;
|
|
15
|
+
//# sourceMappingURL=payment-method.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method.js","sourceRoot":"","sources":["../../src/payment-method/payment-method.ts"],"names":[],"mappings":";;AAAA,MAAqB,aAAa;IAQhC,IAAI,QAAQ;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,SAAS;QACX,OAAO,uBAAuB,CAAC;IACjC,CAAC;CACF;AAnBD,gCAmBC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
2
|
+
import PaymentMethodModel from 'src/models/payment-method.entity';
|
|
3
|
+
export declare class PaymentMethodRepository extends RepositoryBase<PaymentMethodModel> implements IRepositoryBase<PaymentMethodModel> {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethodRepository = void 0;
|
|
4
|
+
const general_1 = require("@tomei/general");
|
|
5
|
+
const payment_method_entity_1 = require("src/models/payment-method.entity");
|
|
6
|
+
class PaymentMethodRepository extends general_1.RepositoryBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(payment_method_entity_1.default);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PaymentMethodRepository = PaymentMethodRepository;
|
|
12
|
+
//# sourceMappingURL=payment-method.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method.repository.js","sourceRoot":"","sources":["../../src/payment-method/payment-method.repository.ts"],"names":[],"mappings":";;;AAAA,4CAAiE;AACjE,4EAAkE;AAElE,MAAa,uBACX,SAAQ,wBAAkC;IAG1C;QACE,KAAK,CAAC,+BAAkB,CAAC,CAAC;IAC5B,CAAC;CACF;AAPD,0DAOC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method-type-attr.interface.js","sourceRoot":"","sources":["../../../src/payment-method-type/interfaces/payment-method-type-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default class PaymentMethodType {
|
|
2
|
+
MethodTypeId: string;
|
|
3
|
+
MethodId: string;
|
|
4
|
+
Name: string;
|
|
5
|
+
AccountNo: string;
|
|
6
|
+
ProcessingFeeRate: number;
|
|
7
|
+
ProcessingFeeAccountNo: string;
|
|
8
|
+
_TableName: string;
|
|
9
|
+
_ObjectId: string;
|
|
10
|
+
_ObjectName: string;
|
|
11
|
+
get ObjectId(): string;
|
|
12
|
+
get ObjectName(): string;
|
|
13
|
+
get TableName(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class PaymentMethodType {
|
|
4
|
+
get ObjectId() {
|
|
5
|
+
return '';
|
|
6
|
+
}
|
|
7
|
+
get ObjectName() {
|
|
8
|
+
return '';
|
|
9
|
+
}
|
|
10
|
+
get TableName() {
|
|
11
|
+
return 'finance_PaymentMethodType';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.default = PaymentMethodType;
|
|
15
|
+
//# sourceMappingURL=payment-method-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method-type.js","sourceRoot":"","sources":["../../src/payment-method-type/payment-method-type.ts"],"names":[],"mappings":";;AAAA,MAAqB,iBAAiB;IAYpC,IAAI,QAAQ;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,SAAS;QACX,OAAO,2BAA2B,CAAC;IACrC,CAAC;CACF;AAvBD,oCAuBC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
2
|
+
import PaymentMethodType from '../models/payment-method-type.entity';
|
|
3
|
+
export declare class PaymentMethodTypeRepository extends RepositoryBase<PaymentMethodType> implements IRepositoryBase<PaymentMethodType> {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|