Interface DeliveryRemovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Remove Delivery update action.
Example to create an instance using the builder pattern
DeliveryRemovedMessagePayload deliveryRemovedMessagePayload = DeliveryRemovedMessagePayload.builder()
.delivery(deliveryBuilder -> deliveryBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DeliveryRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DeliveryRemovedMessagePayloadbuilder
(DeliveryRemovedMessagePayload template) create builder for DeliveryRemovedMessagePayload instancedeepCopy
(DeliveryRemovedMessagePayload template) factory method to create a deep copy of DeliveryRemovedMessagePayload@NotNull @Valid Delivery
The Delivery that was removed from the Order.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.of()
factory methodof
(DeliveryRemovedMessagePayload template) factory method to create a shallow copy DeliveryRemovedMessagePayloadvoid
setDelivery
(Delivery delivery) The Delivery that was removed from the Order.void
setShippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.static com.fasterxml.jackson.core.type.TypeReference<DeliveryRemovedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
Methods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
DELIVERY_REMOVED
discriminator value for DeliveryRemovedMessagePayload- See Also:
-
-
Method Details
-
getDelivery
The Delivery that was removed from the Order.
- Returns:
- delivery
-
getShippingKey
String getShippingKey()User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
setDelivery
The Delivery that was removed from the Order.
- Parameters:
delivery
- value to be set
-
setShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Parameters:
shippingKey
- value to be set
-
of
factory method- Returns:
- instance of DeliveryRemovedMessagePayload
-
of
factory method to create a shallow copy DeliveryRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DeliveryRemovedMessagePayload deepCopy(@Nullable DeliveryRemovedMessagePayload template) factory method to create a deep copy of DeliveryRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DeliveryRemovedMessagePayload- Returns:
- builder
-
builder
create builder for DeliveryRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDeliveryRemovedMessagePayload
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
-