amazonka-textract-2.0: Amazon Textract SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Textract.Types.ExpenseDocument

Description

 
Synopsis

Documentation

data ExpenseDocument Source #

The structure holding all the information returned by AnalyzeExpense

See: newExpenseDocument smart constructor.

Constructors

ExpenseDocument' 

Fields

  • blocks :: Maybe [Block]

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

  • expenseIndex :: Maybe Natural

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

  • lineItemGroups :: Maybe [LineItemGroup]

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

  • summaryFields :: Maybe [ExpenseField]

    Any information found outside of a table by Amazon Textract.

Instances

Instances details
FromJSON ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Generic ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Associated Types

type Rep ExpenseDocument :: Type -> Type #

Read ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Show ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

NFData ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Methods

rnf :: ExpenseDocument -> () #

Eq ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

Hashable ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

type Rep ExpenseDocument Source # 
Instance details

Defined in Amazonka.Textract.Types.ExpenseDocument

type Rep ExpenseDocument = D1 ('MetaData "ExpenseDocument" "Amazonka.Textract.Types.ExpenseDocument" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "ExpenseDocument'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Block])) :*: S1 ('MetaSel ('Just "expenseIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "lineItemGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LineItemGroup])) :*: S1 ('MetaSel ('Just "summaryFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ExpenseField])))))

newExpenseDocument :: ExpenseDocument Source #

Create a value of ExpenseDocument with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:blocks:ExpenseDocument', expenseDocument_blocks - This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.

$sel:expenseIndex:ExpenseDocument', expenseDocument_expenseIndex - Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.

$sel:lineItemGroups:ExpenseDocument', expenseDocument_lineItemGroups - Information detected on each table of a document, seperated into LineItems.

$sel:summaryFields:ExpenseDocument', expenseDocument_summaryFields - Any information found outside of a table by Amazon Textract.

expenseDocument_blocks :: Lens' ExpenseDocument (Maybe [Block]) Source #

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

expenseDocument_expenseIndex :: Lens' ExpenseDocument (Maybe Natural) Source #

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

expenseDocument_lineItemGroups :: Lens' ExpenseDocument (Maybe [LineItemGroup]) Source #

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

expenseDocument_summaryFields :: Lens' ExpenseDocument (Maybe [ExpenseField]) Source #

Any information found outside of a table by Amazon Textract.