@riocrypto/common 1.0.642 → 1.0.644

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,11 +70,16 @@ 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
+ deleteBankAccount(id: string): Promise<void>;
73
74
  getFeesByVolume(): Promise<{
74
75
  days: number;
75
76
  fee: number;
76
77
  volume: number;
77
78
  }>;
79
+ getAggregateVolume(): Promise<{
80
+ volume: number;
81
+ revenue: number;
82
+ }>;
78
83
  getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
79
84
  getBankAccounts(): Promise<BankAccount[]>;
80
85
  getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
@@ -252,12 +252,23 @@ class RioClient {
252
252
  return response.data;
253
253
  });
254
254
  }
255
+ deleteBankAccount(id) {
256
+ return __awaiter(this, void 0, void 0, function* () {
257
+ yield this.axios.delete(`/api/bank/accounts/${id}`);
258
+ });
259
+ }
255
260
  getFeesByVolume() {
256
261
  return __awaiter(this, void 0, void 0, function* () {
257
262
  const response = yield this.axios.get(`/api/quotes/fees/by-volume`);
258
263
  return response.data;
259
264
  });
260
265
  }
266
+ getAggregateVolume() {
267
+ return __awaiter(this, void 0, void 0, function* () {
268
+ const response = yield this.axios.get(`/api/orders/volume"`);
269
+ return response.data;
270
+ });
271
+ }
261
272
  getPaymentMethods(fiat, country) {
262
273
  return __awaiter(this, void 0, void 0, function* () {
263
274
  const response = yield this.axios.get(`/api/payment-methods?fiat=${fiat}&country=${country}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.642",
3
+ "version": "1.0.644",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",