view models
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user