@riocrypto/common 1.0.1362 → 1.0.1363
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.
|
@@ -1,24 +1,7 @@
|
|
|
1
|
-
import { OnboardingStatus } from "../types/onboarding-status";
|
|
2
|
-
import { USState } from "../types/us-state";
|
|
3
|
-
import { UserAttribute } from "../types/user-attribute";
|
|
4
1
|
import { Subjects } from "./subjects";
|
|
5
2
|
export interface UserCreatedEvent {
|
|
6
3
|
subject: Subjects.UserCreated;
|
|
7
4
|
data: {
|
|
8
5
|
id: string;
|
|
9
|
-
firstName: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
phoneNumber: string;
|
|
12
|
-
birthday: Date;
|
|
13
|
-
email: string;
|
|
14
|
-
street1: string;
|
|
15
|
-
street2: string;
|
|
16
|
-
city: string;
|
|
17
|
-
state: USState | string;
|
|
18
|
-
country: string;
|
|
19
|
-
postalCode: string;
|
|
20
|
-
kycStatus: OnboardingStatus;
|
|
21
|
-
language?: string;
|
|
22
|
-
attributes?: UserAttribute[];
|
|
23
6
|
};
|
|
24
7
|
}
|
|
@@ -1,56 +1,89 @@
|
|
|
1
|
-
import { Country } from "../types/country";
|
|
2
1
|
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
2
|
+
import { ImmigrationStatus } from "../types/immigration-status";
|
|
3
3
|
import { OnboardingStatus } from "../types/onboarding-status";
|
|
4
4
|
import { PlatformFeeRange } from "../types/platform-fee-range";
|
|
5
|
+
import { RiskTier } from "../types/risk-tier";
|
|
5
6
|
import { UserAttribute } from "../types/user-attribute";
|
|
6
|
-
import { UserType } from "../types/user-type";
|
|
7
7
|
import { Subjects } from "./subjects";
|
|
8
8
|
export interface UserUpdatedEvent {
|
|
9
9
|
subject: Subjects.UserUpdated;
|
|
10
10
|
data: {
|
|
11
|
-
id: string;
|
|
12
11
|
authIds?: string[];
|
|
13
|
-
|
|
12
|
+
brokerId?: string;
|
|
13
|
+
phoneNumber?: string;
|
|
14
14
|
email?: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
state?: string;
|
|
19
|
-
country?: CountryOfOrigin;
|
|
20
|
-
postalCode?: string;
|
|
21
|
-
kycStatus?: OnboardingStatus;
|
|
22
|
-
CPF?: string;
|
|
23
|
-
CURP?: string;
|
|
24
|
-
economicActivity?: string;
|
|
25
|
-
platformFeeRanges?: {
|
|
26
|
-
MX?: PlatformFeeRange[];
|
|
27
|
-
PE?: PlatformFeeRange[];
|
|
28
|
-
CO?: PlatformFeeRange[];
|
|
29
|
-
BR?: PlatformFeeRange[];
|
|
30
|
-
US?: PlatformFeeRange[];
|
|
31
|
-
};
|
|
15
|
+
risk?: RiskTier;
|
|
16
|
+
hasPassedEDD?: boolean;
|
|
17
|
+
cosignerGroupId?: string;
|
|
32
18
|
attributes?: UserAttribute[];
|
|
33
|
-
brokerId?: string;
|
|
34
19
|
authorizedPhoneNumbers?: string[];
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
20
|
+
platformFeeRanges?: {
|
|
21
|
+
MX?: {
|
|
22
|
+
buy?: PlatformFeeRange[];
|
|
23
|
+
sell?: PlatformFeeRange[];
|
|
24
|
+
};
|
|
25
|
+
PE?: {
|
|
26
|
+
buy?: PlatformFeeRange[];
|
|
27
|
+
sell?: PlatformFeeRange[];
|
|
28
|
+
};
|
|
29
|
+
CO?: {
|
|
30
|
+
buy?: PlatformFeeRange[];
|
|
31
|
+
sell?: PlatformFeeRange[];
|
|
32
|
+
};
|
|
33
|
+
BR?: {
|
|
34
|
+
buy?: PlatformFeeRange[];
|
|
35
|
+
sell?: PlatformFeeRange[];
|
|
36
|
+
};
|
|
37
|
+
US?: {
|
|
38
|
+
buy?: PlatformFeeRange[];
|
|
39
|
+
sell?: PlatformFeeRange[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
onboarding?: {
|
|
43
|
+
[country in CountryOfOrigin]?: {
|
|
44
|
+
status?: OnboardingStatus;
|
|
45
|
+
personalId?: string;
|
|
46
|
+
taxId?: string;
|
|
47
|
+
immigrationStatus?: ImmigrationStatus;
|
|
48
|
+
hasAcceptedTerms?: boolean;
|
|
49
|
+
individualIdentityVerification?: {
|
|
50
|
+
status?: "passed" | "failed" | "review";
|
|
51
|
+
};
|
|
52
|
+
legalRepresentative?: {
|
|
53
|
+
firstName?: string;
|
|
54
|
+
middleName?: string;
|
|
55
|
+
lastName?: string;
|
|
56
|
+
secondLastName?: string;
|
|
57
|
+
verificationStatus?: "passed" | "failed" | "review";
|
|
58
|
+
email?: string;
|
|
59
|
+
};
|
|
60
|
+
files?: {
|
|
61
|
+
certificateOfIncorporation?: string;
|
|
62
|
+
KYCReport?: string;
|
|
63
|
+
taxTranscript?: string;
|
|
64
|
+
proofOfAddress?: string;
|
|
65
|
+
businessRegistration?: string;
|
|
66
|
+
taxIdentificationCertificate?: string;
|
|
67
|
+
legalRepresentativeIdPowerOfAttorney?: string;
|
|
68
|
+
personalIdentificationCertificate?: string;
|
|
69
|
+
extraFiles?: string[];
|
|
70
|
+
};
|
|
71
|
+
address?: {
|
|
72
|
+
street1?: string;
|
|
73
|
+
street2?: string;
|
|
74
|
+
city?: string;
|
|
75
|
+
state?: string;
|
|
76
|
+
postalCode?: string;
|
|
77
|
+
country?: CountryOfOrigin;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
invoicing?: {
|
|
82
|
+
MX?: {
|
|
83
|
+
shouldInvoice?: boolean;
|
|
84
|
+
fiscalName?: string;
|
|
85
|
+
fiscalRegimenCode?: number;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
55
88
|
};
|
|
56
89
|
}
|