Class PaymentStatusStateTransitionMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentStatusStateTransitionMessagePayloadBuilder
- All Implemented Interfaces:
Builder<PaymentStatusStateTransitionMessagePayload>
public class PaymentStatusStateTransitionMessagePayloadBuilder
extends Object
implements Builder<PaymentStatusStateTransitionMessagePayload>
PaymentStatusStateTransitionMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentStatusStateTransitionMessagePayload paymentStatusStateTransitionMessagePayload = PaymentStatusStateTransitionMessagePayload.builder()
.state(stateBuilder -> stateBuilder)
.force(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentStatusStateTransitionMessagePayload with checking for non-null required valuesbuilds PaymentStatusStateTransitionMessagePayload without checking for non-null required valuesWhether State transition validations were turned off during the Change Transaction State update action.getForce()
Whether State transition validations were turned off during the Change Transaction State update action.getState()
State of the Payment after the Transition State update action.of()
factory method for an instance of PaymentStatusStateTransitionMessagePayloadBuilderof
(PaymentStatusStateTransitionMessagePayload template) create builder for PaymentStatusStateTransitionMessagePayload instancestate
(StateReference state) State of the Payment after the Transition State update action.State of the Payment after the Transition State update action.withState
(Function<StateReferenceBuilder, StateReference> builder) State of the Payment after the Transition State update action.
-
Constructor Details
-
PaymentStatusStateTransitionMessagePayloadBuilder
public PaymentStatusStateTransitionMessagePayloadBuilder()
-
-
Method Details
-
state
public PaymentStatusStateTransitionMessagePayloadBuilder state(Function<StateReferenceBuilder, StateReferenceBuilder> builder) State of the Payment after the Transition State update action.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
public PaymentStatusStateTransitionMessagePayloadBuilder withState(Function<StateReferenceBuilder, StateReference> builder) State of the Payment after the Transition State update action.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
State of the Payment after the Transition State update action.
- Parameters:
state
- value to be set- Returns:
- Builder
-
force
Whether State transition validations were turned off during the Change Transaction State update action.
- Parameters:
force
- value to be set- Returns:
- Builder
-
getState
State of the Payment after the Transition State update action.
- Returns:
- state
-
getForce
Whether State transition validations were turned off during the Change Transaction State update action.
- Returns:
- force
-
build
builds PaymentStatusStateTransitionMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentStatusStateTransitionMessagePayload>
- Returns:
- PaymentStatusStateTransitionMessagePayload
-
buildUnchecked
builds PaymentStatusStateTransitionMessagePayload without checking for non-null required values- Returns:
- PaymentStatusStateTransitionMessagePayload
-
of
factory method for an instance of PaymentStatusStateTransitionMessagePayloadBuilder- Returns:
- builder
-
of
public static PaymentStatusStateTransitionMessagePayloadBuilder of(PaymentStatusStateTransitionMessagePayload template) create builder for PaymentStatusStateTransitionMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-