Class OrderTransitionCustomLineItemStateActionBuilder
- All Implemented Interfaces:
Builder<OrderTransitionCustomLineItemStateAction>
Example to create an instance using the builder pattern
OrderTransitionCustomLineItemStateAction orderTransitionCustomLineItemStateAction = OrderTransitionCustomLineItemStateAction.builder()
.quantity(0.3)
.fromState(fromStateBuilder -> fromStateBuilder)
.toState(toStateBuilder -> toStateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactualTransitionDate
(ZonedDateTime actualTransitionDate) Date and time (UTC) to perform the State transition.build()
builds OrderTransitionCustomLineItemStateAction with checking for non-null required valuesbuilds OrderTransitionCustomLineItemStateAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.fromState
(StateResourceIdentifier fromState) State the Custom Line Item should transition from.State the Custom Line Item should transition from.Date and time (UTC) to perform the State transition.id
of the CustomLineItem to update.key
of the CustomLineItem to update.State the Custom Line Item should transition from.Number of Custom Line Items that should transition State.State the Custom Line Item should transition to.of()
factory method for an instance of OrderTransitionCustomLineItemStateActionBuilderof
(OrderTransitionCustomLineItemStateAction template) create builder for OrderTransitionCustomLineItemStateAction instanceNumber of Custom Line Items that should transition State.toState
(StateResourceIdentifier toState) State the Custom Line Item should transition to.State the Custom Line Item should transition to.State the Custom Line Item should transition from.State the Custom Line Item should transition to.
-
Constructor Details
-
OrderTransitionCustomLineItemStateActionBuilder
public OrderTransitionCustomLineItemStateActionBuilder()
-
-
Method Details
-
customLineItemId
public OrderTransitionCustomLineItemStateActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public OrderTransitionCustomLineItemStateActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
quantity
Number of Custom Line Items that should transition State.
- Parameters:
quantity
- value to be set- Returns:
- Builder
-
fromState
public OrderTransitionCustomLineItemStateActionBuilder fromState(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) State the Custom Line Item should transition from.
- Parameters:
builder
- function to build the fromState value- Returns:
- Builder
-
withFromState
public OrderTransitionCustomLineItemStateActionBuilder withFromState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) State the Custom Line Item should transition from.
- Parameters:
builder
- function to build the fromState value- Returns:
- Builder
-
fromState
State the Custom Line Item should transition from.
- Parameters:
fromState
- value to be set- Returns:
- Builder
-
toState
public OrderTransitionCustomLineItemStateActionBuilder toState(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) State the Custom Line Item should transition to.
- Parameters:
builder
- function to build the toState value- Returns:
- Builder
-
withToState
public OrderTransitionCustomLineItemStateActionBuilder withToState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) State the Custom Line Item should transition to.
- Parameters:
builder
- function to build the toState value- Returns:
- Builder
-
toState
State the Custom Line Item should transition to.
- Parameters:
toState
- value to be set- Returns:
- Builder
-
actualTransitionDate
public OrderTransitionCustomLineItemStateActionBuilder actualTransitionDate(@Nullable ZonedDateTime actualTransitionDate) Date and time (UTC) to perform the State transition.
- Parameters:
actualTransitionDate
- value to be set- Returns:
- Builder
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getQuantity
Number of Custom Line Items that should transition State.
- Returns:
- quantity
-
getFromState
State the Custom Line Item should transition from.
- Returns:
- fromState
-
getToState
State the Custom Line Item should transition to.
- Returns:
- toState
-
getActualTransitionDate
Date and time (UTC) to perform the State transition.
- Returns:
- actualTransitionDate
-
build
builds OrderTransitionCustomLineItemStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderTransitionCustomLineItemStateAction>
- Returns:
- OrderTransitionCustomLineItemStateAction
-
buildUnchecked
builds OrderTransitionCustomLineItemStateAction without checking for non-null required values- Returns:
- OrderTransitionCustomLineItemStateAction
-
of
factory method for an instance of OrderTransitionCustomLineItemStateActionBuilder- Returns:
- builder
-
of
public static OrderTransitionCustomLineItemStateActionBuilder of(OrderTransitionCustomLineItemStateAction template) create builder for OrderTransitionCustomLineItemStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-