Interface ReturnInfo
public interface ReturnInfo
ReturnInfo
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReturnInfo returnInfo = ReturnInfo.builder()
.plusItems(itemsBuilder -> itemsBuilder)
.returnTrackingId("{returnTrackingId}")
.returnDate("{returnDate}")
.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()
@NotNull String
@NotNull String
Identifies, which return tracking ID is connected to this particular return.static ReturnInfo
of()
factory methodstatic ReturnInfo
of
(ReturnInfo template) factory method to create a shallow copy ReturnInfovoid
setItems
(ReturnItem... items) set itemsvoid
setItems
(List<ReturnItem> items) set itemsvoid
setReturnDate
(String returnDate) set returnDatevoid
setReturnTrackingId
(String returnTrackingId) Identifies, which return tracking ID is connected to this particular 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
- Returns:
- items
-
getReturnTrackingId
Identifies, which return tracking ID is connected to this particular return.
- Returns:
- returnTrackingId
-
getReturnDate
- Returns:
- returnDate
-
setItems
set items- Parameters:
items
- values to be set
-
setItems
set items- Parameters:
items
- values to be set
-
setReturnTrackingId
Identifies, which return tracking ID is connected to this particular return.
- Parameters:
returnTrackingId
- value to be set
-
setReturnDate
set returnDate- 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
-