@riocrypto/common 1.0.2078 → 1.0.2080

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.
@@ -9,8 +9,8 @@ export interface Onboarding {
9
9
  userId?: string;
10
10
  brokerId?: string;
11
11
  authId?: string;
12
- aiPriseId?: string;
12
+ aipriseBusinessProfileId?: string;
13
+ aipriseUserProfileId?: string;
13
14
  bridgeId?: string;
14
15
  email?: string;
15
- aiPriseURL?: string;
16
16
  }
@@ -15,5 +15,6 @@ export declare enum TreasuryProvider {
15
15
  BBVA = "bbva",
16
16
  Bancrea = "bancrea",
17
17
  Interbank = "interbank",
18
- JPMorgan = "jpmorgan"
18
+ JPMorgan = "jpmorgan",
19
+ BancoAzteca = "bancoAzteca"
19
20
  }
@@ -20,4 +20,5 @@ var TreasuryProvider;
20
20
  TreasuryProvider["Bancrea"] = "bancrea";
21
21
  TreasuryProvider["Interbank"] = "interbank";
22
22
  TreasuryProvider["JPMorgan"] = "jpmorgan";
23
+ TreasuryProvider["BancoAzteca"] = "bancoAzteca";
23
24
  })(TreasuryProvider = exports.TreasuryProvider || (exports.TreasuryProvider = {}));
@@ -9,6 +9,51 @@ import { Country } from "./country";
9
9
  import { Fiat } from "./fiat";
10
10
  import { Crypto } from "./crypto";
11
11
  import { Side } from "./side";
12
+ declare type OnboardingBase = {
13
+ aipriseBusinessProfileId?: string;
14
+ aipriseUserProfileId?: string;
15
+ };
16
+ declare type OnboardingCountryData = {
17
+ [country in CountryOfOrigin]?: {
18
+ status?: OnboardingStatus;
19
+ hasAcceptedTerms?: boolean;
20
+ bridgeId?: string;
21
+ onboardingId?: string;
22
+ personalId?: string;
23
+ taxId?: string;
24
+ immigrationStatus?: ImmigrationStatus;
25
+ individualIdentityVerification?: {
26
+ status?: "passed" | "failed" | "review";
27
+ };
28
+ legalRepresentative?: {
29
+ firstName?: string;
30
+ middleName?: string;
31
+ lastName?: string;
32
+ secondLastName?: string;
33
+ verificationStatus?: "passed" | "failed" | "review";
34
+ email?: string;
35
+ };
36
+ files?: {
37
+ certificateOfIncorporation?: string;
38
+ KYCReport?: string;
39
+ taxTranscript?: string;
40
+ proofOfAddress?: string;
41
+ businessRegistration?: string;
42
+ taxIdentificationCertificate?: string;
43
+ legalRepresentativeIdPowerOfAttorney?: string;
44
+ personalIdentificationCertificate?: string;
45
+ extraFiles?: string[];
46
+ };
47
+ address?: {
48
+ street1?: string;
49
+ street2?: string;
50
+ city?: string;
51
+ state?: string;
52
+ postalCode?: string;
53
+ country?: CountryOfOrigin;
54
+ };
55
+ };
56
+ };
12
57
  declare type IndividualUser = {
13
58
  id: string;
14
59
  individualData?: {
@@ -63,48 +108,7 @@ export declare type User = {
63
108
  sell?: PlatformFeeRange[];
64
109
  };
65
110
  };
66
- onboarding?: {
67
- [country in CountryOfOrigin]?: {
68
- status?: OnboardingStatus;
69
- hasAcceptedTerms?: boolean;
70
- aiPriseId?: string;
71
- bridgeId?: string;
72
- onboardingId?: string;
73
- personalId?: string;
74
- taxId?: string;
75
- immigrationStatus?: ImmigrationStatus;
76
- individualIdentityVerification?: {
77
- status?: "passed" | "failed" | "review";
78
- };
79
- legalRepresentative?: {
80
- firstName?: string;
81
- middleName?: string;
82
- lastName?: string;
83
- secondLastName?: string;
84
- verificationStatus?: "passed" | "failed" | "review";
85
- email?: string;
86
- };
87
- files?: {
88
- certificateOfIncorporation?: string;
89
- KYCReport?: string;
90
- taxTranscript?: string;
91
- proofOfAddress?: string;
92
- businessRegistration?: string;
93
- taxIdentificationCertificate?: string;
94
- legalRepresentativeIdPowerOfAttorney?: string;
95
- personalIdentificationCertificate?: string;
96
- extraFiles?: string[];
97
- };
98
- address?: {
99
- street1?: string;
100
- street2?: string;
101
- city?: string;
102
- state?: string;
103
- postalCode?: string;
104
- country?: CountryOfOrigin;
105
- };
106
- };
107
- };
111
+ onboarding?: OnboardingBase & OnboardingCountryData;
108
112
  invoicing?: {
109
113
  MX?: {
110
114
  shouldInvoice?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2078",
3
+ "version": "1.0.2080",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",