Class CustomerSetDefaultBillingAddressActionImpl
java.lang.Object
com.commercetools.api.models.customer.CustomerSetDefaultBillingAddressActionImpl
- All Implemented Interfaces:
CustomerSetDefaultBillingAddressAction
,CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CustomerSetDefaultBillingAddressActionImpl
extends Object
implements CustomerSetDefaultBillingAddressAction, io.vrap.rmf.base.client.ModelBase
Sets the default billing address from addresses
. The action adds the id
of the specified Address to the billingAddressIds
if not contained already. Either addressId
or addressKey
is required.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.customer.CustomerSetDefaultBillingAddressAction
SET_DEFAULT_BILLING_ADDRESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of the Address to become the default billing address.key
of the Address to become the default billing address.int
hashCode()
void
setAddressId
(String addressId) id
of the Address to become the default billing address.void
setAddressKey
(String addressKey) key
of the Address to become the default billing address.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.customer.CustomerSetDefaultBillingAddressAction
withCustomerSetDefaultBillingAddressAction
Methods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
withCustomerUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CustomerSetDefaultBillingAddressActionImpl
public CustomerSetDefaultBillingAddressActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCustomerUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CustomerUpdateAction>
- Returns:
- action
-
getAddressId
id
of the Address to become the default billing address.- Specified by:
getAddressId
in interfaceCustomerSetDefaultBillingAddressAction
- Returns:
- addressId
-
getAddressKey
key
of the Address to become the default billing address.- Specified by:
getAddressKey
in interfaceCustomerSetDefaultBillingAddressAction
- Returns:
- addressKey
-
setAddressId
Description copied from interface:CustomerSetDefaultBillingAddressAction
id
of the Address to become the default billing address.- Specified by:
setAddressId
in interfaceCustomerSetDefaultBillingAddressAction
- Parameters:
addressId
- value to be set
-
setAddressKey
Description copied from interface:CustomerSetDefaultBillingAddressAction
key
of the Address to become the default billing address.- Specified by:
setAddressKey
in interfaceCustomerSetDefaultBillingAddressAction
- Parameters:
addressKey
- value to be set
-
equals
-
hashCode
public int hashCode()
-