Interface CartSetCustomTypeAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartSetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetCustomTypeAction cartSetCustomTypeAction = CartSetCustomTypeAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetCustomTypeActionbuilder
(CartSetCustomTypeAction template) create builder for CartSetCustomTypeAction instancestatic CartSetCustomTypeAction
deepCopy
(CartSetCustomTypeAction template) factory method to create a deep copy of CartSetCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for the Cart.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the Cart with Custom Fields.static CartSetCustomTypeAction
of()
factory methodstatic CartSetCustomTypeAction
of
(CartSetCustomTypeAction template) factory method to create a shallow copy CartSetCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for the Cart.void
Defines the Type that extends the Cart with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<CartSetCustomTypeAction>
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_CUSTOM_TYPE
discriminator value for CartSetCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the Cart with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Cart.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Cart.
- Returns:
- fields
-
setType
Defines the Type that extends the Cart with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Cart.
- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields fields for the Cart.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of CartSetCustomTypeAction
-
of
factory method to create a shallow copy CartSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetCustomTypeAction- Returns:
- builder
-
builder
create builder for CartSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetCustomTypeAction
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
-