fix(payments): show already refunded amount, limit new refund to remaining

This commit is contained in:
chattie
2026-08-24 17:42:29 +02:00
parent 85ecee935b
commit 8ce1a36ef6
3 changed files with 4 additions and 2 deletions

View File

@@ -300,6 +300,7 @@ export interface PaymentTransaction {
id: string; provider: string; providerPaymentId: string | null;
orderId: string | null; amountCents: number; currency: string;
status: string; raw: unknown; createdAt: string;
refundedAmountCents?: number; // amount already refunded
}
export const paymentsApi = {
list: (params?: { limit?: number; offset?: number; status?: string; q?: string }) => {