Interface CartSetEstimatedDeliveryAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Sets the estimated delivery window on the Cart's ShippingInfo.
This update action produces the CartEstimatedDeliverySet Message.
Example to create an instance using the builder pattern
CartSetEstimatedDeliveryAction cartSetEstimatedDeliveryAction = CartSetEstimatedDeliveryAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetEstimatedDeliveryAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetEstimatedDeliveryActionbuilder(CartSetEstimatedDeliveryAction template) create builder for CartSetEstimatedDeliveryAction instancecopyDeep()deepCopy(CartSetEstimatedDeliveryAction template) factory method to create a deep copy of CartSetEstimatedDeliveryAction@Valid EstimatedDeliveryValue to set.keyof the Shipping to update.of()factory methodof(CartSetEstimatedDeliveryAction template) factory method to create a shallow copy CartSetEstimatedDeliveryActionvoidsetEstimatedDelivery(EstimatedDelivery estimatedDelivery) Value to set.voidsetShippingKey(String shippingKey) keyof the Shipping to update.static tools.jackson.core.type.TypeReference<CartSetEstimatedDeliveryAction>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
-
SET_ESTIMATED_DELIVERY
discriminator value for CartSetEstimatedDeliveryAction- See Also:
-
-
Method Details
-
getShippingKey
String getShippingKey()keyof the Shipping to update. This is required and valid only for Carts withMultipleShippingMode. An InvalidOperation error is returned ifshippingKeyis provided for Carts withSingleShippingMode, or omitted for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
getEstimatedDelivery
Value to set. If empty, any existing value is removed.
- Returns:
- estimatedDelivery
-
setShippingKey
keyof the Shipping to update. This is required and valid only for Carts withMultipleShippingMode. An InvalidOperation error is returned ifshippingKeyis provided for Carts withSingleShippingMode, or omitted for Carts withMultipleShippingMode.- Parameters:
shippingKey- value to be set
-
setEstimatedDelivery
Value to set. If empty, any existing value is removed.
- Parameters:
estimatedDelivery- value to be set
-
of
factory method- Returns:
- instance of CartSetEstimatedDeliveryAction
-
of
factory method to create a shallow copy CartSetEstimatedDeliveryAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetEstimatedDeliveryAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartSetEstimatedDeliveryAction deepCopy(@Nullable CartSetEstimatedDeliveryAction template) factory method to create a deep copy of CartSetEstimatedDeliveryAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetEstimatedDeliveryAction- Returns:
- builder
-
builder
create builder for CartSetEstimatedDeliveryAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetEstimatedDeliveryAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-