Interface SubscriptionReferencedItem
- All Known Implementing Classes:
Product
public interface SubscriptionReferencedItem
Identifies an entity that can be referenced by a
SubscriptionItem.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionList of references (usually IDs) to items that this can downgrade to.getId()The ID used by the system to identify this item.The maximum count of this item that must be added in a cart.The max number of active subscriptions that can be created for this item.The minimum count of this item that must be added in a cart.The number of days after which a downgrade is not allowed, until the window re-opens at the next billing cycle.List of references (usually IDs) to items that this can upgrade to.
-
Method Details
-
getId
String getId()The ID used by the system to identify this item. Should match aSubscriptionItem.getItemRef().- Returns:
- The ID used by the system to identify this item
-
getUpgradeOptionReferences
List of references (usually IDs) to items that this can upgrade to.- Returns:
- List of references (usually IDs) to items that this can upgrade to.
-
getDowngradeOptionReferences
List of references (usually IDs) to items that this can downgrade to.- Returns:
- List of references (usually IDs) to items that this can downgrade to.
-
getRestrictDowngradeAfterDays
Integer getRestrictDowngradeAfterDays()The number of days after which a downgrade is not allowed, until the window re-opens at the next billing cycle.nullmeans no restriction.- Returns:
- The number of days after which a downgrade is not allowed.
-
getMaxNumberOfActiveSubscriptions
Integer getMaxNumberOfActiveSubscriptions()The max number of active subscriptions that can be created for this item.nullmeans no restriction.- Returns:
- The max number of active subscriptions that can be created for this item.
-
getMinimumThreshold
Integer getMinimumThreshold()The minimum count of this item that must be added in a cart.- Returns:
- the minimum count of this item that must be added in a cart
-
getMaximumThreshold
Integer getMaximumThreshold()The maximum count of this item that must be added in a cart.- Returns:
- the maximum count of this item that must be added in a cart
-