import { IsOptional, IsString, IsObject, IsBoolean, IsArray } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class PaymentMethodUpdateDto {
  @ApiProperty({ example: 'Credit Card', required: false })
  @IsOptional()
  @IsString()
  name?: string;

  @ApiProperty({ example: true, required: false })
  @IsOptional()
  @IsBoolean()
  is_active?: boolean;

  @IsArray()
  json_text?: any[];
}
