payment-history: payment detail with GBÜS response, sorting, newest-first logs
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

- GET /payment-history/payments/{id}: single payment attempt with the raw
  gateway_response (last HALKBANK JSON) for the "storage" icon modal
- GET /payment-history: sort (id/created_at/status/amount) and order
  (asc/desc, default desc) query params
- GET /payment-history/{id}: order logs now newest first
- index on visa_master_order_payments (gateway_status, id DESC)
- regenerate swagger docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 13:32:36 +05:00
parent e5f01d0e94
commit a715cd23ea
10 changed files with 2140 additions and 60 deletions

View File

@@ -0,0 +1 @@
DROP INDEX IF EXISTS idx_visa_master_order_payments_status_id;

View File

@@ -0,0 +1,6 @@
-- payment-history lists newest-first (ORDER BY p.id DESC) and is commonly
-- filtered to one gateway_status; without this, a rare status (e.g.
-- pending) means walking the whole primary key backwards to fill a page.
CREATE INDEX IF NOT EXISTS idx_visa_master_order_payments_status_id
ON visa_master_order_payments (gateway_status, id DESC)
WHERE deleted_at IS NULL;