Interface CartEstimatedDeliverySetMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,Versioned<Message>
Generated after a successful Set Estimated Delivery update action.
Example to create an instance using the builder pattern
CartEstimatedDeliverySetMessage cartEstimatedDeliverySetMessage = CartEstimatedDeliverySetMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartEstimatedDeliverySetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartEstimatedDeliverySetMessagebuilder(CartEstimatedDeliverySetMessage template) create builder for CartEstimatedDeliverySetMessage instancecopyDeep()deepCopy(CartEstimatedDeliverySetMessage template) factory method to create a deep copy of CartEstimatedDeliverySetMessage@Valid EstimatedDeliveryEstimated delivery window on the Cart after the Set Estimated Delivery update action.keyof the Shipping that was updated.of()factory methodof(CartEstimatedDeliverySetMessage template) factory method to create a shallow copy CartEstimatedDeliverySetMessagevoidsetEstimatedDelivery(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<CartEstimatedDeliverySetMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
CART_ESTIMATED_DELIVERY_SET
discriminator value for CartEstimatedDeliverySetMessage- 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 CartEstimatedDeliverySetMessage
-
of
factory method to create a shallow copy CartEstimatedDeliverySetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartEstimatedDeliverySetMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
deepCopy
@Nullable static CartEstimatedDeliverySetMessage deepCopy(@Nullable CartEstimatedDeliverySetMessage template) factory method to create a deep copy of CartEstimatedDeliverySetMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartEstimatedDeliverySetMessage- Returns:
- builder
-
builder
create builder for CartEstimatedDeliverySetMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartEstimatedDeliverySetMessage
default <T> T withCartEstimatedDeliverySetMessage(Function<CartEstimatedDeliverySetMessage, T> helper) 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
-