Interface ReturnInfo
public interface ReturnInfo
Stores information about returns connected to an Order.
Example to create an instance using the builder pattern
ReturnInfo returnInfo = ReturnInfo.builder()
.plusItems(itemsBuilder -> itemsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReturnInfoBuilder
builder()
builder factory method for ReturnInfostatic ReturnInfoBuilder
builder
(ReturnInfo template) create builder for ReturnInfo instancestatic ReturnInfo
deepCopy
(ReturnInfo template) factory method to create a deep copy of ReturnInfo@NotNull @Valid List<ReturnItem>
getItems()
Information on the Line Items or Custom Line Items returned.Date and time (UTC) the return is initiated.User-defined identifier to track the return.static ReturnInfo
of()
factory methodstatic ReturnInfo
of
(ReturnInfo template) factory method to create a shallow copy ReturnInfovoid
setItems
(ReturnItem... items) Information on the Line Items or Custom Line Items returned.void
setItems
(List<ReturnItem> items) Information on the Line Items or Custom Line Items returned.void
setReturnDate
(ZonedDateTime returnDate) Date and time (UTC) the return is initiated.void
setReturnTrackingId
(String returnTrackingId) User-defined identifier to track the return.static com.fasterxml.jackson.core.type.TypeReference<ReturnInfo>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReturnInfo
(Function<ReturnInfo, T> helper) accessor map function
-
Method Details
-
getItems
Information on the Line Items or Custom Line Items returned.
- Returns:
- items
-
getReturnTrackingId
String getReturnTrackingId()User-defined identifier to track the return.
- Returns:
- returnTrackingId
-
getReturnDate
ZonedDateTime getReturnDate()Date and time (UTC) the return is initiated.
- Returns:
- returnDate
-
setItems
Information on the Line Items or Custom Line Items returned.
- Parameters:
items
- values to be set
-
setItems
Information on the Line Items or Custom Line Items returned.
- Parameters:
items
- values to be set
-
setReturnTrackingId
User-defined identifier to track the return.
- Parameters:
returnTrackingId
- value to be set
-
setReturnDate
Date and time (UTC) the return is initiated.
- Parameters:
returnDate
- value to be set
-
of
factory method- Returns:
- instance of ReturnInfo
-
of
factory method to create a shallow copy ReturnInfo- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReturnInfo- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReturnInfo- Returns:
- builder
-
builder
create builder for ReturnInfo instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReturnInfo
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
-