@riocrypto/common 1.0.1216 → 1.0.1218
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/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/KYCFileType.d.ts +11 -0
- package/build/types/KYCFileType.js +15 -0
- package/build/types/user-update.d.ts +70 -45
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -198,6 +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/KYCFileType";
|
|
201
202
|
export * from "./classes/Asset";
|
|
202
203
|
export * from "./classes/CountryAsset";
|
|
203
204
|
export * from "./classes/CryptoAsset";
|
package/build/index.js
CHANGED
|
@@ -214,6 +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/KYCFileType"), exports);
|
|
217
218
|
__exportStar(require("./classes/Asset"), exports);
|
|
218
219
|
__exportStar(require("./classes/CountryAsset"), exports);
|
|
219
220
|
__exportStar(require("./classes/CryptoAsset"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum KYCFileType {
|
|
2
|
+
CertificateOfIncorporation = "certificateOfIncorporation",
|
|
3
|
+
KYCReport = "KYCReport",
|
|
4
|
+
TaxTranscript = "taxTranscript",
|
|
5
|
+
ProofOfAddress = "proofOfAddress",
|
|
6
|
+
BusinessRegistration = "businessRegistration",
|
|
7
|
+
TaxIdentificationCertificate = "taxIdentificationCertificate",
|
|
8
|
+
LegalRepresentativeIdPowerOfAttorney = "legalRepresentativeIdPowerOfAttorney",
|
|
9
|
+
PersonalIdentificationCertificate = "personalIdentificationCertificate",
|
|
10
|
+
ExtraFile = "extraFile"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KYCFileType = void 0;
|
|
4
|
+
var KYCFileType;
|
|
5
|
+
(function (KYCFileType) {
|
|
6
|
+
KYCFileType["CertificateOfIncorporation"] = "certificateOfIncorporation";
|
|
7
|
+
KYCFileType["KYCReport"] = "KYCReport";
|
|
8
|
+
KYCFileType["TaxTranscript"] = "taxTranscript";
|
|
9
|
+
KYCFileType["ProofOfAddress"] = "proofOfAddress";
|
|
10
|
+
KYCFileType["BusinessRegistration"] = "businessRegistration";
|
|
11
|
+
KYCFileType["TaxIdentificationCertificate"] = "taxIdentificationCertificate";
|
|
12
|
+
KYCFileType["LegalRepresentativeIdPowerOfAttorney"] = "legalRepresentativeIdPowerOfAttorney";
|
|
13
|
+
KYCFileType["PersonalIdentificationCertificate"] = "personalIdentificationCertificate";
|
|
14
|
+
KYCFileType["ExtraFile"] = "extraFile";
|
|
15
|
+
})(KYCFileType = exports.KYCFileType || (exports.KYCFileType = {}));
|
|
@@ -1,40 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RiskTier } from "./risk-tier";
|
|
2
2
|
import { CountryOfOrigin } from "./country-of-origin";
|
|
3
3
|
import { KYCStatus } from "./kyc-status";
|
|
4
|
-
import { Language } from "./language";
|
|
5
4
|
import { PlatformFeeRange } from "./platform-fee-range";
|
|
6
|
-
import { RiskTier } from "./risk-tier";
|
|
7
5
|
import { UserAttribute } from "./user-attribute";
|
|
8
6
|
import { UserType } from "./user-type";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
declare type IndividualUser = {
|
|
8
|
+
individualData: {
|
|
9
|
+
firstName?: string;
|
|
10
|
+
middleName?: string;
|
|
11
|
+
lastName?: string;
|
|
12
|
+
secondLastName?: string;
|
|
13
|
+
birthday?: Date;
|
|
14
|
+
countryOfOrigin?: CountryOfOrigin;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare type BusinessUser = {
|
|
18
|
+
businessData?: {
|
|
19
|
+
businessName?: string;
|
|
20
|
+
legalRepresentative?: {
|
|
21
|
+
name?: string;
|
|
22
|
+
email?: string;
|
|
23
|
+
status?: string;
|
|
24
|
+
};
|
|
25
|
+
UBO?: {
|
|
26
|
+
name: string;
|
|
27
|
+
email?: string;
|
|
28
|
+
id?: string;
|
|
29
|
+
status?: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
21
33
|
export declare type UserUpdate = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
riskTier?: RiskTier;
|
|
33
|
-
countriesToInvoice?: Country[];
|
|
34
|
-
CPF?: string;
|
|
35
|
-
CURP?: string;
|
|
36
|
-
RUC?: string;
|
|
37
|
-
economicActivity?: string;
|
|
34
|
+
authIds?: string[];
|
|
35
|
+
brokerId?: string;
|
|
36
|
+
type: UserType;
|
|
37
|
+
phoneNumber: string;
|
|
38
|
+
email: string;
|
|
39
|
+
risk: RiskTier;
|
|
40
|
+
hasPassedEDD: boolean;
|
|
41
|
+
cosignerGroupId?: string;
|
|
42
|
+
attributes?: UserAttribute[];
|
|
43
|
+
authorizedPhoneNumbers?: string[];
|
|
38
44
|
platformFeeRanges?: {
|
|
39
45
|
MX?: {
|
|
40
46
|
buy?: PlatformFeeRange[];
|
|
@@ -57,19 +63,38 @@ export declare type UserUpdate = {
|
|
|
57
63
|
sell?: PlatformFeeRange[];
|
|
58
64
|
};
|
|
59
65
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
KYC?: {
|
|
67
|
+
[country in CountryOfOrigin]?: {
|
|
68
|
+
status?: KYCStatus;
|
|
69
|
+
personalId?: string;
|
|
70
|
+
taxId?: string;
|
|
71
|
+
files?: {
|
|
72
|
+
certificateOfIncorporation?: string;
|
|
73
|
+
KYCReport?: string;
|
|
74
|
+
taxTranscript?: string;
|
|
75
|
+
proofOfAddress?: string;
|
|
76
|
+
businessRegistration?: string;
|
|
77
|
+
taxIdentificationCertificate?: string;
|
|
78
|
+
legalRepresentativeIdPowerOfAttorney?: string;
|
|
79
|
+
personalIdentificationCertificate?: string;
|
|
80
|
+
extraFiles?: string[];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
address: {
|
|
85
|
+
street1: string;
|
|
86
|
+
street2?: string;
|
|
87
|
+
city: string;
|
|
88
|
+
state: string;
|
|
89
|
+
postalCode: string;
|
|
90
|
+
country: CountryOfOrigin;
|
|
91
|
+
};
|
|
92
|
+
invoicing?: {
|
|
93
|
+
MX?: {
|
|
94
|
+
shouldInvoice?: boolean;
|
|
95
|
+
fiscalName?: string;
|
|
96
|
+
fiscalRegimenCode?: number;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
74
99
|
} & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
|
|
75
100
|
export {};
|