Add payment module, BFF proxy, hub/dashboard/ops/PSP/merchant screens wired to real APIs, and mark payment-frontend complete in project status. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
918 B
TypeScript
25 lines
918 B
TypeScript
"use client";
|
|
|
|
import { PaymentListPage } from "@/modules/payment/components/PaymentListPage";
|
|
import { paymentApi } from "@/modules/payment/services/payment-api";
|
|
|
|
export const PaymentBundles = function PaymentBundlesPage() {
|
|
return (
|
|
<PaymentListPage
|
|
title="باندلها"
|
|
description="TenantPaymentBundle — مجوز L2 سرویس پرداخت."
|
|
resourceKey="tenant-bundles"
|
|
fetcher={(tenantId) => paymentApi.tenantBundles.list(tenantId)}
|
|
filterKey="bundle_code"
|
|
columns={[
|
|
{ key: "bundle_code", header: "کد باندل" },
|
|
{ key: "is_active", header: "فعال", render: (r) => (r.is_active ? "بله" : "خیر") },
|
|
{ key: "activated_at", header: "فعالسازی", type: "datetime" },
|
|
{ key: "created_at", header: "تاریخ", type: "datetime" },
|
|
]}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default PaymentBundles;
|