@tomei/finance 0.6.99 → 0.6.102
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/.husky/commit-msg +12 -3
- package/.husky/pre-commit +4 -4
- package/configs/config.js +1 -1
- package/dist/account/account.d.ts +37 -37
- package/dist/account/account.js +251 -263
- package/dist/account/account.js.map +1 -1
- package/dist/account/account.repository.d.ts +5 -5
- package/dist/account/account.repository.js +11 -11
- package/dist/account/interfaces/account-attr.interface.d.ts +29 -29
- package/dist/account/interfaces/account-attr.interface.js +2 -2
- package/dist/account-system-entity/account-system-entity.d.ts +12 -12
- package/dist/account-system-entity/account-system-entity.js +55 -66
- package/dist/account-system-entity/account-system-entity.js.map +1 -1
- package/dist/account-system-entity/post-history.repository.d.ts +5 -5
- package/dist/account-system-entity/post-history.repository.js +11 -11
- package/dist/config.d.ts +1888 -1888
- package/dist/config.js +331 -331
- package/dist/config.js.map +1 -1
- package/dist/customer/customer.d.ts +44 -44
- package/dist/customer/customer.js +212 -234
- package/dist/customer/customer.js.map +1 -1
- package/dist/customer/finance-customer.repository.d.ts +5 -5
- package/dist/customer/finance-customer.repository.js +25 -25
- package/dist/customer/finance-customer.repository.js.map +1 -1
- package/dist/customer/interfaces/customer.repository.interface.d.ts +3 -3
- package/dist/customer/interfaces/customer.repository.interface.js +2 -2
- package/dist/customer/interfaces/finance-customer-attr.interface.d.ts +10 -10
- package/dist/customer/interfaces/finance-customer-attr.interface.js +2 -2
- package/dist/customer/interfaces/finance-customer.repository.interface.d.ts +3 -3
- package/dist/customer/interfaces/finance-customer.repository.interface.js +2 -2
- package/dist/database.d.ts +4 -4
- package/dist/database.js +46 -47
- package/dist/database.js.map +1 -1
- package/dist/document/document-item.d.ts +46 -46
- package/dist/document/document-item.js +122 -132
- package/dist/document/document-item.js.map +1 -1
- package/dist/document/document-item.repository.d.ts +5 -5
- package/dist/document/document-item.repository.js +11 -11
- package/dist/document/document.d.ts +87 -88
- package/dist/document/document.js +735 -766
- package/dist/document/document.js.map +1 -1
- package/dist/document/document.repository.d.ts +5 -5
- package/dist/document/document.repository.js +11 -11
- package/dist/document/interfaces/document-attr.interface.d.ts +27 -27
- package/dist/document/interfaces/document-attr.interface.js +6 -6
- package/dist/document/interfaces/document-find-all.interface.d.ts +13 -13
- package/dist/document/interfaces/document-find-all.interface.js +2 -2
- package/dist/document/interfaces/document-item-attr.interface.d.ts +26 -26
- package/dist/document/interfaces/document-item-attr.interface.js +6 -6
- package/dist/document/interfaces/document-item.repository.interface.d.ts +3 -3
- package/dist/document/interfaces/document-item.repository.interface.js +2 -2
- package/dist/enum/collect-payment-type.d.ts +4 -4
- package/dist/enum/collect-payment-type.js +8 -8
- package/dist/enum/collect-payment-type.js.map +1 -1
- package/dist/enum/doc-type.enum.d.ts +8 -8
- package/dist/enum/doc-type.enum.js +12 -12
- package/dist/enum/doc-type.enum.js.map +1 -1
- package/dist/enum/document-status.enum.d.ts +6 -6
- package/dist/enum/document-status.enum.js +10 -10
- package/dist/enum/document-status.enum.js.map +1 -1
- package/dist/enum/index.d.ts +9 -9
- package/dist/enum/index.js +19 -19
- package/dist/enum/payment-method.enum.d.ts +3 -3
- package/dist/enum/payment-method.enum.js +7 -7
- package/dist/enum/payment-method.enum.js.map +1 -1
- package/dist/enum/payment-status.enum.d.ts +10 -10
- package/dist/enum/payment-status.enum.js +15 -16
- package/dist/enum/payment-status.enum.js.map +1 -1
- package/dist/enum/payment-type.enum.d.ts +4 -4
- package/dist/enum/payment-type.enum.js +8 -8
- package/dist/enum/payment-type.enum.js.map +1 -1
- package/dist/enum/quick-book-client-scopes.enum.d.ts +13 -13
- package/dist/enum/quick-book-client-scopes.enum.js +18 -18
- package/dist/enum/quick-book-client-scopes.enum.js.map +1 -1
- package/dist/enum/transaction-type.enum.d.ts +4 -4
- package/dist/enum/transaction-type.enum.js +8 -8
- package/dist/enum/transaction-type.enum.js.map +1 -1
- package/dist/finance-company/finance-company.d.ts +88 -88
- package/dist/finance-company/finance-company.js +1533 -1576
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/finance-company/finance-company.repository.d.ts +5 -5
- package/dist/finance-company/finance-company.repository.js +11 -11
- package/dist/helpers/login-user.d.ts +13 -13
- package/dist/helpers/login-user.js +28 -28
- package/dist/helpers/login-user.js.map +1 -1
- package/dist/helpers/typeof.d.ts +1 -1
- package/dist/helpers/typeof.js +28 -29
- package/dist/helpers/typeof.js.map +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +32 -32
- package/dist/interfaces/account-system.interface.d.ts +30 -30
- package/dist/interfaces/account-system.interface.js +2 -2
- package/dist/interfaces/index.d.ts +2 -2
- package/dist/interfaces/index.js +2 -2
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.d.ts +12 -12
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.js +2 -2
- package/dist/journal-entry/journal-entry.d.ts +42 -42
- package/dist/journal-entry/journal-entry.js +216 -233
- package/dist/journal-entry/journal-entry.js.map +1 -1
- package/dist/journal-entry/journal-entry.repository.d.ts +6 -6
- package/dist/journal-entry/journal-entry.repository.js +16 -27
- package/dist/journal-entry/journal-entry.repository.js.map +1 -1
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.d.ts +17 -17
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.js +2 -2
- package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.d.ts +5 -5
- package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.js +2 -2
- package/dist/ledger-transaction/ledger-transaction.d.ts +54 -54
- package/dist/ledger-transaction/ledger-transaction.js +143 -164
- package/dist/ledger-transaction/ledger-transaction.js.map +1 -1
- package/dist/ledger-transaction/ledger-transaction.repository.d.ts +6 -6
- package/dist/ledger-transaction/ledger-transaction.repository.js +16 -27
- package/dist/ledger-transaction/ledger-transaction.repository.js.map +1 -1
- package/dist/models/account.entity.d.ts +30 -30
- package/dist/models/account.entity.js +232 -232
- package/dist/models/account.entity.js.map +1 -1
- package/dist/models/customer.entity.d.ts +13 -13
- package/dist/models/customer.entity.js +109 -109
- package/dist/models/customer.entity.js.map +1 -1
- package/dist/models/document-item.entity.d.ts +31 -31
- package/dist/models/document-item.entity.js +200 -200
- package/dist/models/document-item.entity.js.map +1 -1
- package/dist/models/document.entity.d.ts +36 -36
- package/dist/models/document.entity.js +242 -242
- package/dist/models/document.entity.js.map +1 -1
- package/dist/models/finance-company.entity.d.ts +15 -15
- package/dist/models/finance-company.entity.js +93 -93
- package/dist/models/finance-company.entity.js.map +1 -1
- package/dist/models/journal-entry.entity.d.ts +16 -16
- package/dist/models/journal-entry.entity.js +127 -127
- package/dist/models/journal-entry.entity.js.map +1 -1
- package/dist/models/ledger-transaction.entity.d.ts +24 -24
- package/dist/models/ledger-transaction.entity.js +172 -172
- package/dist/models/ledger-transaction.entity.js.map +1 -1
- package/dist/models/payment-item.entity.d.ts +12 -12
- package/dist/models/payment-item.entity.js +75 -75
- package/dist/models/payment-item.entity.js.map +1 -1
- package/dist/models/payment-method-type.entity.d.ts +13 -13
- package/dist/models/payment-method-type.entity.js +85 -85
- package/dist/models/payment-method-type.entity.js.map +1 -1
- package/dist/models/payment-method.entity.d.ts +10 -10
- package/dist/models/payment-method.entity.js +62 -62
- package/dist/models/payment-method.entity.js.map +1 -1
- package/dist/models/payment-paid-with.entity.d.ts +24 -24
- package/dist/models/payment-paid-with.entity.js +158 -158
- package/dist/models/payment-paid-with.entity.js.map +1 -1
- package/dist/models/payment.entity.d.ts +29 -29
- package/dist/models/payment.entity.js +193 -193
- package/dist/models/payment.entity.js.map +1 -1
- package/dist/models/post-history.entity.d.ts +11 -11
- package/dist/models/post-history.entity.js +63 -63
- package/dist/models/post-history.entity.js.map +1 -1
- package/dist/models/tax.entity.d.ts +13 -13
- package/dist/models/tax.entity.js +89 -89
- package/dist/models/tax.entity.js.map +1 -1
- package/dist/payment/interfaces/payment-attr.interface.d.ts +22 -22
- package/dist/payment/interfaces/payment-attr.interface.js +6 -6
- package/dist/payment/interfaces/payment-params.interface.d.ts +7 -7
- package/dist/payment/interfaces/payment-params.interface.js +2 -2
- package/dist/payment/payment.d.ts +53 -53
- package/dist/payment/payment.js +186 -201
- package/dist/payment/payment.js.map +1 -1
- package/dist/payment/payment.repository.d.ts +5 -5
- package/dist/payment/payment.repository.js +11 -11
- package/dist/payment-item/interfaces/payment-item-attr.interface.d.ts +10 -10
- package/dist/payment-item/interfaces/payment-item-attr.interface.js +6 -6
- package/dist/payment-item/payment-item.d.ts +25 -25
- package/dist/payment-item/payment-item.js +111 -122
- package/dist/payment-item/payment-item.js.map +1 -1
- package/dist/payment-item/payment-item.repository.d.ts +5 -5
- package/dist/payment-item/payment-item.repository.js +11 -11
- package/dist/payment-method/interfaces/payment-method-attr.interface.d.ts +5 -5
- package/dist/payment-method/interfaces/payment-method-attr.interface.js +2 -2
- package/dist/payment-method/payment-method.d.ts +21 -21
- package/dist/payment-method/payment-method.js +104 -117
- package/dist/payment-method/payment-method.js.map +1 -1
- package/dist/payment-method/payment-method.repository.d.ts +5 -5
- package/dist/payment-method/payment-method.repository.js +11 -11
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.d.ts +8 -8
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js +2 -2
- package/dist/payment-method-type/payment-method-type.d.ts +18 -18
- package/dist/payment-method-type/payment-method-type.js +65 -76
- package/dist/payment-method-type/payment-method-type.js.map +1 -1
- package/dist/payment-method-type/payment-method-type.repository.d.ts +5 -5
- package/dist/payment-method-type/payment-method-type.repository.js +11 -11
- package/dist/payment-paid-with/interfaces/payment-paid-with.interface.d.ts +19 -19
- package/dist/payment-paid-with/interfaces/payment-paid-with.interface.js +6 -6
- package/dist/payment-paid-with/payment-paid-with.d.ts +33 -33
- package/dist/payment-paid-with/payment-paid-with.js +56 -56
- package/dist/payment-paid-with/payment-paid-with.js.map +1 -1
- package/dist/payment-paid-with/payment-paid-with.repository.d.ts +5 -5
- package/dist/payment-paid-with/payment-paid-with.repository.js +11 -11
- package/dist/tax/interfaces/tax-attr.interface.d.ts +10 -10
- package/dist/tax/interfaces/tax-attr.interface.js +2 -2
- package/dist/tax/tax.d.ts +26 -26
- package/dist/tax/tax.js +51 -51
- package/dist/tax/tax.js.map +1 -1
- package/dist/tax/tax.repository.d.ts +5 -5
- package/dist/tax/tax.repository.js +11 -11
- package/dist/test-document.d.ts +3 -3
- package/dist/test-document.js +18 -18
- package/dist/test.d.ts +1 -1
- package/dist/test.js +6 -7
- package/dist/test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.mjs +58 -0
- package/invoice-template/assets/js/html2canvas.min.js +16 -16
- package/package.json +35 -41
- package/src/account/account.ts +2 -1
- package/src/customer/customer.ts +8 -7
- package/src/document/document-item.ts +3 -2
- package/src/document/document.ts +20 -13
- package/src/enum/collect-payment-type.ts +3 -3
- package/src/enum/payment-status.enum.ts +1 -1
- package/src/finance-company/finance-company.ts +5 -7
- package/src/journal-entry/journal-entry.ts +0 -1
- package/src/ledger-transaction/ledger-transaction.ts +4 -4
- package/src/payment-method-type/payment-method-type.ts +1 -1
- package/src/tax/tax.ts +0 -1
- package/tsconfig.json +4 -3
- package/.eslintrc.js +0 -72
- package/img.png +0 -0
- package/img_1.png +0 -0
- package/tslint.json +0 -18
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentPaidWithStatus = exports.PaymentStatus = void 0;
|
|
4
|
-
var PaymentStatus;
|
|
5
|
-
(function (PaymentStatus) {
|
|
6
|
-
PaymentStatus["PENDING"] = "Pending";
|
|
7
|
-
PaymentStatus["CONFIRMED"] = "Confirmed";
|
|
8
|
-
PaymentStatus["REJECTED"] = "Rejected";
|
|
9
|
-
PaymentStatus["FAILED"] = "Failed";
|
|
10
|
-
})(PaymentStatus
|
|
11
|
-
var PaymentPaidWithStatus;
|
|
12
|
-
(function (PaymentPaidWithStatus) {
|
|
13
|
-
PaymentPaidWithStatus["SUCCESSFUL"] = "Successful";
|
|
14
|
-
PaymentPaidWithStatus["FAILED"] = "Failed";
|
|
15
|
-
})(PaymentPaidWithStatus
|
|
16
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentPaidWithStatus = exports.PaymentStatus = void 0;
|
|
4
|
+
var PaymentStatus;
|
|
5
|
+
(function (PaymentStatus) {
|
|
6
|
+
PaymentStatus["PENDING"] = "Pending";
|
|
7
|
+
PaymentStatus["CONFIRMED"] = "Confirmed";
|
|
8
|
+
PaymentStatus["REJECTED"] = "Rejected";
|
|
9
|
+
PaymentStatus["FAILED"] = "Failed";
|
|
10
|
+
})(PaymentStatus || (exports.PaymentStatus = PaymentStatus = {}));
|
|
11
|
+
var PaymentPaidWithStatus;
|
|
12
|
+
(function (PaymentPaidWithStatus) {
|
|
13
|
+
PaymentPaidWithStatus["SUCCESSFUL"] = "Successful";
|
|
14
|
+
PaymentPaidWithStatus["FAILED"] = "Failed";
|
|
15
|
+
})(PaymentPaidWithStatus || (exports.PaymentPaidWithStatus = PaymentPaidWithStatus = {}));
|
|
17
16
|
//# sourceMappingURL=payment-status.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-status.enum.js","sourceRoot":"","sources":["../../src/enum/payment-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;AACnB,CAAC,EALW,aAAa,
|
|
1
|
+
{"version":3,"file":"payment-status.enum.js","sourceRoot":"","sources":["../../src/enum/payment-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;AACnB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,kDAAyB,CAAA;IACzB,0CAAiB,CAAA;AACnB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum PaymentType {
|
|
2
|
-
PAYMENT_RECEIVED = "Payment Received",
|
|
3
|
-
PAYOUT = "Payout"
|
|
4
|
-
}
|
|
1
|
+
export declare enum PaymentType {
|
|
2
|
+
PAYMENT_RECEIVED = "Payment Received",
|
|
3
|
+
PAYOUT = "Payout"
|
|
4
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentType = void 0;
|
|
4
|
-
var PaymentType;
|
|
5
|
-
(function (PaymentType) {
|
|
6
|
-
PaymentType["PAYMENT_RECEIVED"] = "Payment Received";
|
|
7
|
-
PaymentType["PAYOUT"] = "Payout";
|
|
8
|
-
})(PaymentType
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentType = void 0;
|
|
4
|
+
var PaymentType;
|
|
5
|
+
(function (PaymentType) {
|
|
6
|
+
PaymentType["PAYMENT_RECEIVED"] = "Payment Received";
|
|
7
|
+
PaymentType["PAYOUT"] = "Payout";
|
|
8
|
+
})(PaymentType || (exports.PaymentType = PaymentType = {}));
|
|
9
9
|
//# sourceMappingURL=payment-type.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-type.enum.js","sourceRoot":"","sources":["../../src/enum/payment-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,oDAAqC,CAAA;IACrC,gCAAiB,CAAA;AACnB,CAAC,EAHW,WAAW,
|
|
1
|
+
{"version":3,"file":"payment-type.enum.js","sourceRoot":"","sources":["../../src/enum/payment-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,oDAAqC,CAAA;IACrC,gCAAiB,CAAA;AACnB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare enum ClientScopes {
|
|
2
|
-
ACCOUNTING,
|
|
3
|
-
PAYMENT,
|
|
4
|
-
PAYROLL,
|
|
5
|
-
TIMETRACKING,
|
|
6
|
-
BENEFITS,
|
|
7
|
-
PROFILE,
|
|
8
|
-
EMAIL,
|
|
9
|
-
PHONE,
|
|
10
|
-
ADDRESS,
|
|
11
|
-
OPENID,
|
|
12
|
-
INTUIT_NAME
|
|
13
|
-
}
|
|
1
|
+
export declare enum ClientScopes {
|
|
2
|
+
ACCOUNTING,
|
|
3
|
+
PAYMENT,
|
|
4
|
+
PAYROLL,
|
|
5
|
+
TIMETRACKING,
|
|
6
|
+
BENEFITS,
|
|
7
|
+
PROFILE,
|
|
8
|
+
EMAIL,
|
|
9
|
+
PHONE,
|
|
10
|
+
ADDRESS,
|
|
11
|
+
OPENID,
|
|
12
|
+
INTUIT_NAME
|
|
13
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClientScopes = void 0;
|
|
4
|
-
const OAuthClient = require("intuit-oauth");
|
|
5
|
-
var ClientScopes;
|
|
6
|
-
(function (ClientScopes) {
|
|
7
|
-
ClientScopes[ClientScopes["ACCOUNTING"] = OAuthClient.scopes.Accounting] = "ACCOUNTING";
|
|
8
|
-
ClientScopes[ClientScopes["PAYMENT"] = OAuthClient.scopes.Payment] = "PAYMENT";
|
|
9
|
-
ClientScopes[ClientScopes["PAYROLL"] = OAuthClient.scopes.Payroll] = "PAYROLL";
|
|
10
|
-
ClientScopes[ClientScopes["TIMETRACKING"] = OAuthClient.scopes.TimeTracking] = "TIMETRACKING";
|
|
11
|
-
ClientScopes[ClientScopes["BENEFITS"] = OAuthClient.scopes.Benefits] = "BENEFITS";
|
|
12
|
-
ClientScopes[ClientScopes["PROFILE"] = OAuthClient.scopes.Profile] = "PROFILE";
|
|
13
|
-
ClientScopes[ClientScopes["EMAIL"] = OAuthClient.scopes.Email] = "EMAIL";
|
|
14
|
-
ClientScopes[ClientScopes["PHONE"] = OAuthClient.scopes.Phone] = "PHONE";
|
|
15
|
-
ClientScopes[ClientScopes["ADDRESS"] = OAuthClient.scopes.Address] = "ADDRESS";
|
|
16
|
-
ClientScopes[ClientScopes["OPENID"] = OAuthClient.scopes.OpenId] = "OPENID";
|
|
17
|
-
ClientScopes[ClientScopes["INTUIT_NAME"] = OAuthClient.scopes.Intuit_name] = "INTUIT_NAME";
|
|
18
|
-
})(ClientScopes
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientScopes = void 0;
|
|
4
|
+
const OAuthClient = require("intuit-oauth");
|
|
5
|
+
var ClientScopes;
|
|
6
|
+
(function (ClientScopes) {
|
|
7
|
+
ClientScopes[ClientScopes["ACCOUNTING"] = OAuthClient.scopes.Accounting] = "ACCOUNTING";
|
|
8
|
+
ClientScopes[ClientScopes["PAYMENT"] = OAuthClient.scopes.Payment] = "PAYMENT";
|
|
9
|
+
ClientScopes[ClientScopes["PAYROLL"] = OAuthClient.scopes.Payroll] = "PAYROLL";
|
|
10
|
+
ClientScopes[ClientScopes["TIMETRACKING"] = OAuthClient.scopes.TimeTracking] = "TIMETRACKING";
|
|
11
|
+
ClientScopes[ClientScopes["BENEFITS"] = OAuthClient.scopes.Benefits] = "BENEFITS";
|
|
12
|
+
ClientScopes[ClientScopes["PROFILE"] = OAuthClient.scopes.Profile] = "PROFILE";
|
|
13
|
+
ClientScopes[ClientScopes["EMAIL"] = OAuthClient.scopes.Email] = "EMAIL";
|
|
14
|
+
ClientScopes[ClientScopes["PHONE"] = OAuthClient.scopes.Phone] = "PHONE";
|
|
15
|
+
ClientScopes[ClientScopes["ADDRESS"] = OAuthClient.scopes.Address] = "ADDRESS";
|
|
16
|
+
ClientScopes[ClientScopes["OPENID"] = OAuthClient.scopes.OpenId] = "OPENID";
|
|
17
|
+
ClientScopes[ClientScopes["INTUIT_NAME"] = OAuthClient.scopes.Intuit_name] = "INTUIT_NAME";
|
|
18
|
+
})(ClientScopes || (exports.ClientScopes = ClientScopes = {}));
|
|
19
19
|
//# sourceMappingURL=quick-book-client-scopes.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quick-book-client-scopes.enum.js","sourceRoot":"","sources":["../../src/enum/quick-book-client-scopes.enum.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,0CAAa,WAAW,CAAC,MAAM,CAAC,UAAU,gBAAA,CAAA;IAC1C,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,4CAAe,WAAW,CAAC,MAAM,CAAC,YAAY,kBAAA,CAAA;IAC9C,wCAAW,WAAW,CAAC,MAAM,CAAC,QAAQ,cAAA,CAAA;IACtC,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,qCAAQ,WAAW,CAAC,MAAM,CAAC,KAAK,WAAA,CAAA;IAChC,qCAAQ,WAAW,CAAC,MAAM,CAAC,KAAK,WAAA,CAAA;IAChC,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,sCAAS,WAAW,CAAC,MAAM,CAAC,MAAM,YAAA,CAAA;IAClC,2CAAc,WAAW,CAAC,MAAM,CAAC,WAAW,iBAAA,CAAA;AAC9C,CAAC,EAZW,YAAY,
|
|
1
|
+
{"version":3,"file":"quick-book-client-scopes.enum.js","sourceRoot":"","sources":["../../src/enum/quick-book-client-scopes.enum.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,0CAAa,WAAW,CAAC,MAAM,CAAC,UAAU,gBAAA,CAAA;IAC1C,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,4CAAe,WAAW,CAAC,MAAM,CAAC,YAAY,kBAAA,CAAA;IAC9C,wCAAW,WAAW,CAAC,MAAM,CAAC,QAAQ,cAAA,CAAA;IACtC,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,qCAAQ,WAAW,CAAC,MAAM,CAAC,KAAK,WAAA,CAAA;IAChC,qCAAQ,WAAW,CAAC,MAAM,CAAC,KAAK,WAAA,CAAA;IAChC,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,sCAAS,WAAW,CAAC,MAAM,CAAC,MAAM,YAAA,CAAA;IAClC,2CAAc,WAAW,CAAC,MAAM,CAAC,WAAW,iBAAA,CAAA;AAC9C,CAAC,EAZW,YAAY,4BAAZ,YAAY,QAYvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum TransactionTypeOptions {
|
|
2
|
-
DEBIT = "Debit",
|
|
3
|
-
CREDIT = "Credit"
|
|
4
|
-
}
|
|
1
|
+
export declare enum TransactionTypeOptions {
|
|
2
|
+
DEBIT = "Debit",
|
|
3
|
+
CREDIT = "Credit"
|
|
4
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionTypeOptions = void 0;
|
|
4
|
-
var TransactionTypeOptions;
|
|
5
|
-
(function (TransactionTypeOptions) {
|
|
6
|
-
TransactionTypeOptions["DEBIT"] = "Debit";
|
|
7
|
-
TransactionTypeOptions["CREDIT"] = "Credit";
|
|
8
|
-
})(TransactionTypeOptions
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionTypeOptions = void 0;
|
|
4
|
+
var TransactionTypeOptions;
|
|
5
|
+
(function (TransactionTypeOptions) {
|
|
6
|
+
TransactionTypeOptions["DEBIT"] = "Debit";
|
|
7
|
+
TransactionTypeOptions["CREDIT"] = "Credit";
|
|
8
|
+
})(TransactionTypeOptions || (exports.TransactionTypeOptions = TransactionTypeOptions = {}));
|
|
9
9
|
//# sourceMappingURL=transaction-type.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type.enum.js","sourceRoot":"","sources":["../../src/enum/transaction-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,yCAAe,CAAA;IACf,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,
|
|
1
|
+
{"version":3,"file":"transaction-type.enum.js","sourceRoot":"","sources":["../../src/enum/transaction-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,yCAAe,CAAA;IACf,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC"}
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { LoginUserBase, ObjectBase } from '@tomei/general';
|
|
2
|
-
import Account from '../account/account';
|
|
3
|
-
import JournalEntry from '../journal-entry/journal-entry';
|
|
4
|
-
import FinanceCustomerBase from '../customer/customer';
|
|
5
|
-
import Document from '../document/document';
|
|
6
|
-
import { IAccountSystem } from '../interfaces';
|
|
7
|
-
import { PaymentStatus } from '../enum';
|
|
8
|
-
import Payment from '../payment/payment';
|
|
9
|
-
import PaymentMethod from '../payment-method/payment-method';
|
|
10
|
-
import { LoginUser } from '@tomei/sso';
|
|
11
|
-
import { Tax } from '../tax/tax';
|
|
12
|
-
import { CollectPaymentType } from '../enum/collect-payment-type';
|
|
13
|
-
import FinanceCustomerModel from 'src/models/customer.entity';
|
|
14
|
-
export default class FinanceCompany extends ObjectBase {
|
|
15
|
-
private _CompanyId;
|
|
16
|
-
private _CompSystemCode;
|
|
17
|
-
private _CompSystemRefId;
|
|
18
|
-
private _AccSystemCode;
|
|
19
|
-
private _AccSystemRefId;
|
|
20
|
-
private _PostedToAccSystemYN;
|
|
21
|
-
private _PostedById;
|
|
22
|
-
private _PostedDateTime;
|
|
23
|
-
private _ObjectType;
|
|
24
|
-
private static _htFinanceCompanyIds;
|
|
25
|
-
private static _htFinanceCompanies;
|
|
26
|
-
private static _financeCompanyRepository;
|
|
27
|
-
private static _PaymentRepository;
|
|
28
|
-
private static _PaymentItemRepository;
|
|
29
|
-
private static _PaymentPaidWithRepository;
|
|
30
|
-
private static _PaymentMethodRepository;
|
|
31
|
-
private static _PaymentMethodTypeRepository;
|
|
32
|
-
private static _DocumentRepository;
|
|
33
|
-
private static _DocumentItemRepository;
|
|
34
|
-
private static _FinanceCustomerRepository;
|
|
35
|
-
private static _LedgerTransactionRepository;
|
|
36
|
-
private static _AccountRepository;
|
|
37
|
-
private static _TaxRepository;
|
|
38
|
-
private _AccountingSystem;
|
|
39
|
-
private _DbTransaction;
|
|
40
|
-
private _PaymentMethods;
|
|
41
|
-
private _Taxes;
|
|
42
|
-
get ObjectType(): string;
|
|
43
|
-
get CompSystemCode(): string;
|
|
44
|
-
private set CompSystemCode(value);
|
|
45
|
-
get CompSystemRefId(): string;
|
|
46
|
-
set CompSystemRefId(id: string);
|
|
47
|
-
get AccSystemCode(): string;
|
|
48
|
-
get AccSystemRefId(): string;
|
|
49
|
-
set AccSystemRefId(id: string);
|
|
50
|
-
get PostedToAccSystemYN(): string;
|
|
51
|
-
set PostedToAccSystemYN(value: string);
|
|
52
|
-
get PostedById(): string;
|
|
53
|
-
set PostedById(id: string);
|
|
54
|
-
get PostedDateTime(): any;
|
|
55
|
-
set PostedDateTime(date: any);
|
|
56
|
-
private set AccSystemCode(value);
|
|
57
|
-
get CompanyId(): string;
|
|
58
|
-
get ObjectId(): string;
|
|
59
|
-
private set ObjectId(value);
|
|
60
|
-
get ObjectName(): string;
|
|
61
|
-
get TableName(): string;
|
|
62
|
-
get AccountingSystem(): IAccountSystem;
|
|
63
|
-
set AccountingSystem(system: IAccountSystem);
|
|
64
|
-
constructor(compSystemCode: string, compSystemRefId: string, accSystemCode: string);
|
|
65
|
-
static getFinanceCompanyId(compSystemCode: string, compSystemRefId: string, accSystemCode: string): Promise<string>;
|
|
66
|
-
static getFinanceCompany(companyId: string): Promise<FinanceCompany>;
|
|
67
|
-
static createFinanceCompany(dbTransaction: any, loginUser: LoginUserBase, companyId: string, compSystemCode: string, compSystemRefId: string, accSystemCode: string): Promise<any>;
|
|
68
|
-
static findAccount(loginUser: LoginUserBase, dbTransaction: any, accountNo: string): Promise<Account>;
|
|
69
|
-
createCustomer<T extends FinanceCustomerBase>(dbTransaction: any, custSystemCode: string, custSystemRefId: string, customer: T, loginUser: LoginUser): Promise<T>;
|
|
70
|
-
postJournal(dbTransaction: any, journalEntry: JournalEntry, loginUser: LoginUserBase): Promise<void>;
|
|
71
|
-
createAccount(dbTransaction: any, account: Account, loginUser: LoginUserBase): Promise<Account>;
|
|
72
|
-
issueInvoice<C extends FinanceCustomerBase>(dbTransaction: any, invoice: Document, loginUser?: LoginUserBase, customer?: C, dtAccountNo?: string): Promise<Document>;
|
|
73
|
-
static findCustomer(custSystemRefId: string, dbTransaction?: any): Promise<FinanceCustomerModel>;
|
|
74
|
-
issueDebitNote(dbTransaction: any, loginUser: LoginUserBase, invoice: Document, customer: FinanceCustomerBase, dtAccountNo?: string): Promise<Document>;
|
|
75
|
-
issueCreditNote(dbTransaction: any, loginUser: LoginUserBase, creditNote: Document, customer: FinanceCustomerBase, ctAccountNo?: string): Promise<Document>;
|
|
76
|
-
collectPayment(dbTransaction: any, loginUser: LoginUserBase, payment: Payment, collectPaymentType?: CollectPaymentType): Promise<Payment>;
|
|
77
|
-
makePayment(dbTransaction: any, loginUser: LoginUserBase, payment: Payment, customer: FinanceCustomerBase, dtAccountNo?: string): Promise<Payment>;
|
|
78
|
-
get PaymentMethods(): Promise<PaymentMethod[]>;
|
|
79
|
-
get TaxCodes(): Promise<Tax[]>;
|
|
80
|
-
LoadPaymentMethods(companyId: string, paymentMethods: any, transaction?: any): Promise<void>;
|
|
81
|
-
LoadTaxCodes(companyId: string, companyTaxes: any, transaction?: any): Promise<void>;
|
|
82
|
-
collectPaymentForMultipleCustomers(dbTransaction: any, loginUser: LoginUserBase, payment: Payment, creditTransaction: {
|
|
83
|
-
AccountNo: string;
|
|
84
|
-
Currency: string;
|
|
85
|
-
Amount: number;
|
|
86
|
-
}[], receiptNo?: string, collectPaymentType?: CollectPaymentType): Promise<Payment>;
|
|
87
|
-
confirmPayment(dbTransaction: any, loginUser: LoginUserBase, customer: FinanceCustomerBase, payment: Payment, status: PaymentStatus.CONFIRMED | PaymentStatus.REJECTED | PaymentStatus.FAILED, remarks: string, ctAccountNo?: string, receiptNo?: string): Promise<void>;
|
|
88
|
-
}
|
|
1
|
+
import { LoginUserBase, ObjectBase } from '@tomei/general';
|
|
2
|
+
import Account from '../account/account';
|
|
3
|
+
import JournalEntry from '../journal-entry/journal-entry';
|
|
4
|
+
import FinanceCustomerBase from '../customer/customer';
|
|
5
|
+
import Document from '../document/document';
|
|
6
|
+
import { IAccountSystem } from '../interfaces';
|
|
7
|
+
import { PaymentStatus } from '../enum';
|
|
8
|
+
import Payment from '../payment/payment';
|
|
9
|
+
import PaymentMethod from '../payment-method/payment-method';
|
|
10
|
+
import { LoginUser } from '@tomei/sso';
|
|
11
|
+
import { Tax } from '../tax/tax';
|
|
12
|
+
import { CollectPaymentType } from '../enum/collect-payment-type';
|
|
13
|
+
import FinanceCustomerModel from 'src/models/customer.entity';
|
|
14
|
+
export default class FinanceCompany extends ObjectBase {
|
|
15
|
+
private _CompanyId;
|
|
16
|
+
private _CompSystemCode;
|
|
17
|
+
private _CompSystemRefId;
|
|
18
|
+
private _AccSystemCode;
|
|
19
|
+
private _AccSystemRefId;
|
|
20
|
+
private _PostedToAccSystemYN;
|
|
21
|
+
private _PostedById;
|
|
22
|
+
private _PostedDateTime;
|
|
23
|
+
private _ObjectType;
|
|
24
|
+
private static _htFinanceCompanyIds;
|
|
25
|
+
private static _htFinanceCompanies;
|
|
26
|
+
private static _financeCompanyRepository;
|
|
27
|
+
private static _PaymentRepository;
|
|
28
|
+
private static _PaymentItemRepository;
|
|
29
|
+
private static _PaymentPaidWithRepository;
|
|
30
|
+
private static _PaymentMethodRepository;
|
|
31
|
+
private static _PaymentMethodTypeRepository;
|
|
32
|
+
private static _DocumentRepository;
|
|
33
|
+
private static _DocumentItemRepository;
|
|
34
|
+
private static _FinanceCustomerRepository;
|
|
35
|
+
private static _LedgerTransactionRepository;
|
|
36
|
+
private static _AccountRepository;
|
|
37
|
+
private static _TaxRepository;
|
|
38
|
+
private _AccountingSystem;
|
|
39
|
+
private _DbTransaction;
|
|
40
|
+
private _PaymentMethods;
|
|
41
|
+
private _Taxes;
|
|
42
|
+
get ObjectType(): string;
|
|
43
|
+
get CompSystemCode(): string;
|
|
44
|
+
private set CompSystemCode(value);
|
|
45
|
+
get CompSystemRefId(): string;
|
|
46
|
+
set CompSystemRefId(id: string);
|
|
47
|
+
get AccSystemCode(): string;
|
|
48
|
+
get AccSystemRefId(): string;
|
|
49
|
+
set AccSystemRefId(id: string);
|
|
50
|
+
get PostedToAccSystemYN(): string;
|
|
51
|
+
set PostedToAccSystemYN(value: string);
|
|
52
|
+
get PostedById(): string;
|
|
53
|
+
set PostedById(id: string);
|
|
54
|
+
get PostedDateTime(): any;
|
|
55
|
+
set PostedDateTime(date: any);
|
|
56
|
+
private set AccSystemCode(value);
|
|
57
|
+
get CompanyId(): string;
|
|
58
|
+
get ObjectId(): string;
|
|
59
|
+
private set ObjectId(value);
|
|
60
|
+
get ObjectName(): string;
|
|
61
|
+
get TableName(): string;
|
|
62
|
+
get AccountingSystem(): IAccountSystem;
|
|
63
|
+
set AccountingSystem(system: IAccountSystem);
|
|
64
|
+
constructor(compSystemCode: string, compSystemRefId: string, accSystemCode: string);
|
|
65
|
+
static getFinanceCompanyId(compSystemCode: string, compSystemRefId: string, accSystemCode: string): Promise<string>;
|
|
66
|
+
static getFinanceCompany(companyId: string): Promise<FinanceCompany>;
|
|
67
|
+
static createFinanceCompany(dbTransaction: any, loginUser: LoginUserBase, companyId: string, compSystemCode: string, compSystemRefId: string, accSystemCode: string): Promise<any>;
|
|
68
|
+
static findAccount(loginUser: LoginUserBase, dbTransaction: any, accountNo: string): Promise<Account>;
|
|
69
|
+
createCustomer<T extends FinanceCustomerBase>(dbTransaction: any, custSystemCode: string, custSystemRefId: string, customer: T, loginUser: LoginUser): Promise<T>;
|
|
70
|
+
postJournal(dbTransaction: any, journalEntry: JournalEntry, loginUser: LoginUserBase): Promise<void>;
|
|
71
|
+
createAccount(dbTransaction: any, account: Account, loginUser: LoginUserBase): Promise<Account>;
|
|
72
|
+
issueInvoice<C extends FinanceCustomerBase>(dbTransaction: any, invoice: Document, loginUser?: LoginUserBase, customer?: C, dtAccountNo?: string): Promise<Document>;
|
|
73
|
+
static findCustomer(custSystemRefId: string, dbTransaction?: any): Promise<FinanceCustomerModel>;
|
|
74
|
+
issueDebitNote(dbTransaction: any, loginUser: LoginUserBase, invoice: Document, customer: FinanceCustomerBase, dtAccountNo?: string): Promise<Document>;
|
|
75
|
+
issueCreditNote(dbTransaction: any, loginUser: LoginUserBase, creditNote: Document, customer: FinanceCustomerBase, ctAccountNo?: string): Promise<Document>;
|
|
76
|
+
collectPayment(dbTransaction: any, loginUser: LoginUserBase, payment: Payment, collectPaymentType?: CollectPaymentType): Promise<Payment>;
|
|
77
|
+
makePayment(dbTransaction: any, loginUser: LoginUserBase, payment: Payment, customer: FinanceCustomerBase, dtAccountNo?: string): Promise<Payment>;
|
|
78
|
+
get PaymentMethods(): Promise<PaymentMethod[]>;
|
|
79
|
+
get TaxCodes(): Promise<Tax[]>;
|
|
80
|
+
LoadPaymentMethods(companyId: string, paymentMethods: any, transaction?: any): Promise<void>;
|
|
81
|
+
LoadTaxCodes(companyId: string, companyTaxes: any, transaction?: any): Promise<void>;
|
|
82
|
+
collectPaymentForMultipleCustomers(dbTransaction: any, loginUser: LoginUserBase, payment: Payment, creditTransaction: {
|
|
83
|
+
AccountNo: string;
|
|
84
|
+
Currency: string;
|
|
85
|
+
Amount: number;
|
|
86
|
+
}[], receiptNo?: string, collectPaymentType?: CollectPaymentType): Promise<Payment>;
|
|
87
|
+
confirmPayment(dbTransaction: any, loginUser: LoginUserBase, customer: FinanceCustomerBase, payment: Payment, status: PaymentStatus.CONFIRMED | PaymentStatus.REJECTED | PaymentStatus.FAILED, remarks: string, ctAccountNo?: string, receiptNo?: string): Promise<void>;
|
|
88
|
+
}
|