import { IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator' import { OriginRequest } from '../../../../services' export class PersonSubscribeParam { @IsNotEmpty() @IsString() token: string @IsNotEmpty() @IsString() kind: 'credit_card' | 'debit_card' @IsNotEmpty() @IsString() source: string @IsNotEmpty() @IsString() planId: string @IsNotEmpty() @IsNumber() unitId?: number @IsOptional() @IsNumber() discount?: number @IsOptional() @IsString() salesChannel?: OriginRequest @IsOptional() @IsString() unitAcronym?: string }