arca-sdk 1.1.0 → 1.1.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/CHANGELOG.md +10 -0
- package/README.md +21 -1
- package/README.pdf +22085 -4
- package/dist/index.cjs +17 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ Todos los cambios notables de este proyecto se documentan en este archivo.
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.1.1] — 2026-03-03
|
|
8
|
+
|
|
9
|
+
### ✨ Soporte para Opcionales y Resolución General 5616
|
|
10
|
+
|
|
11
|
+
- **Opcionales en WSFE**: Se agregó soporte completo para enviar el campo `<ar:Opcionales>` en todas las operaciones de emisión de comprobantes (Facturas A/B/C, Notas de Crédito, Notas de Débito, Recibos y Tickets).
|
|
12
|
+
- **Condición IVA Receptor**: Esto permite dar pleno cumplimiento a la reciente RG 5616 de AFIP, que hace obligatorio enviar la Condición frente al IVA del receptor en ciertas Facturas C, enviando el ID `1010` dentro de los opcionales.
|
|
13
|
+
- **Consulta de Comprobantes**: El método `WsfeService.getInvoice()` ahora retorna el array de `optionals` si el comprobante los posee.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
7
17
|
## [1.1.0] — 2026-02-28
|
|
8
18
|
|
|
9
19
|
### ✨ Nuevos Comprobantes (Vouchers)
|
package/README.md
CHANGED
|
@@ -183,6 +183,26 @@ result.vat?.forEach(v => {
|
|
|
183
183
|
});
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
+
### Factura C con Parámetros Opcionales (Ej: Condición IVA Receptor - RG 5616)
|
|
187
|
+
|
|
188
|
+
AFIP requiere mediante la RG 5616 incluir la "Condición frente al IVA del receptor" en ciertas Facturas C, lo cual se envía a través del campo Opcionales.
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
const result = await wsfe.issueInvoiceC({
|
|
192
|
+
items: [
|
|
193
|
+
{ description: 'Licencia de software', quantity: 1, unitPrice: 15000 },
|
|
194
|
+
],
|
|
195
|
+
optionals: [
|
|
196
|
+
{
|
|
197
|
+
id: 1010, // ID 1010: Condición IVA Receptor
|
|
198
|
+
value: '2' // 2: Responsable Monotributo
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
console.log('Factura emitida exitosamente con Opcionales integrados.');
|
|
204
|
+
```
|
|
205
|
+
|
|
186
206
|
### Nota de Crédito (Anulando factura previa)
|
|
187
207
|
|
|
188
208
|
```typescript
|
|
@@ -326,7 +346,7 @@ import { InvoiceType, BillingConcept, TaxIdType } from 'arca-sdk';
|
|
|
326
346
|
import type { WsaaConfig, WsfeConfig, TaxpayerServiceConfig } from 'arca-sdk';
|
|
327
347
|
|
|
328
348
|
// Tipos de respuesta
|
|
329
|
-
import type { CAEResponse, InvoiceDetails, PointOfSale, ServiceStatus } from 'arca-sdk';
|
|
349
|
+
import type { CAEResponse, InvoiceDetails, PointOfSale, ServiceStatus, InvoiceOptional } from 'arca-sdk';
|
|
330
350
|
import type { TaxpayerResponse, Taxpayer, Address, Activity, TaxRecord } from 'arca-sdk';
|
|
331
351
|
|
|
332
352
|
// Items de factura
|