Class CartDiscountChangeValueActionImpl
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountChangeValueActionImpl
- All Implemented Interfaces:
CartDiscountChangeValueAction
,CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartDiscountChangeValueActionImpl
extends Object
implements CartDiscountChangeValueAction, io.vrap.rmf.base.client.ModelBase
Changes the CartDiscountValue for relative, absolute and fixed price CartDiscounts. Changing to Gift Line Item is not supported.
-
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.CartDiscountChangeValueAction
CHANGE_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
New value to set.int
hashCode()
void
setValue
(CartDiscountValueDraft value) New value to set.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountChangeValueAction
withCartDiscountChangeValueAction
Methods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
withCartDiscountUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartDiscountChangeValueActionImpl
public CartDiscountChangeValueActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartDiscountUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartDiscountUpdateAction>
- Returns:
- action
-
getValue
New value to set. When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
- Specified by:
getValue
in interfaceCartDiscountChangeValueAction
- Returns:
- value
-
setValue
Description copied from interface:CartDiscountChangeValueAction
New value to set. When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
- Specified by:
setValue
in interfaceCartDiscountChangeValueAction
- Parameters:
value
- value to be set
-
equals
-
hashCode
public int hashCode()
-