Class CartDiscountValueRelativeImpl
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountValueRelativeImpl
- All Implemented Interfaces:
CartDiscountValue
,CartDiscountValueMixin
,CartDiscountValueRelative
,CartDiscountValueRelativeMixin
,GenericCartDiscountValueMixin<CartDiscountValueRelativeDraft>
,io.vrap.rmf.base.client.ModelBase
public class CartDiscountValueRelativeImpl
extends Object
implements CartDiscountValueRelative, io.vrap.rmf.base.client.ModelBase
Discounts the CartDiscountTarget relative to its price.
-
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.cart_discount.CartDiscountValueRelative
RELATIVE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValue
withCartDiscountValue
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValueRelative
withCartDiscountValueRelative
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountValueRelativeMixin
toDraft, toDraftBuilder
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CartDiscountValueRelativeImpl
public CartDiscountValueRelativeImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceCartDiscountValue
- 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 interfaceCartDiscountValueRelative
- Specified by:
getPermyriad
in interfaceCartDiscountValueRelativeMixin
- Returns:
- permyriad
-
setPermyriad
Description copied from interface:CartDiscountValueRelative
Fraction (per ten thousand) the price is reduced by. For example,
1000
will result in a 10% price reduction.- Specified by:
setPermyriad
in interfaceCartDiscountValueRelative
- Parameters:
permyriad
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-