The data of a DANFE, read from the nfeProc SEFAZ authorized: what the PDF is drawn from.
Pure: it takes the XML (SefazNfe.Builder.parse_nfe/2) and answers a map with string keys that
the JSON encoder takes as is. Every value is already presented the Brazilian way
(SefazDanfe.Format) and is nil when the XML does not have it: nothing is computed or
invented. The blocks follow the DANFE of the MOC (Anexo II): emitter, recipient, billing
(fatura and duplicatas), totals, transport, items, issqn and additional_info, with the
identification of the document and the protocol of the authorization at the top.
opts takes :canceled (default false): the DANFE of a cancelled NF-e says so.
Summary
Functions
The DANFE data of the nfeProc (or the NFe) in xml; {:error, reason} when it cannot be read.