@riocrypto/common 1.0.649 → 1.0.651

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,6 +70,7 @@ export declare class RioAdminClient {
70
70
  getBankPayout(orderId: string): Promise<BankPayout>;
71
71
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
72
72
  createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
73
+ updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
73
74
  deleteBankAccount(id: string): Promise<void>;
74
75
  getFeesByVolume(): Promise<{
75
76
  days: number;
@@ -261,6 +261,20 @@ class RioAdminClient {
261
261
  return response.data;
262
262
  });
263
263
  }
264
+ updateBankAccount(id, userId, country, fiat, accountNumber, swiftCode, notes, approved) {
265
+ return __awaiter(this, void 0, void 0, function* () {
266
+ const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
267
+ userId,
268
+ country,
269
+ fiat,
270
+ accountNumber,
271
+ swiftCode,
272
+ notes,
273
+ approved,
274
+ });
275
+ return response.data;
276
+ });
277
+ }
264
278
  deleteBankAccount(id) {
265
279
  return __awaiter(this, void 0, void 0, function* () {
266
280
  yield this.axios.delete(`/api/bank/accounts/${id}`);
@@ -10,6 +10,7 @@ export declare enum OrderStatus {
10
10
  Complete = "complete",
11
11
  PaymentFailed = "failedPayment",
12
12
  AwaitingPayment = "awaitingPayment",
13
+ AwaitingPayout = "awaitingPayout",
13
14
  FillFailed = "failedFill",
14
15
  TransferFailed = "failedTransfer",
15
16
  QuoteFailed = "failedQuote",
@@ -31,6 +31,8 @@ var OrderStatus;
31
31
  OrderStatus["PaymentFailed"] = "failedPayment";
32
32
  // When waiting for asynchronous payment
33
33
  OrderStatus["AwaitingPayment"] = "awaitingPayment";
34
+ // When waiting for asynchronous payout
35
+ OrderStatus["AwaitingPayout"] = "awaitingPayout";
34
36
  // When the liquidity provider fails to fill the order
35
37
  OrderStatus["FillFailed"] = "failedFill";
36
38
  // When the transfer to the user fails
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.649",
3
+ "version": "1.0.651",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",