Module Values.ExpenseDocumentSource

The structure holding all the information returned by AnalyzeExpense

Sourcetype nonrec t = {
  1. expenseIndex : UInteger.t option;
    (*

    Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.

    *)
  2. summaryFields : ExpenseFieldList.t option;
    (*

    Any information found outside of a table by Amazon Textract.

    *)
  3. lineItemGroups : LineItemGroupList.t option;
    (*

    Information detected on each table of a document, seperated into LineItems.

    *)
  4. blocks : BlockList.t option;
    (*

    This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.

    *)
}
Sourceval make : ?expenseIndex:??? -> ?summaryFields:??? -> ?lineItemGroups:??? -> ?blocks:??? -> unit -> t
Sourceval to_value : t -> [> `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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t