Interface CartEstimatedDeliverySetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set Estimated Delivery update action.
Example to create an instance using the builder pattern
CartEstimatedDeliverySetMessagePayload cartEstimatedDeliverySetMessagePayload = CartEstimatedDeliverySetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartEstimatedDeliverySetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartEstimatedDeliverySetMessagePayloadcreate builder for CartEstimatedDeliverySetMessagePayload instancecopyDeep()factory method to create a deep copy of CartEstimatedDeliverySetMessagePayload@Valid EstimatedDeliveryEstimated delivery window on the Cart after the Set Estimated Delivery update action.keyof the Shipping that was updated.of()factory methodof(CartEstimatedDeliverySetMessagePayload template) factory method to create a shallow copy CartEstimatedDeliverySetMessagePayloadvoidsetEstimatedDelivery(EstimatedDelivery estimatedDelivery) Estimated delivery window on the Cart after the Set Estimated Delivery update action.voidsetShippingKey(String shippingKey) keyof the Shipping that was updated.static tools.jackson.core.type.TypeReference<CartEstimatedDeliverySetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartEstimatedDeliverySetMessagePayload(Function<CartEstimatedDeliverySetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CART_ESTIMATED_DELIVERY_SET
discriminator value for CartEstimatedDeliverySetMessagePayload- See Also:
-
-
Method Details
-
getEstimatedDelivery
Estimated delivery window on the Cart after the Set Estimated Delivery update action.
- Returns:
- estimatedDelivery
-
getShippingKey
String getShippingKey()keyof the Shipping that was updated. Only present for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
setEstimatedDelivery
Estimated delivery window on the Cart after the Set Estimated Delivery update action.
- Parameters:
estimatedDelivery- value to be set
-
setShippingKey
keyof the Shipping that was updated. Only present for Carts withMultipleShippingMode.- Parameters:
shippingKey- value to be set
-
of
factory method- Returns:
- instance of CartEstimatedDeliverySetMessagePayload
-
of
factory method to create a shallow copy CartEstimatedDeliverySetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartEstimatedDeliverySetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static CartEstimatedDeliverySetMessagePayload deepCopy(@Nullable CartEstimatedDeliverySetMessagePayload template) factory method to create a deep copy of CartEstimatedDeliverySetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartEstimatedDeliverySetMessagePayload- Returns:
- builder
-
builder
static CartEstimatedDeliverySetMessagePayloadBuilder builder(CartEstimatedDeliverySetMessagePayload template) create builder for CartEstimatedDeliverySetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartEstimatedDeliverySetMessagePayload
default <T> T withCartEstimatedDeliverySetMessagePayload(Function<CartEstimatedDeliverySetMessagePayload, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static tools.jackson.core.type.TypeReference<CartEstimatedDeliverySetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-