Interface PaymentTransitionStateAction

All Superinterfaces:
PaymentUpdateAction, ResourceUpdateAction<PaymentUpdateAction>
All Known Implementing Classes:
PaymentTransitionStateActionImpl

If the Payment has no current State, initial must be true for the new State. If the existing State has transitions set, the new State must be a valid transition. If the existing State has no transitions set, no validations are performed when transitioning to the new State.

Transitioning the State of a Payment produces the PaymentStatusStateTransition Message.


Example to create an instance using the builder pattern

     PaymentTransitionStateAction paymentTransitionStateAction = PaymentTransitionStateAction.builder()
             .state(stateBuilder -> stateBuilder)
             .build()