@riocrypto/common-server 1.0.1084 → 1.0.1085
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.
|
@@ -7,7 +7,7 @@ declare class BitsoClient {
|
|
|
7
7
|
private baseUrl;
|
|
8
8
|
constructor(apiKey: string, apiSecret: string, env: "production" | "sandbox");
|
|
9
9
|
createClabe(): Promise<string>;
|
|
10
|
-
createReceivingAccount(user: User, bankAccount: BankAccount
|
|
10
|
+
createReceivingAccount(user: User, bankAccount: BankAccount): Promise<string>;
|
|
11
11
|
signRequest(requestConfig: AxiosRequestConfig): AxiosRequestConfig;
|
|
12
12
|
}
|
|
13
13
|
export declare const buildBistoClient: () => Promise<BitsoClient>;
|
|
@@ -41,7 +41,7 @@ class BitsoClient {
|
|
|
41
41
|
return data.payload.clabe;
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
createReceivingAccount(user, bankAccount
|
|
44
|
+
createReceivingAccount(user, bankAccount) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
46
|
const requestConfig = {
|
|
47
47
|
method: "POST",
|
|
@@ -62,7 +62,7 @@ class BitsoClient {
|
|
|
62
62
|
},
|
|
63
63
|
details: {
|
|
64
64
|
beneficiary: bankAccount.accountHolderName,
|
|
65
|
-
institution_code: bitsoBankCode,
|
|
65
|
+
institution_code: bankAccount.bitsoBankCode,
|
|
66
66
|
clabe: bankAccount.accountNumber,
|
|
67
67
|
},
|
|
68
68
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1085",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
26
26
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
27
27
|
"@google-cloud/storage": "^6.9.5",
|
|
28
|
-
"@riocrypto/common": "^1.0.
|
|
28
|
+
"@riocrypto/common": "^1.0.924",
|
|
29
29
|
"@types/express": "^4.17.13",
|
|
30
30
|
"axios": "^0.27.2",
|
|
31
31
|
"ccxt": "^3.0.30",
|