From 92e8dd01db0014ed9459b60dc2bd2c68cca54bbd Mon Sep 17 00:00:00 2001 From: sebastianMindee Date: Thu, 10 Oct 2024 18:23:30 +0200 Subject: [PATCH] :sparkles: add support for financial document v1.10 & invoice v4.8 --- docs/bill_of_lading_v1.md | 51 +++++++++++- docs/energy_bill_fra_v1.md | 62 +++++++++++++- docs/expense_receipts_v5.md | 8 +- docs/financial_document_v1.md | 14 ++++ docs/invoices_v4.md | 18 ++++- docs/nutrition_facts_v1.md | 81 ++++++++++++++++++- docs/payslip_fra_v2.md | 78 +++++++++++++++++- docs/us_mail_v2.md | 2 +- .../MultiReceiptsAutoExtractionExample.php | 10 +-- .../FinancialDocumentV1Document.php | 26 +++++- src/Product/Invoice/InvoiceV4Document.php | 26 +++++- tests/Product/Invoice/InvoiceV4Test.php | 2 + tests/resources | 2 +- 13 files changed, 361 insertions(+), 19 deletions(-) diff --git a/docs/bill_of_lading_v1.md b/docs/bill_of_lading_v1.md index be320a1e..bcb2fe17 100644 --- a/docs/bill_of_lading_v1.md +++ b/docs/bill_of_lading_v1.md @@ -6,7 +6,7 @@ parentDoc: 658193df8e029d002ad9c89b --- The PHP OCR SDK supports the [Bill of Lading API](https://platform.mindee.com/mindee/bill_of_lading). -The [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/bill_of_lading/default_sample.jpg) can be used for testing purposes. +Using the [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/bill_of_lading/default_sample.jpg), we are going to illustrate how to extract the data that we want using the OCR SDK. ![Bill of Lading sample](https://github.com/mindee/client-lib-test-data/blob/main/products/bill_of_lading/default_sample.jpg?raw=true) # Quick-Start @@ -27,6 +27,55 @@ $apiResponse = $mindeeClient->enqueueAndParse(BillOfLadingV1::class, $inputSourc echo $apiResponse->document; ``` + +**Output (RST):** +```rst +######## +Document +######## +:Mindee ID: 3b5250a1-b52c-4e0b-bc3e-2f0146b04e29 +:Filename: default_sample.jpg + +Inference +######### +:Product: mindee/bill_of_lading v1.1 +:Rotation applied: No + +Prediction +========== +:Bill of Lading Number: XYZ123456 +:Shipper: + :Address: 123 OCEAN DRIVE, SHANGHAI, CHINA + :Email: + :Name: GLOBAL FREIGHT SOLUTIONS INC. + :Phone: 86-21-12345678 +:Consignee: + :Address: 789 TRADE STREET, SINGAPORE 567890, SINGAPORE + :Email: + :Name: PACIFIC TRADING CO. + :Phone: 65-65432100 +:Notify Party: + :Address: 789 TRADE STREET, SINGAPORE 567890, SINGAPORE + :Email: + :Name: PACIFIC TRADING CO. + :Phone: 65-65432100 +:Carrier: + :Name: GLOBAL SHIPPING CO.,LTD. + :Professional Number: + :SCAC: +:Items: + +--------------------------------------+--------------+-------------+------------------+----------+-------------+ + | Description | Gross Weight | Measurement | Measurement Unit | Quantity | Weight Unit | + +======================================+==============+=============+==================+==========+=============+ + | ELECTRONIC COMPONENTS\nP/N: 12345... | 500.00 | 1.50 | cbm | 1.00 | kgs | + +--------------------------------------+--------------+-------------+------------------+----------+-------------+ +:Port of Loading: SHANGHAI, CHINA +:Port of Discharge: LOS ANGELES, USA +:Place of Delivery: LOS ANGELES, USA +:Date of issue: 2022-09-30 +:Departure Date: +``` + # Field Types ## Standard Fields These fields are generic and used in several products. diff --git a/docs/energy_bill_fra_v1.md b/docs/energy_bill_fra_v1.md index 6dffb4a0..2bab84e8 100644 --- a/docs/energy_bill_fra_v1.md +++ b/docs/energy_bill_fra_v1.md @@ -6,7 +6,7 @@ parentDoc: 658193df8e029d002ad9c89b --- The PHP OCR SDK supports the [Energy Bill API](https://platform.mindee.com/mindee/energy_bill_fra). -The [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/energy_bill_fra/default_sample.jpg) can be used for testing purposes. +Using the [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/energy_bill_fra/default_sample.jpg), we are going to illustrate how to extract the data that we want using the OCR SDK. ![Energy Bill sample](https://github.com/mindee/client-lib-test-data/blob/main/products/energy_bill_fra/default_sample.jpg?raw=true) # Quick-Start @@ -27,6 +27,66 @@ $apiResponse = $mindeeClient->enqueueAndParse(EnergyBillV1::class, $inputSource) echo $apiResponse->document; ``` + +**Output (RST):** +```rst +######## +Document +######## +:Mindee ID: 17f0ccef-e3fe-4a28-838d-d704489d6ce7 +:Filename: default_sample.pdf + +Inference +######### +:Product: mindee/energy_bill_fra v1.0 +:Rotation applied: No + +Prediction +========== +:Invoice Number: 10123590373 +:Contract ID: 1234567890 +:Delivery Point: 98765432109876 +:Invoice Date: 2021-01-29 +:Due Date: 2021-02-15 +:Total Before Taxes: 1241.03 +:Total Taxes: 238.82 +:Total Amount: 1479.85 +:Energy Supplier: + :Address: TSA 12345, 12345 DEMOCITY CEDEX, 75001 PARIS + :Name: EDF +:Energy Consumer: + :Address: 12 AVENUE DES RÊVES, RDC A 123 COUR FAUSSE A, 75000 PARIS + :Name: John Doe +:Subscription: + +--------------------------------------+------------+------------+----------+-----------+------------+ + | Description | End Date | Start Date | Tax Rate | Total | Unit Price | + +======================================+============+============+==========+===========+============+ + | 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 | + +--------------------------------------+------------+------------+----------+-----------+------------+ +: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 | + +--------------------------------------+------------+------------+----------+-----------+------------+ + | Départementale sur la Conso Final... | 2020-12-31 | 2020-11-28 | 20.00 | 13.98 | 0.3315 | + +--------------------------------------+------------+------------+----------+-----------+------------+ + | Communale sur la Conso Finale Ele... | 2021-01-27 | 2021-01-01 | 20.00 | 28.56 | 0.6545 | + +--------------------------------------+------------+------------+----------+-----------+------------+ + | Contribution Tarifaire d'Achemine... | 2020-12-31 | 2020-11-28 | 20.00 | 27.96 | 0.663 | + +--------------------------------------+------------+------------+----------+-----------+------------+ +:Meter Details: + :Meter Number: 620 + :Meter Type: electricity + :Unit of Measure: kWh +``` + # Field Types ## Standard Fields These fields are generic and used in several products. diff --git a/docs/expense_receipts_v5.md b/docs/expense_receipts_v5.md index 9e44754e..4aeb0905 100644 --- a/docs/expense_receipts_v5.md +++ b/docs/expense_receipts_v5.md @@ -45,7 +45,7 @@ Prediction ========== :Expense Locale: en-GB; en; GB; GBP; :Purchase Category: food -:Purchase Subcategory: restaurant +:Purchase Subcategory: :Document Type: EXPENSE RECEIPT :Purchase Date: 2016-02-26 :Purchase Time: 15:20 @@ -59,7 +59,7 @@ Prediction +===============+========+==========+===============+ | 8.50 | VAT | 20.00 | 1.70 | +---------------+--------+----------+---------------+ -:Supplier Name: clachan +:Supplier Name: Clachan :Supplier Company Registrations: Type: VAT NUMBER, Value: 232153895 Type: VAT NUMBER, Value: 232153895 :Supplier Address: 34 Kingley Street W1B 50H @@ -79,7 +79,7 @@ Page 0 ------ :Expense Locale: en-GB; en; GB; GBP; :Purchase Category: food -:Purchase Subcategory: restaurant +:Purchase Subcategory: :Document Type: EXPENSE RECEIPT :Purchase Date: 2016-02-26 :Purchase Time: 15:20 @@ -93,7 +93,7 @@ Page 0 +===============+========+==========+===============+ | 8.50 | VAT | 20.00 | 1.70 | +---------------+--------+----------+---------------+ -:Supplier Name: clachan +:Supplier Name: Clachan :Supplier Company Registrations: Type: VAT NUMBER, Value: 232153895 Type: VAT NUMBER, Value: 232153895 :Supplier Address: 34 Kingley Street W1B 50H diff --git a/docs/financial_document_v1.md b/docs/financial_document_v1.md index b1b5fb6c..3db4a70a 100644 --- a/docs/financial_document_v1.md +++ b/docs/financial_document_v1.md @@ -366,6 +366,20 @@ foreach ($result->document->inference->prediction->lineItems as $lineItemsElem) echo $result->document->inference->prediction->locale->value; ``` +## Payment Date +**paymentDate** : The date on which the payment is due / fullfilled. + +```php +echo $result->document->inference->prediction->paymentDate->value; +``` + +## Purchase Order Number +**poNumber** : The purchase order number. + +```php +echo $result->document->inference->prediction->poNumber->value; +``` + ## Receipt Number **receiptNumber** : The receipt number or identifier only if document is a receipt. diff --git a/docs/invoices_v4.md b/docs/invoices_v4.md index 7cbbae14..35caae62 100644 --- a/docs/invoices_v4.md +++ b/docs/invoices_v4.md @@ -83,7 +83,7 @@ Prediction :Supplier Address: 156 University Ave, Toronto ON, Canada, M5H 2H7 :Supplier Phone Number: 4165551212 :Supplier Website: -:Supplier Email: i_doi@example.com +:Supplier Email: ldoi@example.com :Customer Name: JIRO DOI :Customer Company Registrations: :Customer Address: 1954 Bloor Street West Toronto, ON, M6P 3K9 Canada @@ -127,7 +127,7 @@ Page 0 :Supplier Address: 156 University Ave, Toronto ON, Canada, M5H 2H7 :Supplier Phone Number: 4165551212 :Supplier Website: -:Supplier Email: i_doi@example.com +:Supplier Email: ldoi@example.com :Customer Name: JIRO DOI :Customer Company Registrations: :Customer Address: 1954 Bloor Street West Toronto, ON, M6P 3K9 Canada @@ -328,6 +328,20 @@ foreach ($result->document->inference->prediction->lineItems as $lineItemsElem) echo $result->document->inference->prediction->locale->value; ``` +## Payment Date +**paymentDate** : The date on which the payment is due/ was full-filled. + +```php +echo $result->document->inference->prediction->paymentDate->value; +``` + +## Purchase Order Number +**poNumber** : The purchase order number. + +```php +echo $result->document->inference->prediction->poNumber->value; +``` + ## Reference Numbers **referenceNumbers** : List of Reference numbers, including PO number. diff --git a/docs/nutrition_facts_v1.md b/docs/nutrition_facts_v1.md index b70fd372..fe6cc882 100644 --- a/docs/nutrition_facts_v1.md +++ b/docs/nutrition_facts_v1.md @@ -6,7 +6,7 @@ parentDoc: 658193df8e029d002ad9c89b --- The PHP OCR SDK supports the [Nutrition Facts Label API](https://platform.mindee.com/mindee/nutrition_facts). -The [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/nutrition_facts/default_sample.jpg) can be used for testing purposes. +Using the [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/nutrition_facts/default_sample.jpg), we are going to illustrate how to extract the data that we want using the OCR SDK. ![Nutrition Facts Label sample](https://github.com/mindee/client-lib-test-data/blob/main/products/nutrition_facts/default_sample.jpg?raw=true) # Quick-Start @@ -27,6 +27,85 @@ $apiResponse = $mindeeClient->enqueueAndParse(NutritionFactsLabelV1::class, $inp echo $apiResponse->document; ``` + +**Output (RST):** +```rst +######## +Document +######## +:Mindee ID: 38a12fe0-5d69-4ca4-9b30-12f1b659311c +:Filename: default_sample.jpg + +Inference +######### +:Product: mindee/nutrition_facts v1.0 +:Rotation applied: No + +Prediction +========== +:Serving per Box: 2.00 +:Serving Size: + :Amount: 228.00 + :Unit: g +:Calories: + :Daily Value: + :Per 100g: + :Per Serving: 250.00 +:Total Fat: + :Daily Value: + :Per 100g: + :Per Serving: 12.00 +:Saturated Fat: + :Daily Value: 15.00 + :Per 100g: + :Per Serving: 3.00 +:Trans Fat: + :Daily Value: + :Per 100g: + :Per Serving: 3.00 +:Cholesterol: + :Daily Value: 10.00 + :Per 100g: + :Per Serving: 30.00 +:Total Carbohydrate: + :Daily Value: 10.00 + :Per 100g: + :Per Serving: 31.00 +:Dietary Fiber: + :Daily Value: 0.00 + :Per 100g: + :Per Serving: 0.00 +:Total Sugars: + :Daily Value: + :Per 100g: + :Per Serving: 5.00 +:Added Sugars: + :Daily Value: + :Per 100g: + :Per Serving: +:Protein: + :Daily Value: + :Per 100g: + :Per Serving: 5.00 +:sodium: + :Daily Value: 20.00 + :Per 100g: + :Per Serving: 470.00 + :Unit: mg +:nutrients: + +-------------+----------------------+----------+-------------+------+ + | Daily Value | Name | Per 100g | Per Serving | Unit | + +=============+======================+==========+=============+======+ + | 12.00 | Vitamin A | | 4.00 | mcg | + +-------------+----------------------+----------+-------------+------+ + | 12.00 | Vitamin C | | 2.00 | mg | + +-------------+----------------------+----------+-------------+------+ + | 12.00 | Calcium | | 45.60 | mg | + +-------------+----------------------+----------+-------------+------+ + | 12.00 | Iron | | 0.90 | mg | + +-------------+----------------------+----------+-------------+------+ +``` + # Field Types ## Standard Fields These fields are generic and used in several products. diff --git a/docs/payslip_fra_v2.md b/docs/payslip_fra_v2.md index 75f0698b..288993fe 100644 --- a/docs/payslip_fra_v2.md +++ b/docs/payslip_fra_v2.md @@ -6,7 +6,7 @@ parentDoc: 658193df8e029d002ad9c89b --- The PHP OCR SDK supports the [Payslip API](https://platform.mindee.com/mindee/payslip_fra). -The [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/payslip_fra/default_sample.jpg) can be used for testing purposes. +Using the [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/payslip_fra/default_sample.jpg), we are going to illustrate how to extract the data that we want using the OCR SDK. ![Payslip sample](https://github.com/mindee/client-lib-test-data/blob/main/products/payslip_fra/default_sample.jpg?raw=true) # Quick-Start @@ -27,6 +27,82 @@ $apiResponse = $mindeeClient->enqueueAndParse(PayslipV2::class, $inputSource); echo $apiResponse->document; ``` + +**Output (RST):** +```rst +######## +Document +######## +:Mindee ID: 972edba5-25aa-49d0-8431-e2557ddd788e +:Filename: default_sample.jpg + +Inference +######### +:Product: mindee/payslip_fra v2.0 +:Rotation applied: No + +Prediction +========== +:Employee: + :Address: 52 RUE DES FLEURS 33500 LIBOURNE FRANCE + :Date of Birth: + :First Name: Jean Luc + :Last Name: Picard + :Phone Number: + :Registration Number: + :Social Security Number: 123456789012345 +:Employer: + :Address: 1 RUE DU TONNOT 25210 DOUBS + :Company ID: 12345678901234 + :Company Site: + :NAF Code: 1234A + :Name: DEMO COMPANY + :Phone Number: + :URSSAF Number: +:Bank Account Details: + :Bank Name: + :IBAN: + :SWIFT: +:Employment: + :Category: Cadre + :Coefficient: 600.00 + :Collective Agreement: Construction -- Promotion + :Job Title: Directeur Régional du Développement + :Position Level: + :Start Date: 2022-05-01 +:Salary Details: + +--------------+-----------+--------------------------------------+-----------+ + | Amount | Base | Description | Rate | + +==============+===========+======================================+===========+ + | 6666.67 | | Salaire de base | | + +--------------+-----------+--------------------------------------+-----------+ + | 9.30 | | Part patronale Mutuelle NR | | + +--------------+-----------+--------------------------------------+-----------+ + | 508.30 | | Avantages en nature voiture | | + +--------------+-----------+--------------------------------------+-----------+ +:Pay Detail: + :Gross Salary: 7184.27 + :Gross Salary YTD: 18074.81 + :Income Tax Rate: 17.60 + :Income Tax Withheld: 1030.99 + :Net Paid: 3868.32 + :Net Paid Before Tax: 4899.31 + :Net Taxable: 5857.90 + :Net Taxable YTD: 14752.73 + :Total Cost Employer: 10486.94 + :Total Taxes and Deductions: 1650.36 +:PTO: + :Accrued This Period: 6.17 + :Balance End of Period: 6.17 + :Used This Period: +:Pay Period: + :End Date: 2023-03-31 + :Month: 03 + :Payment Date: 2023-03-29 + :Start Date: 2023-03-01 + :Year: 2023 +``` + # Field Types ## Standard Fields These fields are generic and used in several products. diff --git a/docs/us_mail_v2.md b/docs/us_mail_v2.md index 513cd249..b03625ab 100644 --- a/docs/us_mail_v2.md +++ b/docs/us_mail_v2.md @@ -33,7 +33,7 @@ echo $apiResponse->document; :Sender Name: zed :Sender Address: :City: Dallas - :Complete Address: 54321 Elm Street, Dallas, Texas ... + :Complete Address: 54321 Elm Street, Dallas, Texas 54321 :Postal Code: 54321 :State: TX :Street: 54321 Elm Street diff --git a/examples/MultiReceiptsAutoExtractionExample.php b/examples/MultiReceiptsAutoExtractionExample.php index 45035dd3..efee50f8 100644 --- a/examples/MultiReceiptsAutoExtractionExample.php +++ b/examples/MultiReceiptsAutoExtractionExample.php @@ -6,6 +6,11 @@ use Mindee\Product\MultiReceiptsDetector\MultiReceiptsDetectorV1; use Mindee\Product\Receipt\ReceiptV5; +$mindeeClient = new Client("my-api-key-here"); +// $mindeeClient = new Client(); // Optionally, use an environment variable. +$inputPath = "path/to/your/file.ext"; + + function processReceipts($client, $inputPath) { $inputSource = new PathInput($inputPath); $imageExtractor = new ImageExtractor($inputSource); @@ -29,9 +34,4 @@ function processReceipts($client, $inputPath) { echo $result->document . "\n"; } } - -$mindeeClient = new Client("my-api-key-here"); -// $mindeeClient = new Client(); // Optionally, use an environment variable. -$inputPath = "path/to/your/file.ext"; - processReceipts($mindeeClient, $inputPath); diff --git a/src/Product/FinancialDocument/FinancialDocumentV1Document.php b/src/Product/FinancialDocument/FinancialDocumentV1Document.php index ee49029c..e23b2d20 100644 --- a/src/Product/FinancialDocument/FinancialDocumentV1Document.php +++ b/src/Product/FinancialDocument/FinancialDocumentV1Document.php @@ -15,7 +15,7 @@ use Mindee\Parsing\Standard\Taxes; /** - * Financial Document API version 1.9 document data. + * Financial Document API version 1.10 document data. */ class FinancialDocumentV1Document extends Prediction { @@ -71,6 +71,14 @@ class FinancialDocumentV1Document extends Prediction * @var LocaleField The locale detected on the document. */ public LocaleField $locale; + /** + * @var DateField The date on which the payment is due / fullfilled. + */ + public DateField $paymentDate; + /** + * @var StringField The purchase order number. + */ + public StringField $poNumber; /** * @var StringField The receipt number or identifier only if document is a receipt. */ @@ -237,6 +245,20 @@ public function __construct(array $rawPrediction, ?int $pageId = null) $rawPrediction["locale"], $pageId ); + if (!isset($rawPrediction["payment_date"])) { + throw new MindeeUnsetException(); + } + $this->paymentDate = new DateField( + $rawPrediction["payment_date"], + $pageId + ); + if (!isset($rawPrediction["po_number"])) { + throw new MindeeUnsetException(); + } + $this->poNumber = new StringField( + $rawPrediction["po_number"], + $pageId + ); if (!isset($rawPrediction["receipt_number"])) { throw new MindeeUnsetException(); } @@ -383,11 +405,13 @@ public function __toString(): string $outStr = ":Locale: $this->locale :Invoice Number: $this->invoiceNumber +:Purchase Order Number: $this->poNumber :Receipt Number: $this->receiptNumber :Document Number: $this->documentNumber :Reference Numbers: $referenceNumbers :Purchase Date: $this->date :Due Date: $this->dueDate +:Payment Date: $this->paymentDate :Total Net: $this->totalNet :Total Amount: $this->totalAmount :Taxes: $this->taxes diff --git a/src/Product/Invoice/InvoiceV4Document.php b/src/Product/Invoice/InvoiceV4Document.php index 72a5f3dc..dde6298a 100644 --- a/src/Product/Invoice/InvoiceV4Document.php +++ b/src/Product/Invoice/InvoiceV4Document.php @@ -15,7 +15,7 @@ use Mindee\Parsing\Standard\Taxes; /** - * Invoice API version 4.7 document data. + * Invoice API version 4.8 document data. */ class InvoiceV4Document extends Prediction { @@ -63,6 +63,14 @@ class InvoiceV4Document extends Prediction * @var LocaleField The locale detected on the document. */ public LocaleField $locale; + /** + * @var DateField The date on which the payment is due/ was full-filled. + */ + public DateField $paymentDate; + /** + * @var StringField The purchase order number. + */ + public StringField $poNumber; /** * @var StringField[] List of Reference numbers, including PO number. */ @@ -199,6 +207,20 @@ public function __construct(array $rawPrediction, ?int $pageId = null) $rawPrediction["locale"], $pageId ); + if (!isset($rawPrediction["payment_date"])) { + throw new MindeeUnsetException(); + } + $this->paymentDate = new DateField( + $rawPrediction["payment_date"], + $pageId + ); + if (!isset($rawPrediction["po_number"])) { + throw new MindeeUnsetException(); + } + $this->poNumber = new StringField( + $rawPrediction["po_number"], + $pageId + ); if (!isset($rawPrediction["reference_numbers"])) { throw new MindeeUnsetException(); } @@ -317,9 +339,11 @@ public function __toString(): string $outStr = ":Locale: $this->locale :Invoice Number: $this->invoiceNumber +:Purchase Order Number: $this->poNumber :Reference Numbers: $referenceNumbers :Purchase Date: $this->date :Due Date: $this->dueDate +:Payment Date: $this->paymentDate :Total Net: $this->totalNet :Total Amount: $this->totalAmount :Total Tax: $this->totalTax diff --git a/tests/Product/Invoice/InvoiceV4Test.php b/tests/Product/Invoice/InvoiceV4Test.php index 2b02cd72..29e73c52 100644 --- a/tests/Product/Invoice/InvoiceV4Test.php +++ b/tests/Product/Invoice/InvoiceV4Test.php @@ -35,9 +35,11 @@ public function testEmptyDoc() $prediction = $this->emptyDoc->inference->prediction; $this->assertNull($prediction->locale->value); $this->assertNull($prediction->invoiceNumber->value); + $this->assertNull($prediction->poNumber->value); $this->assertEquals(0, count($prediction->referenceNumbers)); $this->assertNull($prediction->date->value); $this->assertNull($prediction->dueDate->value); + $this->assertNull($prediction->paymentDate->value); $this->assertNull($prediction->totalNet->value); $this->assertNull($prediction->totalAmount->value); $this->assertNull($prediction->totalTax->value); diff --git a/tests/resources b/tests/resources index 43984fb9..e93f49c8 160000 --- a/tests/resources +++ b/tests/resources @@ -1 +1 @@ -Subproject commit 43984fb924bb22e1182a5eb218fafddf4ce0ec4d +Subproject commit e93f49c8a78ba3d71c35a8fe2219d973cfcb1334