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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetBillingAddressCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetBillingAddressCustomTypeActionbuilder(CartSetBillingAddressCustomTypeAction template) create builder for CartSetBillingAddressCustomTypeAction instancecopyDeep()factory method to create a deep copy of CartSetBillingAddressCustomTypeAction@Valid FieldContainerSets the Custom Fields fields for thebillingAddress.@Valid TypeResourceIdentifiergetType()of()factory methodof(CartSetBillingAddressCustomTypeAction template) factory method to create a shallow copy CartSetBillingAddressCustomTypeActionvoidsetFields(FieldContainer fields) Sets the Custom Fields fields for thebillingAddress.voidstatic com.fasterxml.jackson.core.type.TypeReference<CartSetBillingAddressCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods 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
billingAddresswith 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
billingAddresswith 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
-
copyDeep
CartSetBillingAddressCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
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
-