Class SubscriptionAdjustment
java.lang.Object
com.broadleafcommerce.orderoperation.domain.subscription.SubscriptionAdjustment
- All Implemented Interfaces:
Serializable
This is a representation of a 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 TypeMethodDescriptionvoidaddAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanAmount of this adjustmentReference to the promotion or offer that drives this adjustmentReturn any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.Number of the billing period this adjustment starts being activeNumber of the billing period this adjustment stops.getId()Type of this adjustmentReference to theSubscriptionwhose price this adjustsinthashCode()voidsetAdjustmentAmount(BigDecimal adjustmentAmount) Amount of this adjustmentvoidsetAdjustmentRef(String adjustmentRef) Reference to the promotion or offer that drives this adjustmentvoidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.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 this adjustmentvoidsetSubscriptionId(String subscriptionId) Reference to theSubscriptionwhose price this adjuststoString()
-
Constructor Details
-
SubscriptionAdjustment
public SubscriptionAdjustment()
-
-
Method Details
-
addAttribute
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
-
getAttribute
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
-
getSubscriptionId
Reference to theSubscriptionwhose price this adjusts -
getAdjustmentRef
Reference to the promotion or offer that drives this adjustment -
getSubscriptionAdjustmentType
Type of this adjustment- See Also:
-
getAdjustmentAmount
Amount of this 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
Map holding any additional attributes passed in the request not matching any defined properties. -
setId
-
setSubscriptionId
Reference to theSubscriptionwhose price this adjusts -
setAdjustmentRef
Reference to the promotion or offer that drives this adjustment -
setSubscriptionAdjustmentType
Type of this adjustment- See Also:
-
setAdjustmentAmount
Amount of this 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
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-