Interface ParcelMeasurementsUpdatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Set Parcel Measurements update action.
Example to create an instance using the builder pattern
ParcelMeasurementsUpdatedMessagePayload parcelMeasurementsUpdatedMessagePayload = ParcelMeasurementsUpdatedMessagePayload.builder()
.deliveryId("{deliveryId}")
.parcelId("{parcelId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ParcelMeasurementsUpdatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ParcelMeasurementsUpdatedMessagePayloadcreate builder for ParcelMeasurementsUpdatedMessagePayload instancefactory method to create a deep copy of ParcelMeasurementsUpdatedMessagePayload@NotNull String
Unique identifier of the Delivery.@Valid ParcelMeasurements
The Parcel Measurements that were set on the Parcel.@NotNull String
Unique identifier of the Parcel.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.of()
factory methodof
(ParcelMeasurementsUpdatedMessagePayload template) factory method to create a shallow copy ParcelMeasurementsUpdatedMessagePayloadvoid
setDeliveryId
(String deliveryId) Unique identifier of the Delivery.void
setMeasurements
(ParcelMeasurements measurements) The Parcel Measurements that were set on the Parcel.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<ParcelMeasurementsUpdatedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withParcelMeasurementsUpdatedMessagePayload
(Function<ParcelMeasurementsUpdatedMessagePayload, 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_MEASUREMENTS_UPDATED
discriminator value for ParcelMeasurementsUpdatedMessagePayload- See Also:
-
-
Method Details
-
getDeliveryId
Unique identifier of the Delivery.
- Returns:
- deliveryId
-
getParcelId
Unique identifier of the Parcel.
- Returns:
- parcelId
-
getMeasurements
The Parcel Measurements that were set on the Parcel.
- Returns:
- measurements
-
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
-
setParcelId
Unique identifier of the Parcel.
- Parameters:
parcelId
- value to be set
-
setMeasurements
The Parcel Measurements that were set on the Parcel.
- Parameters:
measurements
- 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 ParcelMeasurementsUpdatedMessagePayload
-
of
factory method to create a shallow copy ParcelMeasurementsUpdatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ParcelMeasurementsUpdatedMessagePayload deepCopy(@Nullable ParcelMeasurementsUpdatedMessagePayload template) factory method to create a deep copy of ParcelMeasurementsUpdatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ParcelMeasurementsUpdatedMessagePayload- Returns:
- builder
-
builder
static ParcelMeasurementsUpdatedMessagePayloadBuilder builder(ParcelMeasurementsUpdatedMessagePayload template) create builder for ParcelMeasurementsUpdatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withParcelMeasurementsUpdatedMessagePayload
default <T> T withParcelMeasurementsUpdatedMessagePayload(Function<ParcelMeasurementsUpdatedMessagePayload, 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<ParcelMeasurementsUpdatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-