Class ReturnInfoDraftBuilder
java.lang.Object
com.commercetools.api.models.order.ReturnInfoDraftBuilder
- All Implemented Interfaces:
Builder<ReturnInfoDraft>
ReturnInfoDraftBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionInformation on the Line Items or Custom Line Items returned.build()
builds ReturnInfoDraft with checking for non-null required valuesbuilds ReturnInfoDraft without checking for non-null required valuesgetItems()
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.items
(ReturnItemDraft... items) Information on the Line Items or Custom Line Items returned.items
(List<ReturnItemDraft> items) Information on the Line Items or Custom Line Items returned.static ReturnInfoDraftBuilder
of()
factory method for an instance of ReturnInfoDraftBuilderstatic ReturnInfoDraftBuilder
of
(ReturnInfoDraft template) create builder for ReturnInfoDraft instanceplusItems
(ReturnItemDraft... items) Information on the Line Items or Custom Line Items returned.Information on the Line Items or Custom Line Items returned.returnDate
(ZonedDateTime returnDate) Date and time (UTC) the return is initiated.returnTrackingId
(String returnTrackingId) User-defined identifier for tracking the return.Information on the Line Items or Custom Line Items returned.Information on the Line Items or Custom Line Items returned.
-
Constructor Details
-
ReturnInfoDraftBuilder
public ReturnInfoDraftBuilder()
-
-
Method Details
-
items
Information on the Line Items or Custom Line Items returned.
- Parameters:
items
- value to be set- Returns:
- Builder
-
items
Information on the Line Items or Custom Line Items returned.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
Information on the Line Items or Custom Line Items returned.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
public ReturnInfoDraftBuilder plusItems(Function<ReturnItemDraftBuilder, ReturnItemDraftBuilder> builder) Information on the Line Items or Custom Line Items returned.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
withItems
public ReturnInfoDraftBuilder withItems(Function<ReturnItemDraftBuilder, ReturnItemDraftBuilder> builder) Information on the Line Items or Custom Line Items returned.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
addItems
Information on the Line Items or Custom Line Items returned.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
setItems
Information on the Line Items or Custom Line Items returned.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
returnTrackingId
User-defined identifier for tracking the return.
- Parameters:
returnTrackingId
- value to be set- Returns:
- Builder
-
returnDate
Date and time (UTC) the return is initiated.
- Parameters:
returnDate
- value to be set- Returns:
- Builder
-
getItems
Information on the Line Items or Custom Line Items returned.
- Returns:
- items
-
getReturnTrackingId
User-defined identifier for tracking the return.
- Returns:
- returnTrackingId
-
getReturnDate
Date and time (UTC) the return is initiated.
- Returns:
- returnDate
-
build
builds ReturnInfoDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReturnInfoDraft>
- Returns:
- ReturnInfoDraft
-
buildUnchecked
builds ReturnInfoDraft without checking for non-null required values- Returns:
- ReturnInfoDraft
-
of
factory method for an instance of ReturnInfoDraftBuilder- Returns:
- builder
-
of
create builder for ReturnInfoDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-