Class CartSetShippingMethodActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetShippingMethodActionImpl
- All Implemented Interfaces:
CartSetShippingMethodAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetShippingMethodActionImpl
extends Object
implements CartSetShippingMethodAction, io.vrap.rmf.base.client.ModelBase
To set the Cart's Shipping Method the Cart must have the Single
ShippingMode and a shippingAddress
.
-
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.CartSetShippingMethodAction
SET_SHIPPING_METHOD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
An external Tax Rate can be set if the Cart has theExternal
TaxMode.Value to set.int
hashCode()
void
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) An external Tax Rate can be set if the Cart has theExternal
TaxMode.void
setShippingMethod
(ShippingMethodResourceIdentifier shippingMethod) 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.CartSetShippingMethodAction
withCartSetShippingMethodAction
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
-
CartSetShippingMethodActionImpl
public CartSetShippingMethodActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getShippingMethod
Value to set. If empty, any existing value is removed.
If the referenced Shipping Method has a predicate that does not match the Cart, an InvalidOperation error is returned.
- Specified by:
getShippingMethod
in interfaceCartSetShippingMethodAction
- Returns:
- shippingMethod
-
getExternalTaxRate
An external Tax Rate can be set if the Cart has the
External
TaxMode.- Specified by:
getExternalTaxRate
in interfaceCartSetShippingMethodAction
- Returns:
- externalTaxRate
-
setShippingMethod
Description copied from interface:CartSetShippingMethodAction
Value to set. If empty, any existing value is removed.
If the referenced Shipping Method has a predicate that does not match the Cart, an InvalidOperation error is returned.
- Specified by:
setShippingMethod
in interfaceCartSetShippingMethodAction
- Parameters:
shippingMethod
- value to be set
-
setExternalTaxRate
Description copied from interface:CartSetShippingMethodAction
An external Tax Rate can be set if the Cart has the
External
TaxMode.- Specified by:
setExternalTaxRate
in interfaceCartSetShippingMethodAction
- Parameters:
externalTaxRate
- value to be set
-
equals
-
hashCode
-