// src/dto/vendor.dto.ts
import { IsString, IsBoolean, IsOptional } from 'class-validator';

export class VendorRequest {
  @IsString()
  business_name!: string;

  @IsString()
  @IsOptional()
  gstin?: string;

  @IsBoolean()
  @IsOptional()
  is_gst_registered?: boolean = false;
}

export class VendorResponse {
  vendor_id!: number;
  business_name!: string;
  gstin?: string;
  is_gst_registered!: boolean;
  user_id!: number;
}