import { IsOptional, IsString, MaxLength } from 'class-validator'

// Customer-editable company/tax fields for invoicing. Deliberately narrow —
// this is the only tenant mutation a customer admin can perform from the
// portal, so it must not carry plan/status/partner fields. contactEmail is a
// plain string (not @IsEmail) so it can be cleared to '' without a 400.
export class UpdateBillingInfoDto {
  @IsOptional() @IsString() @MaxLength(160)
  companyName?: string

  @IsOptional() @IsString() @MaxLength(64)
  vatId?: string

  @IsOptional() @IsString() @MaxLength(80)
  country?: string

  @IsOptional() @IsString() @MaxLength(160)
  contactEmail?: string
}
