Class ReceiptV5Document


  • public class ReceiptV5Document
    extends Prediction
    Receipt API version 5.3 document data.
    • Field Detail

      • category

        protected ClassificationField category
        The purchase category among predefined classes.
      • date

        protected DateField date
        The date the purchase was made.
      • documentType

        protected ClassificationField documentType
        One of: 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.
      • locale

        protected LocaleField locale
        The locale detected on the document.
      • receiptNumber

        protected StringField receiptNumber
        The receipt number or identifier.
      • subcategory

        protected ClassificationField subcategory
        The purchase subcategory among predefined classes for transport and food.
      • supplierAddress

        protected StringField supplierAddress
        The address of the supplier or merchant.
      • supplierCompanyRegistrations

        protected List<CompanyRegistrationField> supplierCompanyRegistrations
        List of company registrations associated to the supplier.
      • supplierName

        protected StringField supplierName
        The name of the supplier or merchant.
      • supplierPhoneNumber

        protected StringField supplierPhoneNumber
        The phone number of the supplier or merchant.
      • taxes

        protected Taxes taxes
        List of tax lines information.
      • time

        protected StringField time
        The time the purchase was made.
      • tip

        protected AmountField tip
        The total amount of tip and gratuity.
      • totalAmount

        protected AmountField totalAmount
        The total amount paid: includes taxes, discounts, fees, tips, and gratuity.
      • totalNet

        protected AmountField totalNet
        The net amount paid: does not include taxes, fees, and discounts.
      • totalTax

        protected AmountField totalTax
        The total amount of taxes.
    • Constructor Detail

      • ReceiptV5Document

        public ReceiptV5Document()
    • 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
      • getCategory

        public ClassificationField getCategory()
        The purchase category among predefined classes.
      • getDate

        public DateField getDate()
        The date the purchase was made.
      • getDocumentType

        public ClassificationField getDocumentType()
        One of: 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.
      • getLocale

        public LocaleField getLocale()
        The locale detected on the document.
      • getReceiptNumber

        public StringField getReceiptNumber()
        The receipt number or identifier.
      • getSubcategory

        public ClassificationField getSubcategory()
        The purchase subcategory among predefined classes for transport and food.
      • getSupplierAddress

        public StringField getSupplierAddress()
        The address of the supplier or merchant.
      • getSupplierCompanyRegistrations

        public List<CompanyRegistrationField> getSupplierCompanyRegistrations()
        List of company registrations associated to the supplier.
      • getSupplierName

        public StringField getSupplierName()
        The name of the supplier or merchant.
      • getSupplierPhoneNumber

        public StringField getSupplierPhoneNumber()
        The phone number of the supplier or merchant.
      • getTaxes

        public Taxes getTaxes()
        List of tax lines information.
      • getTime

        public StringField getTime()
        The time the purchase was made.
      • getTip

        public AmountField getTip()
        The total amount of tip and gratuity.
      • getTotalAmount

        public AmountField getTotalAmount()
        The total amount paid: includes taxes, discounts, fees, tips, and gratuity.
      • getTotalNet

        public AmountField getTotalNet()
        The net amount paid: does not include taxes, fees, and discounts.
      • getTotalTax

        public AmountField getTotalTax()
        The total amount of taxes.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object