Package com.commercetools.api.models.me
Interface MyBusinessUnitAddBillingAddressIdAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Adding a billing address to a Business Unit generates a BusinessUnitBillingAddressAdded Message.
Example to create an instance using the builder pattern
MyBusinessUnitAddBillingAddressIdAction myBusinessUnitAddBillingAddressIdAction = MyBusinessUnitAddBillingAddressIdAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyBusinessUnitAddBillingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyBusinessUnitAddBillingAddressIdActioncreate builder for MyBusinessUnitAddBillingAddressIdAction instancecopyDeep()factory method to create a deep copy of MyBusinessUnitAddBillingAddressIdActionID of the address to add as a billing address.Key of the address to add as a billing address.of()factory methodof(MyBusinessUnitAddBillingAddressIdAction template) factory method to create a shallow copy MyBusinessUnitAddBillingAddressIdActionvoidsetAddressId(String addressId) ID of the address to add as a billing address.voidsetAddressKey(String addressKey) Key of the address to add as a billing address.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitAddBillingAddressIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyBusinessUnitAddBillingAddressIdAction(Function<MyBusinessUnitAddBillingAddressIdAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
ADD_BILLING_ADDRESS_ID
discriminator value for MyBusinessUnitAddBillingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()ID of the address to add as a billing address. Either
addressIdoraddressKeyis required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the address to add as a billing address. Either
addressIdoraddressKeyis required.- Returns:
- addressKey
-
setAddressId
ID of the address to add as a billing address. Either
addressIdoraddressKeyis required.- Parameters:
addressId- value to be set
-
setAddressKey
Key of the address to add as a billing address. Either
addressIdoraddressKeyis required.- Parameters:
addressKey- value to be set
-
of
factory method- Returns:
- instance of MyBusinessUnitAddBillingAddressIdAction
-
of
factory method to create a shallow copy MyBusinessUnitAddBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyBusinessUnitAddBillingAddressIdAction copyDeep()- Specified by:
copyDeepin interfaceMyBusinessUnitUpdateAction
-
deepCopy
@Nullable static MyBusinessUnitAddBillingAddressIdAction deepCopy(@Nullable MyBusinessUnitAddBillingAddressIdAction template) factory method to create a deep copy of MyBusinessUnitAddBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitAddBillingAddressIdAction- Returns:
- builder
-
builder
static MyBusinessUnitAddBillingAddressIdActionBuilder builder(MyBusinessUnitAddBillingAddressIdAction template) create builder for MyBusinessUnitAddBillingAddressIdAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitAddBillingAddressIdAction
default <T> T withMyBusinessUnitAddBillingAddressIdAction(Function<MyBusinessUnitAddBillingAddressIdAction, 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<MyBusinessUnitAddBillingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-