StaticinstanceThe process service, starting workflows on the temporal namespace's queue.
Hands returnAchDebitWithdrawal to a run of its own, which retries until the withdrawal's initiate run has closed.
Create a pending ACH debit authorization for an inbound debit against a virtual account.
Optionalsettled?: trueThe debit has already posted: quote it as CFX's own request with limits off, since refusing it cannot return the money. Unset for positive pay.
Find a pending ACH_DEBIT withdrawal by achId and reconcile it with the given bank transaction.
When no authorization exists the debit has still settled, so this creates
the same one the Pending webhook would have. That webhook is the only
thing that normally opens the authorization, and a dropped delivery used to
leave the bank transaction unreconciled and skip the FBO -> vacct sweep,
which runs inside the withdrawal workflow and is keyed on the withdrawal.
Callers must therefore only reach here for debits they have already
established are real (see isAllZeroAchTrace on the webhook path).
Cancels a denied debit's withdrawal and returns what it set aside. A run
still open at the withdrawal id can yet fund it, and a cancel beside it
would miss that, so this answers WITHDRAWAL_INITIATE_RUNNING until it closes.
Service responsible for handling withdrawal reconciliation operations.
Only use this if the withdrawal method maps 1:1 with a bank transaction.