Interface StagedOrderAddDeliveryAction
- All Superinterfaces:
CustomizableDraft<StagedOrderAddDeliveryAction>,ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
A Delivery can only be added to an Order if its shippingInfo (for shippingMode = Single), or its shipping (for shippingMode = Multiple) exists.
Multiple Deliveries can be added to the same Order to represent split or partial shipments. However, the API doesn't validate that the cumulative quantities of Line Items or Custom Line Items across all Deliveries match or stay within the originally ordered quantities. For more information, see Multiple Deliveries on the Shipping and Delivery overview page.
Produces the Delivery Added Message.
Example to create an instance using the builder pattern
StagedOrderAddDeliveryAction stagedOrderAddDeliveryAction = StagedOrderAddDeliveryAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderAddDeliveryAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderAddDeliveryActionbuilder(StagedOrderAddDeliveryAction template) create builder for StagedOrderAddDeliveryAction instancecopyDeep()static StagedOrderAddDeliveryActiondeepCopy(StagedOrderAddDeliveryAction template) factory method to create a deep copy of StagedOrderAddDeliveryAction@Valid BaseAddressAddress theparcelsshould be delivered to.@Valid CustomFieldsDraftCustom Fields for the Delivery.keyof an existing Delivery.@Valid List<DeliveryItem>getItems()Items to be included in the Delivery.@Valid List<ParcelDraft>Parcels of the Delivery.static StagedOrderAddDeliveryActionof()factory methodstatic StagedOrderAddDeliveryActionof(StagedOrderAddDeliveryAction template) factory method to create a shallow copy StagedOrderAddDeliveryActionvoidsetAddress(BaseAddress address) Address theparcelsshould be delivered to.voidsetCustom(CustomFieldsDraft custom) Custom Fields for the Delivery.voidsetDeliveryKey(String deliveryKey) keyof an existing Delivery.voidsetItems(DeliveryItem... items) Items to be included in the Delivery.voidsetItems(List<DeliveryItem> items) Items to be included in the Delivery.voidsetParcels(ParcelDraft... parcels) Parcels of the Delivery.voidsetParcels(List<ParcelDraft> parcels) Parcels of the Delivery.voidsetShippingKey(String shippingKey) static com.fasterxml.jackson.core.type.TypeReference<StagedOrderAddDeliveryAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraftMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
ADD_DELIVERY
discriminator value for StagedOrderAddDeliveryAction- See Also:
-
-
Method Details
-
getDeliveryKey
String getDeliveryKey()keyof an existing Delivery.- Returns:
- deliveryKey
-
getShippingKey
String getShippingKey()keyof the ShippingMethod, required forMultipleShippingMode.- Returns:
- shippingKey
-
getItems
Items to be included in the Delivery.
- Returns:
- items
-
getAddress
Address the
parcelsshould be delivered to.- Returns:
- address
-
getParcels
Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Returns:
- parcels
-
getCustom
Custom Fields for the Delivery.
- Specified by:
getCustomin interfaceCustomizableDraft<StagedOrderAddDeliveryAction>- Returns:
- custom
-
setDeliveryKey
keyof an existing Delivery.- Parameters:
deliveryKey- value to be set
-
setShippingKey
keyof the ShippingMethod, required forMultipleShippingMode.- Parameters:
shippingKey- value to be set
-
setItems
Items to be included in the Delivery.
- Parameters:
items- values to be set
-
setItems
Items to be included in the Delivery.
- Parameters:
items- values to be set
-
setAddress
Address the
parcelsshould be delivered to.- Parameters:
address- value to be set
-
setParcels
Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Parameters:
parcels- values to be set
-
setParcels
Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Parameters:
parcels- values to be set
-
setCustom
Custom Fields for the Delivery.
- Specified by:
setCustomin interfaceCustomizableDraft<StagedOrderAddDeliveryAction>- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of StagedOrderAddDeliveryAction
-
of
factory method to create a shallow copy StagedOrderAddDeliveryAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderAddDeliveryAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderAddDeliveryAction deepCopy(@Nullable StagedOrderAddDeliveryAction template) factory method to create a deep copy of StagedOrderAddDeliveryAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderAddDeliveryAction- Returns:
- builder
-
builder
create builder for StagedOrderAddDeliveryAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderAddDeliveryAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-