Skip to content

Direct settlement (AngelPay → merchant bank) — money-side impact map

Research date 2026-10-07. Read-only. Repos at: terminales-api 412e3f27 (main). Paths below are relative to ~/repos/terminales-api/src unless prefixed. Legend: [V] = verified by reading the code/doc at the cited line; [I] = inferred (reasoning, not a code fact).


Today every card sale credits a server-written CARD_TERMINAL deposit into the merchant’s wallet pending bucket («Por confirmar»). The AngelPay xlsx import confirms it, which releases the net (gross − Axios rule commission − optional passed-through PSP fee) into «Disponible» and writes Axios revenue to platform_ledger_entries. A daily settlement_reports row (card money only) is the only thing a liquidación can draw against, and an operator pays it out by hand to the verified CLABE. Under direct settlement all of that card machinery stops carrying money. The wallet becomes a pure VAS/recargas prepaid float, funded only by bank deposits. Axios loses its only commission-collection point (commission is deducted at release, wallet-engine.service.ts:1439), so a new collection mechanism is mandatory. There is a ready precedent in code: the PSP-partner settlementModel enum already declares MERCHANT_DIRECT (psp-partner/psp-contract.types.ts:107, design D2) but its “record + finalize, no wallet deposit” tail is not built. Today LIVE skips the whole tail for it, finalize included (psp-partner/psp-transitions.service.ts:439-465). AngelPay itself has no settlement-model switch: it is hard-wired to one Axios affiliation. Per-merchant affiliation data has a dormant home (payment_provider_accounts, schema only, unused), and per-terminal credentials already carry an optional angelpayMerchantId.


1. Today’s card money path, component by component [V unless noted]

Section titled “1. Today’s card money path, component by component [V unless noted]”
  • Adapter routing: payment-intents/card-adapter.registry.ts:54-77. A terminal with pspPartnerId routes to PSP_PARTNER, everything else to ANGEL_PAY. No merchant-level processor config is consulted.
  • AngelPay adapter: payment-intents/angelpay-card.adapter.ts (uses the Terminales merchantId only, :163/:430). The N86 SDK logs in with per-terminal email+PIN from psp_terminal_credentials (pos/terminals/psp-session.service.ts:158, psp-credentials/psp-credentials.service.ts:297-341). The server never tells AngelPay which affiliation; the terminal login decides it.
  • There are four writers of the card deposit, all funnelled through DepositsService.register:
    • pos/sales/settlement-workflow.service.ts:904-940 (registerDeposit, the unified tail; holdUntilSettled:false for partner sales, :933-938; emulated skip :908-923)
    • payment-intents/card-present/card-charge-workflow.ts:501
    • pos/sales/sales.service.ts:418-443 (one-shot finalize, always held)
    • vas/sale/vas-sale.service.ts:1929-1963 (card-paid VAS order)
  • Chokepoint:
    • wallet/deposits/deposits.service.ts:286-345 stamps settlementStatus (pending_settlement, or settled at credit for a partner sale) and enqueues the credit.
    • wallet/deposits/wallet-engine.adapter.ts:48 chooses the pending bucket for CARD_TERMINAL unless holdUntilSettled === false.
    • The client may never register CARD_TERMINAL (deposits.constants.ts:36-50).
  • Lifecycle constants:
    • wallet/deposits/deposits.constants.ts:225-246: SETTLEMENT_STATUSES = pending_settlement | settled | rejected.
    • Reject reasons are at :255-288 and include contracargo and anulada_en_terminal.
    • settlesViaPsp() is at :332.
  • Engine: wallet/wallet-engine.service.ts (3,296 lines, DBOS, per-merchant partition). It has two buckets, availableBalance and pendingBalance (:574-582, snapshot :1608-1615).
  • releasePendingCredit: :1418-1484. Fees are required. It writes the PSP_FEE/COMMISSION movements and platform ledger rows inside the same step, before SETTLEMENT_RELEASE (:2553-2600, :2843-2930).
  • rejectPendingCredit: :1486-1520. It reverses only the pending bucket and never touches available.
  • Pending-bucket refusal: enqueueReversal refuses a pending-bucket movement (:369-375, :911).
  • Platform revenue ledger: wallet/platform-ledger.constants.ts:1-120. Kinds are COMMISSION_REVENUE, PSP_FEE_COST and PSP_FEE_RECOVERY. Its only writer is the release.

