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

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

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