@riocrypto/common 1.0.1423 → 1.0.1426

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.
@@ -161,6 +161,8 @@ export declare class RioAdminClient {
161
161
  getBankPayout(orderId: string): Promise<BankPayout>;
162
162
  startAddressVerification(addressId: string): Promise<void>;
163
163
  completeAddressVerification(addressId: string, amount: Number): Promise<void>;
164
+ startBankAccountVerification(bankAccountId: string): Promise<void>;
165
+ completeBankAccountVerification(bankAccountId: string, amount: Number): Promise<void>;
164
166
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
165
167
  getCryptoAddress(id: string): Promise<CryptoAddress>;
166
168
  createChainedOrder(order: ChainedOrderInput): Promise<ChainedOrder>;
@@ -585,6 +585,20 @@ class RioAdminClient {
585
585
  return response.data;
586
586
  });
587
587
  }
588
+ startBankAccountVerification(bankAccountId) {
589
+ return __awaiter(this, void 0, void 0, function* () {
590
+ const response = yield this.axios.post(`/api/bank/accounts/${bankAccountId}/start-verification`);
591
+ return response.data;
592
+ });
593
+ }
594
+ completeBankAccountVerification(bankAccountId, amount) {
595
+ return __awaiter(this, void 0, void 0, function* () {
596
+ const response = yield this.axios.post(`/api/bank/accounts/${bankAccountId}/complete-verification`, {
597
+ amount,
598
+ });
599
+ return response.data;
600
+ });
601
+ }
588
602
  getCryptoAddresses(page, limit, query) {
589
603
  return __awaiter(this, void 0, void 0, function* () {
590
604
  const { data } = yield this.axios.get(`/api/addresses?`, {
@@ -132,6 +132,8 @@ export declare class RioClient {
132
132
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
133
133
  startAddressVerification(addressId: string): Promise<void>;
134
134
  completeAddressVerification(addressId: string, amount: Number): Promise<void>;
135
+ startBankAccountVerification(bankAccountId: string): Promise<void>;
136
+ completeBankAccountVerification(bankAccountId: string, amount: Number): Promise<void>;
135
137
  getCryptoAddress(id: string): Promise<CryptoAddress>;
136
138
  createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
137
139
  createBridgePlaidLink(userId: string): Promise<string>;
@@ -487,6 +487,20 @@ class RioClient {
487
487
  return response.data;
488
488
  });
489
489
  }
490
+ startBankAccountVerification(bankAccountId) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ const response = yield this.axios.post(`/api/bank/accounts/${bankAccountId}/start-verification`);
493
+ return response.data;
494
+ });
495
+ }
496
+ completeBankAccountVerification(bankAccountId, amount) {
497
+ return __awaiter(this, void 0, void 0, function* () {
498
+ const response = yield this.axios.post(`/api/bank/accounts/${bankAccountId}/complete-verification`, {
499
+ amount,
500
+ });
501
+ return response.data;
502
+ });
503
+ }
490
504
  getCryptoAddress(id) {
491
505
  return __awaiter(this, void 0, void 0, function* () {
492
506
  const { data } = yield this.axios.get(`/api/addresses/${id}`);
@@ -1,3 +1,4 @@
1
+ import { Country } from "./country";
1
2
  import { OnboardingStatus } from "./onboarding-status";
2
3
  export interface UserQuery {
3
4
  firstName?: string;
@@ -5,4 +6,5 @@ export interface UserQuery {
5
6
  businessName?: string;
6
7
  onboardingStatus?: OnboardingStatus;
7
8
  brokerId?: string;
9
+ countryOfOperation?: Country;
8
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1423",
3
+ "version": "1.0.1426",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",