@como/como-client 0.7.88 → 0.7.89

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.
package/lib/como.js CHANGED
@@ -1899,6 +1899,13 @@ var Como = function () {
1899
1899
 
1900
1900
  return api.getResourceUrl(env.services_root_cdn, resourceId, namespace, version, locationId);
1901
1901
  }
1902
+ }, {
1903
+ key: 'getPurchaseReportUrl',
1904
+ value: function getPurchaseReportUrl() {
1905
+ var env = this.comoData.env_params;
1906
+
1907
+ return env.purchase_connect_base_url + '/Purchase/Report';
1908
+ }
1902
1909
  }, {
1903
1910
  key: 'getCdnUrl',
1904
1911
  value: function getCdnUrl() {
package/lib/config/env.js CHANGED
@@ -7,7 +7,8 @@ module.exports = {
7
7
  services_root: 'loyalty-services',
8
8
  services_root_cdn: 'https://services.qa.bcomo.com',
9
9
  app_modules_root: 'https://app.qa.comosense.com/app-modules',
10
- app_modules_legacy_root: 'https://appmodules.qa.comosense.com'
10
+ app_modules_legacy_root: 'https://appmodules.qa.comosense.com',
11
+ purchase_connect_base_url: 'https://qr.qa.comosense.com'
11
12
  },
12
13
  qa: {
13
14
  gateway: 'https://app.qa.comosense.com',
@@ -15,7 +16,8 @@ module.exports = {
15
16
  services_root: 'loyalty-services',
16
17
  services_root_cdn: 'https://services.qa.bcomo.com',
17
18
  app_modules_root: 'https://app.qa.comosense.com/app-modules',
18
- app_modules_legacy_root: 'https://appmodules.qa.comosense.com'
19
+ app_modules_legacy_root: 'https://appmodules.qa.comosense.com',
20
+ purchase_connect_base_url: 'https://qr.qa.comosense.com'
19
21
  },
20
22
  prod: {
21
23
  gateway: 'https://app.comosense.com',
@@ -23,7 +25,8 @@ module.exports = {
23
25
  services_root: 'loyalty-services',
24
26
  services_root_cdn: 'https://services.prod.bcomo.com',
25
27
  app_modules_root: 'https://app.comosense.com/app-modules',
26
- app_modules_legacy_root: 'https://appmodules.comosense.com'
28
+ app_modules_legacy_root: 'https://appmodules.comosense.com',
29
+ purchase_connect_base_url: 'https://qr.comosense.com'
27
30
  },
28
31
  test: {
29
32
  gateway: 'https://app.qa.comosense.com',
@@ -31,6 +34,8 @@ module.exports = {
31
34
  services_root: 'loyalty-services',
32
35
  services_root_cdn: 'https://services.qa.bcomo.com',
33
36
  app_modules_root: 'https://app.qa.comosense.com/app-modules',
34
- app_modules_legacy_root: 'https://appmodules.qa.comosense.com'
37
+ app_modules_legacy_root: 'https://appmodules.qa.comosense.com',
38
+ app_payment_purchase: 'https://qr.qa.comosense.com/Purchase/Report',
39
+ purchase_connect_base_url: 'https://qr.qa.comosense.com'
35
40
  }
36
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@como/como-client",
3
- "version": "0.7.88",
3
+ "version": "0.7.89",
4
4
  "description": "Client module for Como's loaylty API",
5
5
  "main": "src/como.js",
6
6
  "scripts": {
package/src/como.js CHANGED
@@ -810,6 +810,11 @@ class Como {
810
810
  return api.getResourceUrl(env.services_root_cdn, resourceId, namespace, version, locationId);
811
811
  }
812
812
 
813
+ getPurchaseReportUrl() {
814
+ const { env_params: env } = this.comoData;
815
+ return `${env.purchase_connect_base_url}/Purchase/Report`;
816
+ }
817
+
813
818
  getCdnUrl() {
814
819
  return this.comoData.env_params.services_root_cdn;
815
820
  }