Class CartSetShippingAddressActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetShippingAddressActionImpl
- All Implemented Interfaces:
CartSetShippingAddressAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetShippingAddressActionImpl
extends Object
implements CartSetShippingAddressAction, 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.cart.CartSetShippingAddressAction
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 com.commercetools.api.models.cart.CartSetShippingAddressAction
withCartSetShippingAddressAction
Methods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
withCartUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartSetShippingAddressActionImpl
public CartSetShippingAddressActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getAddress
Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items of the Cart.- Specified by:
getAddress
in interfaceCartSetShippingAddressAction
- Returns:
- address
-
setAddress
Description copied from interface:CartSetShippingAddressAction
Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items of the Cart.- Specified by:
setAddress
in interfaceCartSetShippingAddressAction
- Parameters:
address
- value to be set
-
equals
-
hashCode
public int hashCode()
-