public interface Invoice extends Entity
Modifier and Type | Method and Description |
---|---|
boolean |
addInvoiceItem(InvoiceItem item) |
boolean |
addInvoiceItems(java.util.Collection<InvoiceItem> items) |
boolean |
addPayment(InvoicePayment payment) |
boolean |
addPayments(java.util.Collection<InvoicePayment> payments) |
java.util.UUID |
getAccountId() |
java.math.BigDecimal |
getBalance() |
java.math.BigDecimal |
getChargedAmount() |
java.math.BigDecimal |
getCreditedAmount() |
Currency |
getCurrency() |
org.joda.time.LocalDate |
getInvoiceDate() |
java.util.List<InvoiceItem> |
getInvoiceItems() |
<T extends InvoiceItem> |
getInvoiceItems(java.lang.Class<T> clazz) |
java.lang.Integer |
getInvoiceNumber() |
int |
getNumberOfItems() |
int |
getNumberOfPayments() |
java.math.BigDecimal |
getOriginalChargedAmount() |
java.math.BigDecimal |
getPaidAmount() |
java.util.UUID |
getParentAccountId() |
java.util.UUID |
getParentInvoiceId() |
java.util.List<InvoicePayment> |
getPayments() |
java.math.BigDecimal |
getRefundedAmount() |
InvoiceStatus |
getStatus() |
org.joda.time.LocalDate |
getTargetDate()
The target day is the latest day to consider for billing events.
|
boolean |
isMigrationInvoice() |
boolean |
isParentInvoice() |
getCreatedDate, getId, getUpdatedDate
boolean addInvoiceItem(InvoiceItem item)
item
- the invoice ietm to addboolean addInvoiceItems(java.util.Collection<InvoiceItem> items)
items
- the list of ietms to addjava.util.List<InvoiceItem> getInvoiceItems()
<T extends InvoiceItem> java.util.List<InvoiceItem> getInvoiceItems(java.lang.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(java.util.Collection<InvoicePayment> payments)
payments
- the list of payments to add on that invoicejava.util.List<InvoicePayment> getPayments()
int getNumberOfPayments()
java.util.UUID getAccountId()
java.lang.Integer getInvoiceNumber()
org.joda.time.LocalDate getInvoiceDate()
org.joda.time.LocalDate getTargetDate()
Currency getCurrency()
java.math.BigDecimal getPaidAmount()
java.math.BigDecimal getOriginalChargedAmount()
java.math.BigDecimal getChargedAmount()
java.math.BigDecimal getCreditedAmount()
java.math.BigDecimal getRefundedAmount()
java.math.BigDecimal getBalance()
boolean isMigrationInvoice()
InvoiceStatus getStatus()
boolean isParentInvoice()
java.util.UUID getParentAccountId()
java.util.UUID getParentInvoiceId()
Copyright © 2010-2018. All Rights Reserved.