@riocrypto/common 1.0.792 → 1.0.794

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.
@@ -104,6 +104,7 @@ export declare class RioAdminClient {
104
104
  }>;
105
105
  getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
106
106
  getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
107
+ getBankAccount(id: string): Promise<BankAccount>;
107
108
  getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
108
109
  getPartner(partnerId: string): Promise<Partner>;
109
110
  createKushkiPayment(orderId: string, token: string): Promise<{
@@ -362,6 +362,12 @@ class RioAdminClient {
362
362
  return response.data;
363
363
  });
364
364
  }
365
+ getBankAccount(id) {
366
+ return __awaiter(this, void 0, void 0, function* () {
367
+ const response = yield this.axios.get(`/api/bank/accounts/${id}`);
368
+ return response.data;
369
+ });
370
+ }
365
371
  getSupportedPayoutMethods(fiat, country) {
366
372
  return __awaiter(this, void 0, void 0, function* () {
367
373
  const response = yield this.axios.get(`/api/payout-methods?fiat=${fiat}&country=${country}`);
@@ -62,8 +62,18 @@ export declare class RioClient {
62
62
  getOrder(id: string): Promise<Order>;
63
63
  createBankPayout(oid: string, accountNumber: string, swiftCode?: string): Promise<BankPayout>;
64
64
  getBankPayout(orderId: string): Promise<BankPayout>;
65
+ getBridgeOnboardingLinks(userId: string): Promise<{
66
+ tosLink: string;
67
+ kycLink: string;
68
+ }>;
69
+ getBridgeExternalAccounts(userId: string): Promise<{
70
+ id: string;
71
+ bank_name: string;
72
+ account_owner_name: string;
73
+ last_4: string;
74
+ }[]>;
65
75
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
66
- createBankAccount(country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
76
+ createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
67
77
  updateBankAccount(id: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
68
78
  getFeesByVolume(): Promise<{
69
79
  days: number;
@@ -213,6 +213,22 @@ class RioClient {
213
213
  return response.data;
214
214
  });
215
215
  }
216
+ getBridgeOnboardingLinks(userId) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ const { data } = yield this.axios.get(`/api/users/${userId}/us/onboarding-links`);
219
+ return data;
220
+ });
221
+ }
222
+ getBridgeExternalAccounts(userId) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ const { data } = yield this.axios.get(`/api/bank/us/accounts`, {
225
+ params: {
226
+ userId,
227
+ },
228
+ });
229
+ return data;
230
+ });
231
+ }
216
232
  createCheckedAddress(address, crypto) {
217
233
  return __awaiter(this, void 0, void 0, function* () {
218
234
  const response = yield this.axios.post(`/api/kyt/address`, {
@@ -222,9 +238,10 @@ class RioClient {
222
238
  return response.data;
223
239
  });
224
240
  }
225
- createBankAccount(country, fiat, accountNumber, swiftCode, notes) {
241
+ createBankAccount(userId, country, fiat, accountNumber, swiftCode, notes) {
226
242
  return __awaiter(this, void 0, void 0, function* () {
227
243
  const response = yield this.axios.post(`/api/bank/accounts`, {
244
+ userId,
228
245
  country,
229
246
  fiat,
230
247
  accountNumber,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.792",
3
+ "version": "1.0.794",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",