From bb7cd76177473aa48763631156aa8cbc3e28bfd0 Mon Sep 17 00:00:00 2001
From: Jan Loewe <jan.loewe@ptb.de>
Date: Tue, 14 Feb 2023 14:00:44 +0100
Subject: [PATCH] feat(statementMetaDataType): add name and description

---
 src/DCC.ts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/DCC.ts b/src/DCC.ts
index 6269ee5..714fcd5 100644
--- a/src/DCC.ts
+++ b/src/DCC.ts
@@ -777,6 +777,8 @@ export class RespPersonType extends DCCXMLElement {
 export class StatementMetaDataType extends DCCXMLElement {
   _attr: IIdAndRefIdAndRefTypeAttributes;
 
+  name?: TextType;
+  description?: RichContentType;
   countryCodeISO3166_1?: DCCXMLElement[];
   convention?: DCCXMLElement;
   traceable?: DCCXMLBoolean;
@@ -805,6 +807,8 @@ export class StatementMetaDataType extends DCCXMLElement {
 
   constructor(el: Partial<StatementMetaDataType> = {}) {
     super(el);
+    if (el.name) this.name = new TextType(el.name);
+    if (el.description) this.description = new RichContentType(el.description);
     if (el.countryCodeISO3166_1) this.countryCodeISO3166_1 = ensureArray(el.countryCodeISO3166_1).map((x) => new DCCXMLElement(x));
     if (el.convention) this.convention = new DCCXMLElement(el.convention);
     if (el.traceable) this.traceable = new DCCXMLBoolean(el.traceable);
-- 
GitLab