@riocrypto/common 1.0.1215 → 1.0.1217

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,40 +1,46 @@
1
- import { Country } from "./country";
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
- interface IndividualUser {
10
- firstName?: string;
11
- middleName?: string;
12
- lastName?: string;
13
- secondLastName?: string;
14
- birthday?: Date;
15
- }
16
- interface BusinessUser {
17
- companyName?: string;
18
- legalRepresentative?: string;
19
- COIFile?: string;
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
- type?: UserType;
23
- email?: string;
24
- language?: Language;
25
- street1?: string;
26
- street2?: string;
27
- city?: string;
28
- state?: string;
29
- country?: CountryOfOrigin;
30
- postalCode?: string;
31
- phoneNumber?: string;
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
- attributes?: UserAttribute[];
61
- brokerId?: string;
62
- authorizedPhoneNumbers?: string[];
63
- kycStatus?: KYCStatus;
64
- notificationUrl?: string;
65
- KYCReportFile?: string;
66
- CSFFile?: string;
67
- proofOfAddressFile?: string;
68
- RFC?: string;
69
- mexicoFiscalRegimenCode?: number;
70
- mexicoFiscalName?: string;
71
- taxId?: string;
72
- usKYCStatus?: "none" | "pending" | "failed" | "approved";
73
- hasPassedEDD?: boolean;
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 {};
@@ -72,7 +72,7 @@ export declare type User = {
72
72
  taxId?: string;
73
73
  files?: {
74
74
  certificateOfIncorporation?: string;
75
- kycReport?: string;
75
+ KYCReport?: string;
76
76
  taxTranscript?: string;
77
77
  proofOfAddress?: string;
78
78
  businessRegistration?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1215",
3
+ "version": "1.0.1217",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",