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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ParcelMeasurementsUpdatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ParcelMeasurementsUpdatedMessagePayloadcreate builder for ParcelMeasurementsUpdatedMessagePayload instancecopyDeep()factory method to create a deep copy of ParcelMeasurementsUpdatedMessagePayload@NotNull StringUnique identifier of the Delivery.@Valid ParcelMeasurementsThe Parcel Measurements that were set on the Parcel.@NotNull StringUnique identifier of the Parcel.User-defined unique identifier of the Shipping Method in a Cart withMultipleShippingMode.of()factory methodof(ParcelMeasurementsUpdatedMessagePayload template) factory method to create a shallow copy ParcelMeasurementsUpdatedMessagePayloadvoidsetDeliveryId(String deliveryId) Unique identifier of the Delivery.voidsetMeasurements(ParcelMeasurements measurements) The Parcel Measurements that were set on the Parcel.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<ParcelMeasurementsUpdatedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithParcelMeasurementsUpdatedMessagePayload(Function<ParcelMeasurementsUpdatedMessagePayload, T> helper) accessor 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_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
MultipleShippingMode.- 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
MultipleShippingMode.- 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
-
copyDeep
ParcelMeasurementsUpdatedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload- Specified by:
copyDeepin interfaceOrderMessagePayload
-
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
-