@cloudcommerce/app-paghiper 0.23.3 → 0.24.0

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @cloudcommerce/app-paghiper@0.23.2 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/paghiper
2
+ > @cloudcommerce/app-paghiper@0.23.3 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/paghiper
3
3
  > bash ../../../scripts/build-lib.sh
4
4
 
@@ -42,7 +42,7 @@ export default async (appData) => {
42
42
  const webhookUrl = `${baseUri}/paghiper-webhook`;
43
43
  // treat module request body
44
44
  const { application } = appData;
45
- const { params } = appData;
45
+ const params = appData.params;
46
46
  // app configured options
47
47
  const configApp = {
48
48
  ...application.data,
@@ -10,7 +10,7 @@ const responseError = (status, error, message) => {
10
10
 
11
11
  export default async (data) => {
12
12
  const { application } = data;
13
- const { params } = data;
13
+ const params = data.params;
14
14
  // https://apx-mods.e-com.plus/api/v1/list_payments/schema.json?store_id=100
15
15
  const amount = params.amount || { total: undefined, discount: undefined };
16
16
  // const initialTotalAmount = amount.total;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-paghiper",
3
3
  "type": "module",
4
- "version": "0.23.3",
4
+ "version": "0.24.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate PagHiper",
6
6
  "main": "lib/paghiper.js",
7
7
  "exports": {
@@ -23,12 +23,12 @@
23
23
  "axios": "^1.4.0",
24
24
  "firebase-admin": "^11.10.1",
25
25
  "firebase-functions": "^4.4.1",
26
- "@cloudcommerce/api": "0.23.3",
27
- "@cloudcommerce/firebase": "0.23.3"
26
+ "@cloudcommerce/api": "0.24.0",
27
+ "@cloudcommerce/firebase": "0.24.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@firebase/app-types": "^0.9.0",
31
- "@cloudcommerce/types": "0.23.3"
31
+ "@cloudcommerce/types": "0.24.0"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "bash ../../../scripts/build-lib.sh"