Tracks cash-payment transaction workflow state and cancellation state.
Parameters
previousState: CashPaymentTransactionState = ...
action: ReducerAction
Returns CashPaymentTransactionState
Remarks
State is { activeTransactionId?, latestTransaction, cancelling, cancelSucceeded, cancelError? }. Create/status responses update the active
transaction. Cancellation start/success/failure actions update the flags and
optional error. Cash-state clearing and sessionReset restore the defaults.
Tracks cash-payment transaction workflow state and cancellation state.