view data fixes
This commit is contained in:
@@ -11,7 +11,9 @@ export type FullTransactionDto = {
|
||||
reference?: string;
|
||||
};
|
||||
|
||||
export class WalletTransactionViewModel {
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
|
||||
export class WalletTransactionViewModel extends ViewModel {
|
||||
id: string;
|
||||
type: 'sponsorship' | 'membership' | 'withdrawal' | 'prize' | 'deposit';
|
||||
description: string;
|
||||
@@ -23,6 +25,7 @@ export class WalletTransactionViewModel {
|
||||
reference?: string;
|
||||
|
||||
constructor(dto: FullTransactionDto) {
|
||||
super();
|
||||
this.id = dto.id;
|
||||
this.type = dto.type;
|
||||
this.description = dto.description;
|
||||
|
||||
Reference in New Issue
Block a user