@riocrypto/common 1.0.1264 → 1.0.1266

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.
@@ -76,6 +76,7 @@ export declare class RioAdminClient {
76
76
  uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
77
77
  createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
78
78
  sendVerificationEmail(userId: string, country: Country): Promise<void>;
79
+ sendUBOVerificationEmail(uboId: string, country: Country): Promise<void>;
79
80
  sendBridgeOnboardingEmail(userId: string): Promise<void>;
80
81
  createUBO(user: UBOInput): Promise<UBO>;
81
82
  updateAdmin(update: {
@@ -194,6 +194,14 @@ class RioAdminClient {
194
194
  });
195
195
  });
196
196
  }
197
+ sendUBOVerificationEmail(uboId, country) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ yield this.axios.post("/api/kyc/email/ubo", {
200
+ uboId,
201
+ country,
202
+ });
203
+ });
204
+ }
197
205
  sendBridgeOnboardingEmail(userId) {
198
206
  return __awaiter(this, void 0, void 0, function* () {
199
207
  yield this.axios.post(`/api/users/${userId}/us/onboarding-email`);
@@ -55,6 +55,7 @@ export declare class RioClient {
55
55
  uploadCSF(id: string, formData: FormData): Promise<User>;
56
56
  getRioSettings(): Promise<RioSettings>;
57
57
  sendVerificationEmail(userId: string, country: Country): Promise<void>;
58
+ sendUBOVerificationEmail(uboId: string, country: Country): Promise<void>;
58
59
  sendUBOOnboardingEmail(associatedUserId: string, country: Country): Promise<void>;
59
60
  sendBridgeOnboardingEmail(userId: string): Promise<void>;
60
61
  getOnboardingRequirements(userType: UserType, country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
@@ -131,6 +131,14 @@ class RioClient {
131
131
  });
132
132
  });
133
133
  }
134
+ sendUBOVerificationEmail(uboId, country) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ yield this.axios.post("/api/kyc/email/ubo", {
137
+ uboId,
138
+ country,
139
+ });
140
+ });
141
+ }
134
142
  sendUBOOnboardingEmail(associatedUserId, country) {
135
143
  return __awaiter(this, void 0, void 0, function* () {
136
144
  yield this.axios.post("/api/ubos/onboarding-email", {
@@ -87,16 +87,16 @@ export declare type User = {
87
87
  personalIdentificationCertificate?: string;
88
88
  extraFiles?: string[];
89
89
  };
90
+ address?: {
91
+ street1?: string;
92
+ street2?: string;
93
+ city?: string;
94
+ state?: string;
95
+ postalCode?: string;
96
+ country?: CountryOfOrigin;
97
+ };
90
98
  };
91
99
  };
92
- address: {
93
- street1: string;
94
- street2?: string;
95
- city: string;
96
- state: string;
97
- postalCode: string;
98
- country: CountryOfOrigin;
99
- };
100
100
  invoicing?: {
101
101
  MX?: {
102
102
  shouldInvoice?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1264",
3
+ "version": "1.0.1266",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",