com.ning.billing.subscription.engine.addon
Class AddonUtils
java.lang.Object
com.ning.billing.subscription.engine.addon.AddonUtils
public class AddonUtils
- extends Object
|
Method Summary |
void |
checkAddonCreationRights(DefaultSubscriptionBase baseSubscription,
Plan targetAddOnPlan)
|
boolean |
isAddonAvailable(Product baseProduct,
Plan targetAddOnPlan)
|
boolean |
isAddonAvailableFromPlanName(String basePlanName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan)
|
boolean |
isAddonAvailableFromProdName(String baseProductName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan)
|
boolean |
isAddonIncluded(Product baseProduct,
Plan targetAddOnPlan)
|
boolean |
isAddonIncludedFromPlanName(String basePlanName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan)
|
boolean |
isAddonIncludedFromProdName(String baseProductName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddonUtils
@Inject
public AddonUtils(CatalogService catalogService)
checkAddonCreationRights
public void checkAddonCreationRights(DefaultSubscriptionBase baseSubscription,
Plan targetAddOnPlan)
throws SubscriptionBaseApiException,
CatalogApiException
- Throws:
SubscriptionBaseApiException
CatalogApiException
isAddonAvailableFromProdName
public boolean isAddonAvailableFromProdName(String baseProductName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan)
isAddonAvailableFromPlanName
public boolean isAddonAvailableFromPlanName(String basePlanName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan)
isAddonAvailable
public boolean isAddonAvailable(Product baseProduct,
Plan targetAddOnPlan)
isAddonIncludedFromProdName
public boolean isAddonIncludedFromProdName(String baseProductName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan)
isAddonIncludedFromPlanName
public boolean isAddonIncludedFromPlanName(String basePlanName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan)
isAddonIncluded
public boolean isAddonIncluded(Product baseProduct,
Plan targetAddOnPlan)
Copyright © 2010-2013. All Rights Reserved.