website cleanup
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
// Export the DTO type that WalletTransactionViewModel expects
|
||||
export type FullTransactionDto = {
|
||||
id: string;
|
||||
type: 'sponsorship' | 'membership' | 'withdrawal' | 'prize';
|
||||
description: string;
|
||||
amount: number;
|
||||
fee: number;
|
||||
netAmount: number;
|
||||
date: Date;
|
||||
status: 'completed' | 'pending' | 'failed';
|
||||
reference?: string;
|
||||
};
|
||||
|
||||
export class WalletTransactionViewModel {
|
||||
id: string;
|
||||
type: 'sponsorship' | 'membership' | 'withdrawal' | 'prize';
|
||||
@@ -9,17 +22,7 @@ export class WalletTransactionViewModel {
|
||||
status: 'completed' | 'pending' | 'failed';
|
||||
reference?: string;
|
||||
|
||||
constructor(dto: {
|
||||
id: string;
|
||||
type: 'sponsorship' | 'membership' | 'withdrawal' | 'prize';
|
||||
description: string;
|
||||
amount: number;
|
||||
fee: number;
|
||||
netAmount: number;
|
||||
date: Date;
|
||||
status: 'completed' | 'pending' | 'failed';
|
||||
reference?: string;
|
||||
}) {
|
||||
constructor(dto: FullTransactionDto) {
|
||||
this.id = dto.id;
|
||||
this.type = dto.type;
|
||||
this.description = dto.description;
|
||||
|
||||
Reference in New Issue
Block a user