This PR adds support for the property Disclaimer in the CoA.
It adds support for it in the PDF rendering.
Adds NaN check to localizeNumber.
Adds unit tests for localizeNumber.
Updates certificate.ts and schemaTypes.ts in the CoA PDF rendering package based on the new CoA schema.json.
Adds Disclaimer property to fixtures.
Update EN10168 v0.3.0 fixtures.
Update en10168 schemaTypes.ts, update EN10168 pdf rendering.
Update CoA pdf generation to fallback to CompanyName if Name is not present.
Update EN10168 pdf rendering tests to use certificate v0.3.0.
Add tests for createReceivers in CoA pdf rendering to test that CompanyName is correctly set as a fallback for Name.
Add tests for createTransactionParties EN10168 pdf rendering to ensure that Name is correctly set as a fallback for CompanyName and it renders with and without the Email property present.
Update extract-emails for updated CoA and EN10168.
Update extract-emails example script.
Update and add new extract-emails tests.
Description
This PR adds support for the property
Disclaimer
in the CoA. It adds support for it in the PDF rendering. AddsNaN
check tolocalizeNumber
. Adds unit tests forlocalizeNumber
. Updatescertificate.ts
andschemaTypes.ts
in the CoA PDF rendering package based on the new CoAschema.json
. AddsDisclaimer
property to fixtures. Update EN10168v0.3.0
fixtures. Update en10168schemaTypes.ts
, update EN10168 pdf rendering. Update CoA pdf generation to fallback toCompanyName
ifName
is not present. Update EN10168 pdf rendering tests to use certificatev0.3.0
. Add tests forcreateReceivers
in CoA pdf rendering to test thatCompanyName
is correctly set as a fallback forName
. Add tests forcreateTransactionParties
EN10168 pdf rendering to ensure thatName
is correctly set as a fallback forCompanyName
and it renders with and without theEmail
property present. Update extract-emails for updated CoA and EN10168. Update extract-emails example script. Update and add new extract-emails tests.Related to https://github.com/thematerials-network/CoA-schemas/pull/60
Type of change
Checklist:
Updated rendering of the HTML with disclaimer section added:
Updated PDF with disclaimer section added: