Interface OrderAddParcelToDeliveryAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
To add a Parcel, at least one Delivery must exist.
Produces the Parcel Added To Delivery Message.
Example to create an instance using the builder pattern
OrderAddParcelToDeliveryAction orderAddParcelToDeliveryAction = OrderAddParcelToDeliveryAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderAddParcelToDeliveryAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderAddParcelToDeliveryActionbuilder
(OrderAddParcelToDeliveryAction template) create builder for OrderAddParcelToDeliveryAction instancedeepCopy
(OrderAddParcelToDeliveryAction template) factory method to create a deep copy of OrderAddParcelToDeliveryAction@Valid CustomFieldsDraft
Custom Fields for the Parcel.id
of an existing Delivery.key
of an existing Delivery.@Valid List<DeliveryItem>
getItems()
Value to set.@Valid ParcelMeasurements
Value to set.key
of an existing Parcel.@Valid TrackingData
Value to set.of()
factory methodof
(OrderAddParcelToDeliveryAction template) factory method to create a shallow copy OrderAddParcelToDeliveryActionvoid
setCustom
(CustomFieldsDraft custom) Custom Fields for the Parcel.void
setDeliveryId
(String deliveryId) id
of an existing Delivery.void
setDeliveryKey
(String deliveryKey) key
of an existing Delivery.void
setItems
(DeliveryItem... items) Value to set.void
setItems
(List<DeliveryItem> items) Value to set.void
setMeasurements
(ParcelMeasurements measurements) Value to set.void
setParcelKey
(String parcelKey) key
of an existing Parcel.void
setTrackingData
(TrackingData trackingData) Value to set.static com.fasterxml.jackson.core.type.TypeReference<OrderAddParcelToDeliveryAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_PARCEL_TO_DELIVERY
discriminator value for OrderAddParcelToDeliveryAction- See Also:
-
-
Method Details
-
getDeliveryId
String getDeliveryId()id
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Returns:
- deliveryId
-
getDeliveryKey
String getDeliveryKey()key
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Returns:
- deliveryKey
-
getParcelKey
String getParcelKey()key
of an existing Parcel.- Returns:
- parcelKey
-
getMeasurements
Value to set.
- Returns:
- measurements
-
getTrackingData
Value to set.
- Returns:
- trackingData
-
getItems
Value to set.
- Returns:
- items
-
getCustom
Custom Fields for the Parcel.
- Returns:
- custom
-
setDeliveryId
id
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Parameters:
deliveryId
- value to be set
-
setDeliveryKey
key
of an existing Delivery.Either
deliveryId
ordeliveryKey
must be provided.- Parameters:
deliveryKey
- value to be set
-
setParcelKey
key
of an existing Parcel.- Parameters:
parcelKey
- value to be set
-
setMeasurements
Value to set.
- Parameters:
measurements
- value to be set
-
setTrackingData
Value to set.
- Parameters:
trackingData
- value to be set
-
setItems
Value to set.
- Parameters:
items
- values to be set
-
setItems
Value to set.
- Parameters:
items
- values to be set
-
setCustom
Custom Fields for the Parcel.
- Parameters:
custom
- value to be set
-
of
factory method- Returns:
- instance of OrderAddParcelToDeliveryAction
-
of
factory method to create a shallow copy OrderAddParcelToDeliveryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderAddParcelToDeliveryAction deepCopy(@Nullable OrderAddParcelToDeliveryAction template) factory method to create a deep copy of OrderAddParcelToDeliveryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderAddParcelToDeliveryAction- Returns:
- builder
-
builder
create builder for OrderAddParcelToDeliveryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderAddParcelToDeliveryAction
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<OrderAddParcelToDeliveryAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-