@cloudcommerce/app-mercadopago 0.23.2 → 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-mercadopago@0.23.1 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/mercadopago
2
+ > @cloudcommerce/app-mercadopago@0.23.3 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/mercadopago
3
3
  > bash scripts/build.sh
4
4
 
@@ -22,7 +22,7 @@ export default async (appData) => {
22
22
  // body was already pre-validated on @/bin/web.js
23
23
  // treat module request body
24
24
  const { application, storeId } = appData;
25
- const { params } = appData;
25
+ const params = appData.params;
26
26
  // app configured options
27
27
  const configApp = { ...application.data, ...application.hidden_data };
28
28
  const notificationUrl = `${baseUri}/mercadopago-webhook`;
@@ -7,7 +7,7 @@ const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
7
7
 
8
8
  export default (data) => {
9
9
  const { application } = data;
10
- const { params } = data;
10
+ const params = data.params;
11
11
  // https://apx-mods.e-com.plus/api/v1/list_payments/schema.json?store_id=100
12
12
  const amount = params.amount || { total: undefined };
13
13
  // const initialTotalAmount = amount.total;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-mercadopago",
3
3
  "type": "module",
4
- "version": "0.23.2",
4
+ "version": "0.24.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Mercado Pago",
6
6
  "main": "lib/mercadopago.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.2",
27
- "@cloudcommerce/firebase": "0.23.2"
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.2"
31
+ "@cloudcommerce/types": "0.24.0"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "bash scripts/build.sh"