Skip to content

Commit

Permalink
Merge pull request #209 from digipost/returkonvolutt
Browse files Browse the repository at this point in the history
Legger til printinstruksjoner i xsden
  • Loading branch information
marnormic committed May 25, 2018
2 parents 1449d47 + 6b50d12 commit 359fe0a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
6 changes: 6 additions & 0 deletions eksempler/sdpMelding-print.xml
Expand Up @@ -83,6 +83,12 @@
</norskAdresse>
</mottaker>
</retur>
<printinstruksjoner>
<printinstruksjon>
<navn>returkonvolutt</navn>
<verdi>true</verdi>
</printinstruksjon>
</printinstruksjoner>
</fysiskPostInfo>

<dokumentpakkefingeravtrykk>
Expand Down
34 changes: 27 additions & 7 deletions xsd/sdp-melding.xsd
Expand Up @@ -219,9 +219,16 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="printinstruksjoner" type="Printinstruksjoner" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Liste av instruksjoner knyttet til print. Gyldige verdier avtales mellom avsender og printleverandør.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="FysiskPostadresse">
<xsd:annotation>
<xsd:documentation>
Expand All @@ -236,18 +243,18 @@
</xsd:choice>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="FysiskPostRetur">
<xsd:sequence>
<xsd:element name="postHaandtering" type="FysiskPostReturhaandtering" minOccurs="1" maxOccurs="1" />
<xsd:element name="mottaker" type="FysiskPostadresse" minOccurs="1" maxOccurs="1" >
<xsd:annotation>
<xsd:documentation>Returpost blir adressert hit.</xsd:documentation>
</xsd:annotation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>

<xsd:simpleType name="Utskriftsfarge">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="SORT_HVIT" />
Expand All @@ -261,14 +268,14 @@
<xsd:enumeration value="B"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="FysiskPostReturhaandtering">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="DIREKTE_RETUR"/>
<xsd:enumeration value="MAKULERING_MED_MELDING"/>
</xsd:restriction>
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="NorskPostadresse">
<xsd:sequence>
<xsd:element name="adresselinje1" type="Adresselinje" minOccurs="0" maxOccurs="1"/>
Expand Down Expand Up @@ -334,4 +341,17 @@
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="Printinstruksjoner">
<xsd:sequence>
<xsd:element name="printinstruksjon" type="Printinstruksjon" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="Printinstruksjon">
<xsd:sequence>
<xsd:element name="navn" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="verdi" type="xsd:string" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>

</xsd:schema>

0 comments on commit 359fe0a

Please sign in to comment.