Skip to content

Commit

Permalink
fix: CIE xsd files
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Dec 14, 2022
1 parent 1b5d195 commit 406b517
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/spid_sp_test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


BASE_DIR = Path(__file__).resolve().parent
__version__ = "1.2.10"
__version__ = "1.2.11"
__name__ = "spid_sp_test"
logger = logging.getLogger(__name__)

Expand Down
36 changes: 15 additions & 21 deletions src/spid_sp_test/xsd/cie/cie.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,35 @@

<complexType name="ContactPersonSPExtensionType">
<sequence>
<choice>
<group ref="cie:PublicGroup" maxOccurs="1"/>
<group ref="cie:PrivateGroup" maxOccurs="1"/>
<choice minOccurs="2" maxOccurs="unbounded">
<choice minOccurs="1" maxOccurs="1">
<group ref="cie:PublicGroup" maxOccurs="1"/>
<group ref="cie:PrivateGroup" maxOccurs="1"/>
</choice>
<element ref="cie:IPACode"/>
<element ref="cie:IPACategory"/>
<element ref="cie:FiscalCode"/>
<element ref="cie:VATNumber"/>
<element ref="cie:NACE2Code"/>
<element ref="cie:Municipality"/>
<element ref="cie:Province"/>
<element ref="cie:Country"/>
</choice>
<element ref="cie:Municipality" minOccurs="1" maxOccurs="1"/>
<element ref="cie:Province" minOccurs="0" maxOccurs="1"/>
<element ref="cie:Country" minOccurs="0" maxOccurs="1"/>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>

<group name="PublicGroup">
<sequence>
<element ref="cie:Public"/>
<element ref="cie:IPACode" minOccurs="1"/>
<element ref="cie:IPACategory" minOccurs="0"/>
</sequence>
</group>
<group name="PrivateGroup">
<sequence>
<element ref="cie:Private"/>
<element ref="cie:VATNumber" minOccurs="0"/>
<element ref="cie:FiscalCode" minOccurs="0" />
<element ref="cie:NACE2Code" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</group>

<element name="Public"/>
<element name="Private"/>

Expand Down Expand Up @@ -68,14 +71,5 @@
<maxLength value="255"/>
</restriction>
</simpleType>

<!-- simpleType name="NamedAttributeType">
<restriction base="string">
<enumeration value="name"/>
<enumeration value="familyName"/>
<enumeration value="dateOfBirth"/>
<enumeration value="fiscalNumber"/>
</restriction>
</simpleType -->

</schema>

0 comments on commit 406b517

Please sign in to comment.