@riocrypto/common 1.0.602 → 1.0.604

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.
@@ -44,7 +44,7 @@ export declare class RioClient {
44
44
  platformFee: number;
45
45
  }): Promise<void>;
46
46
  updateRioSettings(update: RioSettingsUpdate): Promise<void>;
47
- confirmBankPayment(orderId: string): Promise<any>;
47
+ confirmBankPayment(orderId: string, amountFiat?: number): Promise<any>;
48
48
  confirmBankPayout(orderId: string): Promise<any>;
49
49
  getUser(): Promise<User>;
50
50
  getBusinessUser(): Promise<BusinessUser>;
@@ -99,10 +99,11 @@ class RioClient {
99
99
  return data;
100
100
  });
101
101
  }
102
- confirmBankPayment(orderId) {
102
+ confirmBankPayment(orderId, amountFiat) {
103
103
  return __awaiter(this, void 0, void 0, function* () {
104
104
  const { data } = yield this.axios.post(`/api/payments/bank/confirm`, {
105
105
  orderId,
106
+ amountFiat,
106
107
  });
107
108
  return data;
108
109
  });
@@ -241,7 +242,7 @@ class RioClient {
241
242
  }
242
243
  createBankAccount(country, fiat, accountNumber, swiftCode) {
243
244
  return __awaiter(this, void 0, void 0, function* () {
244
- const response = yield this.axios.post(`/api/bank/account`, {
245
+ const response = yield this.axios.post(`/api/bank/accounts`, {
245
246
  country,
246
247
  fiat,
247
248
  accountNumber,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.602",
3
+ "version": "1.0.604",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",