Package com.mindee.product.receipt
Class ReceiptV5Document
- java.lang.Object
-
- com.mindee.parsing.common.Prediction
-
- com.mindee.product.receipt.ReceiptV5Document
-
public class ReceiptV5Document extends Prediction
Receipt API version 5.3 document data.
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassificationField
category
The purchase category among predefined classes.protected DateField
date
The date the purchase was made.protected ClassificationField
documentType
One of: 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.protected List<ReceiptV5LineItem>
lineItems
List of line item details.protected LocaleField
locale
The locale detected on the document.protected StringField
receiptNumber
The receipt number or identifier.protected ClassificationField
subcategory
The purchase subcategory among predefined classes for transport and food.protected StringField
supplierAddress
The address of the supplier or merchant.protected List<CompanyRegistrationField>
supplierCompanyRegistrations
List of company registrations associated to the supplier.protected StringField
supplierName
The name of the supplier or merchant.protected StringField
supplierPhoneNumber
The phone number of the supplier or merchant.protected Taxes
taxes
List of tax lines information.protected StringField
time
The time the purchase was made.protected AmountField
tip
The total amount of tip and gratuity.protected AmountField
totalAmount
The total amount paid: includes taxes, discounts, fees, tips, and gratuity.protected AmountField
totalNet
The net amount paid: does not include taxes, fees, and discounts.protected AmountField
totalTax
The total amount of taxes.
-
Constructor Summary
Constructors Constructor Description ReceiptV5Document()
-
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 purchase category among predefined classes.DateField
getDate()
The date the purchase was made.ClassificationField
getDocumentType()
One of: 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.List<ReceiptV5LineItem>
getLineItems()
List of line item details.LocaleField
getLocale()
The locale detected on the document.StringField
getReceiptNumber()
The receipt number or identifier.ClassificationField
getSubcategory()
The purchase subcategory among predefined classes for transport and food.StringField
getSupplierAddress()
The address of the supplier or merchant.List<CompanyRegistrationField>
getSupplierCompanyRegistrations()
List of company registrations associated to the supplier.StringField
getSupplierName()
The name of the supplier or merchant.StringField
getSupplierPhoneNumber()
The phone number of the supplier or merchant.Taxes
getTaxes()
List of tax lines information.StringField
getTime()
The time the purchase was made.AmountField
getTip()
The total amount of tip and gratuity.AmountField
getTotalAmount()
The total amount paid: includes taxes, discounts, fees, tips, and gratuity.AmountField
getTotalNet()
The net amount paid: does not include taxes, fees, and discounts.AmountField
getTotalTax()
The total amount of taxes.int
hashCode()
boolean
isEmpty()
Returnstrue
if there are no predictions values.String
toString()
-
-
-
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'.
-
lineItems
protected List<ReceiptV5LineItem> lineItems
List of line item details.
-
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.
-
-
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
-
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'.
-
getLineItems
public List<ReceiptV5LineItem> getLineItems()
List of line item details.
-
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)
-
-