@riocrypto/common-server 1.0.889 → 1.0.891
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.
|
@@ -106,6 +106,12 @@ declare class BridgeClient {
|
|
|
106
106
|
link_token_expires_at: string;
|
|
107
107
|
callback_url: string;
|
|
108
108
|
}>;
|
|
109
|
+
getExternalAccounts(customerId: string): Promise<{
|
|
110
|
+
id: string;
|
|
111
|
+
bank_name: string;
|
|
112
|
+
account_owner_name: string;
|
|
113
|
+
last_4: string;
|
|
114
|
+
}[]>;
|
|
109
115
|
exchangePlaidPublicToken(linkToken: string, publicToken: string): Promise<void>;
|
|
110
116
|
createExternalAccount(bridgeCustomerId: string, bankName: string, accountName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, address: {
|
|
111
117
|
streetLine1: string;
|
|
@@ -81,7 +81,7 @@ class BridgeClient {
|
|
|
81
81
|
}
|
|
82
82
|
createPlaidLinkToken(bridgeCustomerId) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
const { data } = yield axios_1.default.post(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/
|
|
84
|
+
const { data } = yield axios_1.default.post(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/plaid_link_requests`, undefined, {
|
|
85
85
|
headers: {
|
|
86
86
|
"Api-Key": this.apiKey,
|
|
87
87
|
"Idempotency-Key": (0, uuid_1.v4)(),
|
|
@@ -90,6 +90,16 @@ class BridgeClient {
|
|
|
90
90
|
return data;
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
+
getExternalAccounts(customerId) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const { data } = yield axios_1.default.get(`${this.baseUrl}/v0/customers/${customerId}/external_accounts`, {
|
|
96
|
+
headers: {
|
|
97
|
+
"Api-Key": this.apiKey,
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
return data;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
93
103
|
exchangePlaidPublicToken(linkToken, publicToken) {
|
|
94
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
105
|
const { data } = yield axios_1.default.post(`${this.baseUrl}/v0/plaid_exchange_public_token/${linkToken}`, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.891",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
25
25
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
26
26
|
"@google-cloud/storage": "^6.9.5",
|
|
27
|
-
"@riocrypto/common": "^1.0.
|
|
27
|
+
"@riocrypto/common": "^1.0.764",
|
|
28
28
|
"@types/express": "^4.17.13",
|
|
29
29
|
"axios": "^0.27.2",
|
|
30
30
|
"ccxt": "^3.0.30",
|