Class CartSetCustomShippingMethodActionImpl
- All Implemented Interfaces:
CartSetCustomShippingMethodAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
To set the Cart's custom Shipping Method (independent of the ShippingMethods managed through the Shipping Methods API) the Cart must have the Single
ShippingMode and a shippingAddress
.
To unset a custom Shipping Method on a Cart, use the Set ShippingMethod update action without the shippingMethod
field instead.
-
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.CartSetCustomShippingMethodAction
SET_CUSTOM_SHIPPING_METHOD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
External Tax Rate for theshippingRate
to be set if the Cart has theExternal
TaxMode.Name of the custom Shipping Method.Determines the shipping price.Tax Category used to determine the Tax Rate when the Cart has thePlatform
TaxMode.int
hashCode()
void
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) External Tax Rate for theshippingRate
to be set if the Cart has theExternal
TaxMode.void
setShippingMethodName
(String shippingMethodName) Name of the custom Shipping Method.void
setShippingRate
(ShippingRateDraft shippingRate) Determines the shipping price.void
setTaxCategory
(TaxCategoryResourceIdentifier taxCategory) Tax Category used to determine the Tax Rate when the Cart has thePlatform
TaxMode.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartSetCustomShippingMethodAction
withCartSetCustomShippingMethodAction
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
-
CartSetCustomShippingMethodActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getShippingMethodName
Name of the custom Shipping Method.
- Specified by:
getShippingMethodName
in interfaceCartSetCustomShippingMethodAction
- Returns:
- shippingMethodName
-
getShippingRate
Determines the shipping price.
- Specified by:
getShippingRate
in interfaceCartSetCustomShippingMethodAction
- Returns:
- shippingRate
-
getTaxCategory
Tax Category used to determine the Tax Rate when the Cart has the
Platform
TaxMode.- Specified by:
getTaxCategory
in interfaceCartSetCustomShippingMethodAction
- Returns:
- taxCategory
-
getExternalTaxRate
External Tax Rate for the
shippingRate
to be set if the Cart has theExternal
TaxMode.- Specified by:
getExternalTaxRate
in interfaceCartSetCustomShippingMethodAction
- Returns:
- externalTaxRate
-
setShippingMethodName
Description copied from interface:CartSetCustomShippingMethodAction
Name of the custom Shipping Method.
- Specified by:
setShippingMethodName
in interfaceCartSetCustomShippingMethodAction
- Parameters:
shippingMethodName
- value to be set
-
setShippingRate
Description copied from interface:CartSetCustomShippingMethodAction
Determines the shipping price.
- Specified by:
setShippingRate
in interfaceCartSetCustomShippingMethodAction
- Parameters:
shippingRate
- value to be set
-
setTaxCategory
Description copied from interface:CartSetCustomShippingMethodAction
Tax Category used to determine the Tax Rate when the Cart has the
Platform
TaxMode.- Specified by:
setTaxCategory
in interfaceCartSetCustomShippingMethodAction
- Parameters:
taxCategory
- value to be set
-
setExternalTaxRate
Description copied from interface:CartSetCustomShippingMethodAction
External Tax Rate for the
shippingRate
to be set if the Cart has theExternal
TaxMode.- Specified by:
setExternalTaxRate
in interfaceCartSetCustomShippingMethodAction
- Parameters:
externalTaxRate
- value to be set
-
equals
-
hashCode
-