Package com.mindee.product.invoice
Class InvoiceV4Document
- java.lang.Object
-
- com.mindee.parsing.common.Prediction
-
- com.mindee.product.invoice.InvoiceV4Document
-
public class InvoiceV4Document extends Prediction
Invoice API version 4.11 document data.
-
-
Field Summary
Fields Modifier and Type Field Description protected AddressFieldbillingAddressThe customer billing address.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 or client.protected DateFielddateThe date the purchase was made.protected ClassificationFielddocumentTypeDocument type: INVOICE or CREDIT NOTE.protected ClassificationFielddocumentTypeExtendedDocument type extended.protected DateFielddueDateThe date on which the payment is due.protected StringFieldinvoiceNumberThe invoice number or identifier.protected List<InvoiceV4LineItem>lineItemsList of all the line items present on the invoice.protected LocaleFieldlocaleThe locale of the document.protected DateFieldpaymentDateThe date on which the payment is due / was full-filled.protected StringFieldpoNumberThe purchase order number.protected List<StringField>referenceNumbersList of all reference numbers on the invoice, including the purchase order number.protected AddressFieldshippingAddressCustomer's delivery address.protected ClassificationFieldsubcategoryThe purchase subcategory for transport, food and shopping.protected AddressFieldsupplierAddressThe address of the supplier or merchant.protected List<CompanyRegistrationField>supplierCompanyRegistrationsList of company registration numbers associated to the supplier.protected StringFieldsupplierEmailThe email address of the supplier or merchant.protected StringFieldsupplierNameThe name of the supplier or merchant.protected List<PaymentDetailsField>supplierPaymentDetailsList of payment details associated to the supplier of the invoice.protected StringFieldsupplierPhoneNumberThe phone number of the supplier or merchant.protected StringFieldsupplierWebsiteThe website URL of the supplier or merchant.protected TaxestaxesList of taxes.protected AmountFieldtotalAmountThe total amount of the invoice: includes taxes, tips, fees, and other charges.protected AmountFieldtotalNetThe net amount of the invoice: does not include taxes, fees, and discounts.protected AmountFieldtotalTaxThe total tax: the sum of all the taxes for this invoice.
-
Constructor Summary
Constructors Constructor Description InvoiceV4Document()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)AddressFieldgetBillingAddress()The customer billing address.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 or client.DateFieldgetDate()The date the purchase was made.ClassificationFieldgetDocumentType()Document type: INVOICE or CREDIT NOTE.ClassificationFieldgetDocumentTypeExtended()Document type extended.DateFieldgetDueDate()The date on which the payment is due.StringFieldgetInvoiceNumber()The invoice number or identifier.List<InvoiceV4LineItem>getLineItems()List of all the line items present on the invoice.LocaleFieldgetLocale()The locale of the document.DateFieldgetPaymentDate()The date on which the payment is due / was full-filled.StringFieldgetPoNumber()The purchase order number.List<StringField>getReferenceNumbers()List of all reference numbers on the invoice, including the purchase order number.AddressFieldgetShippingAddress()Customer's delivery address.ClassificationFieldgetSubcategory()The purchase subcategory for transport, food and shopping.AddressFieldgetSupplierAddress()The address of the supplier or merchant.List<CompanyRegistrationField>getSupplierCompanyRegistrations()List of company registration numbers associated to the supplier.StringFieldgetSupplierEmail()The email address of the supplier or merchant.StringFieldgetSupplierName()The name of the supplier or merchant.List<PaymentDetailsField>getSupplierPaymentDetails()List of payment details associated to the supplier of the invoice.StringFieldgetSupplierPhoneNumber()The phone number of the supplier or merchant.StringFieldgetSupplierWebsite()The website URL of the supplier or merchant.TaxesgetTaxes()List of taxes.AmountFieldgetTotalAmount()The total amount of the invoice: includes taxes, tips, fees, and other charges.AmountFieldgetTotalNet()The net amount of the invoice: does not include taxes, fees, and discounts.AmountFieldgetTotalTax()The total tax: the sum of all the taxes for this invoice.inthashCode()booleanisEmpty()Returnstrueif there are no predictions values.StringtoString()
-
-
-
Field Detail
-
billingAddress
protected AddressField billingAddress
The customer billing address.
-
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 or client.
-
date
protected DateField date
The date the purchase was made.
-
documentType
protected ClassificationField documentType
Document type: INVOICE or CREDIT NOTE.
-
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.
-
lineItems
protected List<InvoiceV4LineItem> lineItems
List of all the line items present on the invoice.
-
locale
protected LocaleField locale
The locale of the document.
-
paymentDate
protected DateField paymentDate
The date on which the payment is due / was full-filled.
-
poNumber
protected StringField poNumber
The purchase order number.
-
referenceNumbers
protected List<StringField> referenceNumbers
List of all reference numbers on the invoice, including the purchase order number.
-
shippingAddress
protected AddressField shippingAddress
Customer's delivery address.
-
subcategory
protected ClassificationField subcategory
The purchase subcategory for transport, food and shopping.
-
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 address 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 of the invoice.
-
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 taxes. Each item contains the detail of the tax.
-
totalAmount
protected AmountField totalAmount
The total amount of the invoice: includes taxes, tips, fees, and other charges.
-
totalNet
protected AmountField totalNet
The net amount of the invoice: does not include taxes, fees, and discounts.
-
totalTax
protected AmountField totalTax
The total tax: the sum of all the taxes for this invoice.
-
-
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 billing address.
-
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 or client.
-
getDate
public DateField getDate()
The date the purchase was made.
-
getDocumentType
public ClassificationField getDocumentType()
Document type: INVOICE or CREDIT NOTE.
-
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.
-
getLineItems
public List<InvoiceV4LineItem> getLineItems()
List of all the line items present on the invoice.
-
getLocale
public LocaleField getLocale()
The locale of the document.
-
getPaymentDate
public DateField getPaymentDate()
The date on which the payment is due / was full-filled.
-
getPoNumber
public StringField getPoNumber()
The purchase order number.
-
getReferenceNumbers
public List<StringField> getReferenceNumbers()
List of all reference numbers on the invoice, including the purchase order number.
-
getShippingAddress
public AddressField getShippingAddress()
Customer's delivery address.
-
getSubcategory
public ClassificationField getSubcategory()
The purchase subcategory for transport, food and shopping.
-
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 address 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 of the invoice.
-
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 taxes. Each item contains the detail of the tax.
-
getTotalAmount
public AmountField getTotalAmount()
The total amount of the invoice: includes taxes, tips, fees, and other charges.
-
getTotalNet
public AmountField getTotalNet()
The net amount of the invoice: does not include taxes, fees, and discounts.
-
getTotalTax
public AmountField getTotalTax()
The total tax: the sum of all the taxes for this invoice.
-
canEqual
protected boolean canEqual(Object other)
-
-