@riocrypto/common 1.0.1420 → 1.0.1422

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.
@@ -160,6 +160,7 @@ export declare class RioAdminClient {
160
160
  getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
161
161
  getBankPayout(orderId: string): Promise<BankPayout>;
162
162
  startAddressVerification(addressId: string): Promise<void>;
163
+ completeAddressVerification(addressId: string, amount: Number): Promise<void>;
163
164
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
164
165
  getCryptoAddress(id: string): Promise<CryptoAddress>;
165
166
  createChainedOrder(order: ChainedOrderInput): Promise<ChainedOrder>;
@@ -577,6 +577,14 @@ class RioAdminClient {
577
577
  return response.data;
578
578
  });
579
579
  }
580
+ completeAddressVerification(addressId, amount) {
581
+ return __awaiter(this, void 0, void 0, function* () {
582
+ const response = yield this.axios.post(`/api/addresses/${addressId}/complete-verification`, {
583
+ amount,
584
+ });
585
+ return response.data;
586
+ });
587
+ }
580
588
  getCryptoAddresses(page, limit, query) {
581
589
  return __awaiter(this, void 0, void 0, function* () {
582
590
  const { data } = yield this.axios.get(`/api/addresses?`, {
@@ -131,6 +131,7 @@ export declare class RioClient {
131
131
  getBridgeExternalAccounts(query: BridgeExternalAccountQuery): Promise<BankAccount[]>;
132
132
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
133
133
  startAddressVerification(addressId: string): Promise<void>;
134
+ completeAddressVerification(addressId: string, amount: Number): Promise<void>;
134
135
  getCryptoAddress(id: string): Promise<CryptoAddress>;
135
136
  createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
136
137
  createBridgePlaidLink(userId: string): Promise<string>;
@@ -479,6 +479,14 @@ class RioClient {
479
479
  return response.data;
480
480
  });
481
481
  }
482
+ completeAddressVerification(addressId, amount) {
483
+ return __awaiter(this, void 0, void 0, function* () {
484
+ const response = yield this.axios.post(`/api/addresses/${addressId}/complete-verification`, {
485
+ amount,
486
+ });
487
+ return response.data;
488
+ });
489
+ }
482
490
  getCryptoAddress(id) {
483
491
  return __awaiter(this, void 0, void 0, function* () {
484
492
  const { data } = yield this.axios.get(`/api/addresses/${id}`);
package/build/index.d.ts CHANGED
@@ -226,6 +226,7 @@ export * from "./types/bid";
226
226
  export * from "./types/bid-status";
227
227
  export * from "./types/auth-role";
228
228
  export * from "./types/address-verification-status";
229
+ export * from "./types/bank-account-verification-status";
229
230
  export * from "./classes/Asset";
230
231
  export * from "./classes/KYCFieldClass";
231
232
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -242,6 +242,7 @@ __exportStar(require("./types/bid"), exports);
242
242
  __exportStar(require("./types/bid-status"), exports);
243
243
  __exportStar(require("./types/auth-role"), exports);
244
244
  __exportStar(require("./types/address-verification-status"), exports);
245
+ __exportStar(require("./types/bank-account-verification-status"), exports);
245
246
  __exportStar(require("./classes/Asset"), exports);
246
247
  __exportStar(require("./classes/KYCFieldClass"), exports);
247
248
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum BankAccountVerificationStatus {
2
+ initiated = "initiated",
3
+ sent = "sent",
4
+ passed = "passed"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BankAccountVerificationStatus = void 0;
4
+ var BankAccountVerificationStatus;
5
+ (function (BankAccountVerificationStatus) {
6
+ BankAccountVerificationStatus["initiated"] = "initiated";
7
+ BankAccountVerificationStatus["sent"] = "sent";
8
+ BankAccountVerificationStatus["passed"] = "passed";
9
+ })(BankAccountVerificationStatus = exports.BankAccountVerificationStatus || (exports.BankAccountVerificationStatus = {}));
@@ -1,3 +1,4 @@
1
+ import { BankAccountVerificationStatus } from "./bank-account-verification-status";
1
2
  import { Country } from "./country";
2
3
  import { Fiat } from "./fiat";
3
4
  export interface BankAccount {
@@ -14,4 +15,8 @@ export interface BankAccount {
14
15
  CCI?: string;
15
16
  CLABE?: string;
16
17
  notes?: string;
18
+ verification?: {
19
+ status?: BankAccountVerificationStatus;
20
+ amount?: number;
21
+ };
17
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1420",
3
+ "version": "1.0.1422",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",