Package com.commercetools.api.models.me
Class MyCartSetBusinessUnitActionImpl
java.lang.Object
com.commercetools.api.models.me.MyCartSetBusinessUnitActionImpl
- All Implemented Interfaces:
MyCartSetBusinessUnitAction
,MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyCartSetBusinessUnitActionImpl
extends Object
implements MyCartSetBusinessUnitAction, io.vrap.rmf.base.client.ModelBase
Updates the Business Unit on the Cart. The Cart must have an existing Business Unit assigned already.
-
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.me.MyCartSetBusinessUnitAction
SET_BUSINESS_UNIT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.int
hashCode()
void
setBusinessUnit
(BusinessUnitResourceIdentifier businessUnit) New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.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.me.MyCartSetBusinessUnitAction
withMyCartSetBusinessUnitAction
Methods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyCartSetBusinessUnitActionImpl
public MyCartSetBusinessUnitActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceMyCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyCartUpdateAction>
- Returns:
- action
-
getBusinessUnit
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart. Additionally, the authenticated user must be an Associate in the Business Unit.
- Specified by:
getBusinessUnit
in interfaceMyCartSetBusinessUnitAction
- Returns:
- businessUnit
-
setBusinessUnit
Description copied from interface:MyCartSetBusinessUnitAction
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart. Additionally, the authenticated user must be an Associate in the Business Unit.
- Specified by:
setBusinessUnit
in interfaceMyCartSetBusinessUnitAction
- Parameters:
businessUnit
- value to be set
-
equals
-
hashCode
-