Package com.mindee.product.receipt
Class ReceiptV4Document
- java.lang.Object
-
- com.mindee.parsing.common.Prediction
-
- com.mindee.product.receipt.ReceiptV4Document
-
public class ReceiptV4Document extends Prediction
Document data for Receipt, API version 4.
-
-
Constructor Summary
Constructors Constructor Description ReceiptV4Document()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
ClassificationField
getCategory()
The type of purchase among a certain list of it (see official documentation for the list).DateField
getDate()
The purchase date.ClassificationField
getDocumentType()
The type of the parsed document (see official documentation for the list).LocaleField
getLocaleField()
Where the purchase was made, the language, and the currency.ClassificationField
getSubCategory()
The subcategory of purchase among a certain list of it (see official documentation for the list).StringField
getSupplierName()
Merchant's name as seen on the receipt.List<TaxField>
getTaxes()
List of taxes detected on the receipt.StringField
getTime()
The time of the purchase.AmountField
getTip()
Total amount of tip and gratuity.AmountField
getTotalAmount()
total spent including taxes, discounts, fees, tips, and gratuity.AmountField
getTotalNet()
Total amount of the purchase excluding taxes.AmountField
getTotalTax()
Total tax amount of the purchase.int
hashCode()
boolean
isEmpty()
Returnstrue
if there are no predictions values.String
toString()
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from class:Prediction
Returnstrue
if there are no predictions values. Accessing prediction values when this istrue
may result in aNullPointerException
- Specified by:
isEmpty
in classPrediction
-
getLocaleField
public LocaleField getLocaleField()
Where the purchase was made, the language, and the currency.
-
getDate
public DateField getDate()
The purchase date.
-
getTime
public StringField getTime()
The time of the purchase.
-
getCategory
public ClassificationField getCategory()
The type of purchase among a certain list of it (see official documentation for the list).
-
getSubCategory
public ClassificationField getSubCategory()
The subcategory of purchase among a certain list of it (see official documentation for the list).
-
getDocumentType
public ClassificationField getDocumentType()
The type of the parsed document (see official documentation for the list).
-
getSupplierName
public StringField getSupplierName()
Merchant's name as seen on the receipt.
-
getTotalAmount
public AmountField getTotalAmount()
total spent including taxes, discounts, fees, tips, and gratuity.
-
getTotalNet
public AmountField getTotalNet()
Total amount of the purchase excluding taxes.
-
getTotalTax
public AmountField getTotalTax()
Total tax amount of the purchase.
-
getTip
public AmountField getTip()
Total amount of tip and gratuity.
-
canEqual
protected boolean canEqual(Object other)
-
-