@infrab4a/connect 5.6.5-beta.1 → 5.6.5-beta.3
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/index.cjs.js
CHANGED
|
@@ -9955,7 +9955,13 @@ class MercadoPagoBaseAxiosAdapter {
|
|
|
9955
9955
|
console.warn('[RESPONSE MERCADO PAGO REFUND]', JSON.stringify(data));
|
|
9956
9956
|
return {
|
|
9957
9957
|
status: data.status,
|
|
9958
|
-
success:
|
|
9958
|
+
success: [
|
|
9959
|
+
exports.MercadoPagoStatusEnum.approved,
|
|
9960
|
+
exports.MercadoPagoStatusEnum.refunded,
|
|
9961
|
+
exports.MercadoPagoStatusEnum.cancelled,
|
|
9962
|
+
].includes(data.status)
|
|
9963
|
+
? true
|
|
9964
|
+
: false,
|
|
9959
9965
|
};
|
|
9960
9966
|
}
|
|
9961
9967
|
}
|
|
@@ -10955,7 +10961,7 @@ class PagarmeV5BaseAxiosAdapter {
|
|
|
10955
10961
|
});
|
|
10956
10962
|
return {
|
|
10957
10963
|
status: data.status,
|
|
10958
|
-
success: data.
|
|
10964
|
+
success: [exports.PagarMeV5OrderStatus.Pago, exports.PagarMeV5OrderStatus.Cancelado].includes(data.status) ? true : false,
|
|
10959
10965
|
};
|
|
10960
10966
|
}
|
|
10961
10967
|
catch (error) {
|
package/index.esm.js
CHANGED
|
@@ -9931,7 +9931,13 @@ class MercadoPagoBaseAxiosAdapter {
|
|
|
9931
9931
|
console.warn('[RESPONSE MERCADO PAGO REFUND]', JSON.stringify(data));
|
|
9932
9932
|
return {
|
|
9933
9933
|
status: data.status,
|
|
9934
|
-
success:
|
|
9934
|
+
success: [
|
|
9935
|
+
MercadoPagoStatusEnum.approved,
|
|
9936
|
+
MercadoPagoStatusEnum.refunded,
|
|
9937
|
+
MercadoPagoStatusEnum.cancelled,
|
|
9938
|
+
].includes(data.status)
|
|
9939
|
+
? true
|
|
9940
|
+
: false,
|
|
9935
9941
|
};
|
|
9936
9942
|
}
|
|
9937
9943
|
}
|
|
@@ -10931,7 +10937,7 @@ class PagarmeV5BaseAxiosAdapter {
|
|
|
10931
10937
|
});
|
|
10932
10938
|
return {
|
|
10933
10939
|
status: data.status,
|
|
10934
|
-
success: data.
|
|
10940
|
+
success: [PagarMeV5OrderStatus.Pago, PagarMeV5OrderStatus.Cancelado].includes(data.status) ? true : false,
|
|
10935
10941
|
};
|
|
10936
10942
|
}
|
|
10937
10943
|
catch (error) {
|
package/package.json
CHANGED