Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/global_products/expense_receipts_v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Ruby Client Library supports the [Receipt API](https://platform.mindee.com/m
> | Specification | Details |
> | ------------------------------ | -------------------------------------------------- |
> | Endpoint Name | `expense_receipts` |
> | Recommended Version | `v5.3` |
> | Recommended Version | `v5.4` |
> | Supports Polling/Webhooks | ✔️ Yes |
> | Support Synchronous HTTP Calls | ✔️ Yes |
> | Geography | 🌐 Global |
Expand Down Expand Up @@ -264,6 +264,9 @@ The following fields are extracted for Receipt V5:
- 'gasoline'
- 'telecom'
- 'miscellaneous'
- 'software'
- 'shopping'
- 'energy'

```rb
puts result.document.inference.prediction.category.value
Expand Down Expand Up @@ -319,6 +322,15 @@ puts result.document.inference.prediction.receipt_number.value
- 'train'
- 'restaurant'
- 'shopping'
- 'other'
- 'groceries'
- 'cultural'
- 'electronics'
- 'office_supplies'
- 'micromobility'
- 'car_rental'
- 'public'
- 'delivery'
- nil

```rb
Expand Down
24 changes: 19 additions & 5 deletions docs/global_products/financial_document_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Ruby Client Library supports the [Financial Document API](https://platform.m
> | Specification | Details |
> | ------------------------------ | -------------------------------------------------- |
> | Endpoint Name | `financial_document` |
> | Recommended Version | `v1.12` |
> | Recommended Version | `v1.14` |
> | Supports Polling/Webhooks | ✔️ Yes |
> | Support Synchronous HTTP Calls | ✔️ Yes |
> | Geography | 🌐 Global |
Expand Down Expand Up @@ -93,12 +93,12 @@ puts result.document
########
Document
########
:Mindee ID: a80ac0ee-26f6-4e2e-988a-960b240d5ba7
:Mindee ID: 6dd26385-719b-4527-bf6f-87d9da619de5
:Filename: default_sample.jpg

Inference
#########
:Product: mindee/financial_document v1.11
:Product: mindee/financial_document v1.14
:Rotation applied: Yes

Prediction
Expand Down Expand Up @@ -134,6 +134,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
Expand Down Expand Up @@ -186,6 +187,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
Expand Down Expand Up @@ -309,7 +311,7 @@ puts result.document.inference.prediction.billing_address.value
```

## Purchase Category
**category** ([ClassificationField](#classification-field)): The purchase category, only for receipts.
**category** ([ClassificationField](#classification-field)): The purchase category.

#### Possible values include:
- 'toll'
Expand All @@ -320,6 +322,9 @@ puts result.document.inference.prediction.billing_address.value
- 'gasoline'
- 'telecom'
- 'miscellaneous'
- 'software'
- 'shopping'
- 'energy'

```rb
puts result.document.inference.prediction.category.value
Expand Down Expand Up @@ -468,14 +473,23 @@ puts result.document.inference.prediction.shipping_address.value
```

## Purchase Subcategory
**subcategory** ([ClassificationField](#classification-field)): The purchase subcategory for transport and food, only for receipts.
**subcategory** ([ClassificationField](#classification-field)): The purchase subcategory for transport, food and shooping.

#### Possible values include:
- 'plane'
- 'taxi'
- 'train'
- 'restaurant'
- 'shopping'
- 'other'
- 'groceries'
- 'cultural'
- 'electronics'
- 'office_supplies'
- 'micromobility'
- 'car_rental'
- 'public'
- 'delivery'
- nil

```rb
Expand Down
2 changes: 1 addition & 1 deletion docs/global_products/international_id_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Ruby Client Library supports the [International ID API](https://platform.min
> | Specification | Details |
> | ------------------------------ | -------------------------------------------------- |
> | Endpoint Name | `international_id` |
> | Recommended Version | `v2.1` |
> | Recommended Version | `v2.2` |
> | Supports Polling/Webhooks | ✔️ Yes |
> | Support Synchronous HTTP Calls | ❌ No |
> | Geography | 🌐 Global |
Expand Down
2 changes: 1 addition & 1 deletion docs/global_products/invoice_splitter_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Ruby Client Library supports the [Invoice Splitter API](https://platform.min
> | Specification | Details |
> | ------------------------------ | -------------------------------------------------- |
> | Endpoint Name | `invoice_splitter` |
> | Recommended Version | `v1.2` |
> | Recommended Version | `v1.4` |
> | Supports Polling/Webhooks | ✔️ Yes |
> | Support Synchronous HTTP Calls | ❌ No |
> | Geography | 🌐 Global |
Expand Down
55 changes: 52 additions & 3 deletions docs/global_products/invoices_v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Ruby Client Library supports the [Invoice API](https://platform.mindee.com/m
> | Specification | Details |
> | ------------------------------ | -------------------------------------------------- |
> | Endpoint Name | `invoices` |
> | Recommended Version | `v4.10` |
> | Recommended Version | `v4.11` |
> | Supports Polling/Webhooks | ✔️ Yes |
> | Support Synchronous HTTP Calls | ✔️ Yes |
> | Geography | 🌐 Global |
Expand Down Expand Up @@ -93,12 +93,12 @@ puts result.document
########
Document
########
:Mindee ID: b55db8f9-ae3b-4f05-b2f1-ec0ced5e5b70
:Mindee ID: 744748d5-9051-461c-b70c-bbf81f5ff943
:Filename: default_sample.jpg

Inference
#########
:Product: mindee/invoices v4.9
:Product: mindee/invoices v4.11
:Rotation applied: Yes

Prediction
Expand Down Expand Up @@ -133,6 +133,9 @@ Prediction
:Shipping Address:
:Billing Address: 1954 Bloor Street West Toronto, ON, M6P 3K9 Canada
:Document Type: INVOICE
:Document Type Extended: INVOICE
:Purchase Subcategory:
:Purchase Category: miscellaneous
:Line Items:
+--------------------------------------+--------------+----------+------------+--------------+--------------+-----------------+------------+
| Description | Product code | Quantity | Tax Amount | Tax Rate (%) | Total Amount | Unit of measure | Unit Price |
Expand Down Expand Up @@ -179,6 +182,9 @@ Page 0
:Shipping Address:
:Billing Address: 1954 Bloor Street West Toronto, ON, M6P 3K9 Canada
:Document Type: INVOICE
:Document Type Extended: INVOICE
:Purchase Subcategory:
:Purchase Category: miscellaneous
:Line Items:
+--------------------------------------+--------------+----------+------------+--------------+--------------+-----------------+------------+
| Description | Product code | Quantity | Tax Amount | Tax Rate (%) | Total Amount | Unit of measure | Unit Price |
Expand Down Expand Up @@ -296,6 +302,25 @@ The following fields are extracted for Invoice V4:
puts result.document.inference.prediction.billing_address.value
```

## Purchase Category
**category** ([ClassificationField](#classification-field)): The purchase category.

#### Possible values include:
- 'toll'
- 'food'
- 'parking'
- 'transport'
- 'accommodation'
- 'telecom'
- 'miscellaneous'
- 'software'
- 'shopping'
- 'energy'

```rb
puts result.document.inference.prediction.category.value
```

## Customer Address
**customer_address** ([StringField](#string-field)): The address of the customer.

Expand Down Expand Up @@ -422,6 +447,30 @@ end
puts result.document.inference.prediction.shipping_address.value
```

## Purchase Subcategory
**subcategory** ([ClassificationField](#classification-field)): 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'
- nil

```rb
puts result.document.inference.prediction.subcategory.value
```

## Supplier Address
**supplier_address** ([StringField](#string-field)): The address of the supplier or merchant.

Expand Down
36 changes: 18 additions & 18 deletions docs/localized_products/energy_bill_fra_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,58 +63,58 @@ puts result.document
########
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
:Total Before Taxes: 1241.03
: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 |
+======================================+============+============+==========+===========+============+
| 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
Expand Down
4 changes: 2 additions & 2 deletions docs/localized_products/ind_passport_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Document

Inference
#########
:Product: mindee/ind_passport v1.0
:Product: mindee/ind_passport v1.2
:Rotation applied: Yes

Prediction
Expand All @@ -91,10 +91,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:
```

Expand Down
Loading