Class StagedOrderTransitionCustomLineItemStateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderTransitionCustomLineItemStateAction>
Example to create an instance using the builder pattern
StagedOrderTransitionCustomLineItemStateAction stagedOrderTransitionCustomLineItemStateAction = StagedOrderTransitionCustomLineItemStateAction.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 StagedOrderTransitionCustomLineItemStateAction with checking for non-null required valuesbuilds StagedOrderTransitionCustomLineItemStateAction 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 StagedOrderTransitionCustomLineItemStateActionBuildercreate builder for StagedOrderTransitionCustomLineItemStateAction 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
-
StagedOrderTransitionCustomLineItemStateActionBuilder
public StagedOrderTransitionCustomLineItemStateActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderTransitionCustomLineItemStateActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderTransitionCustomLineItemStateActionBuilder 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 StagedOrderTransitionCustomLineItemStateActionBuilder 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 StagedOrderTransitionCustomLineItemStateActionBuilder withFromState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) State the Custom Line Item should transition from.
- Parameters:
builder
- function to build the fromState value- Returns:
- Builder
-
fromState
public StagedOrderTransitionCustomLineItemStateActionBuilder fromState(StateResourceIdentifier fromState) State the Custom Line Item should transition from.
- Parameters:
fromState
- value to be set- Returns:
- Builder
-
toState
public StagedOrderTransitionCustomLineItemStateActionBuilder 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 StagedOrderTransitionCustomLineItemStateActionBuilder withToState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) State the Custom Line Item should transition to.
- Parameters:
builder
- function to build the toState value- Returns:
- Builder
-
toState
public StagedOrderTransitionCustomLineItemStateActionBuilder toState(StateResourceIdentifier toState) State the Custom Line Item should transition to.
- Parameters:
toState
- value to be set- Returns:
- Builder
-
actualTransitionDate
public StagedOrderTransitionCustomLineItemStateActionBuilder 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 StagedOrderTransitionCustomLineItemStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderTransitionCustomLineItemStateAction>
- Returns:
- StagedOrderTransitionCustomLineItemStateAction
-
buildUnchecked
builds StagedOrderTransitionCustomLineItemStateAction without checking for non-null required values- Returns:
- StagedOrderTransitionCustomLineItemStateAction
-
of
factory method for an instance of StagedOrderTransitionCustomLineItemStateActionBuilder- Returns:
- builder
-
of
public static StagedOrderTransitionCustomLineItemStateActionBuilder of(StagedOrderTransitionCustomLineItemStateAction template) create builder for StagedOrderTransitionCustomLineItemStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-