@crmcom/self-service-sdk 3.0.0-build.6 → 3.0.0-build.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/wallet.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crmcom/self-service-sdk",
3
- "version": "3.0.0-build.6",
3
+ "version": "3.0.0-build.7",
4
4
  "description": "Official CRM.COM Self-Service JavaScript SDK for consumer-facing API integration",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/wallet.js CHANGED
@@ -24,18 +24,23 @@ export const wallet = {
24
24
 
25
25
  async function getWallet(walletId) {
26
26
  try {
27
+ console.log("walletId", walletId)
28
+
27
29
  if (!walletId) {
28
30
  walletId = await getWalletId();
29
31
  }
32
+ console.log("walletId1", walletId)
30
33
 
31
34
  let response = await httpUtil.get({
32
35
  resourcePath: '/v2/wallets/' + walletId,
33
36
  withAccessToken: true,
34
37
  logOutIfSessionInvalid: false,
35
38
  });
39
+ console.log("result", response)
36
40
  //check return code here instead of put as there would be different intepretation for different API
37
41
  return createCommonResult(response);
38
42
  } catch (e) {
43
+ console.log("error", e)
39
44
  logger.error('Exception getWallet:', e);
40
45
  return createResult(ErrorCodes.UNKNOWN, e);
41
46
  }