Class SubscriptionWithItems
java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.SubscriptionWithItems
- All Implemented Interfaces:
Serializable
This is a container for a
Subscription and a list of SubscriptionItem- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionWithItems(Subscription subscription, List<SubscriptionItem> subscriptionItems, List<SubscriptionAction> availableActions, Map<String, List<String>> unavailableReasonsByActionType, SubscriptionReferencedItem rootItem, CancellationPolicy cancellationPolicy, Map<String, Object> additionalAttributes) Creates a newSubscriptionWithItemsinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanReturn any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.The availableSubscriptionActionsthat may be possible for this subscription.Describes details for access & charges in the current period in which the cancellation of this subscription is being requested/executed.The item referenced bySubscription.getRootItemRef().The unavailableSubscriptionActionTypesalong with unavailable reasons for this subscription.inthashCode()voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetAvailableActions(List<SubscriptionAction> availableActions) The availableSubscriptionActionsthat may be possible for this subscription.voidsetCancellationPolicy(CancellationPolicy cancellationPolicy) Describes details for access & charges in the current period in which the cancellation of this subscription is being requested/executed.voidsetRootItem(SubscriptionReferencedItem rootItem) The item referenced bySubscription.getRootItemRef().voidsetSubscription(Subscription subscription) voidsetSubscriptionId(String subscriptionId) voidsetSubscriptionItems(List<SubscriptionItem> subscriptionItems) voidsetUnavailableReasonsByActionType(Map<String, List<String>> unavailableReasonsByActionType) The unavailableSubscriptionActionTypesalong with unavailable reasons for this subscription.toString()
-
Constructor Details
-
SubscriptionWithItems
public SubscriptionWithItems() -
SubscriptionWithItems
public SubscriptionWithItems(Subscription subscription, List<SubscriptionItem> subscriptionItems, List<SubscriptionAction> availableActions, Map<String, List<String>> unavailableReasonsByActionType, SubscriptionReferencedItem rootItem, CancellationPolicy cancellationPolicy, Map<String, Object> additionalAttributes) Creates a newSubscriptionWithItemsinstance.- Parameters:
subscription-subscriptionItems-availableActions- The availableSubscriptionActionsthat may be possible for this subscription.unavailableReasonsByActionType- The unavailableSubscriptionActionTypesalong with unavailable reasons for this subscription.rootItem- The item referenced bySubscription.getRootItemRef(). This is hydrated in some flows in the business logic rather than by the caller. It should not be serialized.cancellationPolicy- Describes details for access & charges in the current period in which the cancellation of this subscription is being requested/executed. It should not be serialized.additionalAttributes- Map holding any additional attributes passed in the request not matching any defined properties.
-
-
Method Details
-
setSubscriptionId
-
getSubscriptionId
-
addAdditionalAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name- Name of the additional attributevalue- Value of the additional attribute
-
getAdditionalAttribute
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getSubscription
-
getSubscriptionItems
-
getAvailableActions
The availableSubscriptionActionsthat may be possible for this subscription. -
getRootItem
The item referenced bySubscription.getRootItemRef(). This is hydrated in some flows in the business logic rather than by the caller. It should not be serialized. -
getCancellationPolicy
Describes details for access & charges in the current period in which the cancellation of this subscription is being requested/executed. It should not be serialized. -
getAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setSubscription
-
setSubscriptionItems
-
setAvailableActions
The availableSubscriptionActionsthat may be possible for this subscription. -
setRootItem
The item referenced bySubscription.getRootItemRef(). This is hydrated in some flows in the business logic rather than by the caller. It should not be serialized. -
setCancellationPolicy
Describes details for access & charges in the current period in which the cancellation of this subscription is being requested/executed. It should not be serialized. -
setAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-