Class CartSetCustomerIdActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetCustomerIdActionImpl
- All Implemented Interfaces:
CartSetCustomerIdAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetCustomerIdActionImpl
extends Object
implements CartSetCustomerIdAction, io.vrap.rmf.base.client.ModelBase
Setting the Cart's customerId
can lead to updates on all its LineItem prices
.
If the Customer with the specified id
cannot be found, this update action returns a ReferencedResourceNotFound error.
-
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.CartSetCustomerIdAction
SET_CUSTOMER_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of an existing Customer.int
hashCode()
void
setCustomerId
(String customerId) id
of an existing Customer.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartSetCustomerIdAction
withCartSetCustomerIdAction
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
-
CartSetCustomerIdActionImpl
public CartSetCustomerIdActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getCustomerId
id
of an existing Customer. If empty, any value is removed.- Specified by:
getCustomerId
in interfaceCartSetCustomerIdAction
- Returns:
- customerId
-
setCustomerId
Description copied from interface:CartSetCustomerIdAction
id
of an existing Customer. If empty, any value is removed.- Specified by:
setCustomerId
in interfaceCartSetCustomerIdAction
- Parameters:
customerId
- value to be set
-
equals
-
hashCode
-