mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 01:48:12 +00:00
- Added new fields to the Company entity: licenceNumber, statusDescription, dateRegistered, renewedFrom, renewalDate, renewedTo, region, zone, woreda, kebele, houseNo, and etradePhone. - Updated onboarding wizard to include a new contact step and fetch company information from eTrade using TIN. - Created ETradeInfo component to handle fetching and displaying eTrade data. - Implemented ETradeService to interact with eTrade API and extract relevant company registration data. - Added new DTOs for fetching eTrade data and handling responses. - Updated CompanyProfileForm to integrate new fields and handle eTrade data. - Created hooks for managing eTrade data fetching and error handling.
9 lines
207 B
TypeScript
9 lines
207 B
TypeScript
import { IsString, IsNotEmpty, Length } from "class-validator";
|
|
|
|
export class FetchETradeDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@Length(10, 10, { message: "TIN must be exactly 10 digits" })
|
|
tin!: string;
|
|
}
|