arca-sdk 1.1.2 → 1.2.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ Todos los cambios notables de este proyecto se documentan en este archivo.
4
4
 
5
5
  ---
6
6
 
7
+ ## [1.2.0] — 2026-03-18
8
+
9
+ ### ✨ Developer Experience (DX) y Normativas 2025
10
+
11
+ - **VatCondition Enum**: Se introdujo el enumerador fuertemente tipado `VatCondition` para facilitar el envío del parámetro `<ar:CondicionIVAReceptorId>` (obligatorio para ciertas Facturas C según la RG 5616/2024 efectiva desde 2025). Ahora la interfaz `Buyer` acepta este enum en su propiedad `vatCondition`, previniendo errores por el uso de números mágicos (ej. `VatCondition.CONSUMIDOR_FINAL` en lugar de `5`).
12
+
13
+ ---
14
+
7
15
  ## [1.1.2] — 2026-03-04
8
16
 
9
17
  ### 🐛 Fixes en Nodos para Facturas de Servicios (RG 5616)
package/dist/index.cjs CHANGED
@@ -38,6 +38,7 @@ __export(index_exports, {
38
38
  InvoiceType: () => InvoiceType,
39
39
  PadronService: () => PadronService,
40
40
  TaxIdType: () => TaxIdType,
41
+ VatCondition: () => VatCondition,
41
42
  WsaaService: () => WsaaService,
42
43
  WsfeService: () => WsfeService,
43
44
  generateQRUrl: () => generateQRUrl
@@ -543,6 +544,21 @@ var TaxIdType = /* @__PURE__ */ ((TaxIdType2) => {
543
544
  TaxIdType2[TaxIdType2["FINAL_CONSUMER"] = 99] = "FINAL_CONSUMER";
544
545
  return TaxIdType2;
545
546
  })(TaxIdType || {});
547
+ var VatCondition = /* @__PURE__ */ ((VatCondition2) => {
548
+ VatCondition2[VatCondition2["IVA_RESPONSABLE_INSCRIPTO"] = 1] = "IVA_RESPONSABLE_INSCRIPTO";
549
+ VatCondition2[VatCondition2["IVA_RESPONSABLE_NO_INSCRIPTO"] = 2] = "IVA_RESPONSABLE_NO_INSCRIPTO";
550
+ VatCondition2[VatCondition2["IVA_NO_RESPONSABLE"] = 3] = "IVA_NO_RESPONSABLE";
551
+ VatCondition2[VatCondition2["IVA_SUJETO_EXENTO"] = 4] = "IVA_SUJETO_EXENTO";
552
+ VatCondition2[VatCondition2["CONSUMIDOR_FINAL"] = 5] = "CONSUMIDOR_FINAL";
553
+ VatCondition2[VatCondition2["RESPONSABLE_MONOTRIBUTO"] = 6] = "RESPONSABLE_MONOTRIBUTO";
554
+ VatCondition2[VatCondition2["SUJETO_NO_CATEGORIZADO"] = 7] = "SUJETO_NO_CATEGORIZADO";
555
+ VatCondition2[VatCondition2["PROVEEDOR_DEL_EXTERIOR"] = 8] = "PROVEEDOR_DEL_EXTERIOR";
556
+ VatCondition2[VatCondition2["CLIENTE_DEL_EXTERIOR"] = 9] = "CLIENTE_DEL_EXTERIOR";
557
+ VatCondition2[VatCondition2["IVA_LIBERADO_LEY_19640"] = 10] = "IVA_LIBERADO_LEY_19640";
558
+ VatCondition2[VatCondition2["IVA_RESPONSABLE_INSCRIPTO_AGENTE_PERCEPCION"] = 11] = "IVA_RESPONSABLE_INSCRIPTO_AGENTE_PERCEPCION";
559
+ VatCondition2[VatCondition2["MONOTRIBUTISTA_SOCIAL"] = 13] = "MONOTRIBUTISTA_SOCIAL";
560
+ return VatCondition2;
561
+ })(VatCondition || {});
546
562
 
547
563
  // src/utils/calculations.ts
548
564
  function calculateSubtotal(items, includesVAT = false) {
@@ -725,7 +741,8 @@ var WsfeService = class _WsfeService {
725
741
  docType: 99 /* FINAL_CONSUMER */,
726
742
  docNumber: "0"
727
743
  },
728
- optionals: params.optionals
744
+ optionals: params.optionals,
745
+ serviceDates: params.serviceDates
729
746
  });
730
747
  }
731
748
  /**
@@ -743,7 +760,8 @@ var WsfeService = class _WsfeService {
743
760
  docType: 99 /* FINAL_CONSUMER */,
744
761
  docNumber: "0"
745
762
  },
746
- optionals: params.optionals
763
+ optionals: params.optionals,
764
+ serviceDates: params.serviceDates
747
765
  });
748
766
  return { ...cae, items: params.items };
749
767
  }
@@ -1500,6 +1518,7 @@ var PadronService = class {
1500
1518
  InvoiceType,
1501
1519
  PadronService,
1502
1520
  TaxIdType,
1521
+ VatCondition,
1503
1522
  WsaaService,
1504
1523
  WsfeService,
1505
1524
  generateQRUrl