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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DeliveryAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DeliveryAddedMessagePayloadbuilder(DeliveryAddedMessagePayload template) create builder for DeliveryAddedMessagePayload instancecopyDeep()static DeliveryAddedMessagePayloaddeepCopy(DeliveryAddedMessagePayload template) factory method to create a deep copy of DeliveryAddedMessagePayload@NotNull @Valid DeliveryUser-defined unique identifier of the Shipping Method in a Cart withMultipleShippingMode.static DeliveryAddedMessagePayloadof()factory methodstatic DeliveryAddedMessagePayloadof(DeliveryAddedMessagePayload template) factory method to create a shallow copy DeliveryAddedMessagePayloadvoidsetDelivery(Delivery delivery) voidsetShippingKey(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultipleShippingMode.static com.fasterxml.jackson.core.type.TypeReference<DeliveryAddedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
asMethods 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
MultipleShippingMode.- 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
MultipleShippingMode.- 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
-
copyDeep
DeliveryAddedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload- Specified by:
copyDeepin interfaceOrderMessagePayload
-
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
-