@infrab4a/connect 5.1.0-beta.7 → 5.1.0-beta.8
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
- package/src/domain/shopping/models/payment.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -9087,7 +9087,7 @@ class PagarmeV5BankSlipAxiosAdapter {
|
|
|
9087
9087
|
},
|
|
9088
9088
|
});
|
|
9089
9089
|
const payment = await this.paymentRepository.get({
|
|
9090
|
-
id:
|
|
9090
|
+
id: data.id,
|
|
9091
9091
|
});
|
|
9092
9092
|
return payment.transaction;
|
|
9093
9093
|
}
|
|
@@ -9121,7 +9121,7 @@ class PagarmeV5CardAxiosAdapter {
|
|
|
9121
9121
|
});
|
|
9122
9122
|
console.warn('[RESPONSE PAGARME CARD DATA]', JSON.stringify(data));
|
|
9123
9123
|
if (data.status == exports.PagarMeV5OrderStatus.Falha ||
|
|
9124
|
-
data.charges.at(0).
|
|
9124
|
+
data.charges.at(0).status !== exports.PagarMeV5OrderStatus.Pago ||
|
|
9125
9125
|
data.charges.at(0).last_transaction.status !== exports.PagarMeV5PaymentStatus.Capturada) {
|
|
9126
9126
|
await PagarmeBlockedOrderHelper.createBlockedOrderForUnauthorizedCard({
|
|
9127
9127
|
checkout,
|
package/index.esm.js
CHANGED
|
@@ -9062,7 +9062,7 @@ class PagarmeV5BankSlipAxiosAdapter {
|
|
|
9062
9062
|
},
|
|
9063
9063
|
});
|
|
9064
9064
|
const payment = await this.paymentRepository.get({
|
|
9065
|
-
id:
|
|
9065
|
+
id: data.id,
|
|
9066
9066
|
});
|
|
9067
9067
|
return payment.transaction;
|
|
9068
9068
|
}
|
|
@@ -9096,7 +9096,7 @@ class PagarmeV5CardAxiosAdapter {
|
|
|
9096
9096
|
});
|
|
9097
9097
|
console.warn('[RESPONSE PAGARME CARD DATA]', JSON.stringify(data));
|
|
9098
9098
|
if (data.status == PagarMeV5OrderStatus.Falha ||
|
|
9099
|
-
data.charges.at(0).
|
|
9099
|
+
data.charges.at(0).status !== PagarMeV5OrderStatus.Pago ||
|
|
9100
9100
|
data.charges.at(0).last_transaction.status !== PagarMeV5PaymentStatus.Capturada) {
|
|
9101
9101
|
await PagarmeBlockedOrderHelper.createBlockedOrderForUnauthorizedCard({
|
|
9102
9102
|
checkout,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
|
|
|
2
2
|
import { PaymentProvider } from '../types';
|
|
3
3
|
import { PaymentTransaction } from './payment-transaction';
|
|
4
4
|
export declare class Payment extends BaseModel<Payment> {
|
|
5
|
-
id:
|
|
5
|
+
id: string;
|
|
6
6
|
checkoutId: string;
|
|
7
7
|
orderId?: string;
|
|
8
8
|
pagarMeOrderId?: string;
|