Interface ParcelAddedToDeliveryMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Add Parcel to Delivery update action.
Example to create an instance using the builder pattern
ParcelAddedToDeliveryMessagePayload parcelAddedToDeliveryMessagePayload = ParcelAddedToDeliveryMessagePayload.builder()
.delivery(deliveryBuilder -> deliveryBuilder)
.parcel(parcelBuilder -> parcelBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ParcelAddedToDeliveryMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ParcelAddedToDeliveryMessagePayloadbuilder
(ParcelAddedToDeliveryMessagePayload template) create builder for ParcelAddedToDeliveryMessagePayload instancedeepCopy
(ParcelAddedToDeliveryMessagePayload template) factory method to create a deep copy of ParcelAddedToDeliveryMessagePayload@NotNull @Valid Delivery
Unique identifier of the Delivery.@NotNull @Valid Parcel
Parcel that was added to the Delivery.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.of()
factory methodof
(ParcelAddedToDeliveryMessagePayload template) factory method to create a shallow copy ParcelAddedToDeliveryMessagePayloadvoid
setDelivery
(Delivery delivery) Unique identifier of the Delivery.void
Parcel that was added to the Delivery.void
setShippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.static com.fasterxml.jackson.core.type.TypeReference<ParcelAddedToDeliveryMessagePayload>
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
-
PARCEL_ADDED_TO_DELIVERY
discriminator value for ParcelAddedToDeliveryMessagePayload- See Also:
-
-
Method Details
-
getDelivery
Unique identifier of the Delivery.
- Returns:
- delivery
-
getParcel
Parcel that was added to the Delivery.
- Returns:
- parcel
-
getShippingKey
String getShippingKey()User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
setDelivery
Unique identifier of the Delivery.
- Parameters:
delivery
- value to be set
-
setParcel
Parcel that was added to the Delivery.
- Parameters:
parcel
- 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 ParcelAddedToDeliveryMessagePayload
-
of
factory method to create a shallow copy ParcelAddedToDeliveryMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ParcelAddedToDeliveryMessagePayload deepCopy(@Nullable ParcelAddedToDeliveryMessagePayload template) factory method to create a deep copy of ParcelAddedToDeliveryMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ParcelAddedToDeliveryMessagePayload- Returns:
- builder
-
builder
static ParcelAddedToDeliveryMessagePayloadBuilder builder(ParcelAddedToDeliveryMessagePayload template) create builder for ParcelAddedToDeliveryMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withParcelAddedToDeliveryMessagePayload
default <T> T withParcelAddedToDeliveryMessagePayload(Function<ParcelAddedToDeliveryMessagePayload, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ParcelAddedToDeliveryMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-