import { ApiProperty } from '@nestjs/swagger';
import { IsString, MinLength } from 'class-validator';

export class AdjustSubscriptionDto {
  @ApiProperty({ description: 'ID of the user whose subscription to adjust', example: 'usr_abc123' })
  @IsString()
  userId!: string;

  @ApiProperty({ description: 'New subscription plan tier', example: 'premium' })
  @IsString()
  newPlanTier!: string;

  @ApiProperty({ description: 'Reason for the adjustment (min 5 chars)', example: 'Promotional upgrade for early adopter', minLength: 5 })
  @IsString()
  @MinLength(5)
  reason!: string;
}
