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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ParcelItemsUpdatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ParcelItemsUpdatedMessagePayloadbuilder(ParcelItemsUpdatedMessagePayload template) create builder for ParcelItemsUpdatedMessagePayload instancecopyDeep()deepCopy(ParcelItemsUpdatedMessagePayload template) factory method to create a deep copy of ParcelItemsUpdatedMessagePayload@NotNull StringUnique 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 StringUnique identifier of the Parcel.User-defined unique identifier of the Shipping Method in a Cart withMultipleShippingMode.of()factory methodof(ParcelItemsUpdatedMessagePayload template) factory method to create a shallow copy ParcelItemsUpdatedMessagePayloadvoidsetDeliveryId(String deliveryId) Unique identifier of the Delivery.voidsetItems(DeliveryItem... items) Delivery Items after the Set Parcel Items update action.voidsetItems(List<DeliveryItem> items) Delivery Items after the Set Parcel Items update action.voidsetOldItems(DeliveryItem... oldItems) Delivery Items before the Set Parcel Items update action.voidsetOldItems(List<DeliveryItem> oldItems) Delivery Items before the Set Parcel Items update action.voidsetParcelId(String parcelId) Unique identifier of the Parcel.voidsetShippingKey(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultipleShippingMode.static com.fasterxml.jackson.core.type.TypeReference<ParcelItemsUpdatedMessagePayload>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
-
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
MultipleShippingMode.- 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
MultipleShippingMode.- 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
-
copyDeep
ParcelItemsUpdatedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload- Specified by:
copyDeepin interfaceOrderMessagePayload
-
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
-