Class ExistingAdjustmentDetail
java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.ExistingAdjustmentDetail
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExistingSubscriptionAdjustmentDetail,ExistingSubscriptionItemAdjustmentDetail
Contains details describing an existing adjustment when entering a modify-subscription flow such
as for edit, upgrade, or downgrade.
This is helpful to avoid any existing adjustments from being lost after modifying a subscription.
- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAdditional attributes to include.The end date of the free trial for this subscription, if applicable, null if none applied.getId()intRepresents the number of periods this adjustment has already been used.inthashCode()voidsetAdjustmentName(String adjustmentName) voidsetAdjustmentRef(String adjustmentRef) voidsetAttributes(Map<String, Object> attributes) Additional attributes to include.voidsetBeginPeriod(Integer beginPeriod) voidsetDiscountType(String discountType) voidsetEndPeriod(Integer endPeriod) voidsetFreeTrialEndDate(Instant freeTrialEndDate) The end date of the free trial for this subscription, if applicable, null if none applied.voidvoidsetPeriodsAlreadyUsed(int periodsAlreadyUsed) Represents the number of periods this adjustment has already been used.toString()
-
Constructor Details
-
ExistingAdjustmentDetail
public ExistingAdjustmentDetail()
-
-
Method Details
-
getId
-
getAdjustmentRef
- See Also:
-
getAdjustmentName
- See Also:
-
getDiscountType
- See Also:
-
getBeginPeriod
- See Also:
-
getEndPeriod
- See Also:
-
getFreeTrialEndDate
The end date of the free trial for this subscription, if applicable, null if none applied.This is an easy way to determine if a subscription is in a free trial period without having to calculate from the adjustment.
-
getPeriodsAlreadyUsed
public int getPeriodsAlreadyUsed()Represents the number of periods this adjustment has already been used. This is helpful to determine if the adjustment has any remaining periods. -
getAttributes
Additional attributes to include. -
setId
-
setAdjustmentRef
- See Also:
-
setAdjustmentName
- See Also:
-
setDiscountType
- See Also:
-
setBeginPeriod
- See Also:
-
setEndPeriod
- See Also:
-
setFreeTrialEndDate
The end date of the free trial for this subscription, if applicable, null if none applied.This is an easy way to determine if a subscription is in a free trial period without having to calculate from the adjustment.
-
setPeriodsAlreadyUsed
public void setPeriodsAlreadyUsed(int periodsAlreadyUsed) Represents the number of periods this adjustment has already been used. This is helpful to determine if the adjustment has any remaining periods. -
setAttributes
Additional attributes to include. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-