@cloudcommerce/app-pix 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-pix@0.23.1 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/pix
2
+ > @cloudcommerce/app-pix@0.23.3 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/pix
3
3
  > bash ../../../scripts/build-lib.sh
4
4
 
@@ -52,7 +52,7 @@ export default async (appData) => {
52
52
  // body was already pre-validated on @/bin/web.js
53
53
  // treat module request body
54
54
  const { application } = appData;
55
- const { params } = appData;
55
+ const params = appData.params;
56
56
  // app configured options
57
57
  const configApp = { ...application.data, ...application.hidden_data };
58
58
  const {
@@ -10,7 +10,7 @@ const responseError = (status, error, message) => {
10
10
 
11
11
  export default (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-pix",
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 Pix API (Bacen)",
6
6
  "main": "lib/pix.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-lib.sh"