---
id: TST-ACC-REC-058
title: Payout management inspection
kind: integration
product_area: accounting
module: reconciliation
revision: 1
status: draft
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
repository: services-accounting
files:
  - modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js
implements:
  - ATS-ACC-REC-001-06
  - ATS-ACC-REC-001-08
  - ATS-ACC-REC-004-01
  - ATS-ACC-REC-004-02
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 5
isolation: Suite-owned workspace fixtures and deterministic records removed by suite cleanup.
evidence:
  - >-
    services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js
bindings:
  - scenario: ATS-ACC-REC-001-06
    assertions:
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#searches
        by the payout’s number written PO-n
  - scenario: ATS-ACC-REC-001-08
    assertions:
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#answers
        the live payouts of the amount within two business days of the date, by number, Columbus Day skipped
  - scenario: ATS-ACC-REC-004-01
    assertions:
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#orders
        payouts of one accounting date by id, descending
  - scenario: ATS-ACC-REC-004-02
    assertions:
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#filters
        by merchant account
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#filters
        by business unit
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#filters
        by accounting date, inclusive at both ends
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#filters
        by bank verification
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#searches
        by the processor’s reference exactly
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#searches
        by the payout’s number written PO-n
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#filters
        the payouts no batch holds, a released link not holding one, a voided payout awaiting nothing
        (DEF-ACT-0592)
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#leaves
        the voided payouts out when asked for voided false (DEF-ACT-0592)
      - >-
        services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#lists
        only the voided payouts when asked for voided true (DEF-ACT-0592)
---

# Payout management inspection

## Verification Boundary

This suite calls production services over the real test database. Fixture setup may write records directly; the exercised commands and queries retain their normal database enforcement.

## What This Suite Proves

The executable assertions identified in the binding records supply the registered scenario observations. When a scenario names several suites, this suite supplies its listed assertions and does not independently establish every clause.

## What It Does Not Prove

Deployed infrastructure, live console behavior and shared scheduling delivery are outside this local boundary.

## Real Dependencies and Test Doubles

PostgreSQL, migrations and the exercised production code are real. Fixtures supply the financial world and caller context; deterministic setup and owner-side inspection do not replace database enforcement.

## Must Not Be Doubled

The exercised database constraints, transactional services and route enforcement remain real. Replacing them would remove the boundary this suite registers.
