@riocrypto/common 1.0.1220 → 1.0.1222

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,5 +3,5 @@ export declare class KYCFieldAsset {
3
3
  field: "personalId" | "taxId";
4
4
  private country;
5
5
  constructor(field: "personalId" | "taxId", country: CountryOfOrigin);
6
- getName(): string | undefined;
6
+ getName(): string;
7
7
  }
@@ -20,6 +20,23 @@ class KYCFieldAsset {
20
20
  return `${new CountryAsset_1.CountryAsset(this.country).getName()} Personal Identification Number`;
21
21
  }
22
22
  }
23
+ else {
24
+ if (this.country === country_of_origin_1.CountryOfOrigin.UnitedStates) {
25
+ return "Employer Identification Number";
26
+ }
27
+ else if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
28
+ return "RFC";
29
+ }
30
+ else if (this.country === country_of_origin_1.CountryOfOrigin.Brazil) {
31
+ return "CPF";
32
+ }
33
+ else if (this.country === country_of_origin_1.CountryOfOrigin.Peru) {
34
+ return "RUC";
35
+ }
36
+ else {
37
+ return `${new CountryAsset_1.CountryAsset(this.country).getName()} Personal Identification Number`;
38
+ }
39
+ }
23
40
  }
24
41
  }
25
42
  exports.KYCFieldAsset = KYCFieldAsset;
@@ -0,0 +1,8 @@
1
+ import { KYCFileType } from "../types/KYCFileType";
2
+ import { CountryOfOrigin } from "../types/country-of-origin";
3
+ export declare class KYCFileAsset {
4
+ fileType: KYCFileType;
5
+ private country;
6
+ constructor(fileType: KYCFileType, country: CountryOfOrigin);
7
+ getName(): "Certificate of incorporation" | "Third party KYC report" | "Poderes del representante legal" | "Legal representative power of attorney" | "Constancia de Situación Fiscal" | "Tax transcript" | "Proof of address" | "Constancia CURP" | "Personal identification certificate" | "Cedula de Identificacion Fiscal" | "Tax identification certificate" | "Registro Publico de Comercio" | "Business registration" | "Extra file" | undefined;
8
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KYCFileAsset = void 0;
4
+ const KYCFileType_1 = require("../types/KYCFileType");
5
+ const country_of_origin_1 = require("../types/country-of-origin");
6
+ class KYCFileAsset {
7
+ constructor(fileType, country) {
8
+ this.fileType = fileType;
9
+ this.country = country;
10
+ }
11
+ getName() {
12
+ if (this.fileType === KYCFileType_1.KYCFileType.CertificateOfIncorporation) {
13
+ return "Certificate of incorporation";
14
+ }
15
+ else if (this.fileType === KYCFileType_1.KYCFileType.KYCReport) {
16
+ return "Third party KYC report";
17
+ }
18
+ else if (this.fileType === KYCFileType_1.KYCFileType.LegalRepresentativeIdPowerOfAttorney) {
19
+ if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
20
+ return "Poderes del representante legal";
21
+ }
22
+ else {
23
+ return "Legal representative power of attorney";
24
+ }
25
+ }
26
+ else if (this.fileType === KYCFileType_1.KYCFileType.TaxTranscript) {
27
+ if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
28
+ return "Constancia de Situación Fiscal";
29
+ }
30
+ else {
31
+ return "Tax transcript";
32
+ }
33
+ }
34
+ else if (this.fileType === KYCFileType_1.KYCFileType.ProofOfAddress) {
35
+ return "Proof of address";
36
+ }
37
+ else if (this.fileType === KYCFileType_1.KYCFileType.PersonalIdentificationCertificate) {
38
+ if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
39
+ return "Constancia CURP";
40
+ }
41
+ else {
42
+ return "Personal identification certificate";
43
+ }
44
+ }
45
+ else if (this.fileType === KYCFileType_1.KYCFileType.TaxIdentificationCertificate) {
46
+ if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
47
+ return "Cedula de Identificacion Fiscal";
48
+ }
49
+ else {
50
+ return "Tax identification certificate";
51
+ }
52
+ }
53
+ else if (this.fileType === KYCFileType_1.KYCFileType.BusinessRegistration) {
54
+ if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
55
+ return "Registro Publico de Comercio";
56
+ }
57
+ else {
58
+ return "Business registration";
59
+ }
60
+ }
61
+ else if (this.fileType === KYCFileType_1.KYCFileType.ExtraFile) {
62
+ return "Extra file";
63
+ }
64
+ }
65
+ }
66
+ exports.KYCFileAsset = KYCFileAsset;
package/build/index.d.ts CHANGED
@@ -201,6 +201,7 @@ export * from "./types/market-data";
201
201
  export * from "./types/KYCFileType";
202
202
  export * from "./classes/Asset";
203
203
  export * from "./classes/KYCFieldClass";
204
+ export * from "./classes/KYCFileClass";
204
205
  export * from "./classes/CountryAsset";
205
206
  export * from "./classes/CryptoAsset";
206
207
  export * from "./classes/FiatAsset";
package/build/index.js CHANGED
@@ -217,6 +217,7 @@ __exportStar(require("./types/market-data"), exports);
217
217
  __exportStar(require("./types/KYCFileType"), exports);
218
218
  __exportStar(require("./classes/Asset"), exports);
219
219
  __exportStar(require("./classes/KYCFieldClass"), exports);
220
+ __exportStar(require("./classes/KYCFileClass"), exports);
220
221
  __exportStar(require("./classes/CountryAsset"), exports);
221
222
  __exportStar(require("./classes/CryptoAsset"), exports);
222
223
  __exportStar(require("./classes/FiatAsset"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1220",
3
+ "version": "1.0.1222",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",