Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EIN support for US country #166

Open
michaeldesigaud opened this issue Apr 4, 2023 · 4 comments
Open

Add EIN support for US country #166

michaeldesigaud opened this issue Apr 4, 2023 · 4 comments
Labels

Comments

@michaeldesigaud
Copy link
Contributor

michaeldesigaud commented Apr 4, 2023

I want you to act as a typescript developer, i'm writting a typescript library to validate company identifiers (ex: siren in france, vat number etc,).
I'm going to give you the project folder structure so you need, in your response, to indicate the name and the full file path in which you think the code should be.
The project infrastructure is the following:

src
-- lib
--- service
---- ad
---- al
---- fr
----- fr.model.ts
----- fr-company-id.service.ts
--- company-id.service.ts
-- company-id.factory.ts
-- company-id.ts

Here the CompanyIdType enum :
export enum CompanyIdType {
VAT = 'VAT',
LOCAL_COMPANY_ID = 'LOCAL_COMPANY_ID'
}

Here an example of the fr model file:
import {CompanyIdType} from "../../../types/company-id-type";
import {CompanyIdInfoModel} from "../../../types/company-id-info.model";

// file fr.model.ts
export const COMPANY_FR_DATA: CompanyIdInfoModel[] = [
{
name: "SIREN",
fullName: "Système d'Identification du Répertoire des Entreprises",
type: CompanyIdType.LOCAL_COMPANY_ID,
description: "The SIREN (Système d'Identification du Répertoire des Entreprises) is a 9\ndigit number used to identify French companies. The Luhn checksum is used\nto validate the numbers.",
trustedSourceUrl: "https://fr.wikipedia.org/wiki/Syst%C3%A8me_d%27identification_du_r%C3%A9pertoire_des_entreprises",
patterns: ["^[0-9]{3}[ .-]?[0-9]{3}[ .-]?[0-9]{3}$", "^[0-9]{6|7}$"],
parentLevel: true
},
{
fullName: "Système d'Identification du Répertoire des Etablissements",
name: "SIRET",
type: CompanyIdType.LOCAL_COMPANY_ID,
description: "The SIRET (Système d'Identification du Répertoire des ETablissements)\nis a 14 digit number used to identify French companies' establishments\nand facilities. The Luhn checksum is used to validate the numbers.",
trustedSourceUrl: "https://fr.wikipedia.org/wiki/Syst%C3%A8me_d%27identification_du_r%C3%A9pertoire_des_%C3%A9tablissements",
patterns: ["^[0-9]{3}[ .-]?[0-9]{3}[ .-]?[0-9]{3}[ .-]?[0-9]{5}$"] ,
parentLevel: false
},
{
fullName: "Numéro de TVA intracommunautaire",
name: "VAT",
type: CompanyIdType.VAT,
description: "The n° TVA (Numéro d'identification à la taxe sur la valeur ajoutée) is the\nSIREN (Système d’Identification du Répertoire des Entreprises) prefixed by\ntwo digits. In old style numbers the two digits are numeric, with new\nstyle numbers at least one is a alphabetic.",
trustedSourceUrl: "https://www.service-public.fr/professionnels-entreprises/vosdroits/F23570",
patterns:["^FR[0-9]{2}[ .-]?[0-9]{3}[ .-]?[0-9]{3}[ .-]?[0-9]{3}$"] ,
parentLevel: true
}
];

I need information about business identifiers for a list of countries, i need you to find these information and to generate the appropriate typescript model file (as the fr.model.ts file). Remember to always indicate under "file location" the full file path and under "file code" the related typescript code. Are you ok ?

michaeldesigaud pushed a commit that referenced this issue Apr 7, 2023
michaeldesigaud pushed a commit that referenced this issue Apr 7, 2023
michaeldesigaud pushed a commit that referenced this issue Apr 7, 2023
michaeldesigaud pushed a commit that referenced this issue Apr 7, 2023
@michaeldesigaud
Copy link
Contributor Author

Please provide a business id description for US companies and generate the related typescript model file

@michaeldesigaud
Copy link
Contributor Author

Now please provide business id description for chinese companies and generate the related typescript model file

@michaeldesigaud
Copy link
Contributor Author

Now please provide business id description for monaco companies and generate the related typescript model file

@michaeldesigaud
Copy link
Contributor Author

Now please provide business id description for australian companies and generate the related typescript model file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant