Skip to content

Commit

Permalink
Merge pull request #112 from digipost/email-message-documentevents
Browse files Browse the repository at this point in the history
legg til nye dokument-event-typer for epost-melding via api
  • Loading branch information
Christian Strandenæs authored Sep 15, 2021
2 parents 203f069 + d201a8b commit aa82083
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
@XmlEnum
public enum DocumentEventType {

EMAIL_MESSAGE_FAILED,
EMAIL_MESSAGE_SENT,
EMAIL_NOTIFICATION_FAILED,
SMS_NOTIFICATION_FAILED,
OPENED,
Expand Down
16 changes: 10 additions & 6 deletions src/main/resources/xsd/api_v7.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="email-details">
<xsd:sequence>
<xsd:element name="email-address" minOccurs="1" maxOccurs="1" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="print-recipient">
<xsd:sequence>
<xsd:element name="name" type="name" minOccurs="1" maxOccurs="1" />
Expand Down Expand Up @@ -509,6 +515,7 @@
</xsd:simpleType>
</xsd:element>
<xsd:element name="digipost-address" minOccurs="0" maxOccurs="1" type="xsd:string" nillable="false" />
<xsd:element name="email-details" minOccurs="0" maxOccurs="1" type="email-details" nillable="false" />
<xsd:element name="peppol-addresses" minOccurs="0" maxOccurs="1" type="peppol-addresses" nillable="false" />
<xsd:element name="name-and-address" minOccurs="0" maxOccurs="1" type="name-and-address" nillable="false" />
<xsd:element name="bank-account-number" minOccurs="0" maxOccurs="1" nillable="false">
Expand Down Expand Up @@ -1006,6 +1013,7 @@
<xsd:enumeration value="PRINT" />
<xsd:enumeration value="DIGIPOST" />
<xsd:enumeration value="PEPPOL" />
<xsd:enumeration value="EPOST" />
</xsd:restriction>
</xsd:simpleType>

Expand Down Expand Up @@ -1121,6 +1129,8 @@
<xsd:simpleType name="event-type">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="EMAIL_NOTIFICATION_FAILED" />
<xsd:enumeration value="EMAIL_MESSAGE_SENT" />
<xsd:enumeration value="EMAIL_MESSAGE_FAILED" />
<xsd:enumeration value="SMS_NOTIFICATION_FAILED" />
<xsd:enumeration value="OPENED" />
<xsd:enumeration value="MOVE_FILES_FROM_PUBLIC_SECTOR" />
Expand Down Expand Up @@ -1312,10 +1322,4 @@
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="email-details">
<xsd:sequence>
<xsd:element name="email-address" minOccurs="1" maxOccurs="1" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

</xsd:schema>

0 comments on commit aa82083

Please sign in to comment.