@riocrypto/common 1.0.713 → 1.0.715
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;
|
|
@@ -62,7 +63,7 @@ export declare class RioClient {
|
|
|
62
63
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
63
64
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
64
65
|
createBankAccount(country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
65
|
-
|
|
66
|
+
updateBankAccount(id: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
66
67
|
getFeesByVolume(): Promise<{
|
|
67
68
|
days: number;
|
|
68
69
|
fee: number;
|
|
@@ -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`);
|
|
@@ -229,9 +235,17 @@ class RioClient {
|
|
|
229
235
|
return response.data;
|
|
230
236
|
});
|
|
231
237
|
}
|
|
232
|
-
|
|
238
|
+
updateBankAccount(id, country, fiat, accountNumber, swiftCode, notes, approved) {
|
|
233
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
yield this.axios.
|
|
240
|
+
const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
|
|
241
|
+
country,
|
|
242
|
+
fiat,
|
|
243
|
+
accountNumber,
|
|
244
|
+
swiftCode,
|
|
245
|
+
notes,
|
|
246
|
+
approved,
|
|
247
|
+
});
|
|
248
|
+
return response.data;
|
|
235
249
|
});
|
|
236
250
|
}
|
|
237
251
|
getFeesByVolume() {
|