@cloudcommerce/app-pagarme-v5 2.42.0 → 2.42.2
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.
|
@@ -50,7 +50,7 @@ export default async (modBody) => {
|
|
|
50
50
|
let redirectToPayment = false;
|
|
51
51
|
try {
|
|
52
52
|
const pagarMeCustomer = {
|
|
53
|
-
name: buyer.fullname,
|
|
53
|
+
name: buyer.fullname?.substring(0, 64),
|
|
54
54
|
type: buyer.registry_type === 'j' ? 'company' : 'individual',
|
|
55
55
|
email: buyer.email,
|
|
56
56
|
code: buyer.customer_id,
|
|
@@ -21,7 +21,6 @@ const parseIntervalPlan = {
|
|
|
21
21
|
Mensal: {
|
|
22
22
|
interval: 'month',
|
|
23
23
|
interval_count: 1,
|
|
24
|
-
|
|
25
24
|
},
|
|
26
25
|
Bimestral: {
|
|
27
26
|
interval: 'month',
|
|
@@ -185,7 +184,7 @@ const createPayment = async ({
|
|
|
185
184
|
pagarmeOrder.shipping = {
|
|
186
185
|
amount: Math.floor((amount.freight) * 100),
|
|
187
186
|
description: 'Frete',
|
|
188
|
-
recipient_name: customer.name,
|
|
187
|
+
recipient_name: customer.name?.substring(0, 64),
|
|
189
188
|
recipient_phone: `${phone?.area_code || ''}${phone?.number}`,
|
|
190
189
|
address,
|
|
191
190
|
};
|
|
@@ -49,7 +49,7 @@ export default async (data) => {
|
|
|
49
49
|
const { data: { result } } = await api.get('search/v1', {
|
|
50
50
|
limit: items.length,
|
|
51
51
|
params: {
|
|
52
|
-
_id: items.map((item) => item.product_id),
|
|
52
|
+
'_id': items.map((item) => item.product_id),
|
|
53
53
|
'categories._id': categoryIds,
|
|
54
54
|
},
|
|
55
55
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-pagarme-v5",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.42.
|
|
4
|
+
"version": "2.42.2",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app to integrate Pagar.me API v5 with recurring payments",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"axios": "^1.9.0",
|
|
32
32
|
"firebase-admin": "^13.3.0",
|
|
33
33
|
"firebase-functions": "^6.3.2",
|
|
34
|
-
"@cloudcommerce/api": "2.42.
|
|
35
|
-
"@cloudcommerce/firebase": "2.42.
|
|
34
|
+
"@cloudcommerce/api": "2.42.2",
|
|
35
|
+
"@cloudcommerce/firebase": "2.42.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@cloudcommerce/test-base": "2.42.
|
|
39
|
-
"@cloudcommerce/types": "2.42.
|
|
38
|
+
"@cloudcommerce/test-base": "2.42.2",
|
|
39
|
+
"@cloudcommerce/types": "2.42.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "bash scripts/build.sh",
|