Class ProductDiscountValueRelativeImpl
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountValueRelativeImpl
- All Implemented Interfaces:
ProductDiscountValue
,ProductDiscountValueRelative
,io.vrap.rmf.base.client.ModelBase
public class ProductDiscountValueRelativeImpl
extends Object
implements ProductDiscountValueRelative, io.vrap.rmf.base.client.ModelBase
Discounts the product price by a percentage, defined by the permyriad
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.ProductDiscountValueRelative
RELATIVE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Fraction (per ten thousand) the price is reduced by.getType()
int
hashCode()
void
setPermyriad
(Long permyriad) Fraction (per ten thousand) the price is reduced by.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
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.ProductDiscountValueRelative
withProductDiscountValueRelative
-
Constructor Details
-
ProductDiscountValueRelativeImpl
public ProductDiscountValueRelativeImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceProductDiscountValue
- Returns:
- type
-
getPermyriad
Fraction (per ten thousand) the price is reduced by. For example,
1000
will result in a 10% price reduction.- Specified by:
getPermyriad
in interfaceProductDiscountValueRelative
- Returns:
- permyriad
-
setPermyriad
Description copied from interface:ProductDiscountValueRelative
Fraction (per ten thousand) the price is reduced by. For example,
1000
will result in a 10% price reduction.- Specified by:
setPermyriad
in interfaceProductDiscountValueRelative
- Parameters:
permyriad
- value to be set
-
equals
-
hashCode
-