Files
online-backend/internal/payment/paymenthistory/storage.go
GuwandykA a715cd23ea
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
payment-history: payment detail with GBÜS response, sorting, newest-first logs
- 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>
2026-10-24 13:32:36 +05:00

15 lines
615 B
Go

package paymenthistory
import "context"
type Repository interface {
List(ctx context.Context, filter ListFilter) (ListPaymentHistoryDTO, error)
// Get returns a single payout attempt by its visa_master_order_payments id.
Get(ctx context.Context, paymentID int64) (PaymentHistoryDetailDTO, error)
// Logs returns the full visa_master_payment_logs audit trail for a
// single order, newest first.
Logs(ctx context.Context, orderID int64) ([]PaymentLogDTO, error)
// OwnerInfo returns an order's owning user/branch, for rbac.GuardOrder.
OwnerInfo(ctx context.Context, orderID int64) (*int64, int64, error)
}