Repository navigation
facta-dte/api v0.2.0-rc.2
Pre-release
Pre-release
·
8 commits
to main
since this release
Release candidate (pre-release tag; the stable release stays at 0.1.0). Additive only: every call, constant, option and return shape of 0.1.0 and 0.2.0-rc.1 keeps working (tests/BackwardCompatTest.php). Matches the staging API of 29-Oct-2026.
Added
items[].montoDescu(discount of a line in money),pagoswith the newPagovalue object (plain arrays still work),items[].tipoVentawith theSaleTypeconstants, andaplicarRetencionIva(01, 03) /aplicarPercepcionIva(03). The request is still a plain array that travels untouched: the server owns every rule.campo_desconocidowarnings:issue(),prepare(),sign()andissueDraft()results gainunknownFields(campo,mensaje,sugerencia) andfactaWarning(the parsedFacta-Warningheader) only when there is something to report.FactaError::getUnknownFields()readsdetails.advertenciasandgetFactaWarning()the header. Unknown fields stay warnings: they are never rejected.Facta::STAGING_BASE_URL. The default base URL is still production.FactaErrortakes an optional sixth constructor argument (the header); existing calls are unchanged.