Skip to content

Commit

Permalink
feature/224 Add externalReference element
Browse files Browse the repository at this point in the history
  • Loading branch information
merrycoder committed May 16, 2024
1 parent c7dcf3f commit 6f0ab78
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions examples/full.xml
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,11 @@
<note>Contact Mr. Smith</note>
</inquiryPerson>
</seller>
<externalReference>
<refProperty>str1234</refProperty>
<refHouse>str1234</refHouse>
<refObject>str1234</refObject>
</externalReference>
<type>buy</type>
<utilizations>
<utilization>residential</utilization>
Expand Down
16 changes: 14 additions & 2 deletions schema/schema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@
<xs:element type="xs:string" name="gender" minOccurs="0" maxOccurs="1" />
<xs:element type="xs:string" name="note" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
</xs:complexType>
<xs:complexType name="prices">
<xs:annotation>
<xs:documentation>Sell, rent, deposit and auction prices.</xs:documentation>
Expand Down Expand Up @@ -890,7 +890,7 @@
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:complexType>
<!-- simple types -->
<xs:simpleType name="applicable">
<xs:annotation>
Expand Down Expand Up @@ -2013,6 +2013,18 @@
<xs:documentation>Can be used to track the original creation id (this should usually be unique to the property)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="externalReference" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Object references based on other than SwissRETS standard (e.g IDX).</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element type="xs:string" name="refProperty" minOccurs="0" maxOccurs="1" />
<xs:element type="xs:string" name="refHouse" minOccurs="0" maxOccurs="1" />
<xs:element type="xs:string" name="refObject" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="seller" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The owner or the owners substitute (for example a broker).</xs:documentation>
Expand Down

0 comments on commit 6f0ab78

Please sign in to comment.