Skip to content

Commit 18eba2e

Browse files
✨ bump FR EnergyBillV1 to V1.2 & US HealthcareCardV1 to V1.1 + re-add US Mail V2 (#175)
1 parent bfaab8b commit 18eba2e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+658
-381
lines changed

bin/cli_products.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@
4343
sync: false,
4444
async: true,
4545
},
46-
"eu-license-plate" => {
47-
description: "License Plate",
48-
doc_class: Mindee::Product::EU::LicensePlate::LicensePlateV1,
49-
sync: true,
50-
async: false,
51-
},
5246
"financial-document" => {
5347
description: "Financial Document",
5448
doc_class: Mindee::Product::FinancialDocument::FinancialDocumentV1,

docs/code_samples/license_plates_v1.txt renamed to docs/code_samples/us_mail_v2_async.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ input_source = mindee_client.source_from_path('/path/to/the/file.ext')
1414
# Parse the file
1515
result = mindee_client.parse(
1616
input_source,
17-
Mindee::Product::EU::LicensePlate::LicensePlateV1
17+
Mindee::Product::US::UsMail::UsMailV2
1818
)
1919

2020
# Print a full summary of the parsed data in RST format

docs/global_products/delivery_notes_v1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Ruby Client Library supports the [Delivery note API](https://platform.mindee
1212
> | Specification | Details |
1313
> | ------------------------------ | -------------------------------------------------- |
1414
> | Endpoint Name | `delivery_notes` |
15-
> | Recommended Version | `v1.1` |
15+
> | Recommended Version | `v1.2` |
1616
> | Supports Polling/Webhooks | ✔️ Yes |
1717
> | Support Synchronous HTTP Calls | ❌ No |
1818
> | Geography | 🌐 Global |

docs/global_products/expense_receipts_v5.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ objects, it has access to a custom `to_s` method that can render a `TaxField` ob
239239
Fields which are specific to this product; they are not used in any other product.
240240

241241
### Line Items Field
242-
List of line item details.
242+
List of all line items on the receipt.
243243

244244
A `ReceiptV5LineItem` implements the following attributes:
245245

@@ -252,17 +252,17 @@ A `ReceiptV5LineItem` implements the following attributes:
252252
The following fields are extracted for Receipt V5:
253253

254254
## Purchase Category
255-
**category** ([ClassificationField](#classification-field)): The purchase category among predefined classes.
255+
**category** ([ClassificationField](#classification-field)): The purchase category of the receipt.
256256

257257
#### Possible values include:
258-
- toll
259-
- food
260-
- parking
261-
- transport
262-
- accommodation
263-
- gasoline
264-
- telecom
265-
- miscellaneous
258+
- 'toll'
259+
- 'food'
260+
- 'parking'
261+
- 'transport'
262+
- 'accommodation'
263+
- 'gasoline'
264+
- 'telecom'
265+
- 'miscellaneous'
266266

267267
```rb
268268
puts result.document.inference.prediction.category.value
@@ -276,18 +276,18 @@ puts result.document.inference.prediction.date.value
276276
```
277277

278278
## Document Type
279-
**document_type** ([ClassificationField](#classification-field)): One of: 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.
279+
**document_type** ([ClassificationField](#classification-field)): The type of receipt: EXPENSE RECEIPT or CREDIT CARD RECEIPT.
280280

281281
#### Possible values include:
282-
- expense_receipt
283-
- credit_card_receipt
282+
- 'EXPENSE RECEIPT'
283+
- 'CREDIT CARD RECEIPT'
284284

285285
```rb
286286
puts result.document.inference.prediction.document_type.value
287287
```
288288

289289
## Line Items
290-
**line_items** (Array<[ReceiptV5LineItem](#line-items-field)>): List of line item details.
290+
**line_items** (Array<[ReceiptV5LineItem](#line-items-field)>): List of all line items on the receipt.
291291

292292
```rb
293293
result.document.inference.prediction.line_items do |line_items_elem|
@@ -296,7 +296,7 @@ end
296296
```
297297

298298
## Expense Locale
299-
**locale** ([LocaleField](#locale-field)): The locale detected on the document.
299+
**locale** ([LocaleField](#locale-field)): The locale of the document.
300300

301301
```rb
302302
puts result.document.inference.prediction.locale.value
@@ -310,14 +310,15 @@ puts result.document.inference.prediction.receipt_number.value
310310
```
311311

312312
## Purchase Subcategory
313-
**subcategory** ([ClassificationField](#classification-field)): The purchase subcategory among predefined classes for transport and food.
313+
**subcategory** ([ClassificationField](#classification-field)): The purchase subcategory of the receipt for transport and food.
314314

315315
#### Possible values include:
316-
- plane
317-
- taxi
318-
- train
319-
- restaurant
320-
- shopping
316+
- 'plane'
317+
- 'taxi'
318+
- 'train'
319+
- 'restaurant'
320+
- 'shopping'
321+
- nil
321322

322323
```rb
323324
puts result.document.inference.prediction.subcategory.value
@@ -331,7 +332,7 @@ puts result.document.inference.prediction.supplier_address.value
331332
```
332333

333334
## Supplier Company Registrations
334-
**supplier_company_registrations** (Array<[CompanyRegistrationField](#company-registration-field)>): List of company registrations associated to the supplier.
335+
**supplier_company_registrations** (Array<[CompanyRegistrationField](#company-registration-field)>): List of company registration numbers associated to the supplier.
335336

336337
```rb
337338
result.document.inference.prediction.supplier_company_registrations do |supplier_company_registrations_elem|
@@ -354,7 +355,7 @@ puts result.document.inference.prediction.supplier_phone_number.value
354355
```
355356

356357
## Taxes
357-
**taxes** (Array<[TaxField](#taxes-field)>): List of tax lines information.
358+
**taxes** (Array<[TaxField](#taxes-field)>): The list of taxes present on the receipt.
358359

359360
```rb
360361
result.document.inference.prediction.taxes do |taxes_elem|
@@ -391,7 +392,7 @@ puts result.document.inference.prediction.total_net.value
391392
```
392393

393394
## Total Tax
394-
**total_tax** ([AmountField](#amount-field)): The total amount of taxes.
395+
**total_tax** ([AmountField](#amount-field)): The sum of all taxes.
395396

396397
```rb
397398
puts result.document.inference.prediction.total_tax.value

docs/global_products/financial_document_v1.md

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ objects, it has access to a custom `to_s` method that can render a `TaxField` ob
284284
Fields which are specific to this product; they are not used in any other product.
285285

286286
### Line Items Field
287-
List of line item details.
287+
List of line item present on the document.
288288

289289
A `FinancialDocumentV1LineItem` implements the following attributes:
290290

@@ -308,17 +308,17 @@ puts result.document.inference.prediction.billing_address.value
308308
```
309309

310310
## Purchase Category
311-
**category** ([ClassificationField](#classification-field)): The purchase category among predefined classes.
311+
**category** ([ClassificationField](#classification-field)): The purchase category, only for receipts.
312312

313313
#### Possible values include:
314-
- toll
315-
- food
316-
- parking
317-
- transport
318-
- accommodation
319-
- gasoline
320-
- telecom
321-
- miscellaneous
314+
- 'toll'
315+
- 'food'
316+
- 'parking'
317+
- 'transport'
318+
- 'accommodation'
319+
- 'gasoline'
320+
- 'telecom'
321+
- 'miscellaneous'
322322

323323
```rb
324324
puts result.document.inference.prediction.category.value
@@ -332,7 +332,7 @@ puts result.document.inference.prediction.customer_address.value
332332
```
333333

334334
## Customer Company Registrations
335-
**customer_company_registrations** (Array<[CompanyRegistrationField](#company-registration-field)>): List of company registrations associated to the customer.
335+
**customer_company_registrations** (Array<[CompanyRegistrationField](#company-registration-field)>): List of company registration numbers associated to the customer.
336336

337337
```rb
338338
result.document.inference.prediction.customer_company_registrations do |customer_company_registrations_elem|
@@ -362,20 +362,20 @@ puts result.document.inference.prediction.date.value
362362
```
363363

364364
## Document Number
365-
**document_number** ([StringField](#string-field)): The document number or identifier.
365+
**document_number** ([StringField](#string-field)): The document number or identifier (invoice number or receipt number).
366366

367367
```rb
368368
puts result.document.inference.prediction.document_number.value
369369
```
370370

371371
## Document Type
372-
**document_type** ([ClassificationField](#classification-field)): One of: 'INVOICE', 'CREDIT NOTE', 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.
372+
**document_type** ([ClassificationField](#classification-field)): The type of the document: INVOICE or CREDIT NOTE if it is an invoice, CREDIT CARD RECEIPT or EXPENSE RECEIPT if it is a receipt.
373373

374374
#### Possible values include:
375-
- INVOICE
376-
- CREDIT NOTE
377-
- CREDIT CARD RECEIPT
378-
- EXPENSE RECEIPT
375+
- 'INVOICE'
376+
- 'CREDIT NOTE'
377+
- 'CREDIT CARD RECEIPT'
378+
- 'EXPENSE RECEIPT'
379379

380380
```rb
381381
puts result.document.inference.prediction.document_type.value
@@ -396,7 +396,7 @@ puts result.document.inference.prediction.invoice_number.value
396396
```
397397

398398
## Line Items
399-
**line_items** (Array<[FinancialDocumentV1LineItem](#line-items-field)>): List of line item details.
399+
**line_items** (Array<[FinancialDocumentV1LineItem](#line-items-field)>): List of line item present on the document.
400400

401401
```rb
402402
result.document.inference.prediction.line_items do |line_items_elem|
@@ -405,7 +405,7 @@ end
405405
```
406406

407407
## Locale
408-
**locale** ([LocaleField](#locale-field)): The locale detected on the document.
408+
**locale** ([LocaleField](#locale-field)): The locale of the document.
409409

410410
```rb
411411
puts result.document.inference.prediction.locale.value
@@ -419,7 +419,7 @@ puts result.document.inference.prediction.payment_date.value
419419
```
420420

421421
## Purchase Order Number
422-
**po_number** ([StringField](#string-field)): The purchase order number.
422+
**po_number** ([StringField](#string-field)): The purchase order number, only if the document is an invoice.
423423

424424
```rb
425425
puts result.document.inference.prediction.po_number.value
@@ -433,7 +433,7 @@ puts result.document.inference.prediction.receipt_number.value
433433
```
434434

435435
## Reference Numbers
436-
**reference_numbers** (Array<[StringField](#string-field)>): List of Reference numbers, including PO number.
436+
**reference_numbers** (Array<[StringField](#string-field)>): List of Reference numbers, including PO number, only if the document is an invoice.
437437

438438
```rb
439439
result.document.inference.prediction.reference_numbers do |reference_numbers_elem|
@@ -449,14 +449,15 @@ puts result.document.inference.prediction.shipping_address.value
449449
```
450450

451451
## Purchase Subcategory
452-
**subcategory** ([ClassificationField](#classification-field)): The purchase subcategory among predefined classes for transport and food.
452+
**subcategory** ([ClassificationField](#classification-field)): The purchase subcategory for transport and food, only for receipts.
453453

454454
#### Possible values include:
455-
- plane
456-
- taxi
457-
- train
458-
- restaurant
459-
- shopping
455+
- 'plane'
456+
- 'taxi'
457+
- 'train'
458+
- 'restaurant'
459+
- 'shopping'
460+
- nil
460461

461462
```rb
462463
puts result.document.inference.prediction.subcategory.value
@@ -470,7 +471,7 @@ puts result.document.inference.prediction.supplier_address.value
470471
```
471472

472473
## Supplier Company Registrations
473-
**supplier_company_registrations** (Array<[CompanyRegistrationField](#company-registration-field)>): List of company registrations associated to the supplier.
474+
**supplier_company_registrations** (Array<[CompanyRegistrationField](#company-registration-field)>): List of company registration numbers associated to the supplier.
474475

475476
```rb
476477
result.document.inference.prediction.supplier_company_registrations do |supplier_company_registrations_elem|
@@ -493,7 +494,7 @@ puts result.document.inference.prediction.supplier_name.value
493494
```
494495

495496
## Supplier Payment Details
496-
**supplier_payment_details** (Array<[PaymentDetailsField](#payment-details-field)>): List of payment details associated to the supplier.
497+
**supplier_payment_details** (Array<[PaymentDetailsField](#payment-details-field)>): List of payment details associated to the supplier (only for invoices).
497498

498499
```rb
499500
result.document.inference.prediction.supplier_payment_details do |supplier_payment_details_elem|
@@ -519,7 +520,7 @@ puts result.document.inference.prediction.supplier_website.value
519520
```
520521

521522
## Taxes
522-
**taxes** (Array<[TaxField](#taxes-field)>): List of tax lines information.
523+
**taxes** (Array<[TaxField](#taxes-field)>): List of all taxes on the document.
523524

524525
```rb
525526
result.document.inference.prediction.taxes do |taxes_elem|
@@ -528,7 +529,7 @@ end
528529
```
529530

530531
## Purchase Time
531-
**time** ([StringField](#string-field)): The time the purchase was made.
532+
**time** ([StringField](#string-field)): The time the purchase was made (only for receipts).
532533

533534
```rb
534535
puts result.document.inference.prediction.time.value
@@ -556,7 +557,7 @@ puts result.document.inference.prediction.total_net.value
556557
```
557558

558559
## Total Tax
559-
**total_tax** ([AmountField](#amount-field)): The total amount of taxes.
560+
**total_tax** ([AmountField](#amount-field)): The sum of all taxes present on the document.
560561

561562
```rb
562563
puts result.document.inference.prediction.total_tax.value

docs/global_products/international_id_v2.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ puts result.document.inference.prediction.document_number.value
168168
**document_type** ([ClassificationField](#classification-field)): The type of personal identification document.
169169

170170
#### Possible values include:
171-
- IDENTIFICATION_CARD
172-
- PASSPORT
173-
- DRIVER_LICENSE
174-
- VISA
175-
- RESIDENCY_CARD
176-
- VOTER_REGISTRATION
171+
- 'IDENTIFICATION_CARD'
172+
- 'PASSPORT'
173+
- 'DRIVER_LICENSE'
174+
- 'VISA'
175+
- 'RESIDENCY_CARD'
176+
- 'VOTER_REGISTRATION'
177177

178178
```rb
179179
puts result.document.inference.prediction.document_type.value

docs/global_products/invoice_splitter_v1.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,19 @@ Document
6868
6969
Inference
7070
#########
71-
:Product: mindee/invoice_splitter v1.1
71+
:Product: mindee/invoice_splitter v1.2
7272
:Rotation applied: No
7373
7474
Prediction
7575
==========
7676
:Invoice Page Groups:
77-
:Page indexes: 0
78-
:Page indexes: 1
79-
80-
Page Predictions
81-
================
82-
83-
Page 0
84-
------
85-
:Invoice Page Groups:
86-
87-
Page 1
88-
------
89-
:Invoice Page Groups:
77+
+--------------------------------------------------------------------------+
78+
| Page Indexes |
79+
+==========================================================================+
80+
| 0 |
81+
+--------------------------------------------------------------------------+
82+
| 1 |
83+
+--------------------------------------------------------------------------+
9084
```
9185

9286
# Field Types

0 commit comments

Comments
 (0)