1.3 Confirmation / reconciliation against the processor

Section titled “1.3 Confirmation / reconciliation against the processor”
  • AngelPay xlsx import:
    • Parser: payment-intents/card-settlement/angelpay-workbook.parser.ts (includes ivaAmount, :130).
    • Column map: card-settlement.constants.ts:133-215.
    • Upload: card-settlement-import.service.ts.
    • Apply: card-settlement-apply-run.service.ts, then card-settlement-reconcile.service.ts:360-395 (match → release → flip settled).
    • The release call is at :961; fees are at :1081-1083.
    • Merchant attribution uses only the terminal serial, because “the import spans every merchant (one acquirer affiliation)” (:1178-1180).
  • Exceptions and monitors:
    • card-tender-exceptions.service.ts
    • card-refused-approvals.service.ts (approved-after-close)
    • card-settlement-aged-pending.{service,scheduler}.ts (setting settlement.cardPendingAlertBusinessDays, core/runtime-settings/settings-registry.ts:603-618)
    • settlement-orphan-resumer.scheduler.ts
  • settlement.source: settings-registry.ts:589-600 (angelpay_import | computed_rollup). It is read by wallet/settlements/card-settlement-report.service.ts:169 and settlement-rollup.scheduler.ts:~195. The registry comment calling it “inert” (:580-586) is stale.
  • PSP-partner report rebuild: card-settlement-psp-report.scheduler.ts:34-50. It runs hourly and rebuilds reports for settled-at-credit partner money.
  • AngelPayHttpClient (portal/API pull) is a stub: payment-intents/angelpay-http.client.ts:20-38, “TODO(human) … BLOCKED”.
  • Bank-statement reconciliation (separate path, channels A/B/C):
    • Import: wallet/reconciliation/bank-statement-import.service.ts:230 importStatement, :815 creditMerchant.
    • Profiles: bank-format-profile.*.
    • Exceptions: deposit-exceptions.service.ts.
    • Concentrator CLABE setting: reconciliation.concentratorClabe, settings-registry.ts:~705.
    • This path credits wallet top-ups (VAS float), not card money.
  • Effective-dated rules:
    • Constants: wallet/settlements/commission/commission.constants.ts:1-60 (bps, global + per-merchant, may be 0, fail-closed when missing).
    • Code: commission-rules.service.ts, commission-rate-resolver.ts.
    • Seed: global-rule-seed.ts:42 (legacy default 2 %).
  • Release pricer: commission/release-fee-resolver.ts:30-80. Commission comes from the rule at the sale’s business date. The PSP fee comes from settlement.pspFeeRateBps / settlement.pspFeeMode (absorbed default | pass_through; settings-registry.ts:658-700). The actual PSP cost comes from the import line (gross − AngelPay net, IVA included).
  • IVA / CFDI:
    • There is no IVA on the Axios commission and no CFDI generation anywhere in wallet/, payment-intents/, vas/ or core/. The only IVA references are AngelPay’s own IVA, parsed from the xlsx (angelpay-workbook.parser.ts:130, commissions-report.service.ts:60).
  • Reports:
    • Platform commissions report: payment-intents/card-settlement/commissions-report.service.ts.
    • Merchant-facing projection of rule commission per tender: reports/pos/sales-by-payment-method.service.ts:16,52-60, reports/pos/rule-commission.ts, reports/pos/commissions-report.service.ts.

1.5 Settlement reports → liquidaciones (payout)

Section titled “1.5 Settlement reports → liquidaciones (payout)”
  • Reports are card-only: settlement_reports holds card money only (wallet/settlements/settlement.constants.ts:289-372 aggregateSettlement and :420-440 computeReportFigures). Net = confirmed card − commission − pspFee. Cash is shown but never payable.
  • Writers: the import-authoritative card-settlement-report.service.ts and the nightly rollup settlement-rollup.scheduler.ts.
  • Request (settlement-requests.service.ts:164):
    • Gates: assertCanWithdraw (verified + active) and the modules.settlements module (settings-registry :560).
    • The request must name a report and is bounded by report.availableAmount (:~212).
    • It enqueues one WITHDRAWAL debit.
    • Bank-deposit / VAS float money cannot be liquidated, because no report exists for it.
  • Settle (:325-405): an operator records the SPEI reference per destination, after re-verifying the CLABE (B3). The payout is manual and out-of-band. docs/integrations/spei-payout-providers-2026-10.md evaluates STP and similar providers; nothing is built.
  • Reject (:412-…): a reversal credit, plus re-deriving the report’s available amount.
  • CLABE: merchant-bank-accounts/* (four-eyes verification, settlement.allowAdminSelfVerify), plus payout-destination-gate.ts.
  • Same-day terminal void: payment-intents/card-void/card-void.service.ts:142-163. It reverses the «Por confirmar» credit via CardDepositRejectService with anulada_en_terminal, then voids the order, restocks and reverses the rollup. If the deposit is already settled, it refuses with 409 and raises an operator exception (:548-592).
  • Operator reject: card-settlement/card-deposit-reject.service.ts:120-147. Only pending_settlement deposits holding an unreleased pending credit can be rejected; anything else is 409 deposit_not_rejectable.
  • Refunds: AngelPay supports no card refunds. Any refund on a card sale is a cash refund and never touches the wallet. [V for the code path absence; the AngelPay policy is from the docs]
  • Chargebacks: there is no chargeback flow. contracargo is only a reject reason, usable while the deposit is still pending. There is no clawback after release; the card-settlement-model doc lists auto-reversal as “Deferred”.
  • Cash: CASH_DIRECT goes to the drawer only, never the wallet (deposits.constants.ts:83-97). The Z report has no wallet or deposit coupling: reports/pos/z-report.service.ts does not import deposits or the wallet engine (checked by grep).
  • VAS: vas/fulfillment/vas-fulfillment-workflow.service.ts:1057-1095 debits the wallet available balance for amount + commission before vending. The sale is blocked when funds are insufficient.
  • A card-paid VAS order also credits the wallet with the card gross into pending (vas-sale.service.ts:1914-1963). The card money therefore replenishes the float at T+1 net. [V]
  • Platform top-up by card: fail-closed (UnavailablePlatformCardCharge, platform-connections/platform-connections.module.ts:85), so it is not live.

1.8 Flags and abstractions for “who settles”

Section titled “1.8 Flags and abstractions for “who settles””
  • settlement_unified: gone from the api. No hit for “unified” except the soak-audit origin tags. sales_orders.settlementModel = legacy|unified (pos/sales/settlement-model.ts) is a per-order tender-flow lock and has nothing to do with who receives funds.
  • PSP partners:
    • psp_partners.settlementModel is PLATFORM_COLLECTS | MERCHANT_DIRECT | null (infra/appwrite/appwrite.config.json:10560; psp-partner/psp-contract.types.ts:107; psp-config.ts:36-80).
    • The create gate is at psp-partner-card.adapter.ts:377-397.
    • The LIVE result skips the whole tail (psp-transitions.service.ts:439-465).
    • The design doc is ~/repos/terminales-solution/docs/integrations/psp-partner/psp-partner-api-design.md:111 (D2 “Settlement model undefined ⇒ configurable per partner”), :252, :403-406 (“MERCHANT_DIRECT … rejected until its tail variant (record + finalize, no wallet deposit) is built”), :646 (open item).
  • AngelPay: there is no equivalent. It is hard-wired to platform-collects.
  • Per-store affiliation table: payment_provider_accounts (appwrite.config.json:10842). Columns include angelpayMerchantId, affiliation, commerceId, acquirerBank, hasRefund, hasCancel, msiPlans and lastVerifiedAt. It is unused by code; only its id constant exists, at psp-credentials/psp-credentials.constants.ts:15. The rationale is in docs/integrations/angelpay-psp.md:34-37,124,148 (“one AngelPay affiliation ↔ one Terminales store”).
  • Per-terminal credentials: psp_terminal_credentials.angelpayMerchantId is an optional integer, per terminal (appwrite.config.json:10407).
  • Merchant capabilities: pos/merchant-capabilities/merchant-capabilities.service.ts:584-620. canSell is tender-agnostic. There is no card-specific sell gate.
  • KYC: platform-run (verification-solution). src/verification/document-pack/document-pack.types.ts:1-11 is the optional “processor docs pack” for a future per-merchant affiliation. Nothing contemplates KYC run by the processor.

2. Component → today → under direct settlement → change size

Section titled “2. Component → today → under direct settlement → change size”
# Component (file) Today Under direct settlement Size
1 Card deposit writers (4 sites, §1.1) + DepositsService.register Writes the CARD_TERMINAL deposit and a pending wallet credit No wallet credit. You still need a record of the card sale for reconciliation, maybe a deposit with a new settledBy: PROCESSOR_DIRECT marker, or no deposit at all. The emulated-skip and holdUntilSettled:false branches are the templates. It must be decided per sale from the affiliation mode at authorization time and frozen on the intent, as sales_orders.settlementModel freezes the tender flow. M
2 Wallet pending bucket / releasePendingCredit / rejectPendingCredit Holds «Por confirmar» and releases the net Dead for direct merchants and kept for legacy in-flight funds until drained. The code stays. S (stays)
3 platform_ledger_entries + COMMISSION/PSP_FEE movements Axios revenue booked at release No release, so no revenue booking. Needs a new revenue source: invoice, split, or netting (§3). L
4 Commission rules + ReleaseFeeResolver Priced per deposit at release The rules may survive as the rate catalogue, but the deduction point disappears. The MDR becomes AngelPay’s to charge the merchant directly, so settlement.pspFeeMode/pspFeeRateBps mean nothing. M
5 AngelPay xlsx import + reconcile + exceptions + aged-pending monitor Confirms the money Axios received It becomes informational: confirming that AngelPay paid the merchant, catching declines, approved-after-close, and the like. One Axios export no longer covers everyone. Per-affiliation reports, or an AngelPay API, are needed (angelpay-http.client.ts is still a stub). Matching by terminal serial still works. M–L
6 settlement_reports + rollup + PSP report scheduler Daily card net that is withdrawable Obsolete for direct merchants. The report could survive as a read-only “what AngelPay should deposit to you” statement. M
7 Liquidaciones (settlement-requests.*, ops screens, CLABE four-eyes, SPEI provider plan) The only money-out No card money to pay out. The VAS float is not withdrawable today either, so the whole module goes idle. Keep it only if float withdrawal is wanted. The STP payout-provider work can be deprioritized. S to disable, M to re-scope
8 Merchant bank accounts (CLABE) The payout destination, verified by Axios The CLABE moves to AngelPay’s onboarding. Axios may keep it as a reference (to reconcile that AngelPay paid the right account), or for float refunds. S
9 Merchant capabilities / sell gate canSell = active && (verified || policy A) Needs a canSellCard gate: an affiliation active for this store/terminal. Cash and VAS could stay open. Verification semantics change: if AngelPay runs KYC/KYB, isVerified might be fed by the affiliation state, or remain the platform’s own for VAS money-out. M
10 Affiliation data Unused payment_provider_accounts + per-terminal angelpayMerchantId Becomes required: per store (or merchant) affiliation id, status (pending/active/suspended/rejected), effective dates, the bank account AngelPay pays, and the binding terminal→affiliation, validated at pairing and on every charge. Credential provisioning per affiliation (one AngelPay user per terminal, logging into that merchant’s affiliation). L
11 Card void (card-void.service.ts) Reverses the pending credit, anulada_en_terminal Wallet step skipped. AngelPay cancels before its cutoff, so the merchant never receives the money. The order/stock/rollup part is unchanged. S
12 Chargebacks None (only a pending reject reason) AngelPay debits the merchant’s own settlement, which is simpler for Axios. Axios has no exposure unless the commission was already collected (refund the commission?). S (policy)
13 VAS (recargas) Wallet float debited; a card-paid VAS order re-credits the float at T+1 Material change: a card-paid recarga now pays the merchant at the bank and debits the float, so the float only refills by bank transfer (channel B import). Merchants top up more often. Alternatively, keep VAS card sales on an Axios affiliation, which leaves a mixed path (§4). M
14 PSP-partner MERCHANT_DIRECT Declared, create-gated, the LIVE tail skips finalize too It is the same “record + finalize, no deposit” tail needed for AngelPay. Build it once, provider-agnostic. M
15 Reports: Z / daily sales / by-employee Tender totals Unchanged. [V Z has no wallet coupling] —
16 Reports: sales-by-payment-method commission column, commissions report Projects the Axios rule commission on card tenders Must show the AngelPay MDR (from the processor) plus the Axios fee, or drop the column. S–M
17 Web/N86 surfaces (§5) «Por confirmar», Liquidaciones, Conciliación cobros con tarjeta Rewrite the copy and hide modules per merchant mode. The «Por confirmar» meaning changes to “AngelPay will deposit to your account”. M
18 IVA / CFDI Not built Required if Axios invoices merchants for its fee. Today there is no tax handling at all. L (new)
19 Docs (card-settlement-model.md, liquidaciones-payout-model.md, manual cap. 07 «Su dinero», T&C) Platform-collects throughout Rewrite. M

  1. How Axios collects its commission. This is the blocker. Options:

    • (a) Split settlement at AngelPay. AngelPay pays merchant net-of-Axios-fee and pays Axios its share. This is the cleanest, if AngelPay supports a sub-merchant fee split (ask). Code then only reconciles the Axios share, and the commission rules become what is configured at AngelPay.
    • (b) Monthly invoice (CFDI) to each merchant, plus SPEI or direct debit. This needs a billing module, IVA, CFDI via a PAC, and collections and dunning. L.
    • (c) Net against the VAS float. Debit the commission from the wallet. This fails for card-only merchants with no float, and debiting money they deposited for recargas is legally and product-wise doubtful.
    • (d) Waive it (rules can be 0). Trivial in code, but it is a business-model change.

    The existing platform_ledger_entries (revenue ledger) can be reused for (a) or (b) if it gains a non-release writer.

  2. Per-sale settlement mode, frozen at authorization. Stamp settlementModel (or settledBy) on payment_intents / order_payments from the terminal’s affiliation at charge time, so that cutover and terminal moves can’t re-route a sale already taken. This mirrors sales_orders.settlementModel and the PSP partner D2 design.

  3. Data needed:

    • Affiliation per store (the docs suggest store) with status and dates.
    • terminal ↔ affiliation binding, validated at pairing and at charge.
    • Per-merchant AngelPay settlement reports (portal export per affiliation, or API).
    • What AngelPay actually deposited per merchant per day (for disputes; Axios never sees the bank leg).
    • Merchant-facing MDR rates if shown.
  4. The wallet’s new meaning. It becomes VAS float only: in = bank deposit (channel A/B/C, reconciliation import), out = VAS debits and transfers. «Por confirmar» disappears for direct merchants, and liquidaciones becomes idle.

  • Mixed population. Legacy (platform-collects) and direct merchants coexist during migration. The per-sale stamp (§3.2) makes this deterministic. The settlement import must ignore direct-mode lines or route them to an “informational” path. Under one Axios export, a direct merchant’s lines will not appear at all, because they belong to other affiliations.
  • In-flight «Por confirmar» at cutover. Sales taken under the Axios affiliation still settle to Axios at T+1. Their deposits must still be released, and the resulting «Disponible» must still be liquidated. So the old path must keep running until each merchant’s pending bucket and report availableAmount drain to 0. Define a cutover = the date of the first sale under the new affiliation, not the date of the flag.
  • Refund or void after settlement. AngelPay supports no refunds (only a same-day SDK void, per the docs), and cash refunds don’t touch money flows. A chargeback is debited by AngelPay from the merchant directly. Who refunds the Axios commission on a charged-back sale? It needs a policy.
  • Terminal moved between merchants/stores. The AngelPay credentials are per terminal (psp_terminal_credentials with merchantId stamped). Moving a terminal must re-provision AngelPay credentials into the new affiliation, or the new merchant’s sales settle to the old merchant’s bank. This is the highest-severity money risk. It needs a hard gate at re-pairing and per charge (compare the terminal’s affiliation with the store’s).
  • Multi-store merchant. The docs suggest one affiliation per store; a merchant could also have one affiliation for all stores. The model must allow both (an affiliation scoped to merchant or store, with terminals bound to one).
  • Merchant not yet affiliated. Block card at the tender (canSellCard), or temporarily route through the Axios affiliation (that is the mixed path again). Cash and VAS stay available.
  • Affiliation rejected or suspended by AngelPay. It needs inbound status (webhook or manual) that flips canSellCard. Terminal credentials should be DISABLED (psp_terminal_credentials.status).
  • Commission disputes. Axios no longer holds the money, so it has no leverage beyond collections or suspension.
  • Split-tender (card + cash). The card leg follows the stamp and the cash leg goes to the drawer. Today aggregateSettlement disambiguates multi-tender orders by amount, and that logic is only needed for the legacy path.
  • PSP partners coexisting. They already have per-partner settlementModel. Unifying the AngelPay and partner “no-deposit tail” avoids two divergent paths.
  • Tax. If Axios invoices its fee: IVA 16 % on the commission, CFDI per period, RFC/régimen data on merchants (check that verification captures RFC). Today there is none.
  • Daily rollups and sales reports. Tender-based reports are unaffected. settlement_reports and the sales-by-payment-method commission column need re-scoping.
  • KYC by AngelPay. isVerified gates money-out (liquidaciones) only. With no card payouts, the platform KYC would mainly gate VAS float money-out (transfers). AngelPay KYB acceptance would become the gate for card selling. The two verifications should not be conflated, and the AngelPay docs pack (document-pack) becomes required, not optional.

Source: a sub-agent’s file:line map, spot-checked lightly. [V by sub-agent]. Web is at terminales-web@74d4692e (src/...). Android is at terminales@79fc4aee (app/src/main/java/com/axios/terminales/...).

Screens that change meaning or go idle for direct merchants:

  • Monedero: app/admin/wallet/page.tsx:28, components/Wallet/WalletView.tsx:280-282,313-412,485-508.
    • «Disponible» and «Por confirmar» cards, plus the card-settlement pills on each movement.
    • «Retirar» links to /admin/settlements.
    • Copy is in wallet.i18n.ts:66-91.
    • For a direct merchant, «Por confirmar» and «Cobro con tarjeta confirmado» disappear, and Retirar has nothing to withdraw.
  • Liquidaciones (merchant): app/admin/settlements/page.tsx:24 (modules.settlements).
    • Components: SettlementReportList.tsx, SettlementReportDetail.tsx:6,273, DisposeBalanceModal.tsx, SettlementRequestDetail.tsx.
    • This is the whole module. It can be hidden per merchant through modules.settlements, which is already scoped realm+merchant: settings-registry.ts:560. That is a cheap kill per merchant.
  • Operator screens:
    • settlements/ops (SettlementsOpsConsole.tsx)
    • platform/card-settlement (ImportConsole.tsx tabs: imports, exceptions, aged, refused approvals; RejectDepositDialog.tsx)
    • card-settlement/commissions (CommissionsReport.tsx)
    • platform/commissions (CommissionRulesEditor.tsx)
    • settlements/bank-verification (BankVerificationConsole.tsx, four-eyes)
    • All of these are re-scoped or idle for direct merchants. The bank reconciliation and parser-profile screens stay: they handle VAS float top-ups.
  • CLABE: components/Merchants/MerchantBankAccountCard.tsx. Could become “account registered with the processor” (informational).
  • Affiliation input already exists — per terminal only. components/PlatformDevices/AssignCredentialForm.tsx:69,89-148 has an «Identificador de afiliación» field, sent as angelpayMerchantId (assignCredential.hooks.ts:59,72).
    • There is no merchant- or store-level affiliation UI.
    • The «Documentación para el procesador» block exists: MerchantDetailTabs.tsx:23,175.
  • Card tender gate: modules.cardPayments (TenderMethodDialog.tsx:182, SplitTenderDialog.tsx:196, useCardTender.ts:255).
    • It is a module switch, not an affiliation-status gate.
    • It is the natural hook for “not yet affiliated, so no card”, if the api enforces it too.
  • Unaffected: Z report, daily sales and Corte Z (components/PosZReport/*, PosDailySalesReport/*). They are tender-only.
  • Gaps already present today:
    • The web deposit list (DepositList.tsx:76-84) shows no settlementStatus and no anulada_en_terminal.
    • useUnsettledBalanceQuery (wallet.hooks.ts:260) is exported but unused.
  • After approval: POST /pos/orders/:id/card-tender (payment/tender/CardTenderApiClient.kt:21,74-78), then a watch on the settlement-<clientId> job (SettlementJobObserver.kt). It shows no wallet and no balance.
    • The N86 is almost untouched by direct settlement.
    • The exception is the AngelPay login: it is per terminal, through /pos/terminals/psp-session (payment/psp/PspSessionClient.kt:129). Under direct settlement it must log into the merchant’s affiliation.
  • Void: payment/cardvoid/CardVoidModels.kt:1-40, CardVoidContract.kt:21-62. The /card-void/check refusal “deposit confirmed” disappears or changes for direct mode. The api side is card-void.service.ts:548-592.
  • Other screens:
    • Deposits list (ui/screens/deposits/DepositsListScreen.kt): stays, for the VAS float.
    • CLABE entry (ui/screens/verification/bank/MerchantBankAccountScreen.kt): re-scope.
    • Wallet transfer for VAS (wallet/WalletTransferApiClient.kt): stays.
  • Gate: card tender is gated by modules.cardPayments (CheckoutViewModel.kt:309).

Reusable today:

  • the MERCHANT_DIRECT concept and its create gate (psp-partner)
  • the emulated / holdUntilSettled:false deposit branches as templates for “no credit”
  • the per-merchant modules.settlements switch
  • the per-terminal angelpayMerchantId plus credential provisioning UI
  • the dormant payment_provider_accounts table
  • the provider-agnostic canSell capability service, to extend with canSellCard
  • the Z / daily reports, which are untouched

Missing:

  • a per-sale settlement-mode stamp
  • a “record + finalize, no deposit” tail. The LIVE partner skip today drops finalize too.
  • an affiliation entity with lifecycle, plus terminal binding validation
  • per-affiliation settlement-report ingestion. The AngelPay API client is still a stub.
  • any commission-collection mechanism outside the release
  • IVA / CFDI
  • a cutover/drain procedure for in-flight «Por confirmar» funds and open liquidaciones
  • a chargeback / commission-refund policy
  • copy and doc rewrites (manual cap. 07, T&C, card-settlement-model, liquidaciones-payout-model)

Rough size:

  • If AngelPay does a fee split, so Axios’s share arrives from AngelPay: ~M overall, ~2–3 weeks for api, web and docs. The work is mostly gating, a no-deposit tail, the affiliation entity, and reconciliation re-scope.
  • If Axios must invoice merchants itself (CFDI + collections): L, 5–8+ weeks, dominated by billing and tax, which is new territory with zero code today.
  • Either way, the hardest risk is not code volume but terminal↔affiliation integrity: a mis-bound terminal pays the wrong merchant’s bank, and Axios can’t claw back money it never held.

Verified vs inferred:

  • Everything in §1 with a file:line is verified by reading the code or doc, either by me or by sub-agents (§1.1 adapter/credentials, §1.8 affiliation/partner, §5).
  • The tables in §2 (Today column) are verified.
  • The “Under direct settlement” column, §3, §4 and §6 are inference.
  • AngelPay’s own capabilities (sub-merchant fee split, per-affiliation reports API, KYB) are unknown. They are not in the repos, and must be asked of AngelPay.