Class PendingSubscriptionItemAdjustmentRemoval

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

public class PendingSubscriptionItemAdjustmentRemoval extends Object implements Serializable
Represents details of a subscription item adjustment that will be removed from the subscription item, typically due to the cancellation of a subscription that is a qualifier of that offer.

For example, let's say a customer has 2 subscriptions, subA and subB. subB has a 10% discount because subA is a qualifier of that offer. If the customer cancels subA, then the discount on subB will be removed. This class holds the details of the subscription item adjustment that will be removed from subB.

Author:
Sunny Yu
See Also:
  • Constructor Details

    • PendingSubscriptionItemAdjustmentRemoval

      public PendingSubscriptionItemAdjustmentRemoval()
  • Method Details

    • getSubscriptionItemAdjustmentId

      public String getSubscriptionItemAdjustmentId()
      The id of the subscription item adjustment that will actually be removed.
    • getSubscriptionId

      public String getSubscriptionId()
      The id of the subscription of which the adjustment going to be removed belongs to.
    • getSubscriptionName

      public String getSubscriptionName()
      The id of the subscription of which the adjustment going to be removed belongs to.
    • getSubscriptionItemId

      public String getSubscriptionItemId()
      The id of the subscription item of which the adjustment going to be removed belongs to.
    • getSubscriptionItemName

      public String getSubscriptionItemName()
      The id of the subscription item of which the adjustment going to be removed belongs to.
    • getAdjustmentRef

      public String getAdjustmentRef()
      The reference of the adjustment that will be removed.
    • getAdjustmentAmount

      public BigDecimal getAdjustmentAmount()
      The amount of the adjustment that will be removed.
    • getAdjustmentCurrency

      public javax.money.CurrencyUnit getAdjustmentCurrency()
      The currency of the adjustment that will be removed.
    • getAdjustmentName

      public String getAdjustmentName()
      The name of the adjustment that will be removed.
    • getAdjustmentCartLabel

      public String getAdjustmentCartLabel()
      The cart label of the adjustment that will be removed.
    • getAdjustmentDescription

      public String getAdjustmentDescription()
      The description of the adjustment that will be removed.
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
    • setSubscriptionItemAdjustmentId

      public void setSubscriptionItemAdjustmentId(String subscriptionItemAdjustmentId)
      The id of the subscription item adjustment that will actually be removed.
    • setSubscriptionId

      public void setSubscriptionId(String subscriptionId)
      The id of the subscription of which the adjustment going to be removed belongs to.
    • setSubscriptionName

      public void setSubscriptionName(String subscriptionName)
      The id of the subscription of which the adjustment going to be removed belongs to.
    • setSubscriptionItemId

      public void setSubscriptionItemId(String subscriptionItemId)
      The id of the subscription item of which the adjustment going to be removed belongs to.
    • setSubscriptionItemName

      public void setSubscriptionItemName(String subscriptionItemName)
      The id of the subscription item of which the adjustment going to be removed belongs to.
    • setAdjustmentRef

      public void setAdjustmentRef(String adjustmentRef)
      The reference of the adjustment that will be removed.
    • setAdjustmentAmount

      public void setAdjustmentAmount(BigDecimal adjustmentAmount)
      The amount of the adjustment that will be removed.
    • setAdjustmentCurrency

      public void setAdjustmentCurrency(javax.money.CurrencyUnit adjustmentCurrency)
      The currency of the adjustment that will be removed.
    • setAdjustmentName

      public void setAdjustmentName(String adjustmentName)
      The name of the adjustment that will be removed.
    • setAdjustmentCartLabel

      public void setAdjustmentCartLabel(String adjustmentCartLabel)
      The cart label of the adjustment that will be removed.
    • setAdjustmentDescription

      public void setAdjustmentDescription(String adjustmentDescription)
      The description of the adjustment that will be removed.
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
    • 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