Skip to content

ATS-ACC-REC-004Find payouts with their status and activity: Capability Test Specification

Markdown

ATS-ACC-REC-004

Find payouts with their status and activity: Capability Test Specification

Markdown
  • DocumentProposed

KindAcceptance test setProduct areaAccountingModuleReconciliationRevision3

Read atservices-accounting f47cb263react-console baf6dae3

Coverage

  • Rule covered
  • Transition covered
  • Permission covered
  • Boundary covered
  • Interaction covered
  • Validation gap: FND-ACC-REC-049
  • Edge gap: FND-ACC-REC-049
  • Failure gap: FND-ACC-REC-049
  • Concurrency gap: FND-ACC-REC-049
  • Invariant gap: FND-ACC-REC-049

Test Scenarios

9 scenarios proving CAP-ACC-REC-004; 7 bound to an existing test.

01 Payout paging and request validationboundaryapinegativetest
Proves
BR-CAP-ACC-REC-004-01 BR-CAP-ACC-REC-004-02
Preconditions
Enough saved payouts span multiple pages.
Steps
Traverse cursors and try an oversized page, malformed cursor and invalid date shape.
Expected
Results sort newest first with identity tie breaking; bad requests fail and the final page has no cursor.
Data
Provide dozen payouts for this case.
Bound to
services-accounting:modules/reconciliation/tests/e2e/reconciliation-lists.e2e.spec.js#answers 200 with the tenant’s payouts, newest accounting date first
services-accounting:modules/reconciliation/tests/e2e/reconciliation-lists.e2e.spec.js#pages by the cursor it answers, the last page answering none
Source
services-accounting:modules/reconciliation/tests/e2e/reconciliation-lists.e2e.spec.js#answers 200 with the tenant’s payouts, newest accounting date first
02 Payout filters and number searchruleapitest
Proves
BR-CAP-ACC-REC-004-03 BR-CAP-ACC-REC-004-05
Preconditions
Records span units, merchants, states and bank outcomes.
Steps
Exercise all list filters and exact-reference or number searches.
Expected
Each query returns the matching records, excluding voided records when unreconciled is requested.
Data
Provide queries fixture for this case.
Bound to
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/unit/payout-list-query.spec.js#maps voided=false to a filter that leaves voided payouts out
Source
services-accounting:modules/reconciliation/tests/integration/services/persistence/payouts.queries.integration.spec.js#filters by merchant account
03 Reconciliation status follows the holdertransitionunittest
Proves
BR-CAP-ACC-REC-004-04
Preconditions
Payouts are unheld, open-held and finalized-held.
Steps
Calculate each status from its active link.
Expected
They appear unreconciled, in reconciliation and reconciled respectively.
Data
No additional fixture beyond the case setup.
Bound to
Source
services-accounting:modules/reconciliation/tests/unit/rules/payout-rules.spec.js#is in-reconciliation in an open batch
04 Read responses narrow actionspermissionapitest
Proves
BR-CAP-ACC-REC-004-06
Preconditions
A reader and editor inspect payouts, including a finalized payout.
Steps
Read the same record under each caller’s grants.
Expected
Evidence and holder remain visible while actions are limited by permissions and state.
Data
Assign callers through the relevant role policies.
Bound to
services-accounting:modules/reconciliation/tests/e2e/payouts.e2e.spec.js#answers the payout with its evidence and the open batch holding it
services-accounting:modules/reconciliation/tests/e2e/payouts.e2e.spec.js#answers an editor the actions its keys allow, without void or verify-bank
services-accounting:modules/reconciliation/tests/e2e/payouts.e2e.spec.js#answers a payout in a finalized batch no available action
Source
services-accounting:modules/reconciliation/tests/e2e/payouts.e2e.spec.js#answers the payout with its evidence and the open batch holding it
05 Chronological activity paginationruleapitest
Proves
BR-CAP-ACC-REC-004-07
Preconditions
A payout carries several recorded events.
Steps
Read successive activity pages.
Expected
Events retain their contents and appear oldest first with continuation only when needed.
Data
No additional fixture beyond the case setup.
Bound to
Source
services-accounting:modules/reconciliation/tests/e2e/payouts.e2e.spec.js#answers the payout’s history oldest first
06 Read grants and workspace isolationboundaryapinegativetest
Proves
BR-CAP-ACC-REC-004-08 BR-CAP-ACC-REC-004-09
Preconditions
Two workspaces and an access-only caller are available.
Steps
Read or list the first workspace’s payout from the second and list as access-only.
Expected
Cross-workspace records are absent and missing read permission is forbidden.
Data
Provide records in each of the two isolated workspaces.
Bound to
services-accounting:modules/reconciliation/tests/e2e/payouts.e2e.spec.js#refuses tenant A’s payout in tenant B with 404
services-accounting:modules/reconciliation/tests/e2e/reconciliation-lists.e2e.spec.js#refuses the payout list without accounting.payouts.read with 403
services-accounting:modules/reconciliation/tests/e2e/reconciliation-lists.e2e.spec.js#refuses a principal denied accounting.application.access with 403
Source
services-accounting:modules/reconciliation/tests/e2e/payouts.e2e.spec.js#refuses tenant A’s payout in tenant B with 404
07 Console loads selected-unit recordsinteractionbrowsertest
Proves
AS-JNY-ACC-REC-001-04
Preconditions
Mock handlers serve the reconciliation screens.
Steps
Open the Reconciliation Center and observe list requests.
Expected
The displayed unit’s records come from the reconciliation routes.
Data
Use reconciliation mock route handlers.
Bound to
react-console:e2e/mock/accounting-reconciliation.mock.spec.ts#reads the unit's payouts from the reconciliation routes
Source
react-console:e2e/mock/accounting-reconciliation.mock.spec.ts#reads the unit's payouts from the reconciliation routes
08 Holding changes appear in detail and summaryinteractionapiproposed
Proves
BR-CAP-ACC-REC-004-04 BR-CAP-ACC-REC-019-01 BR-CAP-ACC-REC-019-03
Preconditions
Use one isolated workspace with the financial records and caller roles required by the relied-on cases.
Steps
[ { "do": "Read an unheld payout and overview, open its explanation, finalize it and read both views again.", "expect": "Both service views reflect the deposit moving into preparation and then completion.", "provenance": "proposed", "source": [ "specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-004-find-deposits-and-see-where-each-one-stands.md", "specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-019-see-the-state-of-reconciliation-at-a-glance.md" ] } ]
Expected
Both service views reflect the deposit moving into preparation and then completion.
Data
Local merchant and bank accounts, an open operational batch and distinct preparation and approval callers.
Source
specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-004-find-deposits-and-see-where-each-one-stands.md,specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-019-see-the-state-of-reconciliation-at-a-glance.md
09 Activity inspection respects workspace boundariesinteractionapiproposed
Proves
BR-CAP-ACC-REC-004-08 BR-CAP-ACC-REC-004-09 BR-CAP-ACC-REC-020-07
Preconditions
Use one isolated workspace with the financial records and caller roles required by the relied-on cases.
Steps
[ { "do": "Read payout activity with a local reader and repeat from another workspace.", "expect": "Local history is available and foreign history remains unavailable.", "provenance": "proposed", "source": [ "specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-004-find-deposits-and-see-where-each-one-stands.md", "specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-020-keep-preparing-apart-from-approving-and-leave-a-trail-of.md" ] } ]
Expected
Local history is available and foreign history remains unavailable.
Data
Local merchant and bank accounts, an open operational batch and distinct preparation and approval callers.
Source
specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-004-find-deposits-and-see-where-each-one-stands.md,specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-020-keep-preparing-apart-from-approving-and-leave-a-trail-of.md

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.