public interface Invoice extends Entity
| Modifier and Type | Method and Description |
|---|---|
boolean |
addInvoiceItem(InvoiceItem item) |
boolean |
addInvoiceItems(Collection<InvoiceItem> items) |
boolean |
addPayment(InvoicePayment payment) |
boolean |
addPayments(Collection<InvoicePayment> payments) |
UUID |
getAccountId() |
BigDecimal |
getBalance() |
BigDecimal |
getChargedAmount() |
BigDecimal |
getCreditedAmount() |
Currency |
getCurrency() |
org.joda.time.LocalDate |
getInvoiceDate() |
List<InvoiceItem> |
getInvoiceItems() |
<T extends InvoiceItem> |
getInvoiceItems(Class<T> clazz) |
Integer |
getInvoiceNumber() |
int |
getNumberOfItems() |
int |
getNumberOfPayments() |
BigDecimal |
getOriginalChargedAmount() |
BigDecimal |
getPaidAmount() |
List<InvoicePayment> |
getPayments() |
BigDecimal |
getRefundedAmount() |
org.joda.time.LocalDate |
getTargetDate()
The target day is the latest day to consider for billing events.
|
boolean |
isMigrationInvoice() |
getCreatedDate, getId, getUpdatedDateboolean addInvoiceItem(InvoiceItem item)
item - the invoice ietm to addboolean addInvoiceItems(Collection<InvoiceItem> items)
items - the list of ietms to addList<InvoiceItem> getInvoiceItems()
<T extends InvoiceItem> List<InvoiceItem> getInvoiceItems(Class<T> clazz)
T - a InvoiceItem typeclazz - the filter class for the itemsint getNumberOfItems()
boolean addPayment(InvoicePayment payment)
payment - the successful payment for that invoiceboolean addPayments(Collection<InvoicePayment> payments)
payments - the list of payments to add on that invoiceList<InvoicePayment> getPayments()
int getNumberOfPayments()
UUID getAccountId()
Integer getInvoiceNumber()
org.joda.time.LocalDate getInvoiceDate()
org.joda.time.LocalDate getTargetDate()
Currency getCurrency()
BigDecimal getPaidAmount()
BigDecimal getOriginalChargedAmount()
BigDecimal getChargedAmount()
BigDecimal getCreditedAmount()
BigDecimal getRefundedAmount()
BigDecimal getBalance()
boolean isMigrationInvoice()
Copyright © 2010-2015. All Rights Reserved.