@riocrypto/common 1.0.1456 → 1.0.1457

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.
@@ -47,6 +47,8 @@ import { BidInput } from "../types/bid-input";
47
47
  import { RioBankAccount } from "../types/rio-bank-account";
48
48
  import { SwapProvider } from "../types/swap-provider";
49
49
  import { SwapOrigin } from "../types/swap-origin";
50
+ import { AddressVerification } from "../types/address-verification";
51
+ import { BankAccountVerification } from "../types/bank-account-verification";
50
52
  export declare class RioAdminClient {
51
53
  private axios;
52
54
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -169,6 +171,8 @@ export declare class RioAdminClient {
169
171
  createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, origin: SwapOrigin, provider: SwapProvider): Promise<void>;
170
172
  expediteInternalSwap(id: string): Promise<void>;
171
173
  getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
174
+ getAddressVerification(cryptoAddressId: string): Promise<AddressVerification>;
175
+ getBankAccountVerification(bankAccountId: string): Promise<BankAccountVerification>;
172
176
  getBankPayout(orderId: string): Promise<BankPayout>;
173
177
  startAddressVerification(addressId: string): Promise<void>;
174
178
  completeAddressVerification(addressId: string, amount: Number): Promise<void>;
@@ -595,6 +595,26 @@ class RioAdminClient {
595
595
  return data;
596
596
  });
597
597
  }
598
+ getAddressVerification(cryptoAddressId) {
599
+ return __awaiter(this, void 0, void 0, function* () {
600
+ const { data } = yield this.axios.get(`/api/addresses/verification?`, {
601
+ params: {
602
+ cryptoAddressId,
603
+ },
604
+ });
605
+ return data;
606
+ });
607
+ }
608
+ getBankAccountVerification(bankAccountId) {
609
+ return __awaiter(this, void 0, void 0, function* () {
610
+ const { data } = yield this.axios.get(`/api/bank/accounts/verification?`, {
611
+ params: {
612
+ bankAccountId,
613
+ },
614
+ });
615
+ return data;
616
+ });
617
+ }
598
618
  getBankPayout(orderId) {
599
619
  return __awaiter(this, void 0, void 0, function* () {
600
620
  const response = yield this.axios.get(`/api/payouts/bank?orderId=${orderId}`);
@@ -39,9 +39,13 @@ import { UBO } from "../types/UBO";
39
39
  import { UBOUpdate } from "../types/UBO-update";
40
40
  import { IdentityVerificationType } from "../types/IdentityVerificationType";
41
41
  import { BidInput } from "../types/bid-input";
42
+ import { AddressVerification } from "../types/address-verification";
43
+ import { BankAccountVerification } from "../types/bank-account-verification";
42
44
  export declare class RioClient {
43
45
  private axios;
44
46
  constructor(axios: AxiosStatic | AxiosInstance);
47
+ getAddressVerification(cryptoAddressId: string): Promise<AddressVerification>;
48
+ getBankAccountVerification(bankAccountId: string): Promise<BankAccountVerification>;
45
49
  getLiquidityAvailable(): Promise<{
46
50
  buy: number;
47
51
  sell: number;
@@ -29,6 +29,26 @@ class RioClient {
29
29
  return config;
30
30
  });
31
31
  }
32
+ getAddressVerification(cryptoAddressId) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const { data } = yield this.axios.get(`/api/addresses/verification?`, {
35
+ params: {
36
+ cryptoAddressId,
37
+ },
38
+ });
39
+ return data;
40
+ });
41
+ }
42
+ getBankAccountVerification(bankAccountId) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ const { data } = yield this.axios.get(`/api/bank/accounts/verification?`, {
45
+ params: {
46
+ bankAccountId,
47
+ },
48
+ });
49
+ return data;
50
+ });
51
+ }
32
52
  getLiquidityAvailable() {
33
53
  return __awaiter(this, void 0, void 0, function* () {
34
54
  const { data } = yield this.axios.get(`/api/wallet/rio-balances/usd`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1456",
3
+ "version": "1.0.1457",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",