Class CartSetCustomerGroupActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetCustomerGroupActionImpl
- All Implemented Interfaces:
CartSetCustomerGroupAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetCustomerGroupActionImpl
extends Object
implements CartSetCustomerGroupAction, io.vrap.rmf.base.client.ModelBase
This update action can only be used if a Customer is not assigned to a Cart. If a Customer is already assigned, the Cart has the same Customer Group as the assigned Customer.
Setting the Customer Group also updates the LineItem prices
according to the Customer Group.
-
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.CartSetCustomerGroupAction
SET_CUSTOMER_GROUP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.int
hashCode()
void
setCustomerGroup
(CustomerGroupResourceIdentifier customerGroup) 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.CartSetCustomerGroupAction
withCartSetCustomerGroupAction
Methods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
withCartUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartSetCustomerGroupActionImpl
public CartSetCustomerGroupActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getCustomerGroup
Value to set. If empty, any existing value is removed.
- Specified by:
getCustomerGroup
in interfaceCartSetCustomerGroupAction
- Returns:
- customerGroup
-
setCustomerGroup
Description copied from interface:CartSetCustomerGroupAction
Value to set. If empty, any existing value is removed.
- Specified by:
setCustomerGroup
in interfaceCartSetCustomerGroupAction
- Parameters:
customerGroup
- value to be set
-
equals
-
hashCode
-