Package com.commercetools.api.models.me
Class MyCartSetShippingAddressActionImpl
java.lang.Object
com.commercetools.api.models.me.MyCartSetShippingAddressActionImpl
- All Implemented Interfaces:
MyCartSetShippingAddressAction
,MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyCartSetShippingAddressActionImpl
extends Object
implements MyCartSetShippingAddressAction, io.vrap.rmf.base.client.ModelBase
Setting the shipping address also sets the TaxRate of Line Items and calculates the TaxedPrice.
If a matching price cannot be found for the given shipping address during Line Item Price selection, a MissingTaxRateForCountry error is returned.
If you want to allow shipping to states inside a country that are not explicitly covered by a TaxRate, set the countryTaxRateFallbackEnabled
field to true
in the CartsConfiguration by using the Change CountryTaxRateFallbackEnabled update action.
-
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.MyCartSetShippingAddressAction
SET_SHIPPING_ADDRESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.int
hashCode()
void
setAddress
(BaseAddress address) Value to set.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.MyCartSetShippingAddressAction
withMyCartSetShippingAddressAction
Methods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyCartSetShippingAddressActionImpl
public MyCartSetShippingAddressActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceMyCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyCartUpdateAction>
- Returns:
- action
-
getAddress
Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items.- Specified by:
getAddress
in interfaceMyCartSetShippingAddressAction
- Returns:
- address
-
setAddress
Description copied from interface:MyCartSetShippingAddressAction
Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items.- Specified by:
setAddress
in interfaceMyCartSetShippingAddressAction
- Parameters:
address
- value to be set
-
equals
-
hashCode
public int hashCode()
-