Class StagedOrderAddReturnInfoActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderAddReturnInfoActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderAddReturnInfoAction>
public class StagedOrderAddReturnInfoActionBuilder
extends Object
implements Builder<StagedOrderAddReturnInfoAction>
StagedOrderAddReturnInfoActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderAddReturnInfoAction stagedOrderAddReturnInfoAction = StagedOrderAddReturnInfoAction.builder()
.plusItems(itemsBuilder -> itemsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionItems to be returned.build()
builds StagedOrderAddReturnInfoAction with checking for non-null required valuesbuilds StagedOrderAddReturnInfoAction without checking for non-null required valuesgetItems()
Items to be returned.Value to set.Value to set.items
(ReturnItemDraft... items) Items to be returned.items
(List<ReturnItemDraft> items) Items to be returned.of()
factory method for an instance of StagedOrderAddReturnInfoActionBuilderof
(StagedOrderAddReturnInfoAction template) create builder for StagedOrderAddReturnInfoAction instanceplusItems
(ReturnItemDraft... items) Items to be returned.Items to be returned.returnDate
(ZonedDateTime returnDate) Value to set.returnTrackingId
(String returnTrackingId) Value to set.Items to be returned.Items to be returned.
-
Constructor Details
-
StagedOrderAddReturnInfoActionBuilder
public StagedOrderAddReturnInfoActionBuilder()
-
-
Method Details
-
returnTrackingId
Value to set.
- Parameters:
returnTrackingId
- value to be set- Returns:
- Builder
-
items
Items to be returned. Must not be empty.
- Parameters:
items
- value to be set- Returns:
- Builder
-
items
Items to be returned. Must not be empty.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
Items to be returned. Must not be empty.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
public StagedOrderAddReturnInfoActionBuilder plusItems(Function<ReturnItemDraftBuilder, ReturnItemDraftBuilder> builder) Items to be returned. Must not be empty.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
withItems
public StagedOrderAddReturnInfoActionBuilder withItems(Function<ReturnItemDraftBuilder, ReturnItemDraftBuilder> builder) Items to be returned. Must not be empty.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
addItems
public StagedOrderAddReturnInfoActionBuilder addItems(Function<ReturnItemDraftBuilder, ReturnItemDraft> builder) Items to be returned. Must not be empty.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
setItems
public StagedOrderAddReturnInfoActionBuilder setItems(Function<ReturnItemDraftBuilder, ReturnItemDraft> builder) Items to be returned. Must not be empty.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
returnDate
Value to set. If not set, it defaults to the current date and time.
- Parameters:
returnDate
- value to be set- Returns:
- Builder
-
getReturnTrackingId
Value to set.
- Returns:
- returnTrackingId
-
getItems
Items to be returned. Must not be empty.
- Returns:
- items
-
getReturnDate
Value to set. If not set, it defaults to the current date and time.
- Returns:
- returnDate
-
build
builds StagedOrderAddReturnInfoAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderAddReturnInfoAction>
- Returns:
- StagedOrderAddReturnInfoAction
-
buildUnchecked
builds StagedOrderAddReturnInfoAction without checking for non-null required values- Returns:
- StagedOrderAddReturnInfoAction
-
of
factory method for an instance of StagedOrderAddReturnInfoActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderAddReturnInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-