Class AddAdjustmentRequest

java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.offer.AddAdjustmentRequest
All Implemented Interfaces:
Serializable

public class AddAdjustmentRequest extends Object implements Serializable
A DTO that represents a request to add an offer / offer code onto a Subscription.
Author:
Julia Lopez-Pozas (jlopezpozas)
See Also:
  • Constructor Details

    • AddAdjustmentRequest

      public AddAdjustmentRequest()
  • Method Details

    • getOfferRef

      public String getOfferRef()
      The ID that refers to the offer / offer code being added.
    • getOfferRefType

      public String getOfferRefType()
      The type of adjustment to be added. Expected values are BLC_OFFER or BLC_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

      public String getApplicationDateType()
      Indicates when the adjustment should be applied onto the subscription.
      See Also:
    • getAttributes

      public Map<String,Object> getAttributes()
      Additional, miscellaneous attributes.
    • getSubscriptionId

      public String getSubscriptionId()
      The ID of the Subscription to add the offer to.
    • setOfferRef

      public void setOfferRef(String offerRef)
      The ID that refers to the offer / offer code being added.
    • setOfferRefType

      public void setOfferRefType(String offerRefType)
      The type of adjustment to be added. Expected values are BLC_OFFER or BLC_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

      public void setApplicationDateType(String applicationDateType)
      Indicates when the adjustment should be applied onto the subscription.
      See Also:
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Additional, miscellaneous attributes.
    • setSubscriptionId

      public void setSubscriptionId(String subscriptionId)
      The ID of the Subscription to add the offer to.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object