Interface OrderAddDeliveryAction
- All Superinterfaces:
CustomizableDraft<OrderAddDeliveryAction>
,OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
- All Known Implementing Classes:
OrderAddDeliveryActionImpl
Example to create an instance using the builder pattern
OrderAddDeliveryAction orderAddDeliveryAction = OrderAddDeliveryAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderAddDeliveryAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderAddDeliveryActionbuilder
(OrderAddDeliveryAction template) create builder for OrderAddDeliveryAction instancestatic OrderAddDeliveryAction
deepCopy
(OrderAddDeliveryAction template) factory method to create a deep copy of OrderAddDeliveryAction@Valid BaseAddress
Polymorphic base type that represents a postal address and contact details.@Valid CustomFieldsDraft
Custom Fields for the Transaction.User-defined unique identifier of a Delivery.@Valid List<DeliveryItem>
getItems()
@Valid List<ParcelDraft>
User-defined unique identifier of the Shipping Method in a Cart withMulti
ShippingMode.static OrderAddDeliveryAction
of()
factory methodstatic OrderAddDeliveryAction
of
(OrderAddDeliveryAction template) factory method to create a shallow copy OrderAddDeliveryActionvoid
setAddress
(BaseAddress address) Polymorphic base type that represents a postal address and contact details.void
setCustom
(CustomFieldsDraft custom) Custom Fields for the Transaction.void
setDeliveryKey
(String deliveryKey) User-defined unique identifier of a Delivery.void
setItems
(DeliveryItem... items) set itemsvoid
setItems
(List<DeliveryItem> items) set itemsvoid
setParcels
(ParcelDraft... parcels) set parcelsvoid
setParcels
(List<ParcelDraft> parcels) set parcelsvoid
setShippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMulti
ShippingMode.static com.fasterxml.jackson.core.type.TypeReference<OrderAddDeliveryAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
Methods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_DELIVERY
discriminator value for OrderAddDeliveryAction- See Also:
-
-
Method Details
-
getDeliveryKey
User-defined unique identifier of a Delivery.
- Returns:
- deliveryKey
-
getItems
- Returns:
- items
-
getShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multi
ShippingMode.- Returns:
- shippingKey
-
getAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Returns:
- address
-
getParcels
- Returns:
- parcels
-
getCustom
Custom Fields for the Transaction.
- Specified by:
getCustom
in interfaceCustomizableDraft<OrderAddDeliveryAction>
- Returns:
- custom
-
setDeliveryKey
User-defined unique identifier of a Delivery.
- Parameters:
deliveryKey
- value to be set
-
setItems
set items- Parameters:
items
- values to be set
-
setItems
set items- Parameters:
items
- values to be set
-
setShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multi
ShippingMode.- Parameters:
shippingKey
- value to be set
-
setAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
address
- value to be set
-
setParcels
set parcels- Parameters:
parcels
- values to be set
-
setParcels
set parcels- Parameters:
parcels
- values to be set
-
setCustom
Custom Fields for the Transaction.
- Specified by:
setCustom
in interfaceCustomizableDraft<OrderAddDeliveryAction>
- Parameters:
custom
- value to be set
-
of
factory method- Returns:
- instance of OrderAddDeliveryAction
-
of
factory method to create a shallow copy OrderAddDeliveryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderAddDeliveryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderAddDeliveryAction- Returns:
- builder
-
builder
create builder for OrderAddDeliveryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderAddDeliveryAction
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
-