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 ReturnInfoBuilderbuilder()builder factory method for ReturnInfostatic ReturnInfoBuilderbuilder(ReturnInfo template) create builder for ReturnInfo instancecopyDeep()static ReturnInfodeepCopy(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 ReturnInfoof()factory methodstatic ReturnInfoof(ReturnInfo template) factory method to create a shallow copy ReturnInfovoidsetItems(ReturnItem... items) Information on the Line Items or Custom Line Items returned.voidsetItems(List<ReturnItem> items) Information on the Line Items or Custom Line Items returned.voidsetReturnDate(ZonedDateTime returnDate) Date and time (UTC) the return is initiated.voidsetReturnTrackingId(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> TwithReturnInfo(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
-
copyDeep
ReturnInfo copyDeep() -
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
-