2025-08-12 08:27:37 +02:00

177 lines
4.2 KiB
TypeScript

import { TableColumn } from "@/app/features/Pages/Approve/Approve";
type UserRow = {
id: number;
merchantId: string;
txId: string;
userEmail: string;
kycStatus: string;
amount: number;
paymentMethod: string;
currency: string;
status: string;
};
export const approveRows: UserRow[] = [
{
id: 17,
merchantId: "100987998",
txId: "1049078821",
userEmail: "dhkheni1@yopmail.com",
kycStatus: "N/A",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 12,
merchantId: "100987998",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 11,
merchantId: "100232399",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 10,
merchantId: "100232399",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 1,
merchantId: "100232399",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 2,
merchantId: "101907999",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 3,
merchantId: "101907999",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 4,
merchantId: "10552342",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 5,
merchantId: "10552342",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 6,
merchantId: "10552342",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 7,
merchantId: "10552342",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
{
id: 8,
merchantId: "10552342",
txId: "1049078822",
userEmail: "dhkheni2@yopmail.com",
kycStatus: "Pending",
amount: 1000,
paymentMethod: "Credit Card",
currency: "USD",
status: "Pending",
},
];
export const approveColumns: TableColumn<UserRow>[] = [
{ field: "id", headerName: "User ID" },
{ field: "merchantId", headerName: "Merchant ID" },
{ field: "txId", headerName: "Transaction ID" },
{ field: "userEmail", headerName: "User Email" },
{ field: "kycStatus", headerName: "KYC Status" },
{ field: "amount", headerName: "Amount" },
{ field: "paymentMethod", headerName: "Payment Method" },
{ field: "currency", headerName: "Currency" },
{ field: "status", headerName: "Status" },
];
export const approveActions = [
{ value: "approve", label: "Approve" },
{ value: "reject", label: "Reject" },
{ value: "forceSuccessful", label: "Force Successful" },
{ value: "forceFiled", label: "Force Field" },
{ value: "forceInconsistent", label: "Force Inconsistent" },
{ value: "forceStatus", label: "Force Status" },
{ value: "partialCapture", label: "Partial Capture" },
{ value: "capture", label: "Capture" },
{ value: "extendedAuth", label: "Extended uth" },
{ value: "partialRefund", label: "Partial Refund" },
{ value: "refund", label: "Refund" },
{ value: "void", label: "Void" },
{ value: "registerCorrection", label: "Register Correction" },
];