From 9183bfe87eb842ac51bd944c7d59829398a4743d Mon Sep 17 00:00:00 2001 From: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com> Date: Wed, 21 May 2025 16:34:55 +0200 Subject: [PATCH 1/2] :sparkles: add support for financial document v1.14, US healthcare cards v1.3 & invoice v4.11 --- docs/energy_bill_fra_v1.md | 36 ++++++------- docs/expense_receipts_v5.md | 12 +++++ docs/financial_document_v1.md | 22 ++++++-- docs/ind_passport_v1.md | 4 +- docs/invoices_v4.md | 49 +++++++++++++++++- docs/us_healthcare_cards_v1.md | 50 +++++++++++-------- .../FinancialDocumentV1Document.java | 6 +-- .../IndianPassportV1Document.java | 8 +-- .../InternationalIdV2Document.java | 2 +- .../product/invoice/InvoiceV4Document.java | 20 +++++++- .../InvoiceSplitterV1Document.java | 2 +- .../product/receipt/ReceiptV5Document.java | 2 +- .../healthcarecard/HealthcareCardV1Copay.java | 6 +-- .../HealthcareCardV1Document.java | 15 ++++-- .../indianpassport/IndianPassportV1Test.java | 2 +- .../mindee/product/invoice/InvoiceV4Test.java | 2 + .../healthcarecard/HealthcareCardV1Test.java | 1 + src/test/resources | 2 +- 18 files changed, 175 insertions(+), 66 deletions(-) diff --git a/docs/energy_bill_fra_v1.md b/docs/energy_bill_fra_v1.md index c37335926..1536392dd 100644 --- a/docs/energy_bill_fra_v1.md +++ b/docs/energy_bill_fra_v1.md @@ -60,18 +60,18 @@ public class SimpleMindeeClient { ######## Document ######## -:Mindee ID: 17f0ccef-e3fe-4a28-838d-d704489d6ce7 +:Mindee ID: ff1f2ca8-4d29-44d8-a564-599a982a4ef7 :Filename: default_sample.pdf Inference ######### -:Product: mindee/energy_bill_fra v1.0 -:Rotation applied: No +:Product: mindee/energy_bill_fra v1.2 +:Rotation applied: Yes Prediction ========== -:Invoice Number: 10123590373 -:Contract ID: 1234567890 +:Invoice Number: 1234567890 +:Contract ID: 9876543210 :Delivery Point: 98765432109876 :Invoice Date: 2021-01-29 :Due Date: 2021-02-15 @@ -79,11 +79,11 @@ Prediction :Total Taxes: 238.82 :Total Amount: 1479.85 :Energy Supplier: - :Address: TSA 12345, 12345 DEMOCITY CEDEX, 75001 PARIS + :Address: TSA 12345, 12345 DEMOCITY CEDEX :Name: EDF :Energy Consumer: - :Address: 12 AVENUE DES RÊVES, RDC A 123 COUR FAUSSE A, 75000 PARIS - :Name: John Doe + :Address: 123 RUE DE L'IMAGINAIRE, 75001 PARIS + :Name: JOHN DOE :Subscription: +--------------------------------------+------------+------------+----------+-----------+------------+ | Description | End Date | Start Date | Tax Rate | Total | Unit Price | @@ -91,27 +91,27 @@ Prediction | Abonnement électricité | 2021-02-28 | 2021-01-01 | 5.50 | 59.00 | 29.50 | +--------------------------------------+------------+------------+----------+-----------+------------+ :Energy Usage: - +--------------------------------------+------------+------------+----------+-----------+------------+ - | Description | End Date | Start Date | Tax Rate | Total | Unit Price | - +======================================+============+============+==========+===========+============+ - | Consommation (HT) | 2021-01-27 | 2020-11-28 | 20.00 | 898.43 | 10.47 | - +--------------------------------------+------------+------------+----------+-----------+------------+ + +-------------+--------------------------------------+------------+------------+----------+-----------+-----------------+------------+ + | Consumption | Description | End Date | Start Date | Tax Rate | Total | Unit of Measure | Unit Price | + +=============+======================================+============+============+==========+===========+=================+============+ + | 8581.00 | Consommation électricité | 2021-01-27 | 2020-11-28 | 20.00 | 898.43 | kWh | 0.1047 | + +-------------+--------------------------------------+------------+------------+----------+-----------+-----------------+------------+ :Taxes and Contributions: +--------------------------------------+------------+------------+----------+-----------+------------+ | Description | End Date | Start Date | Tax Rate | Total | Unit Price | +======================================+============+============+==========+===========+============+ - | Contribution au Service Public de... | 2021-01-27 | 2020-11-28 | 20.00 | 193.07 | 2.25 | + | Contribution au Service Public de... | 2021-01-27 | 2020-11-28 | 20.00 | 193.07 | 0.0225 | +--------------------------------------+------------+------------+----------+-----------+------------+ - | Départementale sur la Conso Final... | 2020-12-31 | 2020-11-28 | 20.00 | 13.98 | 0.3315 | + | Taxe Départementale sur la Conso ... | 2021-01-27 | 2020-11-28 | 20.00 | 13.98 | 0.003315 | +--------------------------------------+------------+------------+----------+-----------+------------+ - | Communale sur la Conso Finale Ele... | 2021-01-27 | 2021-01-01 | 20.00 | 28.56 | 0.6545 | + | Taxe Communale sur la Conso Final... | 2021-01-27 | 2020-11-28 | 20.00 | 28.56 | 0.006545 | +--------------------------------------+------------+------------+----------+-----------+------------+ - | Contribution Tarifaire d'Achemine... | 2020-12-31 | 2020-11-28 | 20.00 | 27.96 | 0.663 | + | Taxe Communale sur la Conso Final... | 2021-01-27 | 2020-11-28 | 20.00 | 27.96 | 0.00663 | +--------------------------------------+------------+------------+----------+-----------+------------+ :Meter Details: :Meter Number: 620 :Meter Type: electricity - :Unit of Measure: kWh + :Unit of Power: 36kVA ``` # Field Types diff --git a/docs/expense_receipts_v5.md b/docs/expense_receipts_v5.md index ed8327072..cd0c2814c 100644 --- a/docs/expense_receipts_v5.md +++ b/docs/expense_receipts_v5.md @@ -279,6 +279,9 @@ The following fields are extracted for Receipt V5: - 'gasoline' - 'telecom' - 'miscellaneous' + - 'software' + - 'shopping' + - 'energy' ```java System.out.println(result.getDocument().getInference().getPrediction().getCategory().value); @@ -335,6 +338,15 @@ System.out.println(result.getDocument().getInference().getPrediction().getReceip - 'train' - 'restaurant' - 'shopping' + - 'other' + - 'groceries' + - 'cultural' + - 'electronics' + - 'office_supplies' + - 'micromobility' + - 'car_rental' + - 'public' + - 'delivery' - null ```java diff --git a/docs/financial_document_v1.md b/docs/financial_document_v1.md index c052c1c22..6a30b4dd1 100644 --- a/docs/financial_document_v1.md +++ b/docs/financial_document_v1.md @@ -107,12 +107,12 @@ public class SimpleMindeeClient { ######## Document ######## -:Mindee ID: a80ac0ee-26f6-4e2e-988a-960b240d5ba7 +:Mindee ID: f52333ab-811e-4647-993e-ad79e072afa3 :Filename: default_sample.jpg Inference ######### -:Product: mindee/financial_document v1.11 +:Product: mindee/financial_document v1.12 :Rotation applied: Yes Prediction @@ -148,6 +148,7 @@ Prediction :Shipping Address: 2019 Redbud Drive New York, NY 10011 :Billing Address: 4312 Wood Road New York, NY 10031 :Document Type: INVOICE +:Document Type Extended: INVOICE :Purchase Subcategory: :Purchase Category: miscellaneous :Total Tax: 9.75 @@ -200,6 +201,7 @@ Page 0 :Shipping Address: 2019 Redbud Drive New York, NY 10011 :Billing Address: 4312 Wood Road New York, NY 10031 :Document Type: INVOICE +:Document Type Extended: INVOICE :Purchase Subcategory: :Purchase Category: miscellaneous :Total Tax: 9.75 @@ -315,7 +317,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getBillin ``` ## Purchase Category -**category**: The purchase category, only for receipts. +**category**: The purchase category. #### Possible values include: - 'toll' @@ -326,6 +328,9 @@ System.out.println(result.getDocument().getInference().getPrediction().getBillin - 'gasoline' - 'telecom' - 'miscellaneous' + - 'software' + - 'shopping' + - 'energy' ```java System.out.println(result.getDocument().getInference().getPrediction().getCategory().value); @@ -477,7 +482,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getShippi ``` ## Purchase Subcategory -**subcategory**: The purchase subcategory for transport and food, only for receipts. +**subcategory**: The purchase subcategory for transport, food and shooping. #### Possible values include: - 'plane' @@ -485,6 +490,15 @@ System.out.println(result.getDocument().getInference().getPrediction().getShippi - 'train' - 'restaurant' - 'shopping' + - 'other' + - 'groceries' + - 'cultural' + - 'electronics' + - 'office_supplies' + - 'micromobility' + - 'car_rental' + - 'public' + - 'delivery' - null ```java diff --git a/docs/ind_passport_v1.md b/docs/ind_passport_v1.md index 05128ef40..0a373545f 100644 --- a/docs/ind_passport_v1.md +++ b/docs/ind_passport_v1.md @@ -65,7 +65,7 @@ Document Inference ######### -:Product: mindee/ind_passport v1.0 +:Product: mindee/ind_passport v1.2 :Rotation applied: Yes Prediction @@ -88,10 +88,10 @@ Prediction :Name of Mother: :Old Passport Date of Issue: :Old Passport Number: +:Old Passport Place of Issue: :Address Line 1: :Address Line 2: :Address Line 3: -:Old Passport Place of Issue: :File Number: ``` diff --git a/docs/invoices_v4.md b/docs/invoices_v4.md index 8556df50e..b5fc4210a 100644 --- a/docs/invoices_v4.md +++ b/docs/invoices_v4.md @@ -107,12 +107,12 @@ public class SimpleMindeeClient { ######## Document ######## -:Mindee ID: b55db8f9-ae3b-4f05-b2f1-ec0ced5e5b70 +:Mindee ID: 3e524d26-f7dc-4852-9bbf-833a127a9570 :Filename: default_sample.jpg Inference ######### -:Product: mindee/invoices v4.9 +:Product: mindee/invoices v4.10 :Rotation applied: Yes Prediction @@ -147,6 +147,7 @@ Prediction :Shipping Address: :Billing Address: 1954 Bloor Street West Toronto, ON, M6P 3K9 Canada :Document Type: INVOICE +:Document Type Extended: INVOICE :Line Items: +--------------------------------------+--------------+----------+------------+--------------+--------------+-----------------+------------+ | Description | Product code | Quantity | Tax Amount | Tax Rate (%) | Total Amount | Unit of measure | Unit Price | @@ -193,6 +194,7 @@ Page 0 :Shipping Address: :Billing Address: 1954 Bloor Street West Toronto, ON, M6P 3K9 Canada :Document Type: INVOICE +:Document Type Extended: INVOICE :Line Items: +--------------------------------------+--------------+----------+------------+--------------+--------------+-----------------+------------+ | Description | Product code | Quantity | Tax Amount | Tax Rate (%) | Total Amount | Unit of measure | Unit Price | @@ -302,6 +304,25 @@ The following fields are extracted for Invoice V4: System.out.println(result.getDocument().getInference().getPrediction().getBillingAddress().value); ``` +## Purchase Category +**category**: The purchase category. + +#### Possible values include: + - 'toll' + - 'food' + - 'parking' + - 'transport' + - 'accommodation' + - 'telecom' + - 'miscellaneous' + - 'software' + - 'shopping' + - 'energy' + +```java +System.out.println(result.getDocument().getInference().getPrediction().getCategory().value); +``` + ## Customer Address **customerAddress**: The address of the customer. @@ -431,6 +452,30 @@ for (referenceNumbersElem : result.getDocument().getInference().getPrediction(). System.out.println(result.getDocument().getInference().getPrediction().getShippingAddress().value); ``` +## Purchase Subcategory +**subcategory**: The purchase subcategory for transport, food and shopping. + +#### Possible values include: + - 'plane' + - 'taxi' + - 'train' + - 'restaurant' + - 'shopping' + - 'other' + - 'groceries' + - 'cultural' + - 'electronics' + - 'office_supplies' + - 'micromobility' + - 'car_rental' + - 'public' + - 'delivery' + - null + +```java +System.out.println(result.getDocument().getInference().getPrediction().getSubcategory().value); +``` + ## Supplier Address **supplierAddress**: The address of the supplier or merchant. diff --git a/docs/us_healthcare_cards_v1.md b/docs/us_healthcare_cards_v1.md index cac538e09..d32f08906 100644 --- a/docs/us_healthcare_cards_v1.md +++ b/docs/us_healthcare_cards_v1.md @@ -60,13 +60,13 @@ public class SimpleMindeeClient { ######## Document ######## -:Mindee ID: 0ced9f49-00c0-4a1d-8221-4a1538813a95 +:Mindee ID: 1e71d5f0-dedb-4070-9d94-9207cd9570b5 :Filename: default_sample.jpg Inference ######### -:Product: mindee/us_healthcare_cards v1.0 -:Rotation applied: No +:Product: mindee/us_healthcare_cards v1.2 +:Rotation applied: Yes Prediction ========== @@ -81,21 +81,22 @@ Prediction :Group Number: 98765 :Payer ID: 87726 :RX BIN: 610279 +:RX ID: :RX GRP: UHEALTH :RX PCN: 9999 :copays: - +--------------+--------------+ - | Service Fees | Service Name | - +==============+==============+ - | 20.00 | office visit | - +--------------+--------------+ - | 300.00 | emergency | - +--------------+--------------+ - | 75.00 | urgent care | - +--------------+--------------+ - | 30.00 | specialist | - +--------------+--------------+ -:Enrollment Date: 2023-09-13 + +--------------+----------------------+ + | Service Fees | Service Name | + +==============+======================+ + | 300.00 | emergency_room | + +--------------+----------------------+ + | 20.00 | office_visit | + +--------------+----------------------+ + | 75.00 | urgent_care | + +--------------+----------------------+ + | 30.00 | specialist | + +--------------+----------------------+ +:Enrollment Date: ``` # Field Types @@ -129,13 +130,13 @@ The date field `DateField` extends `BaseField`, but also implements: ## Specific Fields Fields which are specific to this product; they are not used in any other product. -### copays Field -Is a fixed amount for a covered service. +### Copays Field +Copayments for covered services. A `HealthcareCardV1Copay` implements the following attributes: -* **serviceFees** (`Double`): The price of service. -* **serviceName** (`String`): The name of service of the copay. +* **serviceFees** (`Double`): The price of the service. +* **serviceName** (`String`): The name of the service. #### Possible values include: - primary_care @@ -156,8 +157,8 @@ The following fields are extracted for Healthcare Card V1: System.out.println(result.getDocument().getInference().getPrediction().getCompanyName().value); ``` -## copays -**copays**(List<[HealthcareCardV1Copay](#copays-field)>): Is a fixed amount for a covered service. +## Copays +**copays**(List<[HealthcareCardV1Copay](#copays-field)>): Copayments for covered services. ```java for (copaysElem : result.getDocument().getInference().getPrediction().getCopays()) @@ -218,6 +219,13 @@ System.out.println(result.getDocument().getInference().getPrediction().getMember System.out.println(result.getDocument().getInference().getPrediction().getPayerId().value); ``` +## Plan Name +**planName**: The name of the healthcare plan. + +```java +System.out.println(result.getDocument().getInference().getPrediction().getPlanName().value); +``` + ## RX BIN **rxBin**: The BIN number for prescription drug coverage. diff --git a/src/main/java/com/mindee/product/financialdocument/FinancialDocumentV1Document.java b/src/main/java/com/mindee/product/financialdocument/FinancialDocumentV1Document.java index 6d12be94b..8e80bd9f8 100644 --- a/src/main/java/com/mindee/product/financialdocument/FinancialDocumentV1Document.java +++ b/src/main/java/com/mindee/product/financialdocument/FinancialDocumentV1Document.java @@ -20,7 +20,7 @@ import lombok.Getter; /** - * Financial Document API version 1.12 document data. + * Financial Document API version 1.14 document data. */ @Getter @EqualsAndHashCode(callSuper = false) @@ -33,7 +33,7 @@ public class FinancialDocumentV1Document extends Prediction { @JsonProperty("billing_address") protected StringField billingAddress; /** - * The purchase category, only for receipts. + * The purchase category. */ @JsonProperty("category") protected ClassificationField category; @@ -123,7 +123,7 @@ public class FinancialDocumentV1Document extends Prediction { @JsonProperty("shipping_address") protected StringField shippingAddress; /** - * The purchase subcategory for transport and food, only for receipts. + * The purchase subcategory for transport, food and shooping. */ @JsonProperty("subcategory") protected ClassificationField subcategory; diff --git a/src/main/java/com/mindee/product/ind/indianpassport/IndianPassportV1Document.java b/src/main/java/com/mindee/product/ind/indianpassport/IndianPassportV1Document.java index 15aeeaa50..262bd8ec2 100644 --- a/src/main/java/com/mindee/product/ind/indianpassport/IndianPassportV1Document.java +++ b/src/main/java/com/mindee/product/ind/indianpassport/IndianPassportV1Document.java @@ -155,10 +155,10 @@ public boolean isEmpty() { && this.nameOfMother == null && this.oldPassportDateOfIssue == null && this.oldPassportNumber == null + && this.oldPassportPlaceOfIssue == null && this.address1 == null && this.address2 == null && this.address3 == null - && this.oldPassportPlaceOfIssue == null && this.fileNumber == null ); } @@ -220,6 +220,9 @@ public String toString() { outStr.append( String.format(":Old Passport Number: %s%n", this.getOldPassportNumber()) ); + outStr.append( + String.format(":Old Passport Place of Issue: %s%n", this.getOldPassportPlaceOfIssue()) + ); outStr.append( String.format(":Address Line 1: %s%n", this.getAddress1()) ); @@ -229,9 +232,6 @@ public String toString() { outStr.append( String.format(":Address Line 3: %s%n", this.getAddress3()) ); - outStr.append( - String.format(":Old Passport Place of Issue: %s%n", this.getOldPassportPlaceOfIssue()) - ); outStr.append( String.format(":File Number: %s%n", this.getFileNumber()) ); diff --git a/src/main/java/com/mindee/product/internationalid/InternationalIdV2Document.java b/src/main/java/com/mindee/product/internationalid/InternationalIdV2Document.java index 11b4e10a0..05918814c 100644 --- a/src/main/java/com/mindee/product/internationalid/InternationalIdV2Document.java +++ b/src/main/java/com/mindee/product/internationalid/InternationalIdV2Document.java @@ -13,7 +13,7 @@ import lombok.Getter; /** - * International ID API version 2.1 document data. + * International ID API version 2.2 document data. */ @Getter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/mindee/product/invoice/InvoiceV4Document.java b/src/main/java/com/mindee/product/invoice/InvoiceV4Document.java index d77056254..4118bcec3 100644 --- a/src/main/java/com/mindee/product/invoice/InvoiceV4Document.java +++ b/src/main/java/com/mindee/product/invoice/InvoiceV4Document.java @@ -20,7 +20,7 @@ import lombok.Getter; /** - * Invoice API version 4.10 document data. + * Invoice API version 4.11 document data. */ @Getter @EqualsAndHashCode(callSuper = false) @@ -32,6 +32,11 @@ public class InvoiceV4Document extends Prediction { */ @JsonProperty("billing_address") protected StringField billingAddress; + /** + * The purchase category. + */ + @JsonProperty("category") + protected ClassificationField category; /** * The address of the customer. */ @@ -107,6 +112,11 @@ public class InvoiceV4Document extends Prediction { */ @JsonProperty("shipping_address") protected StringField shippingAddress; + /** + * The purchase subcategory for transport, food and shopping. + */ + @JsonProperty("subcategory") + protected ClassificationField subcategory; /** * The address of the supplier or merchant. */ @@ -193,6 +203,8 @@ public boolean isEmpty() { && this.billingAddress == null && this.documentType == null && this.documentTypeExtended == null + && this.subcategory == null + && this.category == null && (this.lineItems == null || this.lineItems.isEmpty()) ); } @@ -294,6 +306,12 @@ public String toString() { outStr.append( String.format(":Document Type Extended: %s%n", this.getDocumentTypeExtended()) ); + outStr.append( + String.format(":Purchase Subcategory: %s%n", this.getSubcategory()) + ); + outStr.append( + String.format(":Purchase Category: %s%n", this.getCategory()) + ); String lineItemsSummary = ""; if (!this.getLineItems().isEmpty()) { int[] lineItemsColSizes = new int[]{38, 14, 10, 12, 14, 14, 17, 12}; diff --git a/src/main/java/com/mindee/product/invoicesplitter/InvoiceSplitterV1Document.java b/src/main/java/com/mindee/product/invoicesplitter/InvoiceSplitterV1Document.java index 6c472ca43..599830b63 100644 --- a/src/main/java/com/mindee/product/invoicesplitter/InvoiceSplitterV1Document.java +++ b/src/main/java/com/mindee/product/invoicesplitter/InvoiceSplitterV1Document.java @@ -10,7 +10,7 @@ import lombok.Getter; /** - * Invoice Splitter API version 1.2 document data. + * Invoice Splitter API version 1.4 document data. */ @Getter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/mindee/product/receipt/ReceiptV5Document.java b/src/main/java/com/mindee/product/receipt/ReceiptV5Document.java index 05279b931..bc8d76af9 100644 --- a/src/main/java/com/mindee/product/receipt/ReceiptV5Document.java +++ b/src/main/java/com/mindee/product/receipt/ReceiptV5Document.java @@ -19,7 +19,7 @@ import lombok.Getter; /** - * Receipt API version 5.3 document data. + * Receipt API version 5.4 document data. */ @Getter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Copay.java b/src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Copay.java index a0aedbfd8..c4a39ce37 100644 --- a/src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Copay.java +++ b/src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Copay.java @@ -10,19 +10,19 @@ import lombok.Getter; /** - * Is a fixed amount for a covered service. + * Copayments for covered services. */ @Getter @JsonIgnoreProperties(ignoreUnknown = true) public class HealthcareCardV1Copay extends BaseField implements LineItemField { /** - * The price of service. + * The price of the service. */ @JsonProperty("service_fees") Double serviceFees; /** - * The name of service of the copay. + * The name of the service. */ @JsonProperty("service_name") String serviceName; diff --git a/src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Document.java b/src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Document.java index 0eaa5c0ae..9af1bfca1 100644 --- a/src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Document.java +++ b/src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Document.java @@ -12,7 +12,7 @@ import lombok.Getter; /** - * Healthcare Card API version 1.2 document data. + * Healthcare Card API version 1.3 document data. */ @Getter @EqualsAndHashCode(callSuper = false) @@ -25,7 +25,7 @@ public class HealthcareCardV1Document extends Prediction { @JsonProperty("company_name") protected StringField companyName; /** - * Is a fixed amount for a covered service. + * Copayments for covered services. */ @JsonProperty("copays") protected List copays = new ArrayList<>(); @@ -64,6 +64,11 @@ public class HealthcareCardV1Document extends Prediction { */ @JsonProperty("payer_id") protected StringField payerId; + /** + * The name of the healthcare plan. + */ + @JsonProperty("plan_name") + protected StringField planName; /** * The BIN number for prescription drug coverage. */ @@ -89,6 +94,7 @@ public class HealthcareCardV1Document extends Prediction { public boolean isEmpty() { return ( this.companyName == null + && this.planName == null && this.memberName == null && this.memberId == null && this.issuer80840 == null @@ -110,6 +116,9 @@ public String toString() { outStr.append( String.format(":Company Name: %s%n", this.getCompanyName()) ); + outStr.append( + String.format(":Plan Name: %s%n", this.getPlanName()) + ); outStr.append( String.format(":Member Name: %s%n", this.getMemberName()) ); @@ -156,7 +165,7 @@ public String toString() { copaysSummary += String.format("%n%s", SummaryHelper.lineSeparator(copaysColSizes, "-")); } outStr.append( - String.format(":copays: %s%n", copaysSummary) + String.format(":Copays: %s%n", copaysSummary) ); outStr.append( String.format(":Enrollment Date: %s%n", this.getEnrollmentDate()) diff --git a/src/test/java/com/mindee/product/ind/indianpassport/IndianPassportV1Test.java b/src/test/java/com/mindee/product/ind/indianpassport/IndianPassportV1Test.java index dd47b743e..0383bd699 100644 --- a/src/test/java/com/mindee/product/ind/indianpassport/IndianPassportV1Test.java +++ b/src/test/java/com/mindee/product/ind/indianpassport/IndianPassportV1Test.java @@ -52,10 +52,10 @@ void whenEmptyDeserialized_mustHaveValidProperties() throws IOException { Assertions.assertNull(docPrediction.getNameOfMother().getValue()); Assertions.assertNull(docPrediction.getOldPassportDateOfIssue().getValue()); Assertions.assertNull(docPrediction.getOldPassportNumber().getValue()); + Assertions.assertNull(docPrediction.getOldPassportPlaceOfIssue().getValue()); Assertions.assertNull(docPrediction.getAddress1().getValue()); Assertions.assertNull(docPrediction.getAddress2().getValue()); Assertions.assertNull(docPrediction.getAddress3().getValue()); - Assertions.assertNull(docPrediction.getOldPassportPlaceOfIssue().getValue()); Assertions.assertNull(docPrediction.getFileNumber().getValue()); } diff --git a/src/test/java/com/mindee/product/invoice/InvoiceV4Test.java b/src/test/java/com/mindee/product/invoice/InvoiceV4Test.java index be0750c37..16a789870 100644 --- a/src/test/java/com/mindee/product/invoice/InvoiceV4Test.java +++ b/src/test/java/com/mindee/product/invoice/InvoiceV4Test.java @@ -60,6 +60,8 @@ void whenEmptyDeserialized_mustHaveValidProperties() throws IOException { Assertions.assertNull(docPrediction.getBillingAddress().getValue()); Assertions.assertInstanceOf(ClassificationField.class, docPrediction.getDocumentType()); Assertions.assertInstanceOf(ClassificationField.class, docPrediction.getDocumentTypeExtended()); + Assertions.assertInstanceOf(ClassificationField.class, docPrediction.getSubcategory()); + Assertions.assertInstanceOf(ClassificationField.class, docPrediction.getCategory()); Assertions.assertTrue(docPrediction.getLineItems().isEmpty()); } diff --git a/src/test/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Test.java b/src/test/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Test.java index 8bf7fb0a6..613225f61 100644 --- a/src/test/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Test.java +++ b/src/test/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Test.java @@ -35,6 +35,7 @@ void whenEmptyDeserialized_mustHaveValidProperties() throws IOException { PredictResponse response = getPrediction("empty"); HealthcareCardV1Document docPrediction = response.getDocument().getInference().getPrediction(); Assertions.assertNull(docPrediction.getCompanyName().getValue()); + Assertions.assertNull(docPrediction.getPlanName().getValue()); Assertions.assertNull(docPrediction.getMemberName().getValue()); Assertions.assertNull(docPrediction.getMemberId().getValue()); Assertions.assertNull(docPrediction.getIssuer80840().getValue()); diff --git a/src/test/resources b/src/test/resources index 0c9cfe341..be5a18fc9 160000 --- a/src/test/resources +++ b/src/test/resources @@ -1 +1 @@ -Subproject commit 0c9cfe3416babad79b0689b40eb71917ab996beb +Subproject commit be5a18fc9c9b961fcd1086091a8e6853a6d50620 From 2a691db8746d9260bce66d51a2187f52ad76f2c6 Mon Sep 17 00:00:00 2001 From: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com> Date: Wed, 21 May 2025 16:57:45 +0200 Subject: [PATCH 2/2] bump test lib --- src/test/resources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/resources b/src/test/resources index be5a18fc9..e48b26e52 160000 --- a/src/test/resources +++ b/src/test/resources @@ -1 +1 @@ -Subproject commit be5a18fc9c9b961fcd1086091a8e6853a6d50620 +Subproject commit e48b26e5250cbbab9d3ee6c66c0eb85b667a4bb8