fix(payments): show already refunded amount, limit new refund to remaining
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user