Interface ParcelItemsUpdatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Set Parcel Items update action.
Example to create an instance using the builder pattern
ParcelItemsUpdatedMessagePayload parcelItemsUpdatedMessagePayload = ParcelItemsUpdatedMessagePayload.builder()
.parcelId("{parcelId}")
.deliveryId("{deliveryId}")
.plusItems(itemsBuilder -> itemsBuilder)
.plusOldItems(oldItemsBuilder -> oldItemsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ParcelItemsUpdatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ParcelItemsUpdatedMessagePayloadbuilder
(ParcelItemsUpdatedMessagePayload template) create builder for ParcelItemsUpdatedMessagePayload instancedeepCopy
(ParcelItemsUpdatedMessagePayload template) factory method to create a deep copy of ParcelItemsUpdatedMessagePayload@NotNull String
Unique identifier of the Delivery.@NotNull @Valid List<DeliveryItem>
getItems()
Delivery Items after the Set Parcel Items update action.@NotNull @Valid List<DeliveryItem>
Delivery Items before the Set Parcel Items update action.@NotNull String
Unique identifier of the Parcel.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.of()
factory methodof
(ParcelItemsUpdatedMessagePayload template) factory method to create a shallow copy ParcelItemsUpdatedMessagePayloadvoid
setDeliveryId
(String deliveryId) Unique identifier of the Delivery.void
setItems
(DeliveryItem... items) Delivery Items after the Set Parcel Items update action.void
setItems
(List<DeliveryItem> items) Delivery Items after the Set Parcel Items update action.void
setOldItems
(DeliveryItem... oldItems) Delivery Items before the Set Parcel Items update action.void
setOldItems
(List<DeliveryItem> oldItems) Delivery Items before the Set Parcel Items update action.void
setParcelId
(String parcelId) Unique identifier of the Parcel.void
setShippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.static com.fasterxml.jackson.core.type.TypeReference<ParcelItemsUpdatedMessagePayload>
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_ITEMS_UPDATED
discriminator value for ParcelItemsUpdatedMessagePayload- See Also:
-
-
Method Details
-
getParcelId
Unique identifier of the Parcel.
- Returns:
- parcelId
-
getDeliveryId
Unique identifier of the Delivery.
- Returns:
- deliveryId
-
getItems
Delivery Items after the Set Parcel Items update action.
- Returns:
- items
-
getOldItems
Delivery Items before the Set Parcel Items update action.
- Returns:
- oldItems
-
getShippingKey
String getShippingKey()User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
setParcelId
Unique identifier of the Parcel.
- Parameters:
parcelId
- value to be set
-
setDeliveryId
Unique identifier of the Delivery.
- Parameters:
deliveryId
- value to be set
-
setItems
Delivery Items after the Set Parcel Items update action.
- Parameters:
items
- values to be set
-
setItems
Delivery Items after the Set Parcel Items update action.
- Parameters:
items
- values to be set
-
setOldItems
Delivery Items before the Set Parcel Items update action.
- Parameters:
oldItems
- values to be set
-
setOldItems
Delivery Items before the Set Parcel Items update action.
- Parameters:
oldItems
- values 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 ParcelItemsUpdatedMessagePayload
-
of
factory method to create a shallow copy ParcelItemsUpdatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ParcelItemsUpdatedMessagePayload deepCopy(@Nullable ParcelItemsUpdatedMessagePayload template) factory method to create a deep copy of ParcelItemsUpdatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ParcelItemsUpdatedMessagePayload- Returns:
- builder
-
builder
create builder for ParcelItemsUpdatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withParcelItemsUpdatedMessagePayload
default <T> T withParcelItemsUpdatedMessagePayload(Function<ParcelItemsUpdatedMessagePayload, 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<ParcelItemsUpdatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-