@riocrypto/common 1.0.1172 → 1.0.1174
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.
|
@@ -121,7 +121,19 @@ export declare class RioAdminClient {
|
|
|
121
121
|
sufficientLiquidity: boolean;
|
|
122
122
|
}>;
|
|
123
123
|
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CLABE?: string, CCI?: string, notes?: string): Promise<BankAccount>;
|
|
124
|
-
updateBankAccount(id: string,
|
|
124
|
+
updateBankAccount(id: string, data: {
|
|
125
|
+
userId?: string;
|
|
126
|
+
country?: Country;
|
|
127
|
+
fiat?: Fiat;
|
|
128
|
+
bankName?: string;
|
|
129
|
+
accountHolderName?: string;
|
|
130
|
+
accountNumber?: string;
|
|
131
|
+
swiftCode?: string;
|
|
132
|
+
CCI?: string;
|
|
133
|
+
CLABE?: string;
|
|
134
|
+
notes?: string;
|
|
135
|
+
approved?: boolean;
|
|
136
|
+
}): Promise<BankAccount>;
|
|
125
137
|
deleteBankAccount(id: string): Promise<void>;
|
|
126
138
|
getFeesByVolume(): Promise<{
|
|
127
139
|
days: number;
|
|
@@ -460,19 +460,9 @@ class RioAdminClient {
|
|
|
460
460
|
return response.data;
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
updateBankAccount(id,
|
|
463
|
+
updateBankAccount(id, data) {
|
|
464
464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
-
const response = yield this.axios.patch(`/api/bank/accounts/${id}`,
|
|
466
|
-
userId,
|
|
467
|
-
country,
|
|
468
|
-
fiat,
|
|
469
|
-
bankName,
|
|
470
|
-
accountHolderName,
|
|
471
|
-
accountNumber,
|
|
472
|
-
swiftCode,
|
|
473
|
-
notes,
|
|
474
|
-
approved,
|
|
475
|
-
});
|
|
465
|
+
const response = yield this.axios.patch(`/api/bank/accounts/${id}`, data);
|
|
476
466
|
return response.data;
|
|
477
467
|
});
|
|
478
468
|
}
|
|
@@ -96,7 +96,17 @@ export declare class RioClient {
|
|
|
96
96
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
97
97
|
createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string): Promise<string>;
|
|
98
98
|
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CLABE?: string, CCI?: string, notes?: string): Promise<BankAccount>;
|
|
99
|
-
updateBankAccount(id: string,
|
|
99
|
+
updateBankAccount(id: string, data: {
|
|
100
|
+
country?: Country;
|
|
101
|
+
fiat?: Fiat;
|
|
102
|
+
bankName?: string;
|
|
103
|
+
accountHolderName?: string;
|
|
104
|
+
accountNumber?: string;
|
|
105
|
+
swiftCode?: string;
|
|
106
|
+
CCI?: string;
|
|
107
|
+
CLABE?: string;
|
|
108
|
+
notes?: string;
|
|
109
|
+
}): Promise<BankAccount>;
|
|
100
110
|
getFeesByVolume(): Promise<{
|
|
101
111
|
days: number;
|
|
102
112
|
fee: number;
|
|
@@ -361,18 +361,9 @@ class RioClient {
|
|
|
361
361
|
return response.data;
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
|
-
updateBankAccount(id,
|
|
364
|
+
updateBankAccount(id, data) {
|
|
365
365
|
return __awaiter(this, void 0, void 0, function* () {
|
|
366
|
-
const response = yield this.axios.patch(`/api/bank/accounts/${id}`,
|
|
367
|
-
country,
|
|
368
|
-
fiat,
|
|
369
|
-
bankName,
|
|
370
|
-
accountHolderName,
|
|
371
|
-
accountNumber,
|
|
372
|
-
swiftCode,
|
|
373
|
-
notes,
|
|
374
|
-
approved,
|
|
375
|
-
});
|
|
366
|
+
const response = yield this.axios.patch(`/api/bank/accounts/${id}`, data);
|
|
376
367
|
return response.data;
|
|
377
368
|
});
|
|
378
369
|
}
|