Package org.killbill.billing.invoice.api
Interface InvoiceItem
-
- All Superinterfaces:
Entity
- All Known Subinterfaces:
InvoiceItemFormatter
public interface InvoiceItem extends Entity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UUIDgetAccountId()BigDecimalgetAmount()UUIDgetBundleId()org.joda.time.DateTimegetCatalogEffectiveDate()UUIDgetChildAccountId()CurrencygetCurrency()StringgetDescription()org.joda.time.LocalDategetEndDate()The end date of an item can be null (e.g.UUIDgetInvoiceId()InvoiceItemTypegetInvoiceItemType()StringgetItemDetails()UUIDgetLinkedItemId()StringgetPhaseName()StringgetPlanName()StringgetPrettyPhaseName()StringgetPrettyPlanName()StringgetPrettyProductName()StringgetPrettyUsageName()StringgetProductName()BigDecimalgetQuantity()BigDecimalgetRate()org.joda.time.LocalDategetStartDate()UUIDgetSubscriptionId()StringgetUsageName()booleanmatches(Object other)Items match if they correspond to the same subscription for the same catalog plan and same start / end dates-
Methods inherited from interface org.killbill.billing.util.entity.Entity
getCreatedDate, getId, getUpdatedDate
-
-
-
-
Method Detail
-
getInvoiceItemType
InvoiceItemType getInvoiceItemType()
-
getInvoiceId
UUID getInvoiceId()
-
getAccountId
UUID getAccountId()
-
getChildAccountId
UUID getChildAccountId()
- Returns:
- the child account id if this item is part of a parent invoice
-
getStartDate
org.joda.time.LocalDate getStartDate()
- Returns:
- the service period start date for that item, in the account timezone
-
getEndDate
org.joda.time.LocalDate getEndDate()
The end date of an item can be null (e.g. for fixed price items).- Returns:
- the service period end date for that item (if available), in the account timezone
-
getAmount
BigDecimal getAmount()
-
getCurrency
Currency getCurrency()
-
getDescription
String getDescription()
-
getBundleId
UUID getBundleId()
-
getSubscriptionId
UUID getSubscriptionId()
-
getProductName
String getProductName()
-
getPrettyProductName
String getPrettyProductName()
-
getPlanName
String getPlanName()
-
getPrettyPlanName
String getPrettyPlanName()
-
getPhaseName
String getPhaseName()
-
getPrettyPhaseName
String getPrettyPhaseName()
-
getUsageName
String getUsageName()
-
getPrettyUsageName
String getPrettyUsageName()
-
getRate
BigDecimal getRate()
-
getLinkedItemId
UUID getLinkedItemId()
-
getQuantity
BigDecimal getQuantity()
-
getItemDetails
String getItemDetails()
-
getCatalogEffectiveDate
org.joda.time.DateTime getCatalogEffectiveDate()
-
matches
boolean matches(Object other)
Items match if they correspond to the same subscription for the same catalog plan and same start / end dates- Returns:
- true if current and other items match
-
-