Class RemovedAdjustment
java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.RemovedAdjustment
- All Implemented Interfaces:
Serializable
Represents an
Adjustment that will be lost given proposed changes to a current
Subscription. This summarizes all Adjustments lost that were produced
by the same offer, i.e., that share the same Adjustment.getAdjustmentRef().- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanCumulative total of all instances of anAdjustment.The unit discount of anAdjustment.Additional information to include with this removal DTO.If it's an item adjustment, it represents the quantity this adjustment applies to.A system code used to identify the reason for the removal of the adjustment.A message to the customer specifying why the adjustment is being removed.inthashCode()voidsetAdjustmentAmountTotal(BigDecimal adjustmentAmountTotal) Cumulative total of all instances of anAdjustment.voidsetAdjustmentCartLabel(String adjustmentCartLabel) voidsetAdjustmentCodeRef(String adjustmentCodeRef) voidsetAdjustmentDescription(String adjustmentDescription) voidsetAdjustmentName(String adjustmentName) voidsetAdjustmentProrationType(String adjustmentProrationType) voidsetAdjustmentRef(String adjustmentRef) voidsetAdjustmentUnitAmount(BigDecimal adjustmentUnitAmount) The unit discount of anAdjustment.voidsetAttributes(Map<String, Object> attributes) Additional information to include with this removal DTO.voidsetBeginPeriod(Integer beginPeriod) voidsetCampaignTrackingId(String campaignTrackingId) voidsetCodeUsed(String codeUsed) voidsetDiscountType(String discountType) voidsetEndPeriod(Integer endPeriod) voidsetFreeTrialLength(Integer freeTrialLength) voidsetFreeTrialLengthUnits(String freeTrialLengthUnits) voidsetItemAdjustmentQuantity(Integer itemAdjustmentQuantity) If it's an item adjustment, it represents the quantity this adjustment applies to.voidsetReasonCode(String reasonCode) A system code used to identify the reason for the removal of the adjustment.voidsetReasonMessage(String reasonMessage) A message to the customer specifying why the adjustment is being removed.voidsetSubscriptionAdjustmentType(String subscriptionAdjustmentType) toString()
-
Constructor Details
-
RemovedAdjustment
public RemovedAdjustment()
-
-
Method Details
-
getAdjustmentRef
- See Also:
-
getSubscriptionAdjustmentType
-
getAdjustmentUnitAmount
The unit discount of anAdjustment. -
getItemAdjustmentQuantity
If it's an item adjustment, it represents the quantity this adjustment applies to. If null, then the full quantity of the item is targeted. -
getAdjustmentAmountTotal
Cumulative total of all instances of anAdjustment. -
getBeginPeriod
- See Also:
-
getEndPeriod
- See Also:
-
getAdjustmentName
- See Also:
-
getAdjustmentCartLabel
- See Also:
-
getAdjustmentDescription
- See Also:
-
getAdjustmentProrationType
- See Also:
-
getAdjustmentCodeRef
- See Also:
-
getCodeUsed
- See Also:
-
getCampaignTrackingId
- See Also:
-
getDiscountType
- See Also:
-
getFreeTrialLength
- See Also:
-
getFreeTrialLengthUnits
- See Also:
-
getReasonCode
A system code used to identify the reason for the removal of the adjustment. -
getReasonMessage
A message to the customer specifying why the adjustment is being removed. -
getAttributes
Additional information to include with this removal DTO. -
setAdjustmentRef
- See Also:
-
setSubscriptionAdjustmentType
-
setAdjustmentUnitAmount
The unit discount of anAdjustment. -
setItemAdjustmentQuantity
If it's an item adjustment, it represents the quantity this adjustment applies to. If null, then the full quantity of the item is targeted. -
setAdjustmentAmountTotal
Cumulative total of all instances of anAdjustment. -
setBeginPeriod
- See Also:
-
setEndPeriod
- See Also:
-
setAdjustmentName
- See Also:
-
setAdjustmentCartLabel
- See Also:
-
setAdjustmentDescription
- See Also:
-
setAdjustmentProrationType
- See Also:
-
setAdjustmentCodeRef
- See Also:
-
setCodeUsed
- See Also:
-
setCampaignTrackingId
- See Also:
-
setDiscountType
- See Also:
-
setFreeTrialLength
- See Also:
-
setFreeTrialLengthUnits
- See Also:
-
setReasonCode
A system code used to identify the reason for the removal of the adjustment. -
setReasonMessage
A message to the customer specifying why the adjustment is being removed. -
setAttributes
Additional information to include with this removal DTO. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-