Class InvoiceV4Document


  • public class InvoiceV4Document
    extends Prediction
    Invoice API version 4.9 document data.
    • Field Detail

      • billingAddress

        protected StringField billingAddress
        The customer's address used for billing.
      • customerAddress

        protected StringField customerAddress
        The address of the customer.
      • customerCompanyRegistrations

        protected List<CompanyRegistrationField> customerCompanyRegistrations
        List of company registrations 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.
      • dueDate

        protected DateField dueDate
        The date on which the payment is due.
      • invoiceNumber

        protected StringField invoiceNumber
        The invoice number or identifier.
      • locale

        protected LocaleField locale
        The locale detected on 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 Reference numbers, including PO number.
      • shippingAddress

        protected StringField shippingAddress
        Customer's delivery address.
      • supplierAddress

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

        protected List<CompanyRegistrationField> supplierCompanyRegistrations
        List of company registrations 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.
      • 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 tax line details.
      • 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 total tax: includes all the taxes paid for this invoice.
    • Constructor Detail

      • InvoiceV4Document

        public InvoiceV4Document()
    • 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
      • getBillingAddress

        public StringField getBillingAddress()
        The customer's address used for billing.
      • getCustomerAddress

        public StringField getCustomerAddress()
        The address of the customer.
      • getCustomerCompanyRegistrations

        public List<CompanyRegistrationField> getCustomerCompanyRegistrations()
        List of company registrations 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()
        One of: 'INVOICE', 'CREDIT NOTE'.
      • getDueDate

        public DateField getDueDate()
        The date on which the payment is due.
      • getInvoiceNumber

        public StringField getInvoiceNumber()
        The invoice number or identifier.
      • getLocale

        public LocaleField getLocale()
        The locale detected on 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 Reference numbers, including PO number.
      • getShippingAddress

        public StringField getShippingAddress()
        Customer's delivery address.
      • getSupplierAddress

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

        public List<CompanyRegistrationField> getSupplierCompanyRegistrations()
        List of company registrations 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.
      • 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 tax line details.
      • 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 total tax: includes all the taxes paid for this invoice.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object