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
Constructors -
Method Summary
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
public 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
public int hashCode() -
toString
-