import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty, IsNumber, IsOptional, ValidateNested, IsArray, IsEnum, Length, Min, Max } from 'class-validator';
import { validationMessages } from 'src/messages/validation-messages';

export class SubscriptionDto {
    @ApiProperty({
        description: 'plan id',
        example: 'UUID',
    })
    @IsNotEmpty({ message: validationMessages.subscription.plan_id })
    plan_id: string;

    @ApiProperty({ description: 'card id', example: 'pm_1QSexWBMGgSksA8odzUrscaJ' })
    card_id: string;

    @ApiProperty({ description: 'interval', example: 'month' })
    @IsNotEmpty({ message: validationMessages.subscription.interval })
    interval: string;

    @ApiProperty({ description: 'brand user id', example: 'UUID' })
    user_id: string;
}

