Package com.commercetools.api.models.me
Class MyCustomerSetDefaultShippingAddressActionImpl
java.lang.Object
com.commercetools.api.models.me.MyCustomerSetDefaultShippingAddressActionImpl
- All Implemented Interfaces:
MyCustomerSetDefaultShippingAddressAction
,MyCustomerUpdateAction
,ResourceUpdateAction<MyCustomerUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyCustomerSetDefaultShippingAddressActionImpl
extends Object
implements MyCustomerSetDefaultShippingAddressAction, io.vrap.rmf.base.client.ModelBase
Sets the default shipping address from addresses
. If the address is not currently a shipping address, it is added to shippingAddressIds
. 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.MyCustomerSetDefaultShippingAddressAction
SET_DEFAULT_SHIPPING_ADDRESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of the Address to become the default shipping address.key
of the Address to become the default shipping address.int
hashCode()
void
setAddressId
(String addressId) id
of the Address to become the default shipping address.void
setAddressKey
(String addressKey) key
of the Address to become the default shipping 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.MyCustomerSetDefaultShippingAddressAction
withMyCustomerSetDefaultShippingAddressAction
Methods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
withMyCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyCustomerSetDefaultShippingAddressActionImpl
public MyCustomerSetDefaultShippingAddressActionImpl()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 shipping address.- Specified by:
getAddressId
in interfaceMyCustomerSetDefaultShippingAddressAction
- Returns:
- addressId
-
getAddressKey
key
of the Address to become the default shipping address.- Specified by:
getAddressKey
in interfaceMyCustomerSetDefaultShippingAddressAction
- Returns:
- addressKey
-
setAddressId
Description copied from interface:MyCustomerSetDefaultShippingAddressAction
id
of the Address to become the default shipping address.- Specified by:
setAddressId
in interfaceMyCustomerSetDefaultShippingAddressAction
- Parameters:
addressId
- value to be set
-
setAddressKey
Description copied from interface:MyCustomerSetDefaultShippingAddressAction
key
of the Address to become the default shipping address.- Specified by:
setAddressKey
in interfaceMyCustomerSetDefaultShippingAddressAction
- Parameters:
addressKey
- value to be set
-
equals
-
hashCode
public int hashCode()
-