mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
feat: add choice to etrade fetcher
This commit is contained in:
@@ -55,10 +55,24 @@ export interface ETradeCompanyInfo {
|
||||
RenewedFrom: string;
|
||||
RenewedTo: string;
|
||||
BusinessLicensingGroupMain: string | null;
|
||||
SubGroups: string | null;
|
||||
SubGroups: Array<{ Code: number; Description: string }> | null;
|
||||
}>;
|
||||
}
|
||||
|
||||
/**
|
||||
* One business licence held under a TIN. A single owner routinely holds many
|
||||
* (import of vehicles, export of coffee, freight forwarding…), all sharing the
|
||||
* same trade name — the licensed activity is what tells them apart, so that is
|
||||
* what the customer picks by.
|
||||
*/
|
||||
export interface ETradeBusinessOption {
|
||||
licenceNumber: string;
|
||||
tradeName: string;
|
||||
/** The licensed activities ("Import trade in …"), joined. May be empty. */
|
||||
activity: string;
|
||||
renewedTo: string;
|
||||
}
|
||||
|
||||
export interface CompanyRegistrationData {
|
||||
/**
|
||||
* The registered organization name — `ETradeCompanyInfo.BusinessName`, falling
|
||||
@@ -84,4 +98,11 @@ export interface CompanyRegistrationData {
|
||||
managerPhone: string;
|
||||
/** True when this TIN is already registered to an existing company. */
|
||||
tinTaken?: boolean;
|
||||
/**
|
||||
* Every licence this TIN holds. More than one means the customer has to say
|
||||
* which business they are acting as before the registration data above can be
|
||||
* trusted — it describes whichever licence was selected (the first, by
|
||||
* default).
|
||||
*/
|
||||
businesses?: ETradeBusinessOption[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user