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.4 document data.
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassificationFieldcategoryThe purchase category of the receipt.protected DateFielddateThe date the purchase was made.protected ClassificationFielddocumentTypeThe type of receipt: EXPENSE RECEIPT or CREDIT CARD RECEIPT.protected List<ReceiptV5LineItem>lineItemsList of all line items on the receipt.protected LocaleFieldlocaleThe locale of the document.protected StringFieldreceiptNumberThe receipt number or identifier.protected ClassificationFieldsubcategoryThe purchase subcategory of the receipt for transport and food.protected StringFieldsupplierAddressThe address of the supplier or merchant.protected List<CompanyRegistrationField>supplierCompanyRegistrationsList of company registration numbers associated to the supplier.protected StringFieldsupplierNameThe name of the supplier or merchant.protected StringFieldsupplierPhoneNumberThe phone number of the supplier or merchant.protected TaxestaxesThe list of taxes present on the receipt.protected StringFieldtimeThe time the purchase was made.protected AmountFieldtipThe total amount of tip and gratuity.protected AmountFieldtotalAmountThe total amount paid: includes taxes, discounts, fees, tips, and gratuity.protected AmountFieldtotalNetThe net amount paid: does not include taxes, fees, and discounts.protected AmountFieldtotalTaxThe sum of all taxes.
-
Constructor Summary
Constructors Constructor Description ReceiptV5Document()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)ClassificationFieldgetCategory()The purchase category of the receipt.DateFieldgetDate()The date the purchase was made.ClassificationFieldgetDocumentType()The type of receipt: EXPENSE RECEIPT or CREDIT CARD RECEIPT.List<ReceiptV5LineItem>getLineItems()List of all line items on the receipt.LocaleFieldgetLocale()The locale of the document.StringFieldgetReceiptNumber()The receipt number or identifier.ClassificationFieldgetSubcategory()The purchase subcategory of the receipt for transport and food.StringFieldgetSupplierAddress()The address of the supplier or merchant.List<CompanyRegistrationField>getSupplierCompanyRegistrations()List of company registration numbers associated to the supplier.StringFieldgetSupplierName()The name of the supplier or merchant.StringFieldgetSupplierPhoneNumber()The phone number of the supplier or merchant.TaxesgetTaxes()The list of taxes present on the receipt.StringFieldgetTime()The time the purchase was made.AmountFieldgetTip()The total amount of tip and gratuity.AmountFieldgetTotalAmount()The total amount paid: includes taxes, discounts, fees, tips, and gratuity.AmountFieldgetTotalNet()The net amount paid: does not include taxes, fees, and discounts.AmountFieldgetTotalTax()The sum of all taxes.inthashCode()booleanisEmpty()Returnstrueif there are no predictions values.StringtoString()
-
-
-
Field Detail
-
category
protected ClassificationField category
The purchase category of the receipt.
-
date
protected DateField date
The date the purchase was made.
-
documentType
protected ClassificationField documentType
The type of receipt: EXPENSE RECEIPT or CREDIT CARD RECEIPT.
-
lineItems
protected List<ReceiptV5LineItem> lineItems
List of all line items on the receipt.
-
locale
protected LocaleField locale
The locale of the document.
-
receiptNumber
protected StringField receiptNumber
The receipt number or identifier.
-
subcategory
protected ClassificationField subcategory
The purchase subcategory of the receipt for transport and food.
-
supplierAddress
protected StringField supplierAddress
The address of the supplier or merchant.
-
supplierCompanyRegistrations
protected List<CompanyRegistrationField> supplierCompanyRegistrations
List of company registration numbers 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
The list of taxes present on the receipt.
-
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 sum of all taxes.
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from class:PredictionReturnstrueif there are no predictions values. Accessing prediction values when this istruemay result in aNullPointerException- Specified by:
isEmptyin classPrediction
-
getCategory
public ClassificationField getCategory()
The purchase category of the receipt.
-
getDate
public DateField getDate()
The date the purchase was made.
-
getDocumentType
public ClassificationField getDocumentType()
The type of receipt: EXPENSE RECEIPT or CREDIT CARD RECEIPT.
-
getLineItems
public List<ReceiptV5LineItem> getLineItems()
List of all line items on the receipt.
-
getLocale
public LocaleField getLocale()
The locale of the document.
-
getReceiptNumber
public StringField getReceiptNumber()
The receipt number or identifier.
-
getSubcategory
public ClassificationField getSubcategory()
The purchase subcategory of the receipt for transport and food.
-
getSupplierAddress
public StringField getSupplierAddress()
The address of the supplier or merchant.
-
getSupplierCompanyRegistrations
public List<CompanyRegistrationField> getSupplierCompanyRegistrations()
List of company registration numbers 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()
The list of taxes present on the receipt.
-
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 sum of all taxes.
-
canEqual
protected boolean canEqual(Object other)
-
-