@riocrypto/common 1.0.681 → 1.0.683

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.
@@ -85,8 +85,11 @@ export declare class RioAdminClient {
85
85
  volume: number;
86
86
  revenue: number;
87
87
  }>;
88
+ getBistoX(): Promise<{
89
+ x: number;
90
+ }>;
88
91
  getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
89
- getBankAccounts(): Promise<BankAccount[]>;
92
+ getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
90
93
  getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
91
94
  getPartner(partnerId: string): Promise<Partner>;
92
95
  createKushkiPayment(orderId: string, token: string): Promise<{
@@ -324,15 +324,23 @@ class RioAdminClient {
324
324
  return response.data;
325
325
  });
326
326
  }
327
+ getBistoX() {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ const response = yield this.axios.get(`/api/admin/bitso/x`);
330
+ return response.data;
331
+ });
332
+ }
327
333
  getPaymentMethods(fiat, country) {
328
334
  return __awaiter(this, void 0, void 0, function* () {
329
335
  const response = yield this.axios.get(`/api/payment-methods?fiat=${fiat}&country=${country}`);
330
336
  return response.data;
331
337
  });
332
338
  }
333
- getBankAccounts() {
339
+ getBankAccounts(page, limit) {
334
340
  return __awaiter(this, void 0, void 0, function* () {
335
- const response = yield this.axios.get(`/api/bank/accounts`);
341
+ const response = yield this.axios.get(`/api/bank/accounts`, {
342
+ params: { page, limit },
343
+ });
336
344
  return response.data;
337
345
  });
338
346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.681",
3
+ "version": "1.0.683",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",