@spritz-finance/service-client 0.2.21 → 0.2.22

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.
@@ -41,17 +41,17 @@ class LiabilitiesServiceClient {
41
41
  }
42
42
  async createCheckbookVirtualCard(userId) {
43
43
  return this.client
44
- .post(`/virtual-card/${userId}/create`)
44
+ .post(`/virtual-card/create/${userId}`)
45
45
  .then((res) => res.data);
46
46
  }
47
47
  async getVirtualCardBalance(cardExternalId, userId) {
48
48
  return this.client
49
- .get(`/virtual-card/${cardExternalId}/balance?userId=${userId}`)
49
+ .get(`/virtual-card/card/${cardExternalId}/balance?userId=${userId}`)
50
50
  .then((res) => res.data);
51
51
  }
52
52
  async getVirtualCardTransactions(cardExternalId, userId) {
53
53
  return this.client
54
- .get(`/virtual-card/${cardExternalId}/transactions?userId=${userId}`)
54
+ .get(`/virtual-card/card/${cardExternalId}/transactions?userId=${userId}`)
55
55
  .then((res) => res.data);
56
56
  }
57
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -51,5 +51,5 @@
51
51
  "coverageDirectory": "../coverage",
52
52
  "testEnvironment": "node"
53
53
  },
54
- "gitHead": "2c870b810e6be6d7cc6e752629123803c3489979"
54
+ "gitHead": "01b1ef63d051b9732ecc38988ec850c986b73d37"
55
55
  }