Package com.commercetools.api.models.me
Class MyCartSetShippingMethodActionImpl
java.lang.Object
com.commercetools.api.models.me.MyCartSetShippingMethodActionImpl
- All Implemented Interfaces:
MyCartSetShippingMethodAction
,MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyCartSetShippingMethodActionImpl
extends Object
implements MyCartSetShippingMethodAction, 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.me.MyCartSetShippingMethodAction
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 io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.me.MyCartSetShippingMethodAction
withMyCartSetShippingMethodAction
Methods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyCartSetShippingMethodActionImpl
public MyCartSetShippingMethodActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceMyCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyCartUpdateAction>
- 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 interfaceMyCartSetShippingMethodAction
- Returns:
- shippingMethod
-
getExternalTaxRate
An external Tax Rate can be set if the Cart has the
External
TaxMode.- Specified by:
getExternalTaxRate
in interfaceMyCartSetShippingMethodAction
- Returns:
- externalTaxRate
-
setShippingMethod
Description copied from interface:MyCartSetShippingMethodAction
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 interfaceMyCartSetShippingMethodAction
- Parameters:
shippingMethod
- value to be set
-
setExternalTaxRate
Description copied from interface:MyCartSetShippingMethodAction
An external Tax Rate can be set if the Cart has the
External
TaxMode.- Specified by:
setExternalTaxRate
in interfaceMyCartSetShippingMethodAction
- Parameters:
externalTaxRate
- value to be set
-
equals
-
hashCode
-