@riocrypto/common 1.0.1258 → 1.0.1260
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.
|
@@ -61,6 +61,11 @@ export declare class RioAdminClient {
|
|
|
61
61
|
fileRequirements: KYCFileType[];
|
|
62
62
|
}>;
|
|
63
63
|
uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
|
|
64
|
+
getUBO(id: string): Promise<UBO>;
|
|
65
|
+
getUBOOnboardingRequirements(country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
|
|
66
|
+
textRequirements: ("personalId" | "taxId")[];
|
|
67
|
+
fileRequirements: KYCFileType[];
|
|
68
|
+
}>;
|
|
64
69
|
uploadUBOFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<UBO>;
|
|
65
70
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
66
71
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
@@ -109,6 +109,24 @@ class RioAdminClient {
|
|
|
109
109
|
return data;
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
+
getUBO(id) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
let url = `/api/ubos/${id}`;
|
|
115
|
+
const { data } = yield this.axios.get(url);
|
|
116
|
+
return data;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
getUBOOnboardingRequirements(country, countryOfOrigin) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const { data } = yield this.axios.get(`/api/ubos/requirements`, {
|
|
122
|
+
params: {
|
|
123
|
+
country,
|
|
124
|
+
countryOfOrigin,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
return data;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
112
130
|
uploadUBOFile(id, country, fileType, formData) {
|
|
113
131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
132
|
const { data } = yield this.axios.post(`/api/ubos/${id}/files/${country}/${fileType}`, formData);
|
|
@@ -57,6 +57,10 @@ export declare class RioClient {
|
|
|
57
57
|
textRequirements: ("personalId" | "taxId")[];
|
|
58
58
|
fileRequirements: KYCFileType[];
|
|
59
59
|
}>;
|
|
60
|
+
getUBOOnboardingRequirements(country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
|
|
61
|
+
textRequirements: ("personalId" | "taxId")[];
|
|
62
|
+
fileRequirements: KYCFileType[];
|
|
63
|
+
}>;
|
|
60
64
|
createRioSettings(rioSettings: {
|
|
61
65
|
platformFee: number;
|
|
62
66
|
}): Promise<void>;
|
|
@@ -69,6 +73,7 @@ export declare class RioClient {
|
|
|
69
73
|
deleteAPIKey(id: string): Promise<void>;
|
|
70
74
|
confirmBankPayout(orderId: string): Promise<any>;
|
|
71
75
|
getUser(userId?: string): Promise<User>;
|
|
76
|
+
getUBO(id: string): Promise<UBO>;
|
|
72
77
|
createUser(user: UserInput): Promise<User>;
|
|
73
78
|
createUBO(user: UBOInput): Promise<UBO>;
|
|
74
79
|
uploadUBOFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<UBO>;
|
|
@@ -131,6 +131,17 @@ class RioClient {
|
|
|
131
131
|
return data;
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
+
getUBOOnboardingRequirements(country, countryOfOrigin) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const { data } = yield this.axios.get(`/api/ubos/requirements`, {
|
|
137
|
+
params: {
|
|
138
|
+
country,
|
|
139
|
+
countryOfOrigin,
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
return data;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
134
145
|
createRioSettings(rioSettings) {
|
|
135
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
147
|
yield this.axios.post(`/api/settings`, rioSettings);
|
|
@@ -182,6 +193,13 @@ class RioClient {
|
|
|
182
193
|
return data;
|
|
183
194
|
});
|
|
184
195
|
}
|
|
196
|
+
getUBO(id) {
|
|
197
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
198
|
+
let url = `/api/ubos/${id}`;
|
|
199
|
+
const { data } = yield this.axios.get(url);
|
|
200
|
+
return data;
|
|
201
|
+
});
|
|
202
|
+
}
|
|
185
203
|
createUser(user) {
|
|
186
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
205
|
const { data } = yield this.axios.post("/api/users", user);
|