Skip to content

Add patient payment history and facility ledger APIs - #166

Open
victor-134 wants to merge 2 commits into
DocForum:mainfrom
victor-134:fix/issue-90
Open

victor-134 wants to merge 2 commits into
DocForum:mainfrom
victor-134:fix/issue-90

Conversation

@victor-134

Copy link
Copy Markdown

Summary

Add GET /payments/mine and GET /payments/facility/ledger with role enforcement, strict status/date filters, stable cursor pagination, and facility-scoped ledger totals.

Payment rows include on-chain explorer references and return BigInt values as decimal strings. Facility totals are grouped in PostgreSQL, not summed in JavaScript. The current custodial v1 schema and contract path do not support refund_after, so refundAfter is explicitly null; native XLM is identified as the asset. API docs and the Phase 5.5 roadmap are updated.

Tests

  • npm run typecheck
  • npm run test (93 passed)
  • npm run test:integration (160 passed, including 3 new payment-history tests)
  • npm run audit:prod (passed under the repository's documented Axios advisory policy)
  • npm run build

Closes #90

@drips-wave

drips-wave Bot commented Oct 19, 2026

Copy link
Copy Markdown

@victor-134 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Phase 5.5] Payment history and facility payout ledger APIs with on-chain proof links

1 participant