Class CartDiscountChangeRequiresDiscountCodeActionImpl
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountChangeRequiresDiscountCodeActionImpl
- All Implemented Interfaces:
CartDiscountChangeRequiresDiscountCodeAction
,CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartDiscountChangeRequiresDiscountCodeActionImpl
extends Object
implements CartDiscountChangeRequiresDiscountCodeAction, io.vrap.rmf.base.client.ModelBase
CartDiscountChangeRequiresDiscountCodeAction
-
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.CartDiscountChangeRequiresDiscountCodeAction
CHANGE_REQUIRES_DISCOUNT_CODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
New value to set.int
hashCode()
void
setRequiresDiscountCode
(Boolean requiresDiscountCode) 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.CartDiscountChangeRequiresDiscountCodeAction
withCartDiscountChangeRequiresDiscountCodeAction
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
-
CartDiscountChangeRequiresDiscountCodeActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartDiscountUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartDiscountUpdateAction>
- Returns:
- action
-
getRequiresDiscountCode
New value to set. If set to
true
, the Discount can only be used in connection with a DiscountCode.- Specified by:
getRequiresDiscountCode
in interfaceCartDiscountChangeRequiresDiscountCodeAction
- Returns:
- requiresDiscountCode
-
setRequiresDiscountCode
Description copied from interface:CartDiscountChangeRequiresDiscountCodeAction
New value to set. If set to
true
, the Discount can only be used in connection with a DiscountCode.- Specified by:
setRequiresDiscountCode
in interfaceCartDiscountChangeRequiresDiscountCodeAction
- Parameters:
requiresDiscountCode
- value to be set
-
equals
-
hashCode
-