Package com.commercetools.api.models.me
Interface MyCartSetBillingAddressAction
- All Superinterfaces:
MyCartUpdateAction,ResourceUpdateAction<MyCartUpdateAction>
MyCartSetBillingAddressAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetBillingAddressAction myCartSetBillingAddressAction = MyCartSetBillingAddressAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartSetBillingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCartSetBillingAddressActionbuilder(MyCartSetBillingAddressAction template) create builder for MyCartSetBillingAddressAction instancecopyDeep()deepCopy(MyCartSetBillingAddressAction template) factory method to create a deep copy of MyCartSetBillingAddressAction@Valid BaseAddressValue to set.of()factory methodof(MyCartSetBillingAddressAction template) factory method to create a shallow copy MyCartSetBillingAddressActionvoidsetAddress(BaseAddress address) Value to set.static tools.jackson.core.type.TypeReference<MyCartSetBillingAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_BILLING_ADDRESS
discriminator value for MyCartSetBillingAddressAction- See Also:
-
-
Method Details
-
getAddress
Value to set. It replaces the entire address, including Custom Fields if
customis not included. To preserve Custom Fields, include thecustomobject in the request.If omitted, any existing value is removed.
- Returns:
- address
-
setAddress
Value to set. It replaces the entire address, including Custom Fields if
customis not included. To preserve Custom Fields, include thecustomobject in the request.If omitted, any existing value is removed.
- Parameters:
address- value to be set
-
of
factory method- Returns:
- instance of MyCartSetBillingAddressAction
-
of
factory method to create a shallow copy MyCartSetBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCartSetBillingAddressAction copyDeep()- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
deepCopy
@Nullable static MyCartSetBillingAddressAction deepCopy(@Nullable MyCartSetBillingAddressAction template) factory method to create a deep copy of MyCartSetBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartSetBillingAddressAction- Returns:
- builder
-
builder
create builder for MyCartSetBillingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartSetBillingAddressAction
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
-