Class ReceiptV4Document


  • public class ReceiptV4Document
    extends Prediction
    Document data for Receipt, API version 4.
    • Constructor Detail

      • ReceiptV4Document

        public ReceiptV4Document()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Description copied from class: Prediction
        Returns true if there are no predictions values. Accessing prediction values when this is true may result in a NullPointerException
        Specified by:
        isEmpty in class Prediction
      • 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.
      • getTaxes

        public List<TaxField> getTaxes()
        List of taxes detected 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object