@riocrypto/common 1.0.715 → 1.0.716
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.
|
@@ -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}`);
|