Class AddAdjustmentRequest
java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.offer.AddAdjustmentRequest
- All Implemented Interfaces:
Serializable
A DTO that represents a request to add an offer / offer code onto a
Subscription.- Author:
- Julia Lopez-Pozas (jlopezpozas)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanIndicates when the adjustment should be applied onto the subscription.Additional, miscellaneous attributes.The ID that refers to the offer / offer code being added.The type of adjustment to be added.The ID of theSubscriptionto add the offer to.inthashCode()booleanIndicates whether the Offer should also be applied to the dependent items.booleanIndicates whether this request should replace all other adjustments on the subscription.voidsetApplicationDateType(String applicationDateType) Indicates when the adjustment should be applied onto the subscription.voidsetApplyToDependentItems(boolean applyToDependentItems) Indicates whether the Offer should also be applied to the dependent items.voidsetAttributes(Map<String, Object> attributes) Additional, miscellaneous attributes.voidsetOfferRef(String offerRef) The ID that refers to the offer / offer code being added.voidsetOfferRefType(String offerRefType) The type of adjustment to be added.voidsetReplaceExisting(boolean replaceExisting) Indicates whether this request should replace all other adjustments on the subscription.voidsetSubscriptionId(String subscriptionId) The ID of theSubscriptionto add the offer to.toString()
-
Constructor Details
-
AddAdjustmentRequest
public AddAdjustmentRequest()
-
-
Method Details
-
getOfferRef
The ID that refers to the offer / offer code being added. -
getOfferRefType
The type of adjustment to be added. Expected values areBLC_OFFERorBLC_OFFER_CODE -
isReplaceExisting
public boolean isReplaceExisting()Indicates whether this request should replace all other adjustments on the subscription. -
isApplyToDependentItems
public boolean isApplyToDependentItems()Indicates whether the Offer should also be applied to the dependent items. -
getApplicationDateType
Indicates when the adjustment should be applied onto the subscription.- See Also:
-
getAttributes
Additional, miscellaneous attributes. -
getSubscriptionId
The ID of theSubscriptionto add the offer to. -
setOfferRef
The ID that refers to the offer / offer code being added. -
setOfferRefType
The type of adjustment to be added. Expected values areBLC_OFFERorBLC_OFFER_CODE -
setReplaceExisting
public void setReplaceExisting(boolean replaceExisting) Indicates whether this request should replace all other adjustments on the subscription. -
setApplyToDependentItems
public void setApplyToDependentItems(boolean applyToDependentItems) Indicates whether the Offer should also be applied to the dependent items. -
setApplicationDateType
Indicates when the adjustment should be applied onto the subscription.- See Also:
-
setAttributes
Additional, miscellaneous attributes. -
setSubscriptionId
The ID of theSubscriptionto add the offer to. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-