diff --git a/project/apps/admin/src/lib/api-client.ts b/project/apps/admin/src/lib/api-client.ts
index f3b1e68..87997ca 100644
--- a/project/apps/admin/src/lib/api-client.ts
+++ b/project/apps/admin/src/lib/api-client.ts
@@ -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 }) => {
diff --git a/project/src/modules/payments/api/payments.routes.ts b/project/src/modules/payments/api/payments.routes.ts
index e2a7def..5b5ac13 100644
--- a/project/src/modules/payments/api/payments.routes.ts
+++ b/project/src/modules/payments/api/payments.routes.ts
@@ -219,6 +219,7 @@ export async function registerPaymentsRoutes(
status: r.status,
raw: r.raw,
createdAt: r.created_at,
+ refundedAmountCents: r.refunded_amount_cents ?? 0,
})),
total,
});
diff --git a/project/storefront/next-env.d.ts b/project/storefront/next-env.d.ts
index a419cbe..ce4e94a 100644
--- a/project/storefront/next-env.d.ts
+++ b/project/storefront/next-env.d.ts
@@ -1,7 +1,7 @@
///
///
-import "./.next/dev/types/routes.d.ts";
-import "./.next/dev/types/root-params.d.ts";
+import "./.next/types/routes.d.ts";
+import "./.next/types/root-params.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.