Class ExistingSubscriptionDetails
java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.ExistingSubscriptionDetails
- All Implemented Interfaces:
Serializable
Contains details describing an existing
Subscription when entering a modify-subscription
flow such as for edit, upgrade, or downgrade. This is stored on the created Cart for use
by downstream systems that handle fulfillment like Order Operations Service in comparing the
subscription before and after the modifications.- Author:
- karanjariwala
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAdditional attributes to include.The subscription's current periodList of delayed actions for this subscription.Declares that payments made against a subscription are going towards the goods/services rendered in the previous vs current period.intThe frequency with which the recurring price should be charged., e.g., a value of 1 combined withperiodTypeof MONTH would indicate to a subscription service that the price should be charged every 1 month.The period type for the price, e.g.ID of the rootSubscriptionItem.inthashCode()voidsetAttributes(Map<String, Object> attributes) Additional attributes to include.voidsetCurrentPeriod(Integer currentPeriod) The subscription's current periodvoidsetDelayedActions(List<DelayedSubscriptionAction> delayedActions) List of delayed actions for this subscription.voidsetExistingAdjustmentDetails(List<ExistingSubscriptionAdjustmentDetail> existingAdjustmentDetails) voidsetExistingItemDetails(List<ExistingSubscriptionItemDetail> existingItemDetails) voidsetPaymentStrategy(String paymentStrategy) Declares that payments made against a subscription are going towards the goods/services rendered in the previous vs current period.voidsetPeriodFrequency(int periodFrequency) The frequency with which the recurring price should be charged., e.g., a value of 1 combined withperiodTypeof MONTH would indicate to a subscription service that the price should be charged every 1 month.voidsetPeriodType(String periodType) The period type for the price, e.g.voidsetRootSubscriptionItemId(String rootSubscriptionItemId) ID of the rootSubscriptionItem.voidsetSubscriptionId(String subscriptionId) toString()
-
Constructor Details
-
ExistingSubscriptionDetails
public ExistingSubscriptionDetails()
-
-
Method Details
-
getSubscriptionId
- See Also:
-
getRootSubscriptionItemId
ID of the rootSubscriptionItem. -
getCurrentPeriod
The subscription's current period -
getPeriodFrequency
public int getPeriodFrequency()The frequency with which the recurring price should be charged., e.g., a value of 1 combined withperiodTypeof MONTH would indicate to a subscription service that the price should be charged every 1 month.- See Also:
-
periodType
-
getPeriodType
The period type for the price, e.g. MONTHLY, QUARTERLY, ANNUALLY- See Also:
-
periodFrequency
-
getPaymentStrategy
Declares that payments made against a subscription are going towards the goods/services rendered in the previous vs current period.- See Also:
-
getDelayedActions
List of delayed actions for this subscription. Often, these delayed actions are related to requested actions against a subscription with aDefaultSubscriptionPaymentStrategy.PREPAIDSubscription.getPaymentStrategy()where instead of refunding the customer, the action is delayed until the end of the period, causing the next period to naturally identify the updated price. -
getExistingItemDetails
-
getExistingAdjustmentDetails
-
getAttributes
Additional attributes to include. -
setSubscriptionId
- See Also:
-
setRootSubscriptionItemId
ID of the rootSubscriptionItem. -
setCurrentPeriod
The subscription's current period -
setPeriodFrequency
public void setPeriodFrequency(int periodFrequency) The frequency with which the recurring price should be charged., e.g., a value of 1 combined withperiodTypeof MONTH would indicate to a subscription service that the price should be charged every 1 month.- See Also:
-
periodType
-
setPeriodType
The period type for the price, e.g. MONTHLY, QUARTERLY, ANNUALLY- See Also:
-
periodFrequency
-
setPaymentStrategy
Declares that payments made against a subscription are going towards the goods/services rendered in the previous vs current period.- See Also:
-
setDelayedActions
List of delayed actions for this subscription. Often, these delayed actions are related to requested actions against a subscription with aDefaultSubscriptionPaymentStrategy.PREPAIDSubscription.getPaymentStrategy()where instead of refunding the customer, the action is delayed until the end of the period, causing the next period to naturally identify the updated price. -
setExistingItemDetails
-
setExistingAdjustmentDetails
public void setExistingAdjustmentDetails(List<ExistingSubscriptionAdjustmentDetail> existingAdjustmentDetails) -
setAttributes
Additional attributes to include. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-