@riocrypto/common 1.0.931 → 1.0.932
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.
|
@@ -100,6 +100,7 @@ export declare class RioAdminClient {
|
|
|
100
100
|
getOrder(id: string): Promise<Order>;
|
|
101
101
|
createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
|
|
102
102
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
103
|
+
getCryptoAddresses(userId: string, address?: string, crypto?: Crypto): Promise<CryptoAddress[]>;
|
|
103
104
|
createCryptoAddress(address: string, crypto: Crypto, userId: string, label?: string): Promise<CryptoAddress>;
|
|
104
105
|
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
105
106
|
updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, bankName?: string, accountHolderName?: string, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
@@ -336,6 +336,18 @@ class RioAdminClient {
|
|
|
336
336
|
return response.data;
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
+
getCryptoAddresses(userId, address, crypto) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
const response = yield this.axios.get(`/api/address`, {
|
|
342
|
+
params: {
|
|
343
|
+
userId,
|
|
344
|
+
address,
|
|
345
|
+
crypto,
|
|
346
|
+
},
|
|
347
|
+
});
|
|
348
|
+
return response.data;
|
|
349
|
+
});
|
|
350
|
+
}
|
|
339
351
|
createCryptoAddress(address, crypto, userId, label) {
|
|
340
352
|
return __awaiter(this, void 0, void 0, function* () {
|
|
341
353
|
const response = yield this.axios.post(`/api/address`, {
|
|
@@ -74,6 +74,7 @@ export declare class RioClient {
|
|
|
74
74
|
account_owner_name: string;
|
|
75
75
|
last_4: string;
|
|
76
76
|
}[]>;
|
|
77
|
+
getCryptoAddresses(userId?: string, address?: string, crypto?: Crypto): Promise<CryptoAddress[]>;
|
|
77
78
|
createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
|
|
78
79
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
79
80
|
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
@@ -228,6 +228,18 @@ class RioClient {
|
|
|
228
228
|
return data;
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
+
getCryptoAddresses(userId, address, crypto) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
const response = yield this.axios.get(`/api/address`, {
|
|
234
|
+
params: {
|
|
235
|
+
userId,
|
|
236
|
+
address,
|
|
237
|
+
crypto,
|
|
238
|
+
},
|
|
239
|
+
});
|
|
240
|
+
return response.data;
|
|
241
|
+
});
|
|
242
|
+
}
|
|
231
243
|
createCryptoAddress(address, crypto, userId, label) {
|
|
232
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
233
245
|
const response = yield this.axios.post(`/api/address`, {
|