Interface OrderAddReturnInfoAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
Produces the Return Info Added Message.
Example to create an instance using the builder pattern
OrderAddReturnInfoAction orderAddReturnInfoAction = OrderAddReturnInfoAction.builder()
.plusItems(itemsBuilder -> itemsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderAddReturnInfoAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderAddReturnInfoActionbuilder
(OrderAddReturnInfoAction template) create builder for OrderAddReturnInfoAction instancestatic OrderAddReturnInfoAction
deepCopy
(OrderAddReturnInfoAction template) factory method to create a deep copy of OrderAddReturnInfoAction@NotNull @Valid List<ReturnItemDraft>
getItems()
Items to be returned.Value to set.Value to set.static OrderAddReturnInfoAction
of()
factory methodstatic OrderAddReturnInfoAction
of
(OrderAddReturnInfoAction template) factory method to create a shallow copy OrderAddReturnInfoActionvoid
setItems
(ReturnItemDraft... items) Items to be returned.void
setItems
(List<ReturnItemDraft> items) Items to be returned.void
setReturnDate
(ZonedDateTime returnDate) Value to set.void
setReturnTrackingId
(String returnTrackingId) Value to set.static com.fasterxml.jackson.core.type.TypeReference<OrderAddReturnInfoAction>
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_RETURN_INFO
discriminator value for OrderAddReturnInfoAction- See Also:
-
-
Method Details
-
getReturnTrackingId
String getReturnTrackingId()Value to set.
- Returns:
- returnTrackingId
-
getItems
Items to be returned. Must not be empty.
- Returns:
- items
-
getReturnDate
ZonedDateTime getReturnDate()Value to set. If not set, it defaults to the current date and time.
- Returns:
- returnDate
-
setReturnTrackingId
Value to set.
- Parameters:
returnTrackingId
- value to be set
-
setItems
Items to be returned. Must not be empty.
- Parameters:
items
- values to be set
-
setItems
Items to be returned. Must not be empty.
- Parameters:
items
- values to be set
-
setReturnDate
Value to set. If not set, it defaults to the current date and time.
- Parameters:
returnDate
- value to be set
-
of
factory method- Returns:
- instance of OrderAddReturnInfoAction
-
of
factory method to create a shallow copy OrderAddReturnInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderAddReturnInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderAddReturnInfoAction- Returns:
- builder
-
builder
create builder for OrderAddReturnInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderAddReturnInfoAction
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
-