Class CustomerSetDefaultShippingAddressActionImpl
java.lang.Object
com.commercetools.api.models.customer.CustomerSetDefaultShippingAddressActionImpl
- All Implemented Interfaces:
CustomerSetDefaultShippingAddressAction
,CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CustomerSetDefaultShippingAddressActionImpl
extends Object
implements CustomerSetDefaultShippingAddressAction, io.vrap.rmf.base.client.ModelBase
Sets the default shipping address from addresses
. The action adds the id
of the specified address to the shippingAddressIds
if not contained already. Either addressId
or addressKey
is required.
If the Tax Category of the Cart ShippingInfo is missing the TaxRate matching country and state given in the shippingAddress
of that Cart, a MissingTaxRateForCountry error is returned.
-
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.CustomerSetDefaultShippingAddressAction
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 com.commercetools.api.models.customer.CustomerSetDefaultShippingAddressAction
withCustomerSetDefaultShippingAddressAction
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
-
CustomerSetDefaultShippingAddressActionImpl
public CustomerSetDefaultShippingAddressActionImpl()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 shipping address.- Specified by:
getAddressId
in interfaceCustomerSetDefaultShippingAddressAction
- Returns:
- addressId
-
getAddressKey
key
of the Address to become the default shipping address.- Specified by:
getAddressKey
in interfaceCustomerSetDefaultShippingAddressAction
- Returns:
- addressKey
-
setAddressId
Description copied from interface:CustomerSetDefaultShippingAddressAction
id
of the Address to become the default shipping address.- Specified by:
setAddressId
in interfaceCustomerSetDefaultShippingAddressAction
- Parameters:
addressId
- value to be set
-
setAddressKey
Description copied from interface:CustomerSetDefaultShippingAddressAction
key
of the Address to become the default shipping address.- Specified by:
setAddressKey
in interfaceCustomerSetDefaultShippingAddressAction
- Parameters:
addressKey
- value to be set
-
equals
-
hashCode
public int hashCode()
-