Represents an invoice raised for a customer, extending the generic payment list with an invoice status and a due date. Built up by an invoicing provider (for example ManualPaymentApp) and handed to InvoicingService.createInvoice to be persisted as an Invoice entity. The line items, addresses and totals are inherited from PaymentListBean.
Extends: PaymentListBean
Properties
| Property | Returns | Description |
|---|---|---|
| dueDate | Date | The date by which payment of this invoice is due. |
| invoiceStatus | InvoiceListStatus | The current status of the invoice, such as draft, sent, overdue or paid. |
Inherited from PaymentListBean
Properties
| Property | Returns | Description |
|---|---|---|
| billingAddress | PaymentAddress | The billing address for this payment list. |
| cartId | Long | The id of the shopping cart this payment list was generated from, if any. |
| deliveryAddress | PaymentAddress | The delivery address for this payment list. |
| description | String | A longer free-text description of the payment list. |
| extraField1 | String | A general-purpose free-text field for additional, integration-specific information. |
| extraField2 | String | A second general-purpose free-text field for additional, integration-specific information. |
| extraField3 | String | A third general-purpose free-text field for additional, integration-specific information. |
| issuedDate | Date | The date the payment list was issued. |
| lineItemAttachments | List<PaymentListLineItemAttachment> | Files attached to the payment list's line items, such as supporting documents. |
| lineItems | List<PaymentLineItemBean> | The priced line items making up this payment list. |
| number | String | The unique document number for this payment list, such as an invoice or quote number. |
| paymentTaxType | PaymentTaxType | How tax is represented on the amounts in this payment list: not taxed, tax-inclusive or tax-exclusive. |
| reference | String | A free-text customer or purchase order reference for this payment list. |
| subTotal | BigDecimal | Calculates the ex-tax total of this payment list, being the sum of the sub-total of each line item. |
| tax | BigDecimal | Calculates the total tax on this payment list, being the sum of the tax amount of each line item. |
| title | String | A short title for the payment list, shown to the customer. |
| total | BigDecimal | Calculates the grand total of this payment list, being the sum of the total amount (including tax) of each line item. |
Methods
getNumber() · getTitle() · getDescription() · getLineItems() · getReference() · getLineItemAttachments() · getIssuedDate() · getSubTotal() · getTax() · getTotal() · getBillingAddress() · getDeliveryAddress() · getExtraField1() · getExtraField2() · getExtraField3() · getCartId() · getPaymentTaxType()
getNumber()
Returns: String
The unique document number for this payment list, such as an invoice or quote number.
getTitle()
Returns: String
A short title for the payment list, shown to the customer.
getDescription()
Returns: String
A longer free-text description of the payment list.
getLineItems()
Returns: List<PaymentLineItemBean>
The priced line items making up this payment list.
getReference()
Returns: String
A free-text customer or purchase order reference for this payment list.
getLineItemAttachments()
Returns: List<PaymentListLineItemAttachment>
Files attached to the payment list's line items, such as supporting documents.
getIssuedDate()
Returns: Date
The date the payment list was issued.
getSubTotal()
Returns: BigDecimal
Calculates the ex-tax total of this payment list, being the sum of the sub-total of each line item.
getTax()
Returns: BigDecimal
Calculates the total tax on this payment list, being the sum of the tax amount of each line item.
getTotal()
Returns: BigDecimal
Calculates the grand total of this payment list, being the sum of the total amount (including tax) of each line item.
getBillingAddress()
Returns: PaymentAddress
The billing address for this payment list.
getDeliveryAddress()
Returns: PaymentAddress
The delivery address for this payment list.
getExtraField1()
Returns: String
A general-purpose free-text field for additional, integration-specific information.
getExtraField2()
Returns: String
A second general-purpose free-text field for additional, integration-specific information.
getExtraField3()
Returns: String
A third general-purpose free-text field for additional, integration-specific information.
getCartId()
Returns: Long
The id of the shopping cart this payment list was generated from, if any.
getPaymentTaxType()
Returns: PaymentTaxType
How tax is represented on the amounts in this payment list: not taxed, tax-inclusive or tax-exclusive.
Methods
getInvoiceStatus()
Returns: InvoiceListStatus
The current status of the invoice, such as draft, sent, overdue or paid.
getDueDate()
Returns: Date
The date by which payment of this invoice is due.