<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="invoices">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="invoice" type="TypeInvoice"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="TypeInvoice">
<xsd:sequence>
<xsd:element name="seller" type="SllerType"/>
<xsd:element name="buyer" type="BuyerType"/>
<xsd:element name="item" type="ItemType"/>
</xsd:sequence>
<xsd:attribute name="no" type="xsd:string"/>
<xsd:attribute name="date" type="xsd:date"/>
<xsd:attribute name="ship-date" type="xsd:date"/>
</xsd:complexType>
<xsd:complexType name="SellerType">
<xsd:sequence>
<xsd:element name="company" type="xsd:string"/>
<xsd:element name="adress" type="xsd:string"/>
<xsd:element name="postcode" type="postcodeType"/>
<xsd:element name="city" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="tax-id" type="tax-idType"/>
</xsd:complexType>
<xsd:complexType name="BuyerType">
<xsd:sequence>
<xsd:element name="surname" type="xsd:string"/>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="adress" type="xsd:string"/>
<xsd:element name="postcode" type="postcodeType"/>
<xsd:element name="city" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="tax-id" type="tax-idType"/>
</xsd:complexType>
<xsd:complexType name="ItemType">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="quantity" type="quantityType"/>
<xsd:element name="unit-price" type="unit-priceType"/>
<xsd:element name="VAT" type="VATType"/>
</xsd:sequence>
<xsd:attribute name="type" type="typeType"/>
</xsd:complexType>
<xsd:complexType name="quantityType">
<xsd:attribute name="unit" type="unitType"/>
</xsd:complexType>
<xsd:complexType name="unit-priceType">
<xsd:restriction base="xsd:decimal">
<xsd:fractionDigits value="2"/>
</xsd:restriction>
<xsd:attribute name="currency" type="currencyType"/>
</xsd:complexType>
<xsd:complexType name="unitType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="kg"/>
<xsd:enumeration value="m2"/>
<xsd:enumeration value="l"/>
<xsd:enumeration value="pcs"/>
</xsd:restriction>
</xsd:complexType>
<xsd:complexType name="currencyType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="USD"/>
<xsd:enumeration value="EUR"/>
<xsd:enumeration value="PLN"/>
</xsd:restriction>
</xsd:complexType>
<xsd:simpleType name="tax-idType">
<xsd:restriction base="xsd:string">
<xsd:length value="13"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="postcodeType">
<xsd:restriction base="xsd:string">
<xsd:length value="6"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="typeType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="goods"/>
<xsd:enumeration value="service"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="VATType">
<xsd:restriction base="xsd:integer">
<xsd:enumeration value="22"/>
<xsd:enumeration value="7"/>
<xsd:enumeration value="3"/>
<xsd:enumeration value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
invoices.xsd
- no sources listed

