Class CartSetShippingMethodTaxRateActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetShippingMethodTaxRateActionImpl
- All Implemented Interfaces:
CartSetShippingMethodTaxRateAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetShippingMethodTaxRateActionImpl
extends Object
implements CartSetShippingMethodTaxRateAction, io.vrap.rmf.base.client.ModelBase
A Shipping Method Tax Rate can be set if the Cart has the External
TaxMode.
-
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.CartSetShippingMethodTaxRateAction
SET_SHIPPING_METHOD_TAX_RATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.key
of the ShippingMethod to update.int
hashCode()
void
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Value to set.void
setShippingKey
(String shippingKey) key
of the ShippingMethod to update.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartSetShippingMethodTaxRateAction
withCartSetShippingMethodTaxRateAction
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
-
CartSetShippingMethodTaxRateActionImpl
public CartSetShippingMethodTaxRateActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getShippingKey
key
of the ShippingMethod to update. This is required for Carts withMultiple
ShippingMode.- Specified by:
getShippingKey
in interfaceCartSetShippingMethodTaxRateAction
- Returns:
- shippingKey
-
getExternalTaxRate
Value to set. If empty, any existing value is removed.
- Specified by:
getExternalTaxRate
in interfaceCartSetShippingMethodTaxRateAction
- Returns:
- externalTaxRate
-
setShippingKey
Description copied from interface:CartSetShippingMethodTaxRateAction
key
of the ShippingMethod to update. This is required for Carts withMultiple
ShippingMode.- Specified by:
setShippingKey
in interfaceCartSetShippingMethodTaxRateAction
- Parameters:
shippingKey
- value to be set
-
setExternalTaxRate
Description copied from interface:CartSetShippingMethodTaxRateAction
Value to set. If empty, any existing value is removed.
- Specified by:
setExternalTaxRate
in interfaceCartSetShippingMethodTaxRateAction
- Parameters:
externalTaxRate
- value to be set
-
equals
-
hashCode
public int hashCode()
-