Values.AnalyzeExpenseResponseSourceAnalyzeExpense synchronously analyzes an input document for financially related relationships between text. Information is returned as ExpenseDocuments and seperated as follows: LineItemGroups- A data set containing LineItems which store information about the lines of text, such as an item purchased and its price on a receipt. SummaryFields- Contains all other information a receipt, such as header information or the vendors name.
type nonrec t = {documentMetadata : DocumentMetadata.t option;expenseDocuments : ExpenseDocumentList.t option;The expenses detected by Amazon Textract.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `BadDocumentException of BadDocumentException.t| `DocumentTooLargeException of DocumentTooLargeException.t| `InternalServerError of InternalServerError.t| `InvalidParameterException of InvalidParameterException.t| `InvalidS3ObjectException of InvalidS3ObjectException.t| `ProvisionedThroughputExceededException of
ProvisionedThroughputExceededException.t| `ThrottlingException of ThrottlingException.t| `UnsupportedDocumentException of UnsupportedDocumentException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `AccessDeniedException of unit
| `BadDocumentException of unit
| `DocumentTooLargeException of unit
| `InternalServerError of unit
| `InvalidParameterException of unit
| `InvalidS3ObjectException of unit
| `ProvisionedThroughputExceededException of unit
| `ThrottlingException of unit
| `Unknown_operation_error of string * string option
| `UnsupportedDocumentException of unit ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `AccessDeniedException of unit
| `BadDocumentException of unit
| `DocumentTooLargeException of unit
| `InternalServerError of unit
| `InvalidParameterException of unit
| `InvalidS3ObjectException of unit
| `ProvisionedThroughputExceededException of unit
| `ThrottlingException of unit
| `Unknown_operation_error of string * string option
| `UnsupportedDocumentException of unit ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Integer of UInteger.t
| `List of
[> `Structure of
(string
* [> `Enum of string
| `Float of Percent.t
| `Integer of UInteger.t
| `List of
[> `Enum of string
| `Structure of
(string
* [> `Enum of string
| `List of
[> `String of String_.t
| `Structure of
(string
* [> `Integer of UInteger.t
| `List of
[> `Structure of
(string
* [> `List of
[> `String of
String_.t ]
list
| `String of String_.t ])
list ]
list
| `Structure of
(string
* [> `Float of Percent.t
| `String of String_.t
| `Structure of
(string
* [> `Float of Angle.t
| `List of
[> `Structure of
(string
* [>
`Float of
Float_.t ])
list ]
list
| `Structure of
(string
* [> `Float of
Float_.t ])
list ])
list ])
list ])
list ]
list
| `String of String_.t ])
list ]
list
| `String of String_.t
| `Structure of
(string
* [> `Float of Percent.t
| `List of
[> `String of QueryPage.t
| `Structure of
(string * [> `Float of Float_.t ])
list ]
list
| `String of String_.t
| `Structure of
(string
* [> `Float of Angle.t
| `List of
[> `Structure of
(string
* [> `Float of Float_.t ])
list ]
list
| `Structure of
(string * [> `Float of Float_.t ])
list ])
list ])
list ])
list ]
list ])
list ]
list
| `Structure of (string * [> `Integer of UInteger.t ]) list ])
list ]