diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e47b40..ce6536b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## Unreleased +## [4.20.0] 2026-08-21 ### Added - Add invoice ZIP request methods: `invoices.createZipRequest`, `invoices.listZipRequests`, `invoices.retrieveZipRequest`, and `invoices.downloadZipRequest`. +### Fixed + +- Type `property_tax_account` as an array in invoice and receipt responses. + ## [4.19.0] 2026-07-01 ### Added diff --git a/package.json b/package.json index d8f7cf6..1bec61a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "facturapi", - "version": "4.19.0", + "version": "4.20.0", "description": "SDK oficial de Facturapi para Node.js y navegadores. Integra facturación electrónica en México (CFDI) de forma simple y obtén una perspectiva fiscal completa de tu operación, con búsquedas indexadas, envío de documentos y trazabilidad.", "main": "dist/index.cjs.js", "module": "dist/index.es.js", diff --git a/src/types/common.ts b/src/types/common.ts index e922bb9..867bab9 100644 --- a/src/types/common.ts +++ b/src/types/common.ts @@ -86,7 +86,7 @@ export interface InvoiceItem { third_party: InvoiceItemThirdParty; complement: string; parts: InvoiceItemPart[]; - property_tax_account: string; + property_tax_account: string[]; } export interface XmlNamespace { diff --git a/test-d/runtime-types.test-d.ts b/test-d/runtime-types.test-d.ts index 0fe68ab..bb10f90 100644 --- a/test-d/runtime-types.test-d.ts +++ b/test-d/runtime-types.test-d.ts @@ -2,6 +2,7 @@ import { expectAssignable, expectType, expectError } from 'tsd'; import Facturapi, { BinaryDownload, FacturapiError, + InvoiceItem, InvoiceType, IssuingType, NodeLikeReadableStream, @@ -59,6 +60,9 @@ if ('pipe' in binary && typeof binary.pipe === 'function') { expectAssignable(TaxFactor.EXENTO); +declare const invoiceItem: InvoiceItem; +expectType(invoiceItem.property_tax_account); + declare const apiError: FacturapiError; expectType(apiError.status); expectType(apiError.code);