@infrab4a/connect 5.5.4 → 5.5.5
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 -0
- package/index.esm.js +2 -0
- package/package.json +1 -1
- package/src/domain/shopping/models/order-blocked.d.ts +5 -1
- package/src/domain/shopping/repositories/order-blocked.repository.d.ts +5 -1
- package/src/infra/pagarme/adapters/helpers/pagarme-blocked-order.helper.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -9708,6 +9708,7 @@ class MercadoPagoCardAxiosAdapter {
|
|
|
9708
9708
|
limiteRange: 'day',
|
|
9709
9709
|
card,
|
|
9710
9710
|
gatewayInfo: {
|
|
9711
|
+
gateway: exports.PaymentProviders.MERCADOPAGO,
|
|
9711
9712
|
status: data.status,
|
|
9712
9713
|
statusDetail: data.status_detail,
|
|
9713
9714
|
},
|
|
@@ -10723,6 +10724,7 @@ class PagarmeV5CardAxiosAdapter {
|
|
|
10723
10724
|
card,
|
|
10724
10725
|
orderBlockedRepository: this.orderBlockedRepository,
|
|
10725
10726
|
gatewayInfo: {
|
|
10727
|
+
gateway: exports.PaymentProviders.PAGARME,
|
|
10726
10728
|
status: charge.status,
|
|
10727
10729
|
statusDetail: charge.last_transaction?.status,
|
|
10728
10730
|
},
|
package/index.esm.js
CHANGED
|
@@ -9684,6 +9684,7 @@ class MercadoPagoCardAxiosAdapter {
|
|
|
9684
9684
|
limiteRange: 'day',
|
|
9685
9685
|
card,
|
|
9686
9686
|
gatewayInfo: {
|
|
9687
|
+
gateway: PaymentProviders.MERCADOPAGO,
|
|
9687
9688
|
status: data.status,
|
|
9688
9689
|
statusDetail: data.status_detail,
|
|
9689
9690
|
},
|
|
@@ -10699,6 +10700,7 @@ class PagarmeV5CardAxiosAdapter {
|
|
|
10699
10700
|
card,
|
|
10700
10701
|
orderBlockedRepository: this.orderBlockedRepository,
|
|
10701
10702
|
gatewayInfo: {
|
|
10703
|
+
gateway: PaymentProviders.PAGARME,
|
|
10702
10704
|
status: charge.status,
|
|
10703
10705
|
statusDetail: charge.last_transaction?.status,
|
|
10704
10706
|
},
|
package/package.json
CHANGED
|
@@ -19,7 +19,11 @@ export declare class OrderBlocked extends BaseModel<OrderBlocked> {
|
|
|
19
19
|
type: OrderBlockedType;
|
|
20
20
|
card?: any;
|
|
21
21
|
checkout: Checkout;
|
|
22
|
-
gatewayInfo?:
|
|
22
|
+
gatewayInfo?: {
|
|
23
|
+
gateway?: string;
|
|
24
|
+
status?: string;
|
|
25
|
+
statusDetail?: string;
|
|
26
|
+
};
|
|
23
27
|
date: Date;
|
|
24
28
|
static get identifiersFields(): GenericIdentifier[];
|
|
25
29
|
}
|
|
@@ -7,7 +7,11 @@ type CreateBlockedOrderParams = {
|
|
|
7
7
|
type: string;
|
|
8
8
|
limiteRange: string;
|
|
9
9
|
card?: PaymentCardInfo;
|
|
10
|
-
gatewayInfo?:
|
|
10
|
+
gatewayInfo?: {
|
|
11
|
+
gateway?: string;
|
|
12
|
+
status?: string;
|
|
13
|
+
statusDetail?: string;
|
|
14
|
+
};
|
|
11
15
|
};
|
|
12
16
|
export interface OrderBlockedRepository extends CrudRepository<OrderBlocked> {
|
|
13
17
|
createBlockedOrderOrPayment(params: CreateBlockedOrderParams): Promise<OrderBlocked>;
|