public class ExtractedReceipt extends Object
Constructor and Description |
---|
ExtractedReceipt(PageMetadata pageMetadata,
PageRange pageRange)
Constructs an ExtractedReceipt.
|
Modifier and Type | Method and Description |
---|---|
Map<String,FieldValue<?>> |
getExtractedFields()
Gets the map of extracted fields.
|
FieldValue<?> |
getMerchantAddress()
Sets the extracted merchant address
FieldValue |
FieldValue<?> |
getMerchantName()
Gets the extracted merchant name
FieldValue |
FieldValue<?> |
getMerchantPhoneNumber()
Sets the extracted merchant phone number
FieldValue |
PageMetadata |
getPageMetadata()
Gets the page information.
|
PageRange |
getPageRange()
Gets the page range information of the extracted receipt.
|
List<ReceiptItem> |
getReceiptItems()
Gets the list of extracted field values.
|
ReceiptType |
getReceiptType()
Gets the extracted receipt type.
|
FieldValue<?> |
getSubtotal()
Gets the extracted subtotal
FieldValue |
FieldValue<?> |
getTax()
Sets the extracted tax
FieldValue |
FieldValue<?> |
getTip()
Gets the extracted tip
FieldValue |
FieldValue<?> |
getTotal()
Gets the extracted total
FieldValue |
FieldValue<?> |
getTransactionDate()
Gets the extracted transaction Date.
|
FieldValue<?> |
getTransactionTime()
Gets the extracted transaction time.
|
ExtractedReceipt |
setExtractedFields(Map<String,FieldValue<?>> extractedFields)
Sets the map of extracted fields on the receipt object.
|
ExtractedReceipt |
setMerchantAddress(FieldValue<?> merchantAddress)
Sets the extracted merchant address
FieldValue |
ExtractedReceipt |
setMerchantName(FieldValue<?> merchantName)
Sets the extracted merchant name
FieldValue |
ExtractedReceipt |
setMerchantPhoneNumber(FieldValue<?> merchantPhoneNumber)
Sets the extracted merchant phone number
FieldValue |
ExtractedReceipt |
setReceiptItems(List<ReceiptItem> receiptItems)
Sets the list of extracted field values.
|
ExtractedReceipt |
setReceiptType(ReceiptType receiptType)
Sets the extracted receipt type.
|
ExtractedReceipt |
setSubtotal(FieldValue<?> subtotal)
Sets the extracted subtotal
FieldValue |
ExtractedReceipt |
setTax(FieldValue<?> tax)
Sets the extracted tax
FieldValue |
ExtractedReceipt |
setTip(FieldValue<?> tip)
Sets the extracted tip
FieldValue |
ExtractedReceipt |
setTotal(FieldValue<?> total)
Sets the extracted total
FieldValue |
ExtractedReceipt |
setTransactionDate(FieldValue<?> transactionDate)
Sets the extracted transaction Date.
|
ExtractedReceipt |
setTransactionTime(FieldValue<?> transactionTime)
Sets the extracted transaction time.
|
public ExtractedReceipt(PageMetadata pageMetadata, PageRange pageRange)
pageMetadata
- The Page info of the extracted receipt.pageRange
- The page range of the extracted receiptpublic PageMetadata getPageMetadata()
public PageRange getPageRange()
public List<ReceiptItem> getReceiptItems()
public ExtractedReceipt setReceiptItems(List<ReceiptItem> receiptItems)
receiptItems
- The list of extracted field values.public ReceiptType getReceiptType()
public ExtractedReceipt setReceiptType(ReceiptType receiptType)
receiptType
- The extracted receipt type.public FieldValue<?> getMerchantName()
FieldValue
FieldValue
public ExtractedReceipt setMerchantName(FieldValue<?> merchantName)
FieldValue
merchantName
- The extracted merchant name FieldValue
public FieldValue<?> getMerchantAddress()
FieldValue
FieldValue
public ExtractedReceipt setMerchantAddress(FieldValue<?> merchantAddress)
FieldValue
merchantAddress
- The extracted merchant address FieldValue
public FieldValue<?> getMerchantPhoneNumber()
FieldValue
FieldValue
public ExtractedReceipt setMerchantPhoneNumber(FieldValue<?> merchantPhoneNumber)
FieldValue
merchantPhoneNumber
- The extracted merchant phone number FieldValue
public FieldValue<?> getSubtotal()
FieldValue
FieldValue
public ExtractedReceipt setSubtotal(FieldValue<?> subtotal)
FieldValue
subtotal
- The extracted subtotal FieldValue
public FieldValue<?> getTax()
FieldValue
FieldValue
public ExtractedReceipt setTax(FieldValue<?> tax)
FieldValue
tax
- The extracted tax FieldValue
public FieldValue<?> getTip()
FieldValue
FieldValue
public ExtractedReceipt setTip(FieldValue<?> tip)
FieldValue
tip
- The extracted tip FieldValue
public FieldValue<?> getTotal()
FieldValue
FieldValue
public ExtractedReceipt setTotal(FieldValue<?> total)
FieldValue
total
- The extracted total FieldValue
public FieldValue<?> getTransactionDate()
public ExtractedReceipt setTransactionDate(FieldValue<?> transactionDate)
transactionDate
- The extracted transaction Date.public FieldValue<?> getTransactionTime()
public ExtractedReceipt setTransactionTime(FieldValue<?> transactionTime)
transactionTime
- The extracted transaction time.public Map<String,FieldValue<?>> getExtractedFields()
public ExtractedReceipt setExtractedFields(Map<String,FieldValue<?>> extractedFields)
extractedFields
- The map of extracted fields of the receipt.ExtractedReceipt
object.Copyright © 2020 Microsoft Corporation. All rights reserved.