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