@riocrypto/common 1.0.791 → 1.0.793

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.
@@ -104,6 +104,7 @@ export declare class RioAdminClient {
104
104
  }>;
105
105
  getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
106
106
  getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
107
+ getBankAccount(id: string): Promise<BankAccount>;
107
108
  getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
108
109
  getPartner(partnerId: string): Promise<Partner>;
109
110
  createKushkiPayment(orderId: string, token: string): Promise<{
@@ -362,6 +362,12 @@ class RioAdminClient {
362
362
  return response.data;
363
363
  });
364
364
  }
365
+ getBankAccount(id) {
366
+ return __awaiter(this, void 0, void 0, function* () {
367
+ const response = yield this.axios.get(`/api/bank/accounts/${id}`);
368
+ return response.data;
369
+ });
370
+ }
365
371
  getSupportedPayoutMethods(fiat, country) {
366
372
  return __awaiter(this, void 0, void 0, function* () {
367
373
  const response = yield this.axios.get(`/api/payout-methods?fiat=${fiat}&country=${country}`);
@@ -1,3 +1,4 @@
1
+ import { Processor } from "../types/processor";
1
2
  import { Subjects } from "./subjects";
2
3
  export interface BankPayoutCreatedEvent {
3
4
  subject: Subjects.BankPayoutCreated;
@@ -5,7 +6,7 @@ export interface BankPayoutCreatedEvent {
5
6
  id: string;
6
7
  orderId: string;
7
8
  bankAccountId: string;
8
- originBank: string;
9
+ originBank: Processor;
9
10
  status: string;
10
11
  };
11
12
  }
@@ -1,6 +1,7 @@
1
+ import { Processor } from "./processor";
1
2
  export interface BankPayout {
2
3
  orderId: string;
3
4
  bankAccountId: string;
4
- originBank: string;
5
+ originBank: Processor;
5
6
  status: string;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.791",
3
+ "version": "1.0.793",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",