@infrab4a/connect 5.3.0-beta.25 → 5.3.0-beta.26

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
@@ -7774,7 +7774,7 @@ class ProductGroupHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasu
7774
7774
  { markupWithoutCompetitor: { columnName: 'markup_without_competitor' } },
7775
7775
  { discountCompetitor: { columnName: 'discount_competitor' } },
7776
7776
  { subscriberDiscountPercentage: { columnName: 'subscriber_discount_percentage' } },
7777
- { automaticPriceAdjustment: { columnName: 'automatic_price_adjustment' } },
7777
+ { dynamicPrecification: { columnName: 'dynamic_precification' } },
7778
7778
  { createdAt: { columnName: 'created_at' } },
7779
7779
  { updatedAt: { columnName: 'updated_at' } },
7780
7780
  ],
@@ -9797,6 +9797,7 @@ class MercadoPagoCardAxiosAdapter {
9797
9797
  limiteRange: 'day',
9798
9798
  card,
9799
9799
  gatewayInfo: {
9800
+ gateway: exports.PaymentProviders.MERCADOPAGO,
9800
9801
  status: data.status,
9801
9802
  statusDetail: data.status_detail,
9802
9803
  },
@@ -10812,6 +10813,7 @@ class PagarmeV5CardAxiosAdapter {
10812
10813
  card,
10813
10814
  orderBlockedRepository: this.orderBlockedRepository,
10814
10815
  gatewayInfo: {
10816
+ gateway: exports.PaymentProviders.PAGARME,
10815
10817
  status: charge.status,
10816
10818
  statusDetail: charge.last_transaction?.status,
10817
10819
  },
package/index.esm.js CHANGED
@@ -7750,7 +7750,7 @@ class ProductGroupHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasu
7750
7750
  { markupWithoutCompetitor: { columnName: 'markup_without_competitor' } },
7751
7751
  { discountCompetitor: { columnName: 'discount_competitor' } },
7752
7752
  { subscriberDiscountPercentage: { columnName: 'subscriber_discount_percentage' } },
7753
- { automaticPriceAdjustment: { columnName: 'automatic_price_adjustment' } },
7753
+ { dynamicPrecification: { columnName: 'dynamic_precification' } },
7754
7754
  { createdAt: { columnName: 'created_at' } },
7755
7755
  { updatedAt: { columnName: 'updated_at' } },
7756
7756
  ],
@@ -9773,6 +9773,7 @@ class MercadoPagoCardAxiosAdapter {
9773
9773
  limiteRange: 'day',
9774
9774
  card,
9775
9775
  gatewayInfo: {
9776
+ gateway: PaymentProviders.MERCADOPAGO,
9776
9777
  status: data.status,
9777
9778
  statusDetail: data.status_detail,
9778
9779
  },
@@ -10788,6 +10789,7 @@ class PagarmeV5CardAxiosAdapter {
10788
10789
  card,
10789
10790
  orderBlockedRepository: this.orderBlockedRepository,
10790
10791
  gatewayInfo: {
10792
+ gateway: PaymentProviders.PAGARME,
10791
10793
  status: charge.status,
10792
10794
  statusDetail: charge.last_transaction?.status,
10793
10795
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.3.0-beta.25",
3
+ "version": "5.3.0-beta.26",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -7,6 +7,6 @@ export declare class ProductGroup extends BaseModel<ProductGroup> {
7
7
  markupWithoutCompetitor?: number;
8
8
  discountCompetitor?: number;
9
9
  subscriberDiscountPercentage?: number;
10
- automaticPriceAdjustment: boolean;
10
+ dynamicPrecification: boolean;
11
11
  static get identifiersFields(): GenericIdentifier[];
12
12
  }
@@ -18,8 +18,8 @@ export declare class ProductPriceLog extends BaseModel<ProductPriceLog> {
18
18
  groupId?: string;
19
19
  competitorsAndPrices?: ProductCompetitorsPrice[];
20
20
  competitorsPrices?: number[];
21
- competitorsSellerMinPrice?: string;
22
21
  competitorsMinPrice?: number;
22
+ competitorsSellerMinPrice?: string;
23
23
  statusPrecificacao: string;
24
24
  static get identifiersFields(): GenericIdentifier[];
25
25
  }
@@ -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?: any;
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?: any;
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>;
@@ -16,6 +16,7 @@ export declare class User extends BaseModel<User> {
16
16
  officePosition?: OfficePosition;
17
17
  isSubscriber?: boolean;
18
18
  subscriptionPlan?: string;
19
+ subscriptionDate?: string;
19
20
  badgeId?: number;
20
21
  badgeMultiplier?: number;
21
22
  dateCreated?: Date;
@@ -6,6 +6,7 @@ interface BlockedOrderParams {
6
6
  card: PaymentCardInfo;
7
7
  orderBlockedRepository: OrderBlockedRepository;
8
8
  gatewayInfo?: {
9
+ gateway: string;
9
10
  status: string;
10
11
  statusDetail: string;
11
12
  };