@riocrypto/common 1.0.635 → 1.0.637
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.
|
@@ -70,7 +70,11 @@ export declare class RioClient {
|
|
|
70
70
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
71
71
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
72
72
|
createBankAccount(country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
73
|
-
|
|
73
|
+
getFeesByVolume(): Promise<{
|
|
74
|
+
days: number;
|
|
75
|
+
fee: number;
|
|
76
|
+
volume: number;
|
|
77
|
+
}>;
|
|
74
78
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
75
79
|
getBankAccounts(): Promise<BankAccount[]>;
|
|
76
80
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
@@ -78,6 +82,7 @@ export declare class RioClient {
|
|
|
78
82
|
createKushkiPayment(orderId: string, token: string): Promise<{
|
|
79
83
|
paymentId: string;
|
|
80
84
|
}>;
|
|
85
|
+
addAuthIdToUser(authId: string): Promise<User>;
|
|
81
86
|
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
82
87
|
updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
|
|
83
88
|
}
|
|
@@ -252,10 +252,10 @@ class RioClient {
|
|
|
252
252
|
return response.data;
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
|
-
|
|
255
|
+
getFeesByVolume() {
|
|
256
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
257
257
|
const response = yield this.axios.get(`/api/quotes/fees/by-volume`);
|
|
258
|
-
return response.data
|
|
258
|
+
return response.data;
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
getPaymentMethods(fiat, country) {
|
|
@@ -291,6 +291,14 @@ class RioClient {
|
|
|
291
291
|
return data;
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
|
+
addAuthIdToUser(authId) {
|
|
295
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
+
const { data } = yield this.axios.post(`/api/users/auths`, {
|
|
297
|
+
authId,
|
|
298
|
+
});
|
|
299
|
+
return data;
|
|
300
|
+
});
|
|
301
|
+
}
|
|
294
302
|
createKushkiBankPayment(orderId) {
|
|
295
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
296
304
|
const { data } = yield this.axios.post(`/api/payments/bank/kushki`, {
|