@riocrypto/common 1.0.601 → 1.0.603

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.
@@ -71,6 +71,7 @@ export declare class RioClient {
71
71
  createBankPayout(oid: string, accountNumber: string, swiftCode?: string): Promise<BankPayout>;
72
72
  getBankPayout(orderId: string): Promise<BankPayout>;
73
73
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
74
+ createBankAccount(country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string): Promise<BankAccount>;
74
75
  getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
75
76
  getBankAccounts(): Promise<BankAccount[]>;
76
77
  getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
@@ -239,6 +239,17 @@ class RioClient {
239
239
  return response.data;
240
240
  });
241
241
  }
242
+ createBankAccount(country, fiat, accountNumber, swiftCode) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ const response = yield this.axios.post(`/api/bank/accounts`, {
245
+ country,
246
+ fiat,
247
+ accountNumber,
248
+ swiftCode,
249
+ });
250
+ return response.data;
251
+ });
252
+ }
242
253
  getPaymentMethods(fiat, country) {
243
254
  return __awaiter(this, void 0, void 0, function* () {
244
255
  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.601",
3
+ "version": "1.0.603",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",