Interface StagedOrderAddReturnInfoAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
Produces the Return Info Added Message.
Example to create an instance using the builder pattern
StagedOrderAddReturnInfoAction stagedOrderAddReturnInfoAction = StagedOrderAddReturnInfoAction.builder()
.plusItems(itemsBuilder -> itemsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderAddReturnInfoAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderAddReturnInfoActionbuilder
(StagedOrderAddReturnInfoAction template) create builder for StagedOrderAddReturnInfoAction instancedeepCopy
(StagedOrderAddReturnInfoAction template) factory method to create a deep copy of StagedOrderAddReturnInfoAction@NotNull @Valid List<ReturnItemDraft>
getItems()
Items to be returned.Value to set.Value to set.of()
factory methodof
(StagedOrderAddReturnInfoAction template) factory method to create a shallow copy StagedOrderAddReturnInfoActionvoid
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<StagedOrderAddReturnInfoAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
ADD_RETURN_INFO
discriminator value for StagedOrderAddReturnInfoAction- 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 StagedOrderAddReturnInfoAction
-
of
factory method to create a shallow copy StagedOrderAddReturnInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderAddReturnInfoAction deepCopy(@Nullable StagedOrderAddReturnInfoAction template) factory method to create a deep copy of StagedOrderAddReturnInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderAddReturnInfoAction- Returns:
- builder
-
builder
create builder for StagedOrderAddReturnInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderAddReturnInfoAction
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<StagedOrderAddReturnInfoAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-