Interface CartRemoveShippingMethodAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Removes a Shipping Method from a Cart that has the Multiple
ShippingMode.
Example to create an instance using the builder pattern
CartRemoveShippingMethodAction cartRemoveShippingMethodAction = CartRemoveShippingMethodAction.builder()
.shippingKey("{shippingKey}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartRemoveShippingMethodAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartRemoveShippingMethodActionbuilder
(CartRemoveShippingMethodAction template) create builder for CartRemoveShippingMethodAction instancedeepCopy
(CartRemoveShippingMethodAction template) factory method to create a deep copy of CartRemoveShippingMethodAction@NotNull String
User-defined unique identifier of the Shipping Method to remove from the Cart.of()
factory methodof
(CartRemoveShippingMethodAction template) factory method to create a shallow copy CartRemoveShippingMethodActionvoid
setShippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method to remove from the Cart.static com.fasterxml.jackson.core.type.TypeReference<CartRemoveShippingMethodAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_SHIPPING_METHOD
discriminator value for CartRemoveShippingMethodAction- See Also:
-
-
Method Details
-
getShippingKey
User-defined unique identifier of the Shipping Method to remove from the Cart.
- Returns:
- shippingKey
-
setShippingKey
User-defined unique identifier of the Shipping Method to remove from the Cart.
- Parameters:
shippingKey
- value to be set
-
of
factory method- Returns:
- instance of CartRemoveShippingMethodAction
-
of
factory method to create a shallow copy CartRemoveShippingMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartRemoveShippingMethodAction deepCopy(@Nullable CartRemoveShippingMethodAction template) factory method to create a deep copy of CartRemoveShippingMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartRemoveShippingMethodAction- Returns:
- builder
-
builder
create builder for CartRemoveShippingMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartRemoveShippingMethodAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CartRemoveShippingMethodAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-