Class SubscriptionItemAdjustment
java.lang.Object
com.broadleafcommerce.orderoperation.domain.subscription.SubscriptionItemAdjustment
- All Implemented Interfaces:
Serializable
This represents a line item price adjustment for a
Subscription.- Since:
- Order Operation Service 2.2.0, Release Train 2.3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanReturn any additional attributes passed in the request not matching any defined properties.Amount of the price adjustmentReference to the promotion or offer that drives this adjustmentMiscellaneous attributes for this subscription item adjustment.Number of the billing period this adjustment starts being activeNumber of the billing period this adjustment stops.getId()Type of adjustment that this addsReference to theSubscriptionItemwhose price this adjustsinthashCode()voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetAdjustmentAmount(BigDecimal adjustmentAmount) Amount of the price adjustmentvoidsetAdjustmentRef(String adjustmentRef) Reference to the promotion or offer that drives this adjustmentvoidsetAttributes(Map<String, Object> attributes) Miscellaneous attributes for this subscription item adjustment.voidsetBeginPeriod(Integer beginPeriod) Number of the billing period this adjustment starts being activevoidsetEndPeriod(Integer endPeriod) Number of the billing period this adjustment stops.voidvoidsetSubscriptionAdjustmentType(String subscriptionAdjustmentType) Type of adjustment that this addsvoidsetSubscriptionItemId(String subscriptionItemId) Reference to theSubscriptionItemwhose price this adjuststoString()
-
Constructor Details
-
SubscriptionItemAdjustment
public SubscriptionItemAdjustment()
-
-
Method Details
-
addAdditionalAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name- Name of the additional attributevalue- Value of the additional attribute
-
getAdditionalAttributes
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getId
-
getSubscriptionItemId
Reference to theSubscriptionItemwhose price this adjusts -
getAdjustmentRef
Reference to the promotion or offer that drives this adjustment -
getSubscriptionAdjustmentType
Type of adjustment that this adds- See Also:
-
getAdjustmentAmount
Amount of the price adjustment -
getBeginPeriod
Number of the billing period this adjustment starts being active -
getEndPeriod
Number of the billing period this adjustment stops. If this field is null, the adjustment is considered indefinite -
getAttributes
Miscellaneous attributes for this subscription item adjustment. -
setId
-
setSubscriptionItemId
Reference to theSubscriptionItemwhose price this adjusts -
setAdjustmentRef
Reference to the promotion or offer that drives this adjustment -
setSubscriptionAdjustmentType
Type of adjustment that this adds- See Also:
-
setAdjustmentAmount
Amount of the price adjustment -
setBeginPeriod
Number of the billing period this adjustment starts being active -
setEndPeriod
Number of the billing period this adjustment stops. If this field is null, the adjustment is considered indefinite -
setAttributes
Miscellaneous attributes for this subscription item adjustment. -
setAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-