Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Analyzes an input document for financially related relationships between text.
Information is returned as ExpenseDocuments
and seperated as follows.
LineItemGroups
- A data set containingLineItems
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.
Synopsis
- data AnalyzeExpense = AnalyzeExpense' {}
- newAnalyzeExpense :: Document -> AnalyzeExpense
- analyzeExpense_document :: Lens' AnalyzeExpense Document
- data AnalyzeExpenseResponse = AnalyzeExpenseResponse' {}
- newAnalyzeExpenseResponse :: Int -> AnalyzeExpenseResponse
- analyzeExpenseResponse_documentMetadata :: Lens' AnalyzeExpenseResponse (Maybe DocumentMetadata)
- analyzeExpenseResponse_expenseDocuments :: Lens' AnalyzeExpenseResponse (Maybe [ExpenseDocument])
- analyzeExpenseResponse_httpStatus :: Lens' AnalyzeExpenseResponse Int
Creating a Request
data AnalyzeExpense Source #
See: newAnalyzeExpense
smart constructor.
Instances
Create a value of AnalyzeExpense
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:document:AnalyzeExpense'
, analyzeExpense_document
- Undocumented member.
Request Lenses
analyzeExpense_document :: Lens' AnalyzeExpense Document Source #
Undocumented member.
Destructuring the Response
data AnalyzeExpenseResponse Source #
See: newAnalyzeExpenseResponse
smart constructor.
AnalyzeExpenseResponse' | |
|
Instances
newAnalyzeExpenseResponse Source #
Create a value of AnalyzeExpenseResponse
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:documentMetadata:AnalyzeExpenseResponse'
, analyzeExpenseResponse_documentMetadata
- Undocumented member.
$sel:expenseDocuments:AnalyzeExpenseResponse'
, analyzeExpenseResponse_expenseDocuments
- The expenses detected by Amazon Textract.
$sel:httpStatus:AnalyzeExpenseResponse'
, analyzeExpenseResponse_httpStatus
- The response's http status code.
Response Lenses
analyzeExpenseResponse_documentMetadata :: Lens' AnalyzeExpenseResponse (Maybe DocumentMetadata) Source #
Undocumented member.
analyzeExpenseResponse_expenseDocuments :: Lens' AnalyzeExpenseResponse (Maybe [ExpenseDocument]) Source #
The expenses detected by Amazon Textract.
analyzeExpenseResponse_httpStatus :: Lens' AnalyzeExpenseResponse Int Source #
The response's http status code.