mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
20 lines
549 B
TypeScript
20 lines
549 B
TypeScript
import { IsString, IsNotEmpty, IsOptional, MaxLength } from "class-validator";
|
|
import { IsTin } from "../../../common/validators/is-tin.validator";
|
|
|
|
export class FetchETradeDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@IsTin({ message: "TIN must be exactly 10 digits" })
|
|
tin!: string;
|
|
|
|
/**
|
|
* Which of the TIN's business licences to resolve. Omitted on the first
|
|
* lookup — the response lists them all so the customer can pick, and the pick
|
|
* comes back here.
|
|
*/
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(100)
|
|
licenceNumber?: string;
|
|
}
|