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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartRemoveShippingMethodAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartRemoveShippingMethodActionbuilder(CartRemoveShippingMethodAction template) create builder for CartRemoveShippingMethodAction instancecopyDeep()deepCopy(CartRemoveShippingMethodAction template) factory method to create a deep copy of CartRemoveShippingMethodAction@NotNull StringUser-defined unique identifier of the Shipping Method to remove from the Cart.of()factory methodof(CartRemoveShippingMethodAction template) factory method to create a shallow copy CartRemoveShippingMethodActionvoidsetShippingKey(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods 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
-
copyDeep
CartRemoveShippingMethodAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
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
-