Class CartSetCustomShippingMethodActionImpl

java.lang.Object
com.commercetools.api.models.cart.CartSetCustomShippingMethodActionImpl
All Implemented Interfaces:
CartSetCustomShippingMethodAction, CartUpdateAction, ResourceUpdateAction<CartUpdateAction>, io.vrap.rmf.base.client.ModelBase

public class CartSetCustomShippingMethodActionImpl extends Object implements CartSetCustomShippingMethodAction, 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.