view data fixes
This commit is contained in:
17
apps/website/lib/view-data/WalletTransactionViewData.ts
Normal file
17
apps/website/lib/view-data/WalletTransactionViewData.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { ViewData } from '@/lib/contracts/view-data/ViewData';
|
||||
|
||||
/**
|
||||
* ViewData for WalletTransaction
|
||||
* This is the JSON-serializable input for the Template.
|
||||
*/
|
||||
export interface WalletTransactionViewData extends ViewData {
|
||||
id: string;
|
||||
type: 'sponsorship' | 'membership' | 'withdrawal' | 'prize' | 'deposit';
|
||||
description: string;
|
||||
amount: number;
|
||||
fee: number;
|
||||
netAmount: number;
|
||||
date: string; // ISO string
|
||||
status: 'completed' | 'pending' | 'failed';
|
||||
reference?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user