Package com.commercetools.api.models.me
Class MyCustomerSetDefaultBillingAddressActionImpl
java.lang.Object
com.commercetools.api.models.me.MyCustomerSetDefaultBillingAddressActionImpl
- All Implemented Interfaces:
MyCustomerSetDefaultBillingAddressAction
,MyCustomerUpdateAction
,ResourceUpdateAction<MyCustomerUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyCustomerSetDefaultBillingAddressActionImpl
extends Object
implements MyCustomerSetDefaultBillingAddressAction, io.vrap.rmf.base.client.ModelBase
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.
-
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.me.MyCustomerSetDefaultBillingAddressAction
SET_DEFAULT_BILLING_ADDRESS
-
Constructor Summary
Constructors -
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 io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.me.MyCustomerSetDefaultBillingAddressAction
withMyCustomerSetDefaultBillingAddressAction
Methods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
withMyCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyCustomerSetDefaultBillingAddressActionImpl
public MyCustomerSetDefaultBillingAddressActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceMyCustomerUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyCustomerUpdateAction>
- Returns:
- action
-
getAddressId
id
of the Address to become the default billing address.- Specified by:
getAddressId
in interfaceMyCustomerSetDefaultBillingAddressAction
- Returns:
- addressId
-
getAddressKey
key
of the Address to become the default billing address.- Specified by:
getAddressKey
in interfaceMyCustomerSetDefaultBillingAddressAction
- Returns:
- addressKey
-
setAddressId
Description copied from interface:MyCustomerSetDefaultBillingAddressAction
id
of the Address to become the default billing address.- Specified by:
setAddressId
in interfaceMyCustomerSetDefaultBillingAddressAction
- Parameters:
addressId
- value to be set
-
setAddressKey
Description copied from interface:MyCustomerSetDefaultBillingAddressAction
key
of the Address to become the default billing address.- Specified by:
setAddressKey
in interfaceMyCustomerSetDefaultBillingAddressAction
- Parameters:
addressKey
- value to be set
-
equals
-
hashCode
public int hashCode()
-