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

public class PriceDataChange extends Object implements Serializable
Structure representing a change to the pricing of the subscription.
See Also:
  • Constructor Details

    • PriceDataChange

      public PriceDataChange(String id, String priceDataId, BigDecimal beforeRecurringPrice, BigDecimal afterRecurringPrice, String priceChangeEffectiveType, Map<String,Object> additionalProperties)
      Creates a new PriceDataChange instance.
      Parameters:
      id - An identifying label for this change. Generally relates back to an idempotent reference for the source of the change. This is a measure to allow repeat execution of the source flow without introducing duplicate price data change records on the subscription, since the equals and hashcode will be influenced by this field.
      priceDataId - The ID of the price data that is changed
      beforeRecurringPrice - The price before the change
      afterRecurringPrice - The price after the change
      priceChangeEffectiveType - The descriptor of when the price change should take effect.
      additionalProperties - Any additional information related to the price change.
    • PriceDataChange

      public PriceDataChange()
  • Method Details

    • setBeforeRecurringPrice

      public void setBeforeRecurringPrice(BigDecimal beforeRecurringPrice)
    • setAfterRecurringPrice

      public void setAfterRecurringPrice(BigDecimal afterRecurringPrice)
    • getId

      public String getId()
      An identifying label for this change. Generally relates back to an idempotent reference for the source of the change. This is a measure to allow repeat execution of the source flow without introducing duplicate price data change records on the subscription, since the equals and hashcode will be influenced by this field.
    • getPriceDataId

      public String getPriceDataId()
      The ID of the price data that is changed
    • getBeforeRecurringPrice

      public BigDecimal getBeforeRecurringPrice()
      The price before the change
    • getAfterRecurringPrice

      public BigDecimal getAfterRecurringPrice()
      The price after the change
    • getPriceChangeEffectiveType

      public String getPriceChangeEffectiveType()
      The descriptor of when the price change should take effect.
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Any additional information related to the price change.
    • setId

      public void setId(String id)
      An identifying label for this change. Generally relates back to an idempotent reference for the source of the change. This is a measure to allow repeat execution of the source flow without introducing duplicate price data change records on the subscription, since the equals and hashcode will be influenced by this field.
    • setPriceDataId

      public void setPriceDataId(String priceDataId)
      The ID of the price data that is changed
    • setPriceChangeEffectiveType

      public void setPriceChangeEffectiveType(String priceChangeEffectiveType)
      The descriptor of when the price change should take effect.
    • setAdditionalProperties

      public void setAdditionalProperties(Map<String,Object> additionalProperties)
      Any additional information related to the price change.
    • 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