@infrab4a/connect 5.2.0-beta.4 → 5.2.1

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
@@ -1626,7 +1626,7 @@ exports.OrderStatus = void 0;
1626
1626
  OrderStatus["ENVIADO"] = "Enviado";
1627
1627
  OrderStatus["ENTREGUE"] = "Entregue";
1628
1628
  OrderStatus["CANCELADO"] = "Cancelado";
1629
- OrderStatus["CREDIT_CARD"] = "credit_card";
1629
+ OrderStatus["PENDENTE_REENVIO"] = "Pendente reenvio";
1630
1630
  })(exports.OrderStatus || (exports.OrderStatus = {}));
1631
1631
 
1632
1632
  class Order extends Checkout {
@@ -8780,7 +8780,7 @@ class PagarMeV5ResponseHelper {
8780
8780
  static getBoletoReponse(transaction) {
8781
8781
  return {
8782
8782
  boleto_url: transaction.url?.toString(),
8783
- boleto_barcode: transaction.barcode?.toString(),
8783
+ boleto_barcode: transaction.line?.toString(),
8784
8784
  boleto_qr_code: transaction.qr_code?.toString(),
8785
8785
  boleto_expiration_date: transaction.due_at?.toString(),
8786
8786
  boleto_instructions: transaction.instructions?.toString(),
package/index.esm.js CHANGED
@@ -1601,7 +1601,7 @@ var OrderStatus;
1601
1601
  OrderStatus["ENVIADO"] = "Enviado";
1602
1602
  OrderStatus["ENTREGUE"] = "Entregue";
1603
1603
  OrderStatus["CANCELADO"] = "Cancelado";
1604
- OrderStatus["CREDIT_CARD"] = "credit_card";
1604
+ OrderStatus["PENDENTE_REENVIO"] = "Pendente reenvio";
1605
1605
  })(OrderStatus || (OrderStatus = {}));
1606
1606
 
1607
1607
  class Order extends Checkout {
@@ -8755,7 +8755,7 @@ class PagarMeV5ResponseHelper {
8755
8755
  static getBoletoReponse(transaction) {
8756
8756
  return {
8757
8757
  boleto_url: transaction.url?.toString(),
8758
- boleto_barcode: transaction.barcode?.toString(),
8758
+ boleto_barcode: transaction.line?.toString(),
8759
8759
  boleto_qr_code: transaction.qr_code?.toString(),
8760
8760
  boleto_expiration_date: transaction.due_at?.toString(),
8761
8761
  boleto_instructions: transaction.instructions?.toString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.2.0-beta.4",
3
+ "version": "5.2.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -6,5 +6,5 @@ export declare enum OrderStatus {
6
6
  ENVIADO = "Enviado",
7
7
  ENTREGUE = "Entregue",
8
8
  CANCELADO = "Cancelado",
9
- CREDIT_CARD = "credit_card"
9
+ PENDENTE_REENVIO = "Pendente reenvio"
10
10
  }
@@ -11,4 +11,7 @@ export declare class Order extends Checkout {
11
11
  deliveredAt?: string;
12
12
  trackingEvents?: OrderTrackingEvent[];
13
13
  payment: PaymentTransaction;
14
+ reshipmentOrderId?: string;
15
+ isChange?: boolean;
16
+ isReshipment?: boolean;
14
17
  }