Class PriceDataChange
java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.PriceDataChange
- All Implemented Interfaces:
Serializable
Structure representing a change to the pricing of the subscription.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPriceDataChange(String id, String priceDataId, BigDecimal beforeRecurringPrice, BigDecimal afterRecurringPrice, String priceChangeEffectiveType, Map<String, Object> additionalProperties) Creates a newPriceDataChangeinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAny additional information related to the price change.The price after the changeThe price before the changegetId()An identifying label for this change.The descriptor of when the price change should take effect.The ID of the price data that is changedinthashCode()voidsetAdditionalProperties(Map<String, Object> additionalProperties) Any additional information related to the price change.voidsetAfterRecurringPrice(BigDecimal afterRecurringPrice) voidsetBeforeRecurringPrice(BigDecimal beforeRecurringPrice) voidAn identifying label for this change.voidsetPriceChangeEffectiveType(String priceChangeEffectiveType) The descriptor of when the price change should take effect.voidsetPriceDataId(String priceDataId) The ID of the price data that is changedtoString()
-
Constructor Details
-
PriceDataChange
public PriceDataChange(String id, String priceDataId, BigDecimal beforeRecurringPrice, BigDecimal afterRecurringPrice, String priceChangeEffectiveType, Map<String, Object> additionalProperties) Creates a newPriceDataChangeinstance.- 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 changedbeforeRecurringPrice- The price before the changeafterRecurringPrice- The price after the changepriceChangeEffectiveType- 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
-
setAfterRecurringPrice
-
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
The ID of the price data that is changed -
getBeforeRecurringPrice
The price before the change -
getAfterRecurringPrice
The price after the change -
getPriceChangeEffectiveType
The descriptor of when the price change should take effect. -
getAdditionalProperties
Any additional information related to the price change. -
setId
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
The ID of the price data that is changed -
setPriceChangeEffectiveType
The descriptor of when the price change should take effect. -
setAdditionalProperties
Any additional information related to the price change. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-