Protected ReadonlycacheProtected ReadonlydbStaticinstanceThe process default: built from each dependency's own instance().
The ACH_DEBIT withdrawal opened for an inbound debit, read from the
database. method_data->>'achId' has no unique constraint, so this read
is the only dedupe on that debit.
The withdrawal while it is still in one of statuses, read from the
database. For a guard that acts on that status, where a stale cached
status would let it act twice (finalize after a return, refund after a
completion).
Get a withdrawal by ID without customer restriction
Clear each customer's membership tag and each record tag wherever cached,
and always this namespace's collection tag. keys are exact deletes in this
instance's key space: the only bust a null client honours.
Busts what a new withdrawal changes. A new withdrawal appears in the owning
customer's transaction projection, so the transaction caches tagged with
the customer are busted (cross-process) and the new id is broadcast.
create calls this itself; a caller that passed tx calls it after commit.
Records a payout's RouteFusion transfer once and answers with the transfer
that holds the record: transferId, or an earlier attempt's. The check and
the write share the row lock, so two attempts cannot each record their own.
Admin search for withdrawals without customer restriction. Reads through
the withdrawal-search cache, except under a caller's tx.
Iterates every withdrawal matching the filters, paginating internally.
ProtectedsearchTags for a page: the scope its query searched (each customer's membership
tag, else the collection tag), so an empty page is bustable too, plus the
records it projects and the fields that chose or ordered its rows.
Optionalid?: stringOne id; union'd with ids when both are given.
Optionalids?: string[]OptionalincludeHistory?: booleanOptionaltx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>StaticadminThe keys an unfiltered WithdrawalAdminQueryService.get({ id }) reads through.
StaticcustomerThe keys WithdrawalQueryService.get reads through, one per
includeHistory variant (search's page default included). Writers pass
them so read-after-write holds under a null client, where tag busts no-op.
Admin withdrawal reads. Extends WithdrawalCache, which owns the
withdrawal-searchnamespace these reads go through.