@riocrypto/common 1.0.1085 → 1.0.1087

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.
@@ -115,7 +115,7 @@ export declare class RioAdminClient {
115
115
  cancelChainedOrder(id?: string): Promise<void>;
116
116
  getOrder(id: string): Promise<Order>;
117
117
  createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
118
- createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number): Promise<void>;
118
+ createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, provider: "coinbase" | "circle"): Promise<void>;
119
119
  getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
120
120
  getBankPayout(orderId: string): Promise<BankPayout>;
121
121
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
@@ -403,12 +403,13 @@ class RioAdminClient {
403
403
  return response.data;
404
404
  });
405
405
  }
406
- createInternalSwap(originCrypto, destinationCrypto, amount) {
406
+ createInternalSwap(originCrypto, destinationCrypto, amount, provider) {
407
407
  return __awaiter(this, void 0, void 0, function* () {
408
408
  const response = yield this.axios.post(`/api/liquidity/swaps`, {
409
409
  originCrypto,
410
410
  destinationCrypto,
411
411
  amount,
412
+ provider,
412
413
  });
413
414
  });
414
415
  }
@@ -8,7 +8,7 @@ export interface BankAccount {
8
8
  accountHolderName: string;
9
9
  country: Country;
10
10
  fiat: Fiat;
11
- accountNumber: string;
11
+ accountNumber?: string;
12
12
  approved: boolean;
13
13
  swiftCode?: string;
14
14
  CCI?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1085",
3
+ "version": "1.0.1087",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",