@riocrypto/common 1.0.1222 → 1.0.1225
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.
- package/build/classes/KYCFileClass.d.ts +1 -1
- package/build/classes/KYCFileClass.js +10 -10
- package/build/clients/rio-admin-client.d.ts +1 -1
- package/build/clients/rio-client.d.ts +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/types/user-input.d.ts +67 -36
- package/package.json +1 -1
- /package/build/types/{KYCFileType.d.ts → kyc-file-type.d.ts} +0 -0
- /package/build/types/{KYCFileType.js → kyc-file-type.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KYCFileAsset = void 0;
|
|
4
|
-
const
|
|
4
|
+
const kyc_file_type_1 = require("../types/kyc-file-type");
|
|
5
5
|
const country_of_origin_1 = require("../types/country-of-origin");
|
|
6
6
|
class KYCFileAsset {
|
|
7
7
|
constructor(fileType, country) {
|
|
@@ -9,13 +9,13 @@ class KYCFileAsset {
|
|
|
9
9
|
this.country = country;
|
|
10
10
|
}
|
|
11
11
|
getName() {
|
|
12
|
-
if (this.fileType ===
|
|
12
|
+
if (this.fileType === kyc_file_type_1.KYCFileType.CertificateOfIncorporation) {
|
|
13
13
|
return "Certificate of incorporation";
|
|
14
14
|
}
|
|
15
|
-
else if (this.fileType ===
|
|
15
|
+
else if (this.fileType === kyc_file_type_1.KYCFileType.KYCReport) {
|
|
16
16
|
return "Third party KYC report";
|
|
17
17
|
}
|
|
18
|
-
else if (this.fileType ===
|
|
18
|
+
else if (this.fileType === kyc_file_type_1.KYCFileType.LegalRepresentativeIdPowerOfAttorney) {
|
|
19
19
|
if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
|
|
20
20
|
return "Poderes del representante legal";
|
|
21
21
|
}
|
|
@@ -23,7 +23,7 @@ class KYCFileAsset {
|
|
|
23
23
|
return "Legal representative power of attorney";
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
else if (this.fileType ===
|
|
26
|
+
else if (this.fileType === kyc_file_type_1.KYCFileType.TaxTranscript) {
|
|
27
27
|
if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
|
|
28
28
|
return "Constancia de Situación Fiscal";
|
|
29
29
|
}
|
|
@@ -31,10 +31,10 @@ class KYCFileAsset {
|
|
|
31
31
|
return "Tax transcript";
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
else if (this.fileType ===
|
|
34
|
+
else if (this.fileType === kyc_file_type_1.KYCFileType.ProofOfAddress) {
|
|
35
35
|
return "Proof of address";
|
|
36
36
|
}
|
|
37
|
-
else if (this.fileType ===
|
|
37
|
+
else if (this.fileType === kyc_file_type_1.KYCFileType.PersonalIdentificationCertificate) {
|
|
38
38
|
if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
|
|
39
39
|
return "Constancia CURP";
|
|
40
40
|
}
|
|
@@ -42,7 +42,7 @@ class KYCFileAsset {
|
|
|
42
42
|
return "Personal identification certificate";
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
else if (this.fileType ===
|
|
45
|
+
else if (this.fileType === kyc_file_type_1.KYCFileType.TaxIdentificationCertificate) {
|
|
46
46
|
if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
|
|
47
47
|
return "Cedula de Identificacion Fiscal";
|
|
48
48
|
}
|
|
@@ -50,7 +50,7 @@ class KYCFileAsset {
|
|
|
50
50
|
return "Tax identification certificate";
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
else if (this.fileType ===
|
|
53
|
+
else if (this.fileType === kyc_file_type_1.KYCFileType.BusinessRegistration) {
|
|
54
54
|
if (this.country === country_of_origin_1.CountryOfOrigin.Mexico) {
|
|
55
55
|
return "Registro Publico de Comercio";
|
|
56
56
|
}
|
|
@@ -58,7 +58,7 @@ class KYCFileAsset {
|
|
|
58
58
|
return "Business registration";
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
else if (this.fileType ===
|
|
61
|
+
else if (this.fileType === kyc_file_type_1.KYCFileType.ExtraFile) {
|
|
62
62
|
return "Extra file";
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -36,7 +36,7 @@ import { ChainedOrderInput } from "../types/chained-order-input";
|
|
|
36
36
|
import { InternalSwap } from "../types/internal-swap";
|
|
37
37
|
import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
|
|
38
38
|
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
39
|
-
import { KYCFileType } from "../types/
|
|
39
|
+
import { KYCFileType } from "../types/kyc-file-type";
|
|
40
40
|
export declare class RioAdminClient {
|
|
41
41
|
private axios;
|
|
42
42
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -31,7 +31,7 @@ import { ChainedOrder } from "../types/chained-order";
|
|
|
31
31
|
import { ChainedOrderQuery } from "../types/chained-order-query";
|
|
32
32
|
import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
|
|
33
33
|
import { SecurityQuestion } from "../types/security-question";
|
|
34
|
-
import { KYCFileType } from "../types/
|
|
34
|
+
import { KYCFileType } from "../types/kyc-file-type";
|
|
35
35
|
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
36
36
|
export declare class RioClient {
|
|
37
37
|
private axios;
|
package/build/index.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ export * from "./types/circle-chain";
|
|
|
198
198
|
export * from "./types/circle-payout";
|
|
199
199
|
export * from "./types/risk-tier";
|
|
200
200
|
export * from "./types/market-data";
|
|
201
|
-
export * from "./types/
|
|
201
|
+
export * from "./types/kyc-file-type";
|
|
202
202
|
export * from "./classes/Asset";
|
|
203
203
|
export * from "./classes/KYCFieldClass";
|
|
204
204
|
export * from "./classes/KYCFileClass";
|
package/build/index.js
CHANGED
|
@@ -214,7 +214,7 @@ __exportStar(require("./types/circle-chain"), exports);
|
|
|
214
214
|
__exportStar(require("./types/circle-payout"), exports);
|
|
215
215
|
__exportStar(require("./types/risk-tier"), exports);
|
|
216
216
|
__exportStar(require("./types/market-data"), exports);
|
|
217
|
-
__exportStar(require("./types/
|
|
217
|
+
__exportStar(require("./types/kyc-file-type"), exports);
|
|
218
218
|
__exportStar(require("./classes/Asset"), exports);
|
|
219
219
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
220
220
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
@@ -1,36 +1,42 @@
|
|
|
1
|
-
import { Country } from "./country";
|
|
2
1
|
import { CountryOfOrigin } from "./country-of-origin";
|
|
3
|
-
import {
|
|
2
|
+
import { KYCStatus } from "./kyc-status";
|
|
4
3
|
import { PlatformFeeRange } from "./platform-fee-range";
|
|
5
4
|
import { UserAttribute } from "./user-attribute";
|
|
6
5
|
import { UserType } from "./user-type";
|
|
6
|
+
declare type IndividualUser = {
|
|
7
|
+
individualData: {
|
|
8
|
+
firstName?: string;
|
|
9
|
+
middleName?: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
secondLastName?: string;
|
|
12
|
+
birthday?: Date;
|
|
13
|
+
countryOfOrigin?: CountryOfOrigin;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
declare type BusinessUser = {
|
|
17
|
+
businessData?: {
|
|
18
|
+
businessName?: string;
|
|
19
|
+
legalRepresentative?: {
|
|
20
|
+
name?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
status?: string;
|
|
23
|
+
};
|
|
24
|
+
UBO?: {
|
|
25
|
+
name: string;
|
|
26
|
+
email?: string;
|
|
27
|
+
id?: string;
|
|
28
|
+
status?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
7
32
|
export declare type UserInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
lastName?: string;
|
|
11
|
-
secondLastName?: string;
|
|
12
|
-
birthday?: Date;
|
|
13
|
-
KYCReportFile?: string;
|
|
14
|
-
CSFFile?: string;
|
|
15
|
-
proofOfAddressFile?: string;
|
|
16
|
-
companyName?: string;
|
|
17
|
-
legalRepresentative?: string;
|
|
18
|
-
COIFile?: string;
|
|
33
|
+
authIds?: string[];
|
|
34
|
+
brokerId?: string;
|
|
19
35
|
type: UserType;
|
|
36
|
+
phoneNumber: string;
|
|
20
37
|
email: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
street1: string;
|
|
24
|
-
street2?: string;
|
|
25
|
-
city: string;
|
|
26
|
-
state: string;
|
|
27
|
-
country: CountryOfOrigin;
|
|
28
|
-
postalCode: string;
|
|
29
|
-
CPF?: string;
|
|
30
|
-
CURP?: string;
|
|
31
|
-
RUC?: string;
|
|
32
|
-
countriesToInvoice?: Country[];
|
|
33
|
-
economicActivity?: string;
|
|
38
|
+
cosignerGroupId?: string;
|
|
39
|
+
attributes?: UserAttribute[];
|
|
34
40
|
platformFeeRanges?: {
|
|
35
41
|
MX?: {
|
|
36
42
|
buy?: PlatformFeeRange[];
|
|
@@ -53,13 +59,38 @@ export declare type UserInput = {
|
|
|
53
59
|
sell?: PlatformFeeRange[];
|
|
54
60
|
};
|
|
55
61
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
KYC?: {
|
|
63
|
+
[country in CountryOfOrigin]?: {
|
|
64
|
+
status?: KYCStatus;
|
|
65
|
+
personalId?: string;
|
|
66
|
+
taxId?: string;
|
|
67
|
+
files?: {
|
|
68
|
+
certificateOfIncorporation?: string;
|
|
69
|
+
KYCReport?: string;
|
|
70
|
+
taxTranscript?: string;
|
|
71
|
+
proofOfAddress?: string;
|
|
72
|
+
businessRegistration?: string;
|
|
73
|
+
taxIdentificationCertificate?: string;
|
|
74
|
+
legalRepresentativeIdPowerOfAttorney?: string;
|
|
75
|
+
personalIdentificationCertificate?: string;
|
|
76
|
+
extraFiles?: string[];
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
address: {
|
|
81
|
+
street1: string;
|
|
82
|
+
street2?: string;
|
|
83
|
+
city: string;
|
|
84
|
+
state: string;
|
|
85
|
+
postalCode: string;
|
|
86
|
+
country: CountryOfOrigin;
|
|
87
|
+
};
|
|
88
|
+
invoicing?: {
|
|
89
|
+
MX?: {
|
|
90
|
+
shouldInvoice?: boolean;
|
|
91
|
+
fiscalName?: string;
|
|
92
|
+
fiscalRegimenCode?: number;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
} & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
|
|
96
|
+
export {};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|