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

export class GetMembershipFeesResultDTO {
  @ApiProperty({ type: MembershipFeeDto, nullable: true })
  @IsObject()
  fee!: MembershipFeeDto | null;

  @ApiProperty({ type: [MemberPaymentDto] })
  @IsArray()
  payments!: MemberPaymentDto[];
}