Both routes served the same handler and took an order ID, while
/payments/{id} takes a payment ID - so the /payments/ one read as
per-payment and showed up twice in Swagger. /payment-history/{id}/gateway
is the one to use.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The frontend calls /payments/{id}/gateway with an order ID, so that URL
now returns every payment of the order (newest first, each with its
HALKBANK JSON) instead of one payment by payment ID. /{id}/gateway stays
as an alias of the same handler.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The frontend still calls the single-payment gateway view, so it's back
as it was (payment ID -> one PaymentGatewayDTO), alongside the new
order-wide /{id}/gateway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Returns a payment the way the per-order payment table shows it (paid,
cardholder name, masked card, time, payment year/month, USD/TMT amounts,
reference) plus the last stored GBÜS response, for the storage icon.
Card fields and gatewayResponse are null until GBÜS reports them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>