@riocrypto/common 1.0.1456 → 1.0.1458
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.
- package/build/clients/rio-admin-client.d.ts +4 -0
- package/build/clients/rio-admin-client.js +20 -0
- package/build/clients/rio-client.d.ts +4 -0
- package/build/clients/rio-client.js +20 -0
- package/build/types/bank-account.d.ts +2 -0
- package/build/types/crypto-address.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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`);
|
|
@@ -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,5 @@ export interface BankAccount {
|
|
|
14
15
|
CCI?: string;
|
|
15
16
|
CLABE?: string;
|
|
16
17
|
notes?: string;
|
|
18
|
+
advancedVerificationStatus?: BankAccountVerificationStatus;
|
|
17
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AddressVerificationStatus } from "./address-verification-status";
|
|
1
2
|
import { Crypto } from "./crypto";
|
|
2
3
|
export interface CryptoAddress {
|
|
3
4
|
id: string;
|
|
@@ -8,4 +9,5 @@ export interface CryptoAddress {
|
|
|
8
9
|
userApproved: boolean;
|
|
9
10
|
lastChecked: Date;
|
|
10
11
|
label?: string;
|
|
12
|
+
advancedVerificationStatus?: AddressVerificationStatus;
|
|
11
13
|
}
|