public class DefaultBillingEvent extends java.lang.Object implements BillingEvent
| Constructor and Description |
|---|
DefaultBillingEvent(SubscriptionBase subscription,
org.joda.time.DateTime effectiveDate,
boolean isActive,
Plan plan,
PlanPhase planPhase,
java.math.BigDecimal fixedPrice,
Currency currency,
BillingPeriod billingPeriod,
int billCycleDayLocal,
java.lang.String description,
long totalOrdering,
SubscriptionBaseTransitionType type,
Catalog catalog,
boolean isDisableEvent) |
DefaultBillingEvent(SubscriptionInternalEvent transition,
SubscriptionBase subscription,
int billCycleDayLocal,
Currency currency,
Catalog catalog) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BillingEvent e1) |
boolean |
equals(java.lang.Object o) |
int |
getBillCycleDayLocal() |
BillingPeriod |
getBillingPeriod() |
org.joda.time.DateTime |
getCatalogEffectiveDate() |
Currency |
getCurrency() |
java.lang.String |
getDescription() |
org.joda.time.DateTime |
getEffectiveDate() |
java.math.BigDecimal |
getFixedPrice() |
Plan |
getPlan() |
PlanPhase |
getPlanPhase() |
java.math.BigDecimal |
getRecurringPrice(org.joda.time.DateTime effectiveDate) |
SubscriptionBase |
getSubscription() |
java.lang.Long |
getTotalOrdering() |
SubscriptionBaseTransitionType |
getTransitionType() |
java.util.List<Usage> |
getUsages() |
int |
hashCode() |
java.lang.String |
toString() |
public DefaultBillingEvent(SubscriptionInternalEvent transition, SubscriptionBase subscription, int billCycleDayLocal, Currency currency, Catalog catalog) throws CatalogApiException
CatalogApiExceptionpublic DefaultBillingEvent(SubscriptionBase subscription, org.joda.time.DateTime effectiveDate, boolean isActive, Plan plan, PlanPhase planPhase, java.math.BigDecimal fixedPrice, Currency currency, BillingPeriod billingPeriod, int billCycleDayLocal, java.lang.String description, long totalOrdering, SubscriptionBaseTransitionType type, Catalog catalog, boolean isDisableEvent) throws CatalogApiException
CatalogApiExceptionpublic int compareTo(BillingEvent e1)
compareTo in interface java.lang.Comparable<BillingEvent>public int getBillCycleDayLocal()
getBillCycleDayLocal in interface BillingEventpublic SubscriptionBase getSubscription()
getSubscription in interface BillingEventpublic org.joda.time.DateTime getEffectiveDate()
getEffectiveDate in interface BillingEventpublic PlanPhase getPlanPhase()
getPlanPhase in interface BillingEventpublic Plan getPlan()
getPlan in interface BillingEventpublic BillingPeriod getBillingPeriod()
getBillingPeriod in interface BillingEventpublic java.lang.String getDescription()
getDescription in interface BillingEventpublic java.math.BigDecimal getFixedPrice()
getFixedPrice in interface BillingEventpublic java.math.BigDecimal getRecurringPrice(org.joda.time.DateTime effectiveDate)
throws CatalogApiException
getRecurringPrice in interface BillingEventCatalogApiExceptionpublic Currency getCurrency()
getCurrency in interface BillingEventpublic SubscriptionBaseTransitionType getTransitionType()
getTransitionType in interface BillingEventpublic java.lang.Long getTotalOrdering()
getTotalOrdering in interface BillingEventpublic java.util.List<Usage> getUsages()
getUsages in interface BillingEventpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic org.joda.time.DateTime getCatalogEffectiveDate()
getCatalogEffectiveDate in interface BillingEventCopyright © 2010-2018. All Rights Reserved.