Interface BusinessUnitSetDefaultBillingAddressAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Setting the default billing address on a Business Unit generates the BusinessUnitDefaultBillingAddressSet Message.
Example to create an instance using the builder pattern
BusinessUnitSetDefaultBillingAddressAction businessUnitSetDefaultBillingAddressAction = BusinessUnitSetDefaultBillingAddressAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitSetDefaultBillingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitSetDefaultBillingAddressActioncreate builder for BusinessUnitSetDefaultBillingAddressAction instancefactory method to create a deep copy of BusinessUnitSetDefaultBillingAddressActionID of the address to add as a billing address.Key of the address to add as a billing address.of()
factory methodof
(BusinessUnitSetDefaultBillingAddressAction template) factory method to create a shallow copy BusinessUnitSetDefaultBillingAddressActionvoid
setAddressId
(String addressId) ID of the address to add as a billing address.void
setAddressKey
(String addressKey) Key of the address to add as a billing address.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetDefaultBillingAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitSetDefaultBillingAddressAction
(Function<BusinessUnitSetDefaultBillingAddressAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DEFAULT_BILLING_ADDRESS
discriminator value for BusinessUnitSetDefaultBillingAddressAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()ID of the address to add as a billing address. Either
addressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the address to add as a billing address. Either
addressId
oraddressKey
is required.- Returns:
- addressKey
-
setAddressId
ID of the address to add as a billing address. Either
addressId
oraddressKey
is required.- Parameters:
addressId
- value to be set
-
setAddressKey
Key of the address to add as a billing address. Either
addressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitSetDefaultBillingAddressAction
-
of
static BusinessUnitSetDefaultBillingAddressAction of(BusinessUnitSetDefaultBillingAddressAction template) factory method to create a shallow copy BusinessUnitSetDefaultBillingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitSetDefaultBillingAddressAction deepCopy(@Nullable BusinessUnitSetDefaultBillingAddressAction template) factory method to create a deep copy of BusinessUnitSetDefaultBillingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitSetDefaultBillingAddressAction- Returns:
- builder
-
builder
static BusinessUnitSetDefaultBillingAddressActionBuilder builder(BusinessUnitSetDefaultBillingAddressAction template) create builder for BusinessUnitSetDefaultBillingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitSetDefaultBillingAddressAction
default <T> T withBusinessUnitSetDefaultBillingAddressAction(Function<BusinessUnitSetDefaultBillingAddressAction, 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<BusinessUnitSetDefaultBillingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-