Package com.commercetools.api.models.me
Interface MyCustomerSetDefaultBillingAddressAction
- All Superinterfaces:
MyCustomerUpdateAction,ResourceUpdateAction<MyCustomerUpdateAction>
Sets the default billing address from addresses. If the address is not currently a billing address, it is added to billingAddressIds. Either addressId or addressKey is required.
Example to create an instance using the builder pattern
MyCustomerSetDefaultBillingAddressAction myCustomerSetDefaultBillingAddressAction = MyCustomerSetDefaultBillingAddressAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCustomerSetDefaultBillingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCustomerSetDefaultBillingAddressActioncreate builder for MyCustomerSetDefaultBillingAddressAction instancecopyDeep()factory method to create a deep copy of MyCustomerSetDefaultBillingAddressActionidof the Address to become the default billing address.keyof the Address to become the default billing address.of()factory methodof(MyCustomerSetDefaultBillingAddressAction template) factory method to create a shallow copy MyCustomerSetDefaultBillingAddressActionvoidsetAddressId(String addressId) idof the Address to become the default billing address.voidsetAddressKey(String addressKey) keyof the Address to become the default billing address.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerSetDefaultBillingAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyCustomerSetDefaultBillingAddressAction(Function<MyCustomerSetDefaultBillingAddressAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
getAction, withMyCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DEFAULT_BILLING_ADDRESS
discriminator value for MyCustomerSetDefaultBillingAddressAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()idof the Address to become the default billing address.- Returns:
- addressId
-
getAddressKey
String getAddressKey()keyof the Address to become the default billing address.- Returns:
- addressKey
-
setAddressId
idof the Address to become the default billing address.- Parameters:
addressId- value to be set
-
setAddressKey
keyof the Address to become the default billing address.- Parameters:
addressKey- value to be set
-
of
factory method- Returns:
- instance of MyCustomerSetDefaultBillingAddressAction
-
of
static MyCustomerSetDefaultBillingAddressAction of(MyCustomerSetDefaultBillingAddressAction template) factory method to create a shallow copy MyCustomerSetDefaultBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCustomerSetDefaultBillingAddressAction copyDeep()- Specified by:
copyDeepin interfaceMyCustomerUpdateAction
-
deepCopy
@Nullable static MyCustomerSetDefaultBillingAddressAction deepCopy(@Nullable MyCustomerSetDefaultBillingAddressAction template) factory method to create a deep copy of MyCustomerSetDefaultBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerSetDefaultBillingAddressAction- Returns:
- builder
-
builder
static MyCustomerSetDefaultBillingAddressActionBuilder builder(MyCustomerSetDefaultBillingAddressAction template) create builder for MyCustomerSetDefaultBillingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerSetDefaultBillingAddressAction
default <T> T withMyCustomerSetDefaultBillingAddressAction(Function<MyCustomerSetDefaultBillingAddressAction, 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<MyCustomerSetDefaultBillingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-