view models

This commit is contained in:
2025-12-18 00:08:47 +01:00
parent f7a56a92ce
commit 7c449af311
56 changed files with 2594 additions and 206 deletions

View File

@@ -1,13 +1,13 @@
import { PaymentDto } from '../dtos';
import { PaymentDTO } from '../types/generated/PaymentDto';
export class PaymentViewModel implements PaymentDto {
export class PaymentViewModel implements PaymentDTO {
id: string;
amount: number;
currency: string;
status: string;
createdAt: string;
constructor(dto: PaymentDto) {
constructor(dto: PaymentDTO) {
Object.assign(this, dto);
}