@riocrypto/common 1.0.788 → 1.0.789

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.
@@ -84,7 +84,7 @@ export declare class RioAdminClient {
84
84
  updateOrder(id: string, update: OrderUpdate): Promise<Order>;
85
85
  cancelOrder(id?: string): Promise<Order>;
86
86
  getOrder(id: string): Promise<Order>;
87
- createBankPayout(oid: string, accountNumber: string, swiftCode?: string): Promise<BankPayout>;
87
+ createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
88
88
  getBankPayout(orderId: string): Promise<BankPayout>;
89
89
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
90
90
  createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
@@ -272,12 +272,11 @@ class RioAdminClient {
272
272
  return response.data;
273
273
  });
274
274
  }
275
- createBankPayout(oid, accountNumber, swiftCode) {
275
+ createBankPayout(oid, bankAccountId) {
276
276
  return __awaiter(this, void 0, void 0, function* () {
277
277
  const response = yield this.axios.post(`/api/payouts/bank`, {
278
278
  orderId: oid,
279
- accountNumber,
280
- swiftCode,
279
+ bankAccountId,
281
280
  });
282
281
  return response.data;
283
282
  });
@@ -1,8 +1,5 @@
1
1
  export interface BankPayout {
2
2
  orderId: string;
3
- originBank: string;
4
- accountNumber: string;
5
- swiftCode?: string;
3
+ bankAccountId: string;
6
4
  status: string;
7
- destinationBank?: string;
8
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.788",
3
+ "version": "1.0.789",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",