zugferd code lists
This project takes the many code lists that are part of the ZUGFeRD specification and converts them into rust and typescript enums for use in other projects.
This project is in no way or form affiliated with the official ZUGFeRD project.
Status
Versions supported:
- ZUGFeRD 2.3.2
- ZUGFeRD 2.3.3
- ZUGFeRD 2.4
Changelog
- v0.1.9: added ZUGFeRD 2.3.3
- v0.1.10: added VAT CAT list
- v0.1.11:
- Added
TryFromimpls for conversion to and from the cratesiso_currencyandiso_country - Fixed bug where code
NAwould be rendered asnanin the generated code - Added
Fiscal IDlist (new in ZUGFeRD 2.3.3)
- Added
- v0.1.12:
- Added
Debug,Display, andErrortraits for generated errors forTryFromforiso_currencyandiso_country
- Added
- v0.1.13:
- Adjusted the traits
CodeandDescriptionto consider the fact that all code lists areCopyand all strings returned live for'static. This should make the API more flexible as previously there was a lifetime dependence between a code value and the&strreturned byCode::code
- Adjusted the traits
- v0.1.14:
- Optional
serdesupport
- Optional
- v0.1.15
- Optional
spectasupport
- Optional
- v0.1.16
- Added
FromStrandDisplaytrait impls
- Added
- v0.1.17
- Made error for
FromStrmore informative with thiserror.
- Made error for
- v0.1.18
- Bugfix where
2.3.3lists were not being exported in ts.
- Bugfix where
- v0.1.19
- Added ZUGFeRD 2.4
- Reduced code by re-exported duplicate enums instead of having multiple definitions
- Added
TryFromimpls for conversion between a version and its previous version
Future Plans
TryFromimpls for conversion between versions - done
Adding a ZUGFeRD version
See the ZUGFeRD spec files readme for instructions on how to add a new ZUGFeRD specification files.
Then add the version to the Version enum in py_generate/common.py and run make gen to generate the definitions.