Skip to content

v0.3.0

Choose a tag to compare

@FernandoCelmer FernandoCelmer released this 05 Sep 17:49
· 45 commits to main since this release

Adds Pdf(accessKey, documentType), the seventh method on Invoice and the only one returning []byte.

The authorizer's own rendering of an authorized document. The XML remains the legally valid document; this is a convenience, and the authorizer's endpoint for it is unstable by their own documentation — an APIError with status 502 means the authorizer is unavailable, not that the invoice is wrong. NFS-e only; NF-e answers 501.

Internal: the HTTP layer was split into send (returns raw bytes) and request (parses JSON on top), because the previous path decoded JSON off every response and would have corrupted a PDF. Behaviour-neutral for the six existing methods.