payment-history: GET /{id}/gateway - all of an order's payments with their HALKBANK JSON
The gateway view now takes an order ID and returns every payment of the
order, newest first, each in the same PaymentGatewayDTO shape with its
own last stored GBÜS response. It moves from /payments/{id}/gateway to
/{id}/gateway, next to the other order-scoped routes (/{id}, /{id}/logs).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ef3a1baee2
commit
a3cbb52f4b
7 files changed
+182
-118
No files matched your search
@@ -9,6 +9,9 @@ type Repository interface {
|
||||
// OrderPayments returns every payout attempt of a single order, newest
|
||||
// first - the per-order payment table, without paging.
|
||||
OrderPayments(ctx context.Context, orderID int64) ([]PaymentHistoryItemDTO, error)
|
||||
// OrderPaymentDetails is OrderPayments with each attempt's raw GBÜS
|
||||
// response kept alongside it.
|
||||
OrderPaymentDetails(ctx context.Context, orderID 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)
|
||||
|
||||
Reference in new issue
Block a user