Class ExistingSubscriptionDetails
java.lang.Object
com.broadleafcommerce.cartoperation.domain.subscription.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.- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanGets both subscription-level and item-level existing adjustment details.Additional attributes to include.The subscription's current periodList of delayed actions for this subscription.Stores the time at which the current subscription's ends.Details describing existing subscription-level adjustments.ExistingSubscriptionItemDetailfor each subscription item on the existing 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 root subscription item.The id of the subscriptioninthashCode()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.voidsetEndOfTermDate(Instant endOfTermDate) Stores the time at which the current subscription's ends.voidsetExistingAdjustmentDetails(List<ExistingSubscriptionAdjustmentDetail> existingAdjustmentDetails) Details describing existing subscription-level adjustments.voidsetExistingItemDetails(List<ExistingSubscriptionItemDetail> existingItemDetails) ExistingSubscriptionItemDetailfor each subscription item on the existing subscription.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 root subscription item.voidsetSubscriptionId(String subscriptionId) The id of the subscriptiontoString()
-
Constructor Details
-
ExistingSubscriptionDetails
public ExistingSubscriptionDetails()
-
-
Method Details
-
getAllAdjustmentDetails
Gets both subscription-level and item-level existing adjustment details. -
getSubscriptionId
The id of the subscription -
getRootSubscriptionItemId
ID of the root subscription item. -
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:
-
DefaultSubscriptionPaymentStrategy
-
getDelayedActions
List of delayed actions for this subscription. Often, these delayed actions are related to requested actions against a subscription with aPREPAIDpayment strategy 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. -
getEndOfTermDate
Stores the time at which the current subscription's ends.For terms, this points to the time at which the current term ends.
-
getExistingItemDetails
ExistingSubscriptionItemDetailfor each subscription item on the existing subscription. -
getExistingAdjustmentDetails
Details describing existing subscription-level adjustments. -
getAttributes
Additional attributes to include. -
setSubscriptionId
The id of the subscription -
setRootSubscriptionItemId
ID of the root subscription item. -
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:
-
DefaultSubscriptionPaymentStrategy
-
setDelayedActions
List of delayed actions for this subscription. Often, these delayed actions are related to requested actions against a subscription with aPREPAIDpayment strategy 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. -
setEndOfTermDate
Stores the time at which the current subscription's ends.For terms, this points to the time at which the current term ends.
-
setExistingItemDetails
ExistingSubscriptionItemDetailfor each subscription item on the existing subscription. -
setExistingAdjustmentDetails
public void setExistingAdjustmentDetails(List<ExistingSubscriptionAdjustmentDetail> existingAdjustmentDetails) Details describing existing subscription-level adjustments. -
setAttributes
Additional attributes to include. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-