Class OrderAddReturnInfoActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderAddReturnInfoActionBuilder
- All Implemented Interfaces:
Builder<OrderAddReturnInfoAction>
public class OrderAddReturnInfoActionBuilder
extends Object
implements Builder<OrderAddReturnInfoAction>
OrderAddReturnInfoActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderAddReturnInfoAction orderAddReturnInfoAction = OrderAddReturnInfoAction.builder()
.plusItems(itemsBuilder -> itemsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionItems to be returned.build()
builds OrderAddReturnInfoAction with checking for non-null required valuesbuilds OrderAddReturnInfoAction 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 OrderAddReturnInfoActionBuilderof
(OrderAddReturnInfoAction template) create builder for OrderAddReturnInfoAction 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
-
OrderAddReturnInfoActionBuilder
public OrderAddReturnInfoActionBuilder()
-
-
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 OrderAddReturnInfoActionBuilder 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 OrderAddReturnInfoActionBuilder 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 OrderAddReturnInfoActionBuilder 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 OrderAddReturnInfoActionBuilder 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 OrderAddReturnInfoAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderAddReturnInfoAction>
- Returns:
- OrderAddReturnInfoAction
-
buildUnchecked
builds OrderAddReturnInfoAction without checking for non-null required values- Returns:
- OrderAddReturnInfoAction
-
of
factory method for an instance of OrderAddReturnInfoActionBuilder- Returns:
- builder
-
of
create builder for OrderAddReturnInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-