Class FinancialDocumentV1Document
- java.lang.Object
-
- com.mindee.parsing.common.Prediction
-
- com.mindee.product.financialdocument.FinancialDocumentV1Document
-
public class FinancialDocumentV1Document extends Prediction
Financial Document API version 1.14 document data.
-
-
Field Summary
Fields Modifier and Type Field Description protected AddressFieldbillingAddressThe customer's address used for billing.protected ClassificationFieldcategoryThe purchase category.protected AddressFieldcustomerAddressThe address of the customer.protected List<CompanyRegistrationField>customerCompanyRegistrationsList of company registration numbers associated to the customer.protected StringFieldcustomerIdThe customer account number or identifier from the supplier.protected StringFieldcustomerNameThe name of the customer.protected DateFielddateThe date the purchase was made.protected StringFielddocumentNumberThe document number or identifier (invoice number or receipt number).protected ClassificationFielddocumentTypeThe type of the document: INVOICE or CREDIT NOTE if it is an invoice, CREDIT CARD RECEIPT or EXPENSE RECEIPT if it is a receipt.protected ClassificationFielddocumentTypeExtendedDocument type extended.protected DateFielddueDateThe date on which the payment is due.protected StringFieldinvoiceNumberThe invoice number or identifier only if document is an invoice.protected List<FinancialDocumentV1LineItem>lineItemsList of line item present on the document.protected LocaleFieldlocaleThe locale of the document.protected DateFieldpaymentDateThe date on which the payment is due / fullfilled.protected StringFieldpoNumberThe purchase order number, only if the document is an invoice.protected StringFieldreceiptNumberThe receipt number or identifier only if document is a receipt.protected List<StringField>referenceNumbersList of Reference numbers, including PO number, only if the document is an invoice.protected AddressFieldshippingAddressThe customer's address used for shipping.protected ClassificationFieldsubcategoryThe purchase subcategory for transport, food and shooping.protected AddressFieldsupplierAddressThe address of the supplier or merchant.protected List<CompanyRegistrationField>supplierCompanyRegistrationsList of company registration numbers associated to the supplier.protected StringFieldsupplierEmailThe email of the supplier or merchant.protected StringFieldsupplierNameThe name of the supplier or merchant.protected List<PaymentDetailsField>supplierPaymentDetailsList of payment details associated to the supplier (only for invoices).protected StringFieldsupplierPhoneNumberThe phone number of the supplier or merchant.protected StringFieldsupplierWebsiteThe website URL of the supplier or merchant.protected TaxestaxesList of all taxes on the document.protected StringFieldtimeThe time the purchase was made (only for receipts).protected AmountFieldtipThe total amount of tip and gratuityprotected AmountFieldtotalAmountThe total amount paid: includes taxes, tips, fees, and other charges.protected AmountFieldtotalNetThe net amount paid: does not include taxes, fees, and discounts.protected AmountFieldtotalTaxThe sum of all taxes present on the document.
-
Constructor Summary
Constructors Constructor Description FinancialDocumentV1Document()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)AddressFieldgetBillingAddress()The customer's address used for billing.ClassificationFieldgetCategory()The purchase category.AddressFieldgetCustomerAddress()The address of the customer.List<CompanyRegistrationField>getCustomerCompanyRegistrations()List of company registration numbers associated to the customer.StringFieldgetCustomerId()The customer account number or identifier from the supplier.StringFieldgetCustomerName()The name of the customer.DateFieldgetDate()The date the purchase was made.StringFieldgetDocumentNumber()The document number or identifier (invoice number or receipt number).ClassificationFieldgetDocumentType()The type of the document: INVOICE or CREDIT NOTE if it is an invoice, CREDIT CARD RECEIPT or EXPENSE RECEIPT if it is a receipt.ClassificationFieldgetDocumentTypeExtended()Document type extended.DateFieldgetDueDate()The date on which the payment is due.StringFieldgetInvoiceNumber()The invoice number or identifier only if document is an invoice.List<FinancialDocumentV1LineItem>getLineItems()List of line item present on the document.LocaleFieldgetLocale()The locale of the document.DateFieldgetPaymentDate()The date on which the payment is due / fullfilled.StringFieldgetPoNumber()The purchase order number, only if the document is an invoice.StringFieldgetReceiptNumber()The receipt number or identifier only if document is a receipt.List<StringField>getReferenceNumbers()List of Reference numbers, including PO number, only if the document is an invoice.AddressFieldgetShippingAddress()The customer's address used for shipping.ClassificationFieldgetSubcategory()The purchase subcategory for transport, food and shooping.AddressFieldgetSupplierAddress()The address of the supplier or merchant.List<CompanyRegistrationField>getSupplierCompanyRegistrations()List of company registration numbers associated to the supplier.StringFieldgetSupplierEmail()The email of the supplier or merchant.StringFieldgetSupplierName()The name of the supplier or merchant.List<PaymentDetailsField>getSupplierPaymentDetails()List of payment details associated to the supplier (only for invoices).StringFieldgetSupplierPhoneNumber()The phone number of the supplier or merchant.StringFieldgetSupplierWebsite()The website URL of the supplier or merchant.TaxesgetTaxes()List of all taxes on the document.StringFieldgetTime()The time the purchase was made (only for receipts).AmountFieldgetTip()The total amount of tip and gratuityAmountFieldgetTotalAmount()The total amount paid: includes taxes, tips, fees, and other charges.AmountFieldgetTotalNet()The net amount paid: does not include taxes, fees, and discounts.AmountFieldgetTotalTax()The sum of all taxes present on the document.inthashCode()booleanisEmpty()Returnstrueif there are no predictions values.StringtoString()
-
-
-
Field Detail
-
billingAddress
protected AddressField billingAddress
The customer's address used for billing.
-
category
protected ClassificationField category
The purchase category.
-
customerAddress
protected AddressField customerAddress
The address of the customer.
-
customerCompanyRegistrations
protected List<CompanyRegistrationField> customerCompanyRegistrations
List of company registration numbers associated to the customer.
-
customerId
protected StringField customerId
The customer account number or identifier from the supplier.
-
customerName
protected StringField customerName
The name of the customer.
-
date
protected DateField date
The date the purchase was made.
-
documentNumber
protected StringField documentNumber
The document number or identifier (invoice number or receipt number).
-
documentType
protected ClassificationField documentType
The type of the document: INVOICE or CREDIT NOTE if it is an invoice, CREDIT CARD RECEIPT or EXPENSE RECEIPT if it is a receipt.
-
documentTypeExtended
protected ClassificationField documentTypeExtended
Document type extended.
-
dueDate
protected DateField dueDate
The date on which the payment is due.
-
invoiceNumber
protected StringField invoiceNumber
The invoice number or identifier only if document is an invoice.
-
lineItems
protected List<FinancialDocumentV1LineItem> lineItems
List of line item present on the document.
-
locale
protected LocaleField locale
The locale of the document.
-
paymentDate
protected DateField paymentDate
The date on which the payment is due / fullfilled.
-
poNumber
protected StringField poNumber
The purchase order number, only if the document is an invoice.
-
receiptNumber
protected StringField receiptNumber
The receipt number or identifier only if document is a receipt.
-
referenceNumbers
protected List<StringField> referenceNumbers
List of Reference numbers, including PO number, only if the document is an invoice.
-
shippingAddress
protected AddressField shippingAddress
The customer's address used for shipping.
-
subcategory
protected ClassificationField subcategory
The purchase subcategory for transport, food and shooping.
-
supplierAddress
protected AddressField supplierAddress
The address of the supplier or merchant.
-
supplierCompanyRegistrations
protected List<CompanyRegistrationField> supplierCompanyRegistrations
List of company registration numbers associated to the supplier.
-
supplierEmail
protected StringField supplierEmail
The email of the supplier or merchant.
-
supplierName
protected StringField supplierName
The name of the supplier or merchant.
-
supplierPaymentDetails
protected List<PaymentDetailsField> supplierPaymentDetails
List of payment details associated to the supplier (only for invoices).
-
supplierPhoneNumber
protected StringField supplierPhoneNumber
The phone number of the supplier or merchant.
-
supplierWebsite
protected StringField supplierWebsite
The website URL of the supplier or merchant.
-
taxes
protected Taxes taxes
List of all taxes on the document.
-
time
protected StringField time
The time the purchase was made (only for receipts).
-
tip
protected AmountField tip
The total amount of tip and gratuity
-
totalAmount
protected AmountField totalAmount
The total amount paid: includes taxes, tips, fees, and other charges.
-
totalNet
protected AmountField totalNet
The net amount paid: does not include taxes, fees, and discounts.
-
totalTax
protected AmountField totalTax
The sum of all taxes present on the document.
-
-
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
-
getBillingAddress
public AddressField getBillingAddress()
The customer's address used for billing.
-
getCategory
public ClassificationField getCategory()
The purchase category.
-
getCustomerAddress
public AddressField getCustomerAddress()
The address of the customer.
-
getCustomerCompanyRegistrations
public List<CompanyRegistrationField> getCustomerCompanyRegistrations()
List of company registration numbers associated to the customer.
-
getCustomerId
public StringField getCustomerId()
The customer account number or identifier from the supplier.
-
getCustomerName
public StringField getCustomerName()
The name of the customer.
-
getDate
public DateField getDate()
The date the purchase was made.
-
getDocumentNumber
public StringField getDocumentNumber()
The document number or identifier (invoice number or receipt number).
-
getDocumentType
public ClassificationField getDocumentType()
The type of the document: INVOICE or CREDIT NOTE if it is an invoice, CREDIT CARD RECEIPT or EXPENSE RECEIPT if it is a receipt.
-
getDocumentTypeExtended
public ClassificationField getDocumentTypeExtended()
Document type extended.
-
getDueDate
public DateField getDueDate()
The date on which the payment is due.
-
getInvoiceNumber
public StringField getInvoiceNumber()
The invoice number or identifier only if document is an invoice.
-
getLineItems
public List<FinancialDocumentV1LineItem> getLineItems()
List of line item present on the document.
-
getLocale
public LocaleField getLocale()
The locale of the document.
-
getPaymentDate
public DateField getPaymentDate()
The date on which the payment is due / fullfilled.
-
getPoNumber
public StringField getPoNumber()
The purchase order number, only if the document is an invoice.
-
getReceiptNumber
public StringField getReceiptNumber()
The receipt number or identifier only if document is a receipt.
-
getReferenceNumbers
public List<StringField> getReferenceNumbers()
List of Reference numbers, including PO number, only if the document is an invoice.
-
getShippingAddress
public AddressField getShippingAddress()
The customer's address used for shipping.
-
getSubcategory
public ClassificationField getSubcategory()
The purchase subcategory for transport, food and shooping.
-
getSupplierAddress
public AddressField getSupplierAddress()
The address of the supplier or merchant.
-
getSupplierCompanyRegistrations
public List<CompanyRegistrationField> getSupplierCompanyRegistrations()
List of company registration numbers associated to the supplier.
-
getSupplierEmail
public StringField getSupplierEmail()
The email of the supplier or merchant.
-
getSupplierName
public StringField getSupplierName()
The name of the supplier or merchant.
-
getSupplierPaymentDetails
public List<PaymentDetailsField> getSupplierPaymentDetails()
List of payment details associated to the supplier (only for invoices).
-
getSupplierPhoneNumber
public StringField getSupplierPhoneNumber()
The phone number of the supplier or merchant.
-
getSupplierWebsite
public StringField getSupplierWebsite()
The website URL of the supplier or merchant.
-
getTaxes
public Taxes getTaxes()
List of all taxes on the document.
-
getTime
public StringField getTime()
The time the purchase was made (only for receipts).
-
getTip
public AmountField getTip()
The total amount of tip and gratuity
-
getTotalAmount
public AmountField getTotalAmount()
The total amount paid: includes taxes, tips, fees, and other charges.
-
getTotalNet
public AmountField getTotalNet()
The net amount paid: does not include taxes, fees, and discounts.
-
getTotalTax
public AmountField getTotalTax()
The sum of all taxes present on the document.
-
canEqual
protected boolean canEqual(Object other)
-
-