com.ning.billing.subscription.api.user
Class DefaultSubscriptionEvent
java.lang.Object
com.ning.billing.util.events.BusEventBase
com.ning.billing.subscription.api.user.DefaultSubscriptionEvent
- All Implemented Interfaces:
- com.ning.billing.bus.api.BusEvent, com.ning.billing.queue.api.QueueEvent, BusInternalEvent, SubscriptionInternalEvent
- Direct Known Subclasses:
- DefaultEffectiveSubscriptionEvent, DefaultRequestedSubscriptionEvent
public abstract class DefaultSubscriptionEvent
- extends BusEventBase
- implements SubscriptionInternalEvent
|
Constructor Summary |
DefaultSubscriptionEvent(SubscriptionBaseTransitionData in,
org.joda.time.DateTime startDate,
Long searchKey1,
Long searchKey2,
UUID userToken)
|
DefaultSubscriptionEvent(UUID eventId,
UUID subscriptionId,
UUID bundleId,
org.joda.time.DateTime requestedTransitionTime,
org.joda.time.DateTime effectiveTransitionTime,
com.ning.billing.entitlement.api.Entitlement.EntitlementState previousState,
String previousPlan,
String previousPhase,
String previousPriceList,
com.ning.billing.entitlement.api.Entitlement.EntitlementState nextState,
String nextPlan,
String nextPhase,
String nextPriceList,
Long totalOrdering,
SubscriptionBaseTransitionType transitionType,
Integer remainingEventsForUserOperation,
org.joda.time.DateTime startDate,
Long searchKey1,
Long searchKey2,
UUID userToken)
|
| Methods inherited from interface com.ning.billing.bus.api.BusEvent |
getSearchKey1, getSearchKey2, getUserToken |
DefaultSubscriptionEvent
public DefaultSubscriptionEvent(SubscriptionBaseTransitionData in,
org.joda.time.DateTime startDate,
Long searchKey1,
Long searchKey2,
UUID userToken)
DefaultSubscriptionEvent
public DefaultSubscriptionEvent(UUID eventId,
UUID subscriptionId,
UUID bundleId,
org.joda.time.DateTime requestedTransitionTime,
org.joda.time.DateTime effectiveTransitionTime,
com.ning.billing.entitlement.api.Entitlement.EntitlementState previousState,
String previousPlan,
String previousPhase,
String previousPriceList,
com.ning.billing.entitlement.api.Entitlement.EntitlementState nextState,
String nextPlan,
String nextPhase,
String nextPriceList,
Long totalOrdering,
SubscriptionBaseTransitionType transitionType,
Integer remainingEventsForUserOperation,
org.joda.time.DateTime startDate,
Long searchKey1,
Long searchKey2,
UUID userToken)
getBusEventType
public BusInternalEvent.BusInternalEventType getBusEventType()
- Specified by:
getBusEventType in interface BusInternalEvent
getId
public UUID getId()
- Specified by:
getId in interface SubscriptionInternalEvent
getSubscriptionId
public UUID getSubscriptionId()
- Specified by:
getSubscriptionId in interface SubscriptionInternalEvent
getBundleId
public UUID getBundleId()
- Specified by:
getBundleId in interface SubscriptionInternalEvent
getPreviousState
public com.ning.billing.entitlement.api.Entitlement.EntitlementState getPreviousState()
- Specified by:
getPreviousState in interface SubscriptionInternalEvent
getPreviousPlan
public String getPreviousPlan()
- Specified by:
getPreviousPlan in interface SubscriptionInternalEvent
getPreviousPhase
public String getPreviousPhase()
- Specified by:
getPreviousPhase in interface SubscriptionInternalEvent
getNextPlan
public String getNextPlan()
- Specified by:
getNextPlan in interface SubscriptionInternalEvent
getNextPhase
public String getNextPhase()
- Specified by:
getNextPhase in interface SubscriptionInternalEvent
getNextState
public com.ning.billing.entitlement.api.Entitlement.EntitlementState getNextState()
- Specified by:
getNextState in interface SubscriptionInternalEvent
getPreviousPriceList
public String getPreviousPriceList()
- Specified by:
getPreviousPriceList in interface SubscriptionInternalEvent
getNextPriceList
public String getNextPriceList()
- Specified by:
getNextPriceList in interface SubscriptionInternalEvent
getRemainingEventsForUserOperation
public Integer getRemainingEventsForUserOperation()
- Specified by:
getRemainingEventsForUserOperation in interface SubscriptionInternalEvent
getRequestedTransitionTime
public org.joda.time.DateTime getRequestedTransitionTime()
- Specified by:
getRequestedTransitionTime in interface SubscriptionInternalEvent
getEffectiveTransitionTime
public org.joda.time.DateTime getEffectiveTransitionTime()
- Specified by:
getEffectiveTransitionTime in interface SubscriptionInternalEvent
getTotalOrdering
public Long getTotalOrdering()
- Specified by:
getTotalOrdering in interface SubscriptionInternalEvent
getTransitionType
public SubscriptionBaseTransitionType getTransitionType()
- Specified by:
getTransitionType in interface SubscriptionInternalEvent
getSubscriptionStartDate
public org.joda.time.DateTime getSubscriptionStartDate()
- Specified by:
getSubscriptionStartDate in interface SubscriptionInternalEvent
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2010-2013. All Rights Reserved.