Class PriceDataChange

java.lang.Object
com.broadleafcommerce.subscription.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()
  • Method Details

    • convert

      public Object convert(org.modelmapper.spi.MappingContext<?,?> context)
    • 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.
      See Also:
    • 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
    • setBeforeRecurringPrice

      public void setBeforeRecurringPrice(BigDecimal beforeRecurringPrice)
      The price before the change
    • setAfterRecurringPrice

      public void setAfterRecurringPrice(BigDecimal afterRecurringPrice)
      The price after the change
    • setPriceChangeEffectiveType

      public void setPriceChangeEffectiveType(String priceChangeEffectiveType)
      The descriptor of when the price change should take effect.
      See Also:
    • 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