Interface CartSetShippingAddressCustomTypeAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartSetShippingAddressCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetShippingAddressCustomTypeAction cartSetShippingAddressCustomTypeAction = CartSetShippingAddressCustomTypeAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetShippingAddressCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetShippingAddressCustomTypeActioncreate builder for CartSetShippingAddressCustomTypeAction instancefactory method to create a deep copy of CartSetShippingAddressCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for theshippingAddress
.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends theshippingAddress
with Custom Fields.of()
factory methodof
(CartSetShippingAddressCustomTypeAction template) factory method to create a shallow copy CartSetShippingAddressCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for theshippingAddress
.void
Defines the Type that extends theshippingAddress
with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<CartSetShippingAddressCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartSetShippingAddressCustomTypeAction
(Function<CartSetShippingAddressCustomTypeAction, T> helper) 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_SHIPPING_ADDRESS_CUSTOM_TYPE
discriminator value for CartSetShippingAddressCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the
shippingAddress
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theshippingAddress
.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
shippingAddress
.- Returns:
- fields
-
setType
Defines the Type that extends the
shippingAddress
with Custom Fields. If absent, any existing Type and Custom Fields are removed from theshippingAddress
.- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields fields for the
shippingAddress
.- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of CartSetShippingAddressCustomTypeAction
-
of
factory method to create a shallow copy CartSetShippingAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetShippingAddressCustomTypeAction deepCopy(@Nullable CartSetShippingAddressCustomTypeAction template) factory method to create a deep copy of CartSetShippingAddressCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetShippingAddressCustomTypeAction- Returns:
- builder
-
builder
static CartSetShippingAddressCustomTypeActionBuilder builder(CartSetShippingAddressCustomTypeAction template) create builder for CartSetShippingAddressCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetShippingAddressCustomTypeAction
default <T> T withCartSetShippingAddressCustomTypeAction(Function<CartSetShippingAddressCustomTypeAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CartSetShippingAddressCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-