@riocrypto/common 1.0.715 → 1.0.717
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.
|
@@ -312,9 +312,9 @@ class RioAdminClient {
|
|
|
312
312
|
return response.data;
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
getWeeklyVolume() {
|
|
316
316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
-
const response = yield this.axios.get(`/api/admin/volume`);
|
|
317
|
+
const response = yield this.axios.get(`/api/admin/volume/weekly`);
|
|
318
318
|
return response.data;
|
|
319
319
|
});
|
|
320
320
|
}
|
|
@@ -74,6 +74,7 @@ export declare class RioClient {
|
|
|
74
74
|
revenue: number;
|
|
75
75
|
}>;
|
|
76
76
|
getQuote(id: string): Promise<Quote>;
|
|
77
|
+
createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
|
|
77
78
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
78
79
|
getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
|
|
79
80
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
@@ -266,6 +266,16 @@ class RioClient {
|
|
|
266
266
|
return data;
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
|
+
createVerificationLink(userId, firstName, lastName) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
const { data } = yield this.axios.post("/api/kyc/link", {
|
|
272
|
+
userId,
|
|
273
|
+
firstName,
|
|
274
|
+
lastName,
|
|
275
|
+
});
|
|
276
|
+
return data.link;
|
|
277
|
+
});
|
|
278
|
+
}
|
|
269
279
|
getPaymentMethods(fiat, country) {
|
|
270
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
281
|
const response = yield this.axios.get(`/api/payment-methods?fiat=${fiat}&country=${country}`);
|