@riocrypto/common-server 1.0.2247 → 1.0.2249

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.
@@ -538,7 +538,7 @@ class ClusterClient {
538
538
  getSTPMXNBalance() {
539
539
  return __awaiter(this, void 0, void 0, function* () {
540
540
  const response = yield this.axios.get(`${this.baseUrl}/api/bank/accounts/STP/MXN/balance`, { headers: { "x-cluster-api-key": this.clusterApiKey } });
541
- return response.data;
541
+ return response.data.balance;
542
542
  });
543
543
  }
544
544
  createSTPMXNWithdrawal(amount, CLABE, concepto, beneficiaryName) {
@@ -56,6 +56,9 @@ const buildInternalBalances = (mongoose) => {
56
56
  [common_1.TreasuryProvider.FireblocksGasStation]: {
57
57
  type: Object,
58
58
  },
59
+ [common_1.TreasuryProvider.STP]: {
60
+ type: Object,
61
+ },
59
62
  }, {
60
63
  toJSON: {
61
64
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2247",
3
+ "version": "1.0.2249",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",