Class ProductDiscountValueAbsoluteImpl
- All Implemented Interfaces:
ProductDiscountValue
,ProductDiscountValueAbsolute
,io.vrap.rmf.base.client.ModelBase
Discounts the Product's Price by a fixed amount, defined by the money
field.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.product_discount.ProductDiscountValueAbsolute
ABSOLUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getMoney()
Money values in different currencies.getType()
int
hashCode()
void
setMoney
(CentPrecisionMoney... money) Money values in different currencies.void
setMoney
(List<CentPrecisionMoney> money) Money values in different currencies.toString()
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountValue
withProductDiscountValue
Methods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountValueAbsolute
withProductDiscountValueAbsolute
-
Constructor Details
-
ProductDiscountValueAbsoluteImpl
public ProductDiscountValueAbsoluteImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceProductDiscountValue
- Returns:
- type
-
getMoney
Money values in different currencies. An absolute ProductDiscount will only match a price if this array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.
- Specified by:
getMoney
in interfaceProductDiscountValueAbsolute
- Returns:
- money
-
setMoney
Description copied from interface:ProductDiscountValueAbsolute
Money values in different currencies. An absolute ProductDiscount will only match a price if this array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.
- Specified by:
setMoney
in interfaceProductDiscountValueAbsolute
- Parameters:
money
- values to be set
-
setMoney
Description copied from interface:ProductDiscountValueAbsolute
Money values in different currencies. An absolute ProductDiscount will only match a price if this array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.
- Specified by:
setMoney
in interfaceProductDiscountValueAbsolute
- Parameters:
money
- values to be set
-
equals
-
hashCode
public int hashCode() -
toString
-