ProductCatalog XSD

ProductCatalog

Notes

 <xs:element name="ProductCatalog">
  <xs:annotation>
   <xs:documentation>Contains general ledger product mapping of the entire product catalog </xs:documentation>
  </xs:annotation>
  <xs:complexType>
   <xs:sequence>
    <xs:element name="GLProducts" minOccurs="1" maxOccurs="1">
     <xs:annotation>
      <xs:documentation>Contains all general ledger products</xs:documentation>
     </xs:annotation>
     <xs:complexType>
      <xs:sequence>
       <xs:element name="GLProduct" minOccurs="1" maxOccurs="unbounded">
        <xs:annotation>
         <xs:documentation>Contains products associated to on GLProduct</xs:documentation>
        </xs:annotation>
        <xs:complexType>
         <xs:sequence>
          <xs:element name="Products" minOccurs="1" maxOccurs="1">
           <xs:annotation>
            <xs:documentation>Contains products associated to the specific general ledger product</xs:documentation>
           </xs:annotation>
           <xs:complexType>
            <xs:sequence>
             <xs:element name="Product" minOccurs="1" maxOccurs="unbounded">
              <xs:annotation>
               <xs:documentation>Contains information associatied to one product</xs:documentation>
              </xs:annotation>
              <xs:complexType>
               <xs:attribute name="ProductId" type="fIdentifier" use="required">
                <xs:annotation>
                 <xs:documentation>Unique identifier (preferably GTIN) of the product</xs:documentation>
                </xs:annotation>
               </xs:attribute>
               <xs:attribute name="RevenueType" type="fIdentifier" use="required">
                <xs:annotation>
                 <xs:documentation>Revenue type association. Affects GL VatCode and GL Acccount handling Example: PRODUCT, SERVICE, ....</xs:documentation>
                </xs:annotation>
               </xs:attribute>
               <xs:attribute name="CostCenter" type="fIdentifier" use="optional">
                <xs:annotation>
                 <xs:documentation>Costcenter associated to the product. Affects GL costcenter handling</xs:documentation>
                </xs:annotation>
               </xs:attribute>
               <xs:attribute name="ProductType" type="fIdentifier" use="optional">
                <xs:annotation>
                 <xs:documentation>Product type association. Only used in accounting Example: PERIODIC, USAGE, ONETIME etc ...</xs:documentation>
                </xs:annotation>
               </xs:attribute>
              </xs:complexType>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
         </xs:sequence>
         <xs:attribute name="GLProductCode" type="fIdentifier" use="required"/>
        </xs:complexType>
       </xs:element>
      </xs:sequence>
     </xs:complexType>
    </xs:element>
   </xs:sequence>
   <xs:attribute name="Version" type="Version" use="required">
    <xs:annotation>
     <xs:documentation>The XSD version of the xml format. XML-file must be validated before sent to PayEx</xs:documentation>
    </xs:annotation>
   </xs:attribute>
   <xs:attribute name="CreatedDateTime" type="xs:dateTime" use="required">
    <xs:annotation>
     <xs:documentation>Date and time when the file was created</xs:documentation>
    </xs:annotation>
   </xs:attribute>
   <xs:attribute name="CompanyNo" type="CompanyNumber" use="required">
    <xs:annotation>
     <xs:documentation>Your billing/accountsreceivablenumber at PayEx</xs:documentation>
    </xs:annotation>
   </xs:attribute>
   <xs:attribute name="CompanyName" type="xs:string" use="required">
    <xs:annotation>
     <xs:documentation>The name of your company</xs:documentation>
    </xs:annotation>
   </xs:attribute>
  </xs:complexType>
 </xs:element>

CompanyNumber

 <xs:simpleType name="CompanyNumber">
  <xs:restriction base="xs:string">
   <xs:minLength value="1"/>
   <xs:maxLength value="15"/>
   <xs:pattern value="[0-9]*"/>
  </xs:restriction>
 </xs:simpleType>

fIdentifier

 <xs:simpleType name="fIdentifier">
  <xs:restriction base="xs:string">
   <xs:maxLength value="15"/>
   <xs:pattern value="[A-Za-z0-9]*"/>
  </xs:restriction>
 </xs:simpleType>

Version

Notes

 <xs:simpleType name="Version">
  <xs:annotation>
   <xs:documentation>Versions supported by this schema</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:string">
   <xs:enumeration value="1.0"/>
  </xs:restriction>
 </xs:simpleType>

Created by David Persson on 2021/01/29 09:26