Interface DeliveryAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Add Delivery update action.
Example to create an instance using the builder pattern
DeliveryAddedMessagePayload deliveryAddedMessagePayload = DeliveryAddedMessagePayload.builder()
.delivery(deliveryBuilder -> deliveryBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DeliveryAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DeliveryAddedMessagePayloadbuilder
(DeliveryAddedMessagePayload template) create builder for DeliveryAddedMessagePayload instancestatic DeliveryAddedMessagePayload
deepCopy
(DeliveryAddedMessagePayload template) factory method to create a deep copy of DeliveryAddedMessagePayload@NotNull @Valid Delivery
Delivery that was added to the Order.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.static DeliveryAddedMessagePayload
of()
factory methodstatic DeliveryAddedMessagePayload
of
(DeliveryAddedMessagePayload template) factory method to create a shallow copy DeliveryAddedMessagePayloadvoid
setDelivery
(Delivery delivery) Delivery that was added to 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<DeliveryAddedMessagePayload>
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_ADDED
discriminator value for DeliveryAddedMessagePayload- See Also:
-
-
Method Details
-
getDelivery
Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional Parcel Added To Delivery Message containing information about the Parcels.
- Returns:
- delivery
-
getShippingKey
String getShippingKey()User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
setDelivery
Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional Parcel Added To Delivery Message containing information about the Parcels.
- 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 DeliveryAddedMessagePayload
-
of
factory method to create a shallow copy DeliveryAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DeliveryAddedMessagePayload deepCopy(@Nullable DeliveryAddedMessagePayload template) factory method to create a deep copy of DeliveryAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DeliveryAddedMessagePayload- Returns:
- builder
-
builder
create builder for DeliveryAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDeliveryAddedMessagePayload
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
-