Skip to content
Snippets Groups Projects
Verified Commit bb7cd761 authored by Jan Loewe's avatar Jan Loewe :speech_balloon:
Browse files

feat(statementMetaDataType): add name and description

parent a5609af1
No related branches found
No related tags found
1 merge request!4Update to DCC Schema V3.2
...@@ -777,6 +777,8 @@ export class RespPersonType extends DCCXMLElement { ...@@ -777,6 +777,8 @@ export class RespPersonType extends DCCXMLElement {
export class StatementMetaDataType extends DCCXMLElement { export class StatementMetaDataType extends DCCXMLElement {
_attr: IIdAndRefIdAndRefTypeAttributes; _attr: IIdAndRefIdAndRefTypeAttributes;
name?: TextType;
description?: RichContentType;
countryCodeISO3166_1?: DCCXMLElement[]; countryCodeISO3166_1?: DCCXMLElement[];
convention?: DCCXMLElement; convention?: DCCXMLElement;
traceable?: DCCXMLBoolean; traceable?: DCCXMLBoolean;
...@@ -805,6 +807,8 @@ export class StatementMetaDataType extends DCCXMLElement { ...@@ -805,6 +807,8 @@ export class StatementMetaDataType extends DCCXMLElement {
constructor(el: Partial<StatementMetaDataType> = {}) { constructor(el: Partial<StatementMetaDataType> = {}) {
super(el); 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.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.convention) this.convention = new DCCXMLElement(el.convention);
if (el.traceable) this.traceable = new DCCXMLBoolean(el.traceable); if (el.traceable) this.traceable = new DCCXMLBoolean(el.traceable);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment