@riocrypto/common 1.0.712 → 1.0.714
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.
|
@@ -29,8 +29,9 @@ export declare class RioClient {
|
|
|
29
29
|
createQuote(input: QuoteInput): Promise<Quote>;
|
|
30
30
|
getUsers(page: number, limit: number, type?: UserType, brokerId?: string): Promise<User[]>;
|
|
31
31
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
33
|
+
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
34
|
+
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
34
35
|
getRioSettings(): Promise<RioSettings>;
|
|
35
36
|
createRioSettings(rioSettings: {
|
|
36
37
|
platformFee: number;
|
|
@@ -72,6 +73,7 @@ export declare class RioClient {
|
|
|
72
73
|
volume: number;
|
|
73
74
|
revenue: number;
|
|
74
75
|
}>;
|
|
76
|
+
getQuote(id: string): Promise<Quote>;
|
|
75
77
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
76
78
|
getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
|
|
77
79
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
@@ -58,18 +58,24 @@ class RioClient {
|
|
|
58
58
|
return data;
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
uploadCOI(id, formData) {
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const { data } = yield this.axios.post(`/api/users/${id}/coi`, formData);
|
|
64
64
|
return data;
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
uploadKYCReport(id, formData) {
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
const { data } = yield this.axios.post(`/api/users/${id}/kyc-report`, formData);
|
|
70
70
|
return data;
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
+
uploadCSF(id, formData) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const { data } = yield this.axios.post(`/api/users/${id}/csf`, formData);
|
|
76
|
+
return data;
|
|
77
|
+
});
|
|
78
|
+
}
|
|
73
79
|
getRioSettings() {
|
|
74
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
81
|
const { data } = yield this.axios.get(`/api/settings`);
|
|
@@ -246,6 +252,12 @@ class RioClient {
|
|
|
246
252
|
return response.data;
|
|
247
253
|
});
|
|
248
254
|
}
|
|
255
|
+
getQuote(id) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const { data } = yield this.axios.get(`/api/quotes/${id}`);
|
|
258
|
+
return data;
|
|
259
|
+
});
|
|
260
|
+
}
|
|
249
261
|
getPaymentMethods(fiat, country) {
|
|
250
262
|
return __awaiter(this, void 0, void 0, function* () {
|
|
251
263
|
const response = yield this.axios.get(`/api/payment-methods?fiat=${fiat}&country=${country}`);
|