<?xml version="1.0" encoding="utf-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:annotation> <xsd:documentation>element 5 sales export schema - version 1.0</xsd:documentation> </xsd:annotation> <xsd:annotation> <xsd:documentation>Main Element</xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:complexContent> </xsd:complexContent> </xsd:complexType> </xsd:element> <xsd:annotation> <xsd:documentation>Meta Data plus list of Purchases</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="ExportCTime" nillable="false" type="xsd:dateTime"/> <xsd:element name="RangeFromDate" nillable="false" type="xsd:date"/> <xsd:element name="RangeToDate" nillable="false" type="xsd:date"/> <xsd:sequence maxOccurs="unbounded" minOccurs="0"> </xsd:sequence> </xsd:sequence> </xsd:complexType> <xsd:annotation> <xsd:documentation>all relevant Purchase Data (Type)</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="PurchaseId" nillable="false" type="xsd:integer"/> <xsd:element name="PurchaseDate" nillable="false" type="xsd:dateTime"/> <xsd:element minOccurs="0" name="ReimbursementDate" nillable="true" type="xsd:dateTime"/> <xsd:sequence maxOccurs="unbounded"> <xsd:complexType> <xsd:complexContent> </xsd:complexContent> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:sequence> </xsd:complexType> <xsd:annotation> <xsd:documentation> complete customer information (used by PurchaseType) </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="RegName" nillable="false" type="xsd:string"/> <xsd:element minOccurs="0" name="VatId" nillable="true" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:annotation> <xsd:documentation>Personal Data (part of CustomerDataType)</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element minOccurs="0" name="Title" nillable="true" type="xsd:string"/> <xsd:element name="LastName" nillable="false" type="xsd:string"/> <xsd:element minOccurs="0" name="LastNameKatakana" nillable="true" type="xsd:string"/> <xsd:element name="FirstName" nillable="false" type="xsd:string"/> <xsd:element minOccurs="0" name="FirstNameKatakana" nillable="true" type="xsd:string"/> <xsd:element minOccurs="0" name="Company" nillable="true" type="xsd:string"/> <xsd:element name="Email" nillable="false" type="xsd:string"/> <xsd:element minOccurs="0" name="Phone" nillable="true" type="xsd:string"/> <xsd:element minOccurs="0" name="Phone2" nillable="true" type="xsd:string"/> <xsd:element minOccurs="0" name="Fax" nillable="true" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:annotation> <xsd:documentation>Address Data (part of ContactTypeType)</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="Street1" nillable="false" type="xsd:string"/> <xsd:element minOccurs="0" name="Street2" nillable="true" type="xsd:string"/> <xsd:element name="City" nillable="false" type="xsd:string"/> <xsd:element name="PostalCode" nillable="false" type="xsd:string"/> <xsd:element minOccurs="0" name="StateId" nillable="true"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="2"/> <xsd:maxLength value="5"/> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element minOccurs="0" name="State" nillable="true" type="xsd:string"/> <xsd:element name="CountryId" nillable="false"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="2"/> <xsd:maxLength value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="Country" nillable="false" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:annotation> <xsd:documentation> Payment Information of Customer (part of CustomerDataType) </xsd:documentation> </xsd:annotation> <xsd:sequence> </xsd:sequence> </xsd:complexType> <xsd:annotation> <xsd:documentation>Purchase Item Information (part of PurchaseType)</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="RunningNo" nillable="false" type="xsd:integer"/> <xsd:element name="ProductId" nillable="false" type="xsd:integer"/> <xsd:simpleType> <xsd:restriction base="xsd:integer"/> </xsd:simpleType> </xsd:element> <xsd:element name="Quantity" nillable="false" type="xsd:integer"/> <xsd:element name="VatPct" type="xsd:double"/> <xsd:element name="Discount" type="xsd:double"/> <xsd:element minOccurs="0" name="PromotionId" nillable="true" type="xsd:integer"/> <xsd:element minOccurs="0" name="EanCode" nillable="true" type="xsd:string"/> <xsd:element minOccurs="0" name="YourProductId" nillable="true" type="xsd:string"/> <xsd:element minOccurs="0" name="ProductGroup" nillable="true" type="xsd:string"/> <xsd:sequence maxOccurs="unbounded" minOccurs="0"> </xsd:sequence> <xsd:sequence maxOccurs="unbounded" minOccurs="0"> </xsd:sequence> </xsd:sequence> </xsd:complexType> <xsd:annotation> <xsd:documentation> Key, Bin Key or Download Information (part of PurchaseItemType) </xsd:documentation> </xsd:annotation> <xsd:choice> <xsd:element name="Key" nillable="false" type="xsd:string"/> <xsd:sequence> <xsd:element name="Link" nillable="false" type="xsd:string"/> <xsd:element name="Valid" nillable="false" type="xsd:dateTime"/> </xsd:sequence> <xsd:sequence> <xsd:element name="BinName" nillable="false" type="xsd:string"/> <xsd:element name="MimeType" nillable="false" type="xsd:string"/> <xsd:element name="Data" type="xsd:base64Binary"/> </xsd:sequence> </xsd:choice> </xsd:complexType> <xsd:annotation> <xsd:documentation> Additional Information entered by the Customer during the Order Process (part of PurchaseItemType) </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="AdditionalId" nillable="false" type="xsd:integer"/> </xsd:sequence> </xsd:complexType> <xsd:annotation> <xsd:documentation>Complete List of all Payment Stati</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="requested"/> <xsd:enumeration value="not possible"/> <xsd:enumeration value="not arrived"/> <xsd:enumeration value="complete"/> <xsd:enumeration value="incomplete"/> <xsd:enumeration value="refunded"/> <xsd:enumeration value="charged back"/> <xsd:enumeration value="test payment arrived"/> <xsd:enumeration value="test payment requested"/> <xsd:enumeration value="invoice waiting"/> <xsd:enumeration value="partly refunded"/> <xsd:enumeration value="no encashment"/> <xsd:enumeration value="cancellation"/> <xsd:enumeration value="quote"/> <xsd:enumeration value="Other"/> </xsd:restriction> </xsd:simpleType> <xsd:annotation> <xsd:documentation>Complete List of all Payment Types</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Credit Card"/> <xsd:enumeration value="Check"/> <xsd:enumeration value="Wire Transfer"/> <xsd:enumeration value="Cash"/> <xsd:enumeration value="Direct Debit"/> <xsd:enumeration value="Debit Card"/> <xsd:enumeration value="Stackbox"/> <xsd:enumeration value="Invoice"/> <xsd:enumeration value="No Payment needed"/> <xsd:enumeration value="Other"/> </xsd:restriction> </xsd:simpleType> <xsd:annotation> <xsd:documentation>Complete List of all Languages</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="English"/> <xsd:enumeration value="German"/> <xsd:enumeration value="Spanish"/> <xsd:enumeration value="French"/> <xsd:enumeration value="Portuguese"/> <xsd:enumeration value="Italian"/> <xsd:enumeration value="Dutch"/> <xsd:enumeration value="Norwegian"/> <xsd:enumeration value="Swedish"/> <xsd:enumeration value="Finnish"/> <xsd:enumeration value="Japanese"/> <xsd:enumeration value="Korean"/> <xsd:enumeration value="Russian"/> <xsd:enumeration value="Other"/> </xsd:restriction> </xsd:simpleType> <xsd:annotation> <xsd:documentation>Complete List of all Delivery Types</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Electronically"/> <xsd:enumeration value="Postal Mail"/> <xsd:enumeration value="Fax"/> <xsd:enumeration value="Other"/> </xsd:restriction> </xsd:simpleType> <xsd:annotation> <xsd:documentation>Complete List of all Credit Cards</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Visa"/> <xsd:enumeration value="Mastercard / Eurocard"/> <xsd:enumeration value="American Express"/> <xsd:enumeration value="Diners Club"/> <xsd:enumeration value="Discover"/> <xsd:enumeration value="JCB"/> <xsd:enumeration value="Other"/> </xsd:restriction> </xsd:simpleType> <xsd:annotation> <xsd:documentation>Complete List of all Debit Cards</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Switch"/> <xsd:enumeration value="Solo"/> <xsd:enumeration value="Other"/> </xsd:restriction> </xsd:simpleType> <xsd:annotation> <xsd:documentation>Complete List of all Currencies</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="USD"/> <xsd:enumeration value="EUR"/> <xsd:enumeration value="GBP"/> <xsd:enumeration value="AUD"/> <xsd:enumeration value="CAD"/> <xsd:enumeration value="CHF"/> <xsd:enumeration value="JPY"/> <xsd:enumeration value="OTH"/> </xsd:restriction> </xsd:simpleType> <xsd:annotation> <xsd:documentation>Complete List of all Salutations</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="MR."/> <xsd:enumeration value="MS."/> <xsd:enumeration value="MRS"/> </xsd:restriction> </xsd:simpleType> <xsd:annotation> <xsd:documentation>Complete List of all PurchaseSources</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="online"/> <xsd:enumeration value="phone"/> <xsd:enumeration value="fax"/> <xsd:enumeration value="email"/> <xsd:enumeration value="letter"/> <xsd:enumeration value="Other"/> <xsd:enumeration value="unknown"/> </xsd:restriction> </xsd:simpleType> </xsd:schema> |