import { ApiProperty } from '@nestjs/swagger';
import { IsArray, IsObject } from 'class-validator';
import { TransactionDto, WalletDto } from './PaymentsDto';

export class GetWalletResultDTO {
  @ApiProperty({ type: WalletDto })
  @IsObject()
  wallet!: WalletDto;

  @ApiProperty({ type: [TransactionDto] })
  @IsArray()
  transactions!: TransactionDto[];
}