@riocrypto/common 1.0.828 → 1.0.830

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.
@@ -89,7 +89,7 @@ export declare class RioAdminClient {
89
89
  getBankPayout(orderId: string): Promise<BankPayout>;
90
90
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
91
91
  createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
92
- updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
92
+ updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, bankName?: string, accountHolderName?: string, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
93
93
  deleteBankAccount(id: string): Promise<void>;
94
94
  getFeesByVolume(): Promise<{
95
95
  days: number;
@@ -311,12 +311,14 @@ class RioAdminClient {
311
311
  return response.data;
312
312
  });
313
313
  }
314
- updateBankAccount(id, userId, country, fiat, accountNumber, swiftCode, notes, approved) {
314
+ updateBankAccount(id, userId, country, fiat, bankName, accountHolderName, accountNumber, swiftCode, notes, approved) {
315
315
  return __awaiter(this, void 0, void 0, function* () {
316
316
  const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
317
317
  userId,
318
318
  country,
319
319
  fiat,
320
+ bankName,
321
+ accountHolderName,
320
322
  accountNumber,
321
323
  swiftCode,
322
324
  notes,
@@ -23,6 +23,7 @@ export declare enum OrderStatus {
23
23
  BridgeOrderCreationFailed = "bridgeOrderCreationFailed",
24
24
  BridgeOrderRoutingFailed = "bridgeOrderRoutingFailed",
25
25
  BridgeTransferFailed = "bridgeTransferFailed",
26
+ DepositAmountMismatchFailed = "depositAmountMismatchFailed",
26
27
  Failed = "failedUnknown",
27
28
  Expired = "expired"
28
29
  }
@@ -57,6 +57,8 @@ var OrderStatus;
57
57
  OrderStatus["BridgeOrderRoutingFailed"] = "bridgeOrderRoutingFailed";
58
58
  // When Bridge transfer fails
59
59
  OrderStatus["BridgeTransferFailed"] = "bridgeTransferFailed";
60
+ // Deposit amount mismatch failure
61
+ OrderStatus["DepositAmountMismatchFailed"] = "depositAmountMismatchFailed";
60
62
  // Unknown error(s)
61
63
  OrderStatus["Failed"] = "failedUnknown";
62
64
  // When the order is expireed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.828",
3
+ "version": "1.0.830",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",