Class RemovedAdjustment
java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.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.getOfferRef().- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAmount of this adjustmentFriendly label to display in the cart or to a customer in general instead of theadjustmentName.A reference to the Offer Code (if any).A description of what benefits the adjustment provides to a customer.Name of the adjustment applied.Determines how an adjustment's discount amount is distributed across the adjustment's related item types.Reference to the promotion or offer that drives this adjustmentThe unit discount of anAdjustment.Additional information to include with this removal DTO.Number of the billing period this adjustment starts being activeThe campaign tracking id (if any) for this adjustment.The code used (if any) that triggered the application of the adjustment for this adjustment.Defines the type of the discount.Number of the billing period this adjustment stops.IfdiscountTypeisFREE_TRIAL, then this defines the free trial's length.IfdiscountTypeisFREE_TRIAL, then this defines the units forfreeTrialLength.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.Type of this adjustmentinthashCode()voidsetAdjustmentAmountTotal(BigDecimal adjustmentAmountTotal) Amount of this adjustmentvoidsetAdjustmentCartLabel(String adjustmentCartLabel) Friendly label to display in the cart or to a customer in general instead of theadjustmentName.voidsetAdjustmentCodeRef(String adjustmentCodeRef) A reference to the Offer Code (if any).voidsetAdjustmentDescription(String adjustmentDescription) A description of what benefits the adjustment provides to a customer.voidsetAdjustmentName(String adjustmentName) Name of the adjustment applied.voidsetAdjustmentProrationType(String adjustmentProrationType) Determines how an adjustment's discount amount is distributed across the adjustment's related item types.voidsetAdjustmentRef(String adjustmentRef) Reference to the promotion or offer that drives this adjustmentvoidsetAdjustmentUnitAmount(BigDecimal adjustmentUnitAmount) The unit discount of anAdjustment.voidsetAttributes(Map<String, Object> attributes) Additional information to include with this removal DTO.voidsetBeginPeriod(Integer beginPeriod) Number of the billing period this adjustment starts being activevoidsetCampaignTrackingId(String campaignTrackingId) The campaign tracking id (if any) for this adjustment.voidsetCodeUsed(String codeUsed) The code used (if any) that triggered the application of the adjustment for this adjustment.voidsetDiscountType(String discountType) Defines the type of the discount.voidsetEndPeriod(Integer endPeriod) Number of the billing period this adjustment stops.voidsetFreeTrialLength(Integer freeTrialLength) IfdiscountTypeisFREE_TRIAL, then this defines the free trial's length.voidsetFreeTrialLengthUnits(String freeTrialLengthUnits) IfdiscountTypeisFREE_TRIAL, then this defines the units forfreeTrialLength.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) Type of this adjustmenttoString()
-
Constructor Details
-
RemovedAdjustment
public RemovedAdjustment()
-
-
Method Details
-
getAdjustmentRef
Reference to the promotion or offer that drives this adjustment -
getSubscriptionAdjustmentType
Type of this adjustment -
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
Amount of this adjustment -
getBeginPeriod
Number of the billing period this adjustment starts being active -
getEndPeriod
Number of the billing period this adjustment stops. If this field is null, the adjustment is considered indefinite -
getAdjustmentName
Name of the adjustment applied. -
getAdjustmentCartLabel
Friendly label to display in the cart or to a customer in general instead of theadjustmentName. -
getAdjustmentDescription
A description of what benefits the adjustment provides to a customer. -
getAdjustmentProrationType
Determines how an adjustment's discount amount is distributed across the adjustment's related item types. This can either be set to prorate across target items or target and qualifier items. -
getAdjustmentCodeRef
A reference to the Offer Code (if any). -
getCodeUsed
The code used (if any) that triggered the application of the adjustment for this adjustment. -
getCampaignTrackingId
The campaign tracking id (if any) for this adjustment. -
getDiscountType
Defines the type of the discount. This primarily determines when it should be applied to the order or items. This helps distinguish whether the adjustment applies at checkout or later such as for a subscription. -
getFreeTrialLength
IfdiscountTypeisFREE_TRIAL, then this defines the free trial's length.- See Also:
-
freeTrialLengthUnits
-
getFreeTrialLengthUnits
IfdiscountTypeisFREE_TRIAL, then this defines the units forfreeTrialLength.- See Also:
-
freeTrialLength
-
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
Reference to the promotion or offer that drives this adjustment -
setSubscriptionAdjustmentType
Type of this adjustment -
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
Amount of this adjustment -
setBeginPeriod
Number of the billing period this adjustment starts being active -
setEndPeriod
Number of the billing period this adjustment stops. If this field is null, the adjustment is considered indefinite -
setAdjustmentName
Name of the adjustment applied. -
setAdjustmentCartLabel
Friendly label to display in the cart or to a customer in general instead of theadjustmentName. -
setAdjustmentDescription
A description of what benefits the adjustment provides to a customer. -
setAdjustmentProrationType
Determines how an adjustment's discount amount is distributed across the adjustment's related item types. This can either be set to prorate across target items or target and qualifier items. -
setAdjustmentCodeRef
A reference to the Offer Code (if any). -
setCodeUsed
The code used (if any) that triggered the application of the adjustment for this adjustment. -
setCampaignTrackingId
The campaign tracking id (if any) for this adjustment. -
setDiscountType
Defines the type of the discount. This primarily determines when it should be applied to the order or items. This helps distinguish whether the adjustment applies at checkout or later such as for a subscription. -
setFreeTrialLength
IfdiscountTypeisFREE_TRIAL, then this defines the free trial's length.- See Also:
-
freeTrialLengthUnits
-
setFreeTrialLengthUnits
IfdiscountTypeisFREE_TRIAL, then this defines the units forfreeTrialLength.- See Also:
-
freeTrialLength
-
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
-