Interface CartSetBusinessUnitAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Updates the Business Unit on the Cart. The Cart must have an existing Business Unit assigned already.
Example to create an instance using the builder pattern
CartSetBusinessUnitAction cartSetBusinessUnitAction = CartSetBusinessUnitAction.builder()
.businessUnit(businessUnitBuilder -> businessUnitBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetBusinessUnitAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetBusinessUnitActionbuilder
(CartSetBusinessUnitAction template) create builder for CartSetBusinessUnitAction instancestatic CartSetBusinessUnitAction
deepCopy
(CartSetBusinessUnitAction template) factory method to create a deep copy of CartSetBusinessUnitAction@NotNull @Valid BusinessUnitResourceIdentifier
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.static CartSetBusinessUnitAction
of()
factory methodstatic CartSetBusinessUnitAction
of
(CartSetBusinessUnitAction template) factory method to create a shallow copy CartSetBusinessUnitActionvoid
setBusinessUnit
(BusinessUnitResourceIdentifier businessUnit) New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.static com.fasterxml.jackson.core.type.TypeReference<CartSetBusinessUnitAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_BUSINESS_UNIT
discriminator value for CartSetBusinessUnitAction- See Also:
-
-
Method Details
-
getBusinessUnit
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.
- Returns:
- businessUnit
-
setBusinessUnit
New Business Unit to assign to the Cart, which must have access to the Store that is set on the Cart.
- Parameters:
businessUnit
- value to be set
-
of
factory method- Returns:
- instance of CartSetBusinessUnitAction
-
of
factory method to create a shallow copy CartSetBusinessUnitAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartSetBusinessUnitAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetBusinessUnitAction- Returns:
- builder
-
builder
create builder for CartSetBusinessUnitAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetBusinessUnitAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-