@riocrypto/common-server 1.0.1093 → 1.0.1095
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.
|
@@ -24,7 +24,7 @@ class BitsoClient {
|
|
|
24
24
|
this.env = env;
|
|
25
25
|
this.baseUrl =
|
|
26
26
|
env === "production"
|
|
27
|
-
? "https://
|
|
27
|
+
? "https://api.bitso.com"
|
|
28
28
|
: "https://stage.bitso.com";
|
|
29
29
|
}
|
|
30
30
|
createClabe() {
|
|
@@ -53,7 +53,7 @@ class BitsoClient {
|
|
|
53
53
|
alias: `CLABE for ${user.type === common_1.UserType.Business
|
|
54
54
|
? user.companyName
|
|
55
55
|
: user.firstName + " " + user.lastName} - ${user.id}`,
|
|
56
|
-
user_id: "53166",
|
|
56
|
+
user_id: this.env === "production" ? "8298933" : "53166",
|
|
57
57
|
currency: "mxn",
|
|
58
58
|
taxonomy: {
|
|
59
59
|
network: "spei",
|
|
@@ -132,7 +132,8 @@ const buildBistoClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
132
132
|
throw new common_1.SecretManagerError();
|
|
133
133
|
}
|
|
134
134
|
const env = process.env.RIO_ENV === common_1.RioEnv.Production ||
|
|
135
|
-
process.env.RIO_ENV === common_1.RioEnv.Staging
|
|
135
|
+
process.env.RIO_ENV === common_1.RioEnv.Staging ||
|
|
136
|
+
process.env.RIO_ENV === common_1.RioEnv.Development
|
|
136
137
|
? "production"
|
|
137
138
|
: "sandbox";
|
|
138
139
|
return new BitsoClient(BITSO_API_KEY, BITSO_API_SECRET, env);
|