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