Interface ParcelRemovedFromDeliveryMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Remove Parcel from Delivery update action.
Example to create an instance using the builder pattern
ParcelRemovedFromDeliveryMessagePayload parcelRemovedFromDeliveryMessagePayload = ParcelRemovedFromDeliveryMessagePayload.builder()
.deliveryId("{deliveryId}")
.parcel(parcelBuilder -> parcelBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ParcelRemovedFromDeliveryMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ParcelRemovedFromDeliveryMessagePayloadcreate builder for ParcelRemovedFromDeliveryMessagePayload instancefactory method to create a deep copy of ParcelRemovedFromDeliveryMessagePayload@NotNull String
Unique identifier of the Delivery.@NotNull @Valid Parcel
Parcel that was removed from the Delivery.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.of()
factory methodof
(ParcelRemovedFromDeliveryMessagePayload template) factory method to create a shallow copy ParcelRemovedFromDeliveryMessagePayloadvoid
setDeliveryId
(String deliveryId) Unique identifier of the Delivery.void
Parcel that was removed from 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<ParcelRemovedFromDeliveryMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withParcelRemovedFromDeliveryMessagePayload
(Function<ParcelRemovedFromDeliveryMessagePayload, T> helper) 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_REMOVED_FROM_DELIVERY
discriminator value for ParcelRemovedFromDeliveryMessagePayload- See Also:
-
-
Method Details
-
getDeliveryId
Unique identifier of the Delivery.
- Returns:
- deliveryId
-
getParcel
Parcel that was removed from the Delivery.
- Returns:
- parcel
-
getShippingKey
String getShippingKey()User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
setDeliveryId
Unique identifier of the Delivery.
- Parameters:
deliveryId
- value to be set
-
setParcel
Parcel that was removed from 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 ParcelRemovedFromDeliveryMessagePayload
-
of
factory method to create a shallow copy ParcelRemovedFromDeliveryMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ParcelRemovedFromDeliveryMessagePayload deepCopy(@Nullable ParcelRemovedFromDeliveryMessagePayload template) factory method to create a deep copy of ParcelRemovedFromDeliveryMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ParcelRemovedFromDeliveryMessagePayload- Returns:
- builder
-
builder
static ParcelRemovedFromDeliveryMessagePayloadBuilder builder(ParcelRemovedFromDeliveryMessagePayload template) create builder for ParcelRemovedFromDeliveryMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withParcelRemovedFromDeliveryMessagePayload
default <T> T withParcelRemovedFromDeliveryMessagePayload(Function<ParcelRemovedFromDeliveryMessagePayload, 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<ParcelRemovedFromDeliveryMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-