Class StagedOrderSetCustomerGroupActionImpl
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetCustomerGroupActionImpl
- All Implemented Interfaces:
StagedOrderSetCustomerGroupAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class StagedOrderSetCustomerGroupActionImpl
extends Object
implements StagedOrderSetCustomerGroupAction, 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.order_edit.StagedOrderSetCustomerGroupAction
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 io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order_edit.StagedOrderSetCustomerGroupAction
withStagedOrderSetCustomerGroupAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderSetCustomerGroupActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getCustomerGroup
Value to set. If empty, any existing value is removed.
- Specified by:
getCustomerGroup
in interfaceStagedOrderSetCustomerGroupAction
- Returns:
- customerGroup
-
setCustomerGroup
Description copied from interface:StagedOrderSetCustomerGroupAction
Value to set. If empty, any existing value is removed.
- Specified by:
setCustomerGroup
in interfaceStagedOrderSetCustomerGroupAction
- Parameters:
customerGroup
- value to be set
-
equals
-
hashCode
-