Class ProductDiscountValueRelativeDraftImpl
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountValueRelativeDraftImpl
- All Implemented Interfaces:
ProductDiscountValueDraft
,ProductDiscountValueRelativeDraft
,io.vrap.rmf.base.client.Draft<ProductDiscountValueRelativeDraft>
,io.vrap.rmf.base.client.ModelBase
public class ProductDiscountValueRelativeDraftImpl
extends Object
implements ProductDiscountValueRelativeDraft, 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.ProductDiscountValueRelativeDraft
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.ProductDiscountValueDraft
withProductDiscountValueDraft
Methods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountValueRelativeDraft
withProductDiscountValueRelativeDraft
-
Constructor Details
-
ProductDiscountValueRelativeDraftImpl
create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceProductDiscountValueDraft
- 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 interfaceProductDiscountValueRelativeDraft
- Returns:
- permyriad
-
setPermyriad
Description copied from interface:ProductDiscountValueRelativeDraft
Fraction (per ten thousand) the price is reduced by. For example,
1000
will result in a 10% price reduction.- Specified by:
setPermyriad
in interfaceProductDiscountValueRelativeDraft
- Parameters:
permyriad
- value to be set
-
equals
-
hashCode
-