import { Result } from '@/lib/contracts/Result'; import { Service } from '@/lib/contracts/services/Service'; import { LeagueWalletApiDto } from '@/lib/types/tbd/LeagueWalletApiDto'; export class LeagueWalletService implements Service { async getWalletData(leagueId: string): Promise> { // Mock data since backend not implemented const mockData: LeagueWalletApiDto = { leagueId, balance: 15750.00, currency: 'USD', transactions: [ { id: 'txn-1', type: 'sponsorship', amount: 5000.00, description: 'Main sponsorship from Acme Racing', createdAt: '2024-10-01T10:00:00Z', status: 'completed', }, { id: 'txn-2', type: 'prize', amount: 2500.00, description: 'Prize money from championship', createdAt: '2024-09-15T14:30:00Z', status: 'completed', }, { id: 'txn-3', type: 'withdrawal', amount: -1200.00, description: 'Equipment purchase', createdAt: '2024-09-10T09:15:00Z', status: 'completed', }, { id: 'txn-4', type: 'deposit', amount: 5000.00, description: 'Entry fees from season registration', createdAt: '2024-08-01T12:00:00Z', status: 'completed', }, ], }; return Result.ok(mockData); } }