Interface ReturnInfoDraft
- All Superinterfaces:
Draft<ReturnInfoDraft>
ReturnInfoDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReturnInfoDraft returnInfoDraft = ReturnInfoDraft.builder()
.plusItems(itemsBuilder -> itemsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReturnInfoDraftBuilder
builder()
builder factory method for ReturnInfoDraftstatic ReturnInfoDraftBuilder
builder
(ReturnInfoDraft template) create builder for ReturnInfoDraft instancestatic ReturnInfoDraft
deepCopy
(ReturnInfoDraft template) factory method to create a deep copy of ReturnInfoDraft@NotNull @Valid List<ReturnItemDraft>
getItems()
Information on the Line Items or Custom Line Items returned.Date and time (UTC) the return is initiated.User-defined identifier for tracking the return.static ReturnInfoDraft
of()
factory methodstatic ReturnInfoDraft
of
(ReturnInfoDraft template) factory method to create a shallow copy ReturnInfoDraftvoid
setItems
(ReturnItemDraft... items) Information on the Line Items or Custom Line Items returned.void
setItems
(List<ReturnItemDraft> 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 for tracking the return.static com.fasterxml.jackson.core.type.TypeReference<ReturnInfoDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReturnInfoDraft
(Function<ReturnInfoDraft, 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 for tracking 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 for tracking 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 ReturnInfoDraft
-
of
factory method to create a shallow copy ReturnInfoDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReturnInfoDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReturnInfoDraft- Returns:
- builder
-
builder
create builder for ReturnInfoDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReturnInfoDraft
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
-