mindee 4.15.0 → 4.16.0
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/CHANGELOG.md +15 -0
- package/package.json +1 -1
- package/src/parsing/common/index.d.ts +1 -0
- package/src/parsing/common/index.js +4 -1
- package/src/parsing/common/summaryHelper.d.ts +10 -0
- package/src/parsing/common/summaryHelper.js +27 -1
- package/src/parsing/standard/amount.d.ts +0 -1
- package/src/parsing/standard/amount.js +4 -11
- package/src/parsing/standard/index.d.ts +1 -1
- package/src/parsing/standard/index.js +1 -2
- package/src/parsing/standard/tax.js +4 -4
- package/src/product/billOfLading/billOfLadingV1.d.ts +16 -0
- package/src/product/billOfLading/billOfLadingV1.js +27 -0
- package/src/product/billOfLading/billOfLadingV1Carrier.d.ts +32 -0
- package/src/product/billOfLading/billOfLadingV1Carrier.js +62 -0
- package/src/product/billOfLading/billOfLadingV1CarrierItem.d.ts +38 -0
- package/src/product/billOfLading/billOfLadingV1CarrierItem.js +117 -0
- package/src/product/billOfLading/billOfLadingV1Consignee.d.ts +34 -0
- package/src/product/billOfLading/billOfLadingV1Consignee.js +67 -0
- package/src/product/billOfLading/billOfLadingV1Document.d.ts +39 -0
- package/src/product/billOfLading/billOfLadingV1Document.js +95 -0
- package/src/product/billOfLading/billOfLadingV1NotifyParty.d.ts +34 -0
- package/src/product/billOfLading/billOfLadingV1NotifyParty.js +67 -0
- package/src/product/billOfLading/billOfLadingV1Shipper.d.ts +34 -0
- package/src/product/billOfLading/billOfLadingV1Shipper.js +67 -0
- package/src/product/billOfLading/index.d.ts +1 -0
- package/src/product/billOfLading/index.js +5 -0
- package/src/product/billOfLading/internal.d.ts +7 -0
- package/src/product/billOfLading/internal.js +17 -0
- package/src/product/financialDocument/financialDocumentV1LineItem.d.ts +8 -8
- package/src/product/financialDocument/financialDocumentV1LineItem.js +47 -22
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.d.ts +4 -4
- package/src/product/fr/energyBill/energyBillV1.d.ts +16 -0
- package/src/product/fr/energyBill/energyBillV1.js +27 -0
- package/src/product/fr/energyBill/energyBillV1Document.d.ts +49 -0
- package/src/product/fr/energyBill/energyBillV1Document.js +143 -0
- package/src/product/fr/energyBill/energyBillV1EnergyConsumer.d.ts +30 -0
- package/src/product/fr/energyBill/energyBillV1EnergyConsumer.js +57 -0
- package/src/product/fr/energyBill/energyBillV1EnergySupplier.d.ts +30 -0
- package/src/product/fr/energyBill/energyBillV1EnergySupplier.js +57 -0
- package/src/product/fr/energyBill/energyBillV1EnergyUsage.d.ts +38 -0
- package/src/product/fr/energyBill/energyBillV1EnergyUsage.js +117 -0
- package/src/product/fr/energyBill/energyBillV1MeterDetail.d.ts +32 -0
- package/src/product/fr/energyBill/energyBillV1MeterDetail.js +62 -0
- package/src/product/fr/energyBill/energyBillV1Subscription.d.ts +38 -0
- package/src/product/fr/energyBill/energyBillV1Subscription.js +117 -0
- package/src/product/fr/energyBill/energyBillV1TaxesAndContribution.d.ts +38 -0
- package/src/product/fr/energyBill/energyBillV1TaxesAndContribution.js +117 -0
- package/src/product/fr/energyBill/index.d.ts +1 -0
- package/src/product/fr/energyBill/index.js +5 -0
- package/src/product/fr/energyBill/internal.d.ts +8 -0
- package/src/product/fr/energyBill/internal.js +19 -0
- package/src/product/fr/index.d.ts +2 -0
- package/src/product/fr/index.js +5 -1
- package/src/product/fr/internal.d.ts +2 -0
- package/src/product/fr/internal.js +3 -1
- package/src/product/fr/payslip/index.d.ts +1 -0
- package/src/product/fr/payslip/index.js +5 -0
- package/src/product/fr/payslip/internal.d.ts +10 -0
- package/src/product/fr/payslip/internal.js +23 -0
- package/src/product/fr/payslip/payslipV2.d.ts +16 -0
- package/src/product/fr/payslip/payslipV2.js +27 -0
- package/src/product/fr/payslip/payslipV2BankAccountDetail.d.ts +32 -0
- package/src/product/fr/payslip/payslipV2BankAccountDetail.js +62 -0
- package/src/product/fr/payslip/payslipV2Document.d.ts +35 -0
- package/src/product/fr/payslip/payslipV2Document.js +80 -0
- package/src/product/fr/payslip/payslipV2Employee.d.ts +40 -0
- package/src/product/fr/payslip/payslipV2Employee.js +82 -0
- package/src/product/fr/payslip/payslipV2Employer.d.ts +40 -0
- package/src/product/fr/payslip/payslipV2Employer.js +82 -0
- package/src/product/fr/payslip/payslipV2Employment.d.ts +38 -0
- package/src/product/fr/payslip/payslipV2Employment.js +85 -0
- package/src/product/fr/payslip/payslipV2PayDetail.d.ts +46 -0
- package/src/product/fr/payslip/payslipV2PayDetail.js +168 -0
- package/src/product/fr/payslip/payslipV2PayPeriod.d.ts +36 -0
- package/src/product/fr/payslip/payslipV2PayPeriod.js +72 -0
- package/src/product/fr/payslip/payslipV2Pto.d.ts +32 -0
- package/src/product/fr/payslip/payslipV2Pto.js +84 -0
- package/src/product/fr/payslip/payslipV2SalaryDetail.d.ts +34 -0
- package/src/product/fr/payslip/payslipV2SalaryDetail.js +97 -0
- package/src/product/index.d.ts +2 -0
- package/src/product/index.js +5 -1
- package/src/product/internal.d.ts +2 -0
- package/src/product/internal.js +3 -1
- package/src/product/invoice/invoiceV4LineItem.d.ts +8 -8
- package/src/product/invoice/invoiceV4LineItem.js +47 -22
- package/src/product/nutritionFactsLabel/index.d.ts +1 -0
- package/src/product/nutritionFactsLabel/index.js +5 -0
- package/src/product/nutritionFactsLabel/internal.d.ts +15 -0
- package/src/product/nutritionFactsLabel/internal.js +33 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1.d.ts +16 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1.js +27 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1AddedSugar.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1AddedSugar.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Calorie.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Calorie.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Cholesterol.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Cholesterol.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1DietaryFiber.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1DietaryFiber.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Document.d.ts +53 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Document.js +117 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Nutrient.d.ts +36 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Nutrient.js +107 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Protein.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Protein.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1SaturatedFat.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1SaturatedFat.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1ServingSize.d.ts +30 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1ServingSize.js +65 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Sodium.d.ts +34 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Sodium.js +89 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalCarbohydrate.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalCarbohydrate.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalFat.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalFat.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalSugar.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalSugar.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TransFat.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TransFat.js +84 -0
- package/src/product/receipt/receiptV5LineItem.d.ts +4 -4
- package/src/product/receipt/receiptV5LineItem.js +27 -12
- package/src/product/resume/resumeV1Certificate.d.ts +4 -4
- package/src/product/resume/resumeV1Certificate.js +9 -8
- package/src/product/resume/resumeV1Education.d.ts +7 -7
- package/src/product/resume/resumeV1Education.js +15 -14
- package/src/product/resume/resumeV1Language.d.ts +2 -2
- package/src/product/resume/resumeV1Language.js +5 -4
- package/src/product/resume/resumeV1ProfessionalExperience.d.ts +8 -8
- package/src/product/resume/resumeV1ProfessionalExperience.js +17 -16
- package/src/product/resume/resumeV1SocialNetworksUrl.d.ts +2 -2
- package/src/product/resume/resumeV1SocialNetworksUrl.js +5 -4
- package/src/product/us/healthcareCard/healthcareCardV1Copay.d.ts +2 -2
- package/src/product/us/healthcareCard/healthcareCardV1Copay.js +11 -6
- package/src/product/us/usMail/index.d.ts +1 -0
- package/src/product/us/usMail/index.js +5 -0
- package/src/product/us/usMail/usMailV2RecipientAddress.d.ts +7 -7
- package/src/product/us/usMail/usMailV2RecipientAddress.js +17 -15
- package/src/product/us/usMail/usMailV2SenderAddress.d.ts +5 -5
- package/src/product/us/usMail/usMailV2SenderAddress.js +5 -25
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _EnergyBillV1Subscription_instances, _EnergyBillV1Subscription_printableValues;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.EnergyBillV1Subscription = void 0;
|
|
10
|
+
const common_1 = require("../../../parsing/common");
|
|
11
|
+
/**
|
|
12
|
+
* The subscription details fee for the energy service.
|
|
13
|
+
*/
|
|
14
|
+
class EnergyBillV1Subscription {
|
|
15
|
+
constructor({ prediction = {} }) {
|
|
16
|
+
_EnergyBillV1Subscription_instances.add(this);
|
|
17
|
+
/** Confidence score */
|
|
18
|
+
this.confidence = 0.0;
|
|
19
|
+
/**
|
|
20
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
|
+
* the field in the document.
|
|
22
|
+
*/
|
|
23
|
+
this.polygon = [];
|
|
24
|
+
this.description = prediction["description"];
|
|
25
|
+
this.endDate = prediction["end_date"];
|
|
26
|
+
this.startDate = prediction["start_date"];
|
|
27
|
+
if (prediction["tax_rate"] !== undefined &&
|
|
28
|
+
prediction["tax_rate"] !== null &&
|
|
29
|
+
!isNaN(prediction["tax_rate"])) {
|
|
30
|
+
this.taxRate = +parseFloat(prediction["tax_rate"]);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.taxRate = null;
|
|
34
|
+
}
|
|
35
|
+
if (prediction["total"] !== undefined &&
|
|
36
|
+
prediction["total"] !== null &&
|
|
37
|
+
!isNaN(prediction["total"])) {
|
|
38
|
+
this.total = +parseFloat(prediction["total"]);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
this.total = null;
|
|
42
|
+
}
|
|
43
|
+
if (prediction["unit_price"] !== undefined &&
|
|
44
|
+
prediction["unit_price"] !== null &&
|
|
45
|
+
!isNaN(prediction["unit_price"])) {
|
|
46
|
+
this.unitPrice = +parseFloat(prediction["unit_price"]);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
this.unitPrice = null;
|
|
50
|
+
}
|
|
51
|
+
this.pageId = prediction["page_id"];
|
|
52
|
+
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
53
|
+
if (prediction["polygon"]) {
|
|
54
|
+
this.polygon = prediction.polygon;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Default string representation.
|
|
59
|
+
*/
|
|
60
|
+
toString() {
|
|
61
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1Subscription_instances, "m", _EnergyBillV1Subscription_printableValues).call(this);
|
|
62
|
+
return ("Description: " +
|
|
63
|
+
printable.description +
|
|
64
|
+
", End Date: " +
|
|
65
|
+
printable.endDate +
|
|
66
|
+
", Start Date: " +
|
|
67
|
+
printable.startDate +
|
|
68
|
+
", Tax Rate: " +
|
|
69
|
+
printable.taxRate +
|
|
70
|
+
", Total: " +
|
|
71
|
+
printable.total +
|
|
72
|
+
", Unit Price: " +
|
|
73
|
+
printable.unitPrice);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Output in a format suitable for inclusion in an rST table.
|
|
77
|
+
*/
|
|
78
|
+
toTableLine() {
|
|
79
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1Subscription_instances, "m", _EnergyBillV1Subscription_printableValues).call(this);
|
|
80
|
+
return ("| " +
|
|
81
|
+
printable.description.padEnd(36) +
|
|
82
|
+
" | " +
|
|
83
|
+
printable.endDate.padEnd(10) +
|
|
84
|
+
" | " +
|
|
85
|
+
printable.startDate.padEnd(10) +
|
|
86
|
+
" | " +
|
|
87
|
+
printable.taxRate.padEnd(8) +
|
|
88
|
+
" | " +
|
|
89
|
+
printable.total.padEnd(9) +
|
|
90
|
+
" | " +
|
|
91
|
+
printable.unitPrice.padEnd(10) +
|
|
92
|
+
" |");
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.EnergyBillV1Subscription = EnergyBillV1Subscription;
|
|
96
|
+
_EnergyBillV1Subscription_instances = new WeakSet(), _EnergyBillV1Subscription_printableValues = function _EnergyBillV1Subscription_printableValues() {
|
|
97
|
+
return {
|
|
98
|
+
description: this.description ?
|
|
99
|
+
this.description.length <= 36 ?
|
|
100
|
+
(0, common_1.cleanSpecialChars)(this.description) :
|
|
101
|
+
(0, common_1.cleanSpecialChars)(this.description).slice(0, 33) + "..." :
|
|
102
|
+
"",
|
|
103
|
+
endDate: this.endDate ?
|
|
104
|
+
this.endDate.length <= 10 ?
|
|
105
|
+
(0, common_1.cleanSpecialChars)(this.endDate) :
|
|
106
|
+
(0, common_1.cleanSpecialChars)(this.endDate).slice(0, 7) + "..." :
|
|
107
|
+
"",
|
|
108
|
+
startDate: this.startDate ?
|
|
109
|
+
this.startDate.length <= 10 ?
|
|
110
|
+
(0, common_1.cleanSpecialChars)(this.startDate) :
|
|
111
|
+
(0, common_1.cleanSpecialChars)(this.startDate).slice(0, 7) + "..." :
|
|
112
|
+
"",
|
|
113
|
+
taxRate: this.taxRate !== undefined ? (0, common_1.floatToString)(this.taxRate) : "",
|
|
114
|
+
total: this.total !== undefined ? (0, common_1.floatToString)(this.total) : "",
|
|
115
|
+
unitPrice: this.unitPrice !== undefined ? (0, common_1.floatToString)(this.unitPrice) : "",
|
|
116
|
+
};
|
|
117
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { StringDict } from "../../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* Details of Taxes and Contributions.
|
|
5
|
+
*/
|
|
6
|
+
export declare class EnergyBillV1TaxesAndContribution {
|
|
7
|
+
#private;
|
|
8
|
+
/** Description or details of the Taxes and Contributions. */
|
|
9
|
+
description: string | null;
|
|
10
|
+
/** The end date of the Taxes and Contributions. */
|
|
11
|
+
endDate: string | null;
|
|
12
|
+
/** The start date of the Taxes and Contributions. */
|
|
13
|
+
startDate: string | null;
|
|
14
|
+
/** The rate of tax applied to the total cost. */
|
|
15
|
+
taxRate: number | null;
|
|
16
|
+
/** The total cost of Taxes and Contributions. */
|
|
17
|
+
total: number | null;
|
|
18
|
+
/** The price per unit of Taxes and Contributions. */
|
|
19
|
+
unitPrice: number | null;
|
|
20
|
+
/** Confidence score */
|
|
21
|
+
confidence: number;
|
|
22
|
+
/** The document page on which the information was found. */
|
|
23
|
+
pageId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
26
|
+
* the field in the document.
|
|
27
|
+
*/
|
|
28
|
+
polygon: Polygon;
|
|
29
|
+
constructor({ prediction }: StringDict);
|
|
30
|
+
/**
|
|
31
|
+
* Default string representation.
|
|
32
|
+
*/
|
|
33
|
+
toString(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Output in a format suitable for inclusion in an rST table.
|
|
36
|
+
*/
|
|
37
|
+
toTableLine(): string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _EnergyBillV1TaxesAndContribution_instances, _EnergyBillV1TaxesAndContribution_printableValues;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.EnergyBillV1TaxesAndContribution = void 0;
|
|
10
|
+
const common_1 = require("../../../parsing/common");
|
|
11
|
+
/**
|
|
12
|
+
* Details of Taxes and Contributions.
|
|
13
|
+
*/
|
|
14
|
+
class EnergyBillV1TaxesAndContribution {
|
|
15
|
+
constructor({ prediction = {} }) {
|
|
16
|
+
_EnergyBillV1TaxesAndContribution_instances.add(this);
|
|
17
|
+
/** Confidence score */
|
|
18
|
+
this.confidence = 0.0;
|
|
19
|
+
/**
|
|
20
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
|
+
* the field in the document.
|
|
22
|
+
*/
|
|
23
|
+
this.polygon = [];
|
|
24
|
+
this.description = prediction["description"];
|
|
25
|
+
this.endDate = prediction["end_date"];
|
|
26
|
+
this.startDate = prediction["start_date"];
|
|
27
|
+
if (prediction["tax_rate"] !== undefined &&
|
|
28
|
+
prediction["tax_rate"] !== null &&
|
|
29
|
+
!isNaN(prediction["tax_rate"])) {
|
|
30
|
+
this.taxRate = +parseFloat(prediction["tax_rate"]);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.taxRate = null;
|
|
34
|
+
}
|
|
35
|
+
if (prediction["total"] !== undefined &&
|
|
36
|
+
prediction["total"] !== null &&
|
|
37
|
+
!isNaN(prediction["total"])) {
|
|
38
|
+
this.total = +parseFloat(prediction["total"]);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
this.total = null;
|
|
42
|
+
}
|
|
43
|
+
if (prediction["unit_price"] !== undefined &&
|
|
44
|
+
prediction["unit_price"] !== null &&
|
|
45
|
+
!isNaN(prediction["unit_price"])) {
|
|
46
|
+
this.unitPrice = +parseFloat(prediction["unit_price"]);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
this.unitPrice = null;
|
|
50
|
+
}
|
|
51
|
+
this.pageId = prediction["page_id"];
|
|
52
|
+
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
53
|
+
if (prediction["polygon"]) {
|
|
54
|
+
this.polygon = prediction.polygon;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Default string representation.
|
|
59
|
+
*/
|
|
60
|
+
toString() {
|
|
61
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1TaxesAndContribution_instances, "m", _EnergyBillV1TaxesAndContribution_printableValues).call(this);
|
|
62
|
+
return ("Description: " +
|
|
63
|
+
printable.description +
|
|
64
|
+
", End Date: " +
|
|
65
|
+
printable.endDate +
|
|
66
|
+
", Start Date: " +
|
|
67
|
+
printable.startDate +
|
|
68
|
+
", Tax Rate: " +
|
|
69
|
+
printable.taxRate +
|
|
70
|
+
", Total: " +
|
|
71
|
+
printable.total +
|
|
72
|
+
", Unit Price: " +
|
|
73
|
+
printable.unitPrice);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Output in a format suitable for inclusion in an rST table.
|
|
77
|
+
*/
|
|
78
|
+
toTableLine() {
|
|
79
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1TaxesAndContribution_instances, "m", _EnergyBillV1TaxesAndContribution_printableValues).call(this);
|
|
80
|
+
return ("| " +
|
|
81
|
+
printable.description.padEnd(36) +
|
|
82
|
+
" | " +
|
|
83
|
+
printable.endDate.padEnd(10) +
|
|
84
|
+
" | " +
|
|
85
|
+
printable.startDate.padEnd(10) +
|
|
86
|
+
" | " +
|
|
87
|
+
printable.taxRate.padEnd(8) +
|
|
88
|
+
" | " +
|
|
89
|
+
printable.total.padEnd(9) +
|
|
90
|
+
" | " +
|
|
91
|
+
printable.unitPrice.padEnd(10) +
|
|
92
|
+
" |");
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.EnergyBillV1TaxesAndContribution = EnergyBillV1TaxesAndContribution;
|
|
96
|
+
_EnergyBillV1TaxesAndContribution_instances = new WeakSet(), _EnergyBillV1TaxesAndContribution_printableValues = function _EnergyBillV1TaxesAndContribution_printableValues() {
|
|
97
|
+
return {
|
|
98
|
+
description: this.description ?
|
|
99
|
+
this.description.length <= 36 ?
|
|
100
|
+
(0, common_1.cleanSpecialChars)(this.description) :
|
|
101
|
+
(0, common_1.cleanSpecialChars)(this.description).slice(0, 33) + "..." :
|
|
102
|
+
"",
|
|
103
|
+
endDate: this.endDate ?
|
|
104
|
+
this.endDate.length <= 10 ?
|
|
105
|
+
(0, common_1.cleanSpecialChars)(this.endDate) :
|
|
106
|
+
(0, common_1.cleanSpecialChars)(this.endDate).slice(0, 7) + "..." :
|
|
107
|
+
"",
|
|
108
|
+
startDate: this.startDate ?
|
|
109
|
+
this.startDate.length <= 10 ?
|
|
110
|
+
(0, common_1.cleanSpecialChars)(this.startDate) :
|
|
111
|
+
(0, common_1.cleanSpecialChars)(this.startDate).slice(0, 7) + "..." :
|
|
112
|
+
"",
|
|
113
|
+
taxRate: this.taxRate !== undefined ? (0, common_1.floatToString)(this.taxRate) : "",
|
|
114
|
+
total: this.total !== undefined ? (0, common_1.floatToString)(this.total) : "",
|
|
115
|
+
unitPrice: this.unitPrice !== undefined ? (0, common_1.floatToString)(this.unitPrice) : "",
|
|
116
|
+
};
|
|
117
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EnergyBillV1 } from "./energyBillV1";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnergyBillV1 = void 0;
|
|
4
|
+
var energyBillV1_1 = require("./energyBillV1");
|
|
5
|
+
Object.defineProperty(exports, "EnergyBillV1", { enumerable: true, get: function () { return energyBillV1_1.EnergyBillV1; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { EnergyBillV1 } from "./energyBillV1";
|
|
2
|
+
export { EnergyBillV1Document } from "./energyBillV1Document";
|
|
3
|
+
export { EnergyBillV1EnergyConsumer } from "./energyBillV1EnergyConsumer";
|
|
4
|
+
export { EnergyBillV1EnergySupplier } from "./energyBillV1EnergySupplier";
|
|
5
|
+
export { EnergyBillV1EnergyUsage } from "./energyBillV1EnergyUsage";
|
|
6
|
+
export { EnergyBillV1MeterDetail } from "./energyBillV1MeterDetail";
|
|
7
|
+
export { EnergyBillV1Subscription } from "./energyBillV1Subscription";
|
|
8
|
+
export { EnergyBillV1TaxesAndContribution } from "./energyBillV1TaxesAndContribution";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnergyBillV1TaxesAndContribution = exports.EnergyBillV1Subscription = exports.EnergyBillV1MeterDetail = exports.EnergyBillV1EnergyUsage = exports.EnergyBillV1EnergySupplier = exports.EnergyBillV1EnergyConsumer = exports.EnergyBillV1Document = exports.EnergyBillV1 = void 0;
|
|
4
|
+
var energyBillV1_1 = require("./energyBillV1");
|
|
5
|
+
Object.defineProperty(exports, "EnergyBillV1", { enumerable: true, get: function () { return energyBillV1_1.EnergyBillV1; } });
|
|
6
|
+
var energyBillV1Document_1 = require("./energyBillV1Document");
|
|
7
|
+
Object.defineProperty(exports, "EnergyBillV1Document", { enumerable: true, get: function () { return energyBillV1Document_1.EnergyBillV1Document; } });
|
|
8
|
+
var energyBillV1EnergyConsumer_1 = require("./energyBillV1EnergyConsumer");
|
|
9
|
+
Object.defineProperty(exports, "EnergyBillV1EnergyConsumer", { enumerable: true, get: function () { return energyBillV1EnergyConsumer_1.EnergyBillV1EnergyConsumer; } });
|
|
10
|
+
var energyBillV1EnergySupplier_1 = require("./energyBillV1EnergySupplier");
|
|
11
|
+
Object.defineProperty(exports, "EnergyBillV1EnergySupplier", { enumerable: true, get: function () { return energyBillV1EnergySupplier_1.EnergyBillV1EnergySupplier; } });
|
|
12
|
+
var energyBillV1EnergyUsage_1 = require("./energyBillV1EnergyUsage");
|
|
13
|
+
Object.defineProperty(exports, "EnergyBillV1EnergyUsage", { enumerable: true, get: function () { return energyBillV1EnergyUsage_1.EnergyBillV1EnergyUsage; } });
|
|
14
|
+
var energyBillV1MeterDetail_1 = require("./energyBillV1MeterDetail");
|
|
15
|
+
Object.defineProperty(exports, "EnergyBillV1MeterDetail", { enumerable: true, get: function () { return energyBillV1MeterDetail_1.EnergyBillV1MeterDetail; } });
|
|
16
|
+
var energyBillV1Subscription_1 = require("./energyBillV1Subscription");
|
|
17
|
+
Object.defineProperty(exports, "EnergyBillV1Subscription", { enumerable: true, get: function () { return energyBillV1Subscription_1.EnergyBillV1Subscription; } });
|
|
18
|
+
var energyBillV1TaxesAndContribution_1 = require("./energyBillV1TaxesAndContribution");
|
|
19
|
+
Object.defineProperty(exports, "EnergyBillV1TaxesAndContribution", { enumerable: true, get: function () { return energyBillV1TaxesAndContribution_1.EnergyBillV1TaxesAndContribution; } });
|
|
@@ -2,5 +2,7 @@ export { BankAccountDetailsV1 } from "./bankAccountDetails/bankAccountDetailsV1"
|
|
|
2
2
|
export { BankAccountDetailsV2 } from "./bankAccountDetails/bankAccountDetailsV2";
|
|
3
3
|
export { CarteGriseV1 } from "./carteGrise/carteGriseV1";
|
|
4
4
|
export { CarteVitaleV1 } from "./carteVitale/carteVitaleV1";
|
|
5
|
+
export { EnergyBillV1 } from "./energyBill/energyBillV1";
|
|
5
6
|
export { IdCardV1 } from "./idCard/idCardV1";
|
|
6
7
|
export { IdCardV2 } from "./idCard/idCardV2";
|
|
8
|
+
export { PayslipV2 } from "./payslip/payslipV2";
|
package/src/product/fr/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IdCardV2 = exports.IdCardV1 = exports.CarteVitaleV1 = exports.CarteGriseV1 = exports.BankAccountDetailsV2 = exports.BankAccountDetailsV1 = void 0;
|
|
3
|
+
exports.PayslipV2 = exports.IdCardV2 = exports.IdCardV1 = exports.EnergyBillV1 = exports.CarteVitaleV1 = exports.CarteGriseV1 = exports.BankAccountDetailsV2 = exports.BankAccountDetailsV1 = void 0;
|
|
4
4
|
var bankAccountDetailsV1_1 = require("./bankAccountDetails/bankAccountDetailsV1");
|
|
5
5
|
Object.defineProperty(exports, "BankAccountDetailsV1", { enumerable: true, get: function () { return bankAccountDetailsV1_1.BankAccountDetailsV1; } });
|
|
6
6
|
var bankAccountDetailsV2_1 = require("./bankAccountDetails/bankAccountDetailsV2");
|
|
@@ -9,7 +9,11 @@ var carteGriseV1_1 = require("./carteGrise/carteGriseV1");
|
|
|
9
9
|
Object.defineProperty(exports, "CarteGriseV1", { enumerable: true, get: function () { return carteGriseV1_1.CarteGriseV1; } });
|
|
10
10
|
var carteVitaleV1_1 = require("./carteVitale/carteVitaleV1");
|
|
11
11
|
Object.defineProperty(exports, "CarteVitaleV1", { enumerable: true, get: function () { return carteVitaleV1_1.CarteVitaleV1; } });
|
|
12
|
+
var energyBillV1_1 = require("./energyBill/energyBillV1");
|
|
13
|
+
Object.defineProperty(exports, "EnergyBillV1", { enumerable: true, get: function () { return energyBillV1_1.EnergyBillV1; } });
|
|
12
14
|
var idCardV1_1 = require("./idCard/idCardV1");
|
|
13
15
|
Object.defineProperty(exports, "IdCardV1", { enumerable: true, get: function () { return idCardV1_1.IdCardV1; } });
|
|
14
16
|
var idCardV2_1 = require("./idCard/idCardV2");
|
|
15
17
|
Object.defineProperty(exports, "IdCardV2", { enumerable: true, get: function () { return idCardV2_1.IdCardV2; } });
|
|
18
|
+
var payslipV2_1 = require("./payslip/payslipV2");
|
|
19
|
+
Object.defineProperty(exports, "PayslipV2", { enumerable: true, get: function () { return payslipV2_1.PayslipV2; } });
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * as bankAccountDetails from "./bankAccountDetails/internal";
|
|
2
2
|
export * as carteGrise from "./carteGrise/internal";
|
|
3
3
|
export * as carteVitale from "./carteVitale/internal";
|
|
4
|
+
export * as energyBill from "./energyBill/internal";
|
|
4
5
|
export * as idCard from "./idCard/internal";
|
|
6
|
+
export * as payslip from "./payslip/internal";
|
|
@@ -23,8 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.idCard = exports.carteVitale = exports.carteGrise = exports.bankAccountDetails = void 0;
|
|
26
|
+
exports.payslip = exports.idCard = exports.energyBill = exports.carteVitale = exports.carteGrise = exports.bankAccountDetails = void 0;
|
|
27
27
|
exports.bankAccountDetails = __importStar(require("./bankAccountDetails/internal"));
|
|
28
28
|
exports.carteGrise = __importStar(require("./carteGrise/internal"));
|
|
29
29
|
exports.carteVitale = __importStar(require("./carteVitale/internal"));
|
|
30
|
+
exports.energyBill = __importStar(require("./energyBill/internal"));
|
|
30
31
|
exports.idCard = __importStar(require("./idCard/internal"));
|
|
32
|
+
exports.payslip = __importStar(require("./payslip/internal"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PayslipV2 } from "./payslipV2";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayslipV2 = void 0;
|
|
4
|
+
var payslipV2_1 = require("./payslipV2");
|
|
5
|
+
Object.defineProperty(exports, "PayslipV2", { enumerable: true, get: function () { return payslipV2_1.PayslipV2; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { PayslipV2 } from "./payslipV2";
|
|
2
|
+
export { PayslipV2BankAccountDetail } from "./payslipV2BankAccountDetail";
|
|
3
|
+
export { PayslipV2Document } from "./payslipV2Document";
|
|
4
|
+
export { PayslipV2Employee } from "./payslipV2Employee";
|
|
5
|
+
export { PayslipV2Employer } from "./payslipV2Employer";
|
|
6
|
+
export { PayslipV2Employment } from "./payslipV2Employment";
|
|
7
|
+
export { PayslipV2PayDetail } from "./payslipV2PayDetail";
|
|
8
|
+
export { PayslipV2PayPeriod } from "./payslipV2PayPeriod";
|
|
9
|
+
export { PayslipV2Pto } from "./payslipV2Pto";
|
|
10
|
+
export { PayslipV2SalaryDetail } from "./payslipV2SalaryDetail";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayslipV2SalaryDetail = exports.PayslipV2Pto = exports.PayslipV2PayPeriod = exports.PayslipV2PayDetail = exports.PayslipV2Employment = exports.PayslipV2Employer = exports.PayslipV2Employee = exports.PayslipV2Document = exports.PayslipV2BankAccountDetail = exports.PayslipV2 = void 0;
|
|
4
|
+
var payslipV2_1 = require("./payslipV2");
|
|
5
|
+
Object.defineProperty(exports, "PayslipV2", { enumerable: true, get: function () { return payslipV2_1.PayslipV2; } });
|
|
6
|
+
var payslipV2BankAccountDetail_1 = require("./payslipV2BankAccountDetail");
|
|
7
|
+
Object.defineProperty(exports, "PayslipV2BankAccountDetail", { enumerable: true, get: function () { return payslipV2BankAccountDetail_1.PayslipV2BankAccountDetail; } });
|
|
8
|
+
var payslipV2Document_1 = require("./payslipV2Document");
|
|
9
|
+
Object.defineProperty(exports, "PayslipV2Document", { enumerable: true, get: function () { return payslipV2Document_1.PayslipV2Document; } });
|
|
10
|
+
var payslipV2Employee_1 = require("./payslipV2Employee");
|
|
11
|
+
Object.defineProperty(exports, "PayslipV2Employee", { enumerable: true, get: function () { return payslipV2Employee_1.PayslipV2Employee; } });
|
|
12
|
+
var payslipV2Employer_1 = require("./payslipV2Employer");
|
|
13
|
+
Object.defineProperty(exports, "PayslipV2Employer", { enumerable: true, get: function () { return payslipV2Employer_1.PayslipV2Employer; } });
|
|
14
|
+
var payslipV2Employment_1 = require("./payslipV2Employment");
|
|
15
|
+
Object.defineProperty(exports, "PayslipV2Employment", { enumerable: true, get: function () { return payslipV2Employment_1.PayslipV2Employment; } });
|
|
16
|
+
var payslipV2PayDetail_1 = require("./payslipV2PayDetail");
|
|
17
|
+
Object.defineProperty(exports, "PayslipV2PayDetail", { enumerable: true, get: function () { return payslipV2PayDetail_1.PayslipV2PayDetail; } });
|
|
18
|
+
var payslipV2PayPeriod_1 = require("./payslipV2PayPeriod");
|
|
19
|
+
Object.defineProperty(exports, "PayslipV2PayPeriod", { enumerable: true, get: function () { return payslipV2PayPeriod_1.PayslipV2PayPeriod; } });
|
|
20
|
+
var payslipV2Pto_1 = require("./payslipV2Pto");
|
|
21
|
+
Object.defineProperty(exports, "PayslipV2Pto", { enumerable: true, get: function () { return payslipV2Pto_1.PayslipV2Pto; } });
|
|
22
|
+
var payslipV2SalaryDetail_1 = require("./payslipV2SalaryDetail");
|
|
23
|
+
Object.defineProperty(exports, "PayslipV2SalaryDetail", { enumerable: true, get: function () { return payslipV2SalaryDetail_1.PayslipV2SalaryDetail; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Inference, StringDict, Page } from "../../../parsing/common";
|
|
2
|
+
import { PayslipV2Document } from "./payslipV2Document";
|
|
3
|
+
/**
|
|
4
|
+
* Payslip API version 2 inference prediction.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PayslipV2 extends Inference {
|
|
7
|
+
/** The endpoint's name. */
|
|
8
|
+
endpointName: string;
|
|
9
|
+
/** The endpoint's version. */
|
|
10
|
+
endpointVersion: string;
|
|
11
|
+
/** The document-level prediction. */
|
|
12
|
+
prediction: PayslipV2Document;
|
|
13
|
+
/** The document's pages. */
|
|
14
|
+
pages: Page<PayslipV2Document>[];
|
|
15
|
+
constructor(rawPrediction: StringDict);
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayslipV2 = void 0;
|
|
4
|
+
const common_1 = require("../../../parsing/common");
|
|
5
|
+
const payslipV2Document_1 = require("./payslipV2Document");
|
|
6
|
+
/**
|
|
7
|
+
* Payslip API version 2 inference prediction.
|
|
8
|
+
*/
|
|
9
|
+
class PayslipV2 extends common_1.Inference {
|
|
10
|
+
constructor(rawPrediction) {
|
|
11
|
+
super(rawPrediction);
|
|
12
|
+
/** The endpoint's name. */
|
|
13
|
+
this.endpointName = "payslip_fra";
|
|
14
|
+
/** The endpoint's version. */
|
|
15
|
+
this.endpointVersion = "2";
|
|
16
|
+
/** The document's pages. */
|
|
17
|
+
this.pages = [];
|
|
18
|
+
this.prediction = new payslipV2Document_1.PayslipV2Document(rawPrediction["prediction"]);
|
|
19
|
+
rawPrediction["pages"].forEach((page) => {
|
|
20
|
+
if (page.prediction !== undefined && page.prediction !== null &&
|
|
21
|
+
Object.keys(page.prediction).length > 0) {
|
|
22
|
+
this.pages.push(new common_1.Page(payslipV2Document_1.PayslipV2Document, page, page["id"], page["orientation"]));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.PayslipV2 = PayslipV2;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { StringDict } from "../../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* Information about the employee's bank account.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PayslipV2BankAccountDetail {
|
|
7
|
+
#private;
|
|
8
|
+
/** The name of the bank. */
|
|
9
|
+
bankName: string | null;
|
|
10
|
+
/** The IBAN of the bank account. */
|
|
11
|
+
iban: string | null;
|
|
12
|
+
/** The SWIFT code of the bank. */
|
|
13
|
+
swift: string | null;
|
|
14
|
+
/** Confidence score */
|
|
15
|
+
confidence: number;
|
|
16
|
+
/** The document page on which the information was found. */
|
|
17
|
+
pageId: number;
|
|
18
|
+
/**
|
|
19
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
|
+
* the field in the document.
|
|
21
|
+
*/
|
|
22
|
+
polygon: Polygon;
|
|
23
|
+
constructor({ prediction }: StringDict);
|
|
24
|
+
/**
|
|
25
|
+
* Default string representation.
|
|
26
|
+
*/
|
|
27
|
+
toString(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Output in a format suitable for inclusion in a field list.
|
|
30
|
+
*/
|
|
31
|
+
toFieldList(): string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _PayslipV2BankAccountDetail_instances, _PayslipV2BankAccountDetail_printableValues;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PayslipV2BankAccountDetail = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* Information about the employee's bank account.
|
|
12
|
+
*/
|
|
13
|
+
class PayslipV2BankAccountDetail {
|
|
14
|
+
constructor({ prediction = {} }) {
|
|
15
|
+
_PayslipV2BankAccountDetail_instances.add(this);
|
|
16
|
+
/** Confidence score */
|
|
17
|
+
this.confidence = 0.0;
|
|
18
|
+
/**
|
|
19
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
|
+
* the field in the document.
|
|
21
|
+
*/
|
|
22
|
+
this.polygon = [];
|
|
23
|
+
this.bankName = prediction["bank_name"];
|
|
24
|
+
this.iban = prediction["iban"];
|
|
25
|
+
this.swift = prediction["swift"];
|
|
26
|
+
this.pageId = prediction["page_id"];
|
|
27
|
+
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
28
|
+
if (prediction["polygon"]) {
|
|
29
|
+
this.polygon = prediction.polygon;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Default string representation.
|
|
34
|
+
*/
|
|
35
|
+
toString() {
|
|
36
|
+
const printable = __classPrivateFieldGet(this, _PayslipV2BankAccountDetail_instances, "m", _PayslipV2BankAccountDetail_printableValues).call(this);
|
|
37
|
+
return ("Bank Name: " +
|
|
38
|
+
printable.bankName +
|
|
39
|
+
", IBAN: " +
|
|
40
|
+
printable.iban +
|
|
41
|
+
", SWIFT: " +
|
|
42
|
+
printable.swift);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Output in a format suitable for inclusion in a field list.
|
|
46
|
+
*/
|
|
47
|
+
toFieldList() {
|
|
48
|
+
const printable = __classPrivateFieldGet(this, _PayslipV2BankAccountDetail_instances, "m", _PayslipV2BankAccountDetail_printableValues).call(this);
|
|
49
|
+
return `
|
|
50
|
+
:Bank Name: ${printable.bankName}
|
|
51
|
+
:IBAN: ${printable.iban}
|
|
52
|
+
:SWIFT: ${printable.swift}`.trimEnd();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.PayslipV2BankAccountDetail = PayslipV2BankAccountDetail;
|
|
56
|
+
_PayslipV2BankAccountDetail_instances = new WeakSet(), _PayslipV2BankAccountDetail_printableValues = function _PayslipV2BankAccountDetail_printableValues() {
|
|
57
|
+
return {
|
|
58
|
+
bankName: this.bankName ?? "",
|
|
59
|
+
iban: this.iban ?? "",
|
|
60
|
+
swift: this.swift ?? "",
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Prediction, StringDict } from "../../../parsing/common";
|
|
2
|
+
import { PayslipV2Employee } from "./payslipV2Employee";
|
|
3
|
+
import { PayslipV2Employer } from "./payslipV2Employer";
|
|
4
|
+
import { PayslipV2BankAccountDetail } from "./payslipV2BankAccountDetail";
|
|
5
|
+
import { PayslipV2Employment } from "./payslipV2Employment";
|
|
6
|
+
import { PayslipV2SalaryDetail } from "./payslipV2SalaryDetail";
|
|
7
|
+
import { PayslipV2PayDetail } from "./payslipV2PayDetail";
|
|
8
|
+
import { PayslipV2Pto } from "./payslipV2Pto";
|
|
9
|
+
import { PayslipV2PayPeriod } from "./payslipV2PayPeriod";
|
|
10
|
+
/**
|
|
11
|
+
* Payslip API version 2.0 document data.
|
|
12
|
+
*/
|
|
13
|
+
export declare class PayslipV2Document implements Prediction {
|
|
14
|
+
/** Information about the employee's bank account. */
|
|
15
|
+
bankAccountDetails: PayslipV2BankAccountDetail;
|
|
16
|
+
/** Information about the employee. */
|
|
17
|
+
employee: PayslipV2Employee;
|
|
18
|
+
/** Information about the employer. */
|
|
19
|
+
employer: PayslipV2Employer;
|
|
20
|
+
/** Information about the employment. */
|
|
21
|
+
employment: PayslipV2Employment;
|
|
22
|
+
/** Detailed information about the pay. */
|
|
23
|
+
payDetail: PayslipV2PayDetail;
|
|
24
|
+
/** Information about the pay period. */
|
|
25
|
+
payPeriod: PayslipV2PayPeriod;
|
|
26
|
+
/** Information about paid time off. */
|
|
27
|
+
pto: PayslipV2Pto;
|
|
28
|
+
/** Detailed information about the earnings. */
|
|
29
|
+
salaryDetails: PayslipV2SalaryDetail[];
|
|
30
|
+
constructor(rawPrediction: StringDict, pageId?: number);
|
|
31
|
+
/**
|
|
32
|
+
* Default string representation.
|
|
33
|
+
*/
|
|
34
|
+
toString(): string;
|
|
35
|
+
}
|