@riocrypto/common 1.0.1221 → 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 +8 -0
- package/build/classes/KYCFileClass.js +66 -0
- package/build/clients/rio-admin-client.d.ts +1 -1
- package/build/clients/rio-client.d.ts +1 -1
- package/build/index.d.ts +2 -1
- package/build/index.js +2 -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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KYCFileType } from "../types/kyc-file-type";
|
|
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 kyc_file_type_1 = require("../types/kyc-file-type");
|
|
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 === kyc_file_type_1.KYCFileType.CertificateOfIncorporation) {
|
|
13
|
+
return "Certificate of incorporation";
|
|
14
|
+
}
|
|
15
|
+
else if (this.fileType === kyc_file_type_1.KYCFileType.KYCReport) {
|
|
16
|
+
return "Third party KYC report";
|
|
17
|
+
}
|
|
18
|
+
else if (this.fileType === kyc_file_type_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 === kyc_file_type_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 === kyc_file_type_1.KYCFileType.ProofOfAddress) {
|
|
35
|
+
return "Proof of address";
|
|
36
|
+
}
|
|
37
|
+
else if (this.fileType === kyc_file_type_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 === kyc_file_type_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 === kyc_file_type_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 === kyc_file_type_1.KYCFileType.ExtraFile) {
|
|
62
|
+
return "Extra file";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.KYCFileAsset = KYCFileAsset;
|
|
@@ -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,9 +198,10 @@ 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
|
+
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
|
@@ -214,9 +214,10 @@ __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
|
+
__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);
|
|
@@ -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
|