Overview

Annotation

CUSIN är ett filformat för att skicka in underlag till PayEx

Element CUSIN

Formal declaration in XSD source form

  <xs:element name="CUSIN">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DistributionDate" minOccurs="0" maxOccurs="1">
          <xs:annotation>
            <xs:documentation>Mandatory for services with distribution.</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:choice>
              <xs:element name="Date" type="xs:date">
                <xs:annotation>
                  <xs:documentation>Only used if distribution of invoices are part of a contracted production planning. Distributiondate has to be in the future. Distributiondate has to be a bankday</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="AsSoonAsPossible">
                <xs:annotation>
                  <xs:documentation>Used to distribute invoices as soon as possible. The element supposed to be empty.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:complexContent>
                    <xs:restriction base="xs:anyType"/>
                  </xs:complexContent>
                </xs:complexType>
              </xs:element>
            </xs:choice>
          </xs:complexType>
        </xs:element>
        <xs:element name="CUSINInfo" minOccurs="1" maxOccurs="unbounded">
          <xs:annotation>
            <xs:documentation>Containing one customer (payer) and that customers invoice(s)</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="CustomerNo" type="Identifier15" minOccurs="0" maxOccurs="1" nillable="false">
                <xs:annotation>
                  <xs:documentation>CustomerNo is your unique identifier of the customer in the accountsreceivable and should always be used. CustomerNo is mandatory by default. If you do not have unique identifiers of your customers, please contact PayEx.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element minOccurs="0" maxOccurs="1" name="CustomerInfo">
                <xs:annotation>
                  <xs:documentation>Must be used for new och changed customers. CustomerInfo is mandatory if customerinfo for this customer (CustomerNo) has not been transferred to PayEx earlier.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Name" type="NameAddressString72" minOccurs="1" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Full name for the customer in the accountsreceivablesystem. Used as display name</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="RegNo" type="RegNo" minOccurs="0" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Customer social security number/corporate identity number. Has to conform to country specific algorithms</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="Category" type="String10" minOccurs="0" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Can only be used if contracted with PayEx. Category has to be preconfigured in the accountsreceivable system</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="LanguageCode" type="ISO639" minOccurs="0" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Only used if preferred invoice language is other than accounts receivable default</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="VatNo" type="VatNumber" minOccurs="0" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Customer VAT registration number. Mandatory if reverse tax is used. Must conform to country specific algorithm</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="DistributionAddressInfo" minOccurs="1" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Contains customer distribution address information</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Addresses" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Contains customer addresses. If billingaddress is used and country code differs from legal address countrycode, a warning is created and the billingadress is not saved. Zipcode must meet the requirements for the specific country, if not an ERROR is created and the customer and its invoices will be rejected.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Address" type="Address" minOccurs="1" maxOccurs="2">
                                  <xs:annotation>
                                    <xs:documentation>Legal address is mandatory. Only supply billing address i different from legaladdress</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="E-MailAddress" type="Email" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Customers E-mail address. Mandatory if delivery is set to EMail or E-notification is active.</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="Cellphone" type="String15" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Customers mobile number msisdn</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="PaymentInfo" minOccurs="0" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Contains differing customer paymentinfo from accounts receivable default</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:choice>
                          <xs:element name="Clear" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Erases previously set paymentinfo on customer</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="Set" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Sets differing paymentinfo on customer, fully replaces earlier settings</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="PaymentType" type="ePaymentType" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Only used if customer payment type differs from accountsreceivable default. Payment type must be possible in accountsreceivable, if not a warning is returned and the payment type is not configured.</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="PaymentRules" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Containing differing customer payment rules.</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="PaymentRule" minOccurs="1" maxOccurs="unbounded">
                                        <xs:annotation>
                                          <xs:documentation>Customer differing paymentrule.</xs:documentation>
                                        </xs:annotation>
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Valid value of rule</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                          </xs:sequence>
                                          <xs:attribute name="Rule" type="ePaymentRule">
                                            <xs:annotation>
                                              <xs:documentation>Valid payment rule from enumeration ePaymentRule</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:choice>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="DunningInfo" minOccurs="0" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Contains differing customer dunninginfo from accountsreceivable default</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:choice>
                          <xs:element name="Clear">
                            <xs:annotation>
                              <xs:documentation>Erases previously set dunninginfo on customer</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="Set" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Sets differing dunninginfo on customer. Fully replaces previously set dunninginfo</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence
                                   minOccurs="1"
                                   maxOccurs="3">
                                <xs:element name="DunningRules" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Containing differing dunning rules</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="DunningRule" minOccurs="1" maxOccurs="unbounded">
                                        <xs:annotation>
                                          <xs:documentation>Contains a dunning rule and its value</xs:documentation>
                                        </xs:annotation>
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Valid value of rule</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                          </xs:sequence>
                                          <xs:attribute name="Rule" type="eDunningRule">
                                            <xs:annotation>
                                              <xs:documentation>Valid dunning rule from enumeration eDunningRule</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="DunningEnclosures" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Contains dunning enclosures</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
                                        <xs:annotation>
                                          <xs:documentation>Contains a dunning billtype and a predefined enclosure</xs:documentation>
                                        </xs:annotation>
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="EnclosureName" type="xs:string" maxOccurs="1" minOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Predefined enclosure name in PayEx distribution system</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                          </xs:sequence>
                                          <xs:attribute name="DunningBillType" type="eDunningBillType">
                                            <xs:annotation>
                                              <xs:documentation>The billtype from enumeration eDunningBillType wich to enclose the predefined enclosure</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:choice>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="DistributionInfo" minOccurs="0" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Contains differing customer distribution info from accountsreceivable default</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:choice>
                          <xs:element name="Clear" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Erases earlier set values</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="Set" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Sets differing distribution info on customer. Fully replaces previously set distribution info</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="BillTypes" minOccurs="1" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Containing billtypes with differing distribution from accounts receivable default</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
                                        <xs:annotation>
                                          <xs:documentation>Containing billtype with differing distribution</xs:documentation>
                                        </xs:annotation>
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="DistributionType" type="eDistributionType" maxOccurs="1" minOccurs="0">
                                              <xs:annotation>
                                                <xs:documentation>If distribution type is set to 'EMail' and the customer has not a e-mail address, a warning is created and DistributionType is set to 'Postal'</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                            <xs:element name="DistributionRules" minOccurs="0" maxOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Contains distribution rules for billtype</xs:documentation>
                                              </xs:annotation>
                                              <xs:complexType>
                                                <xs:sequence>
                                                  <xs:element name="DistributionRule" minOccurs="1" maxOccurs="unbounded">
                                                    <xs:annotation>
                                                      <xs:documentation>Contains a distribution rule and its value</xs:documentation>
                                                    </xs:annotation>
                                                    <xs:complexType>
                                                      <xs:sequence>
                                                        <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Valid value of distribution rule</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                      </xs:sequence>
                                                      <xs:attribute name="Rule" type="eDistributionRule">
                                                        <xs:annotation>
                                                          <xs:documentation>Valid rule from enumeration eDistributionRule</xs:documentation>
                                                        </xs:annotation>
                                                      </xs:attribute>
                                                    </xs:complexType>
                                                  </xs:element>
                                                </xs:sequence>
                                              </xs:complexType>
                                            </xs:element>
                                          </xs:sequence>
                                          <xs:attribute name="DistributionBillType" type="eDistributionBillType">
                                            <xs:annotation>
                                              <xs:documentation>The billtype from enumeration eDistributionBillType for wich distribution settings apply</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:choice>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="NotificationInfo" minOccurs="0" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Contains differing notification settings from accounts receivable default</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:choice>
                          <xs:element name="Clear" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Erases earlier set values</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="Set" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Sets differing notification info on customer. Fully replaces previously set notification info</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="BillTypes" minOccurs="1" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Contains billtypes with differing notification settings from accounts receivable default</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
                                        <xs:annotation>
                                          <xs:documentation>Contains billtype with differing notification settings</xs:documentation>
                                        </xs:annotation>
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="NotificationTextCode" type="xs:string" maxOccurs="1" minOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Preconfigured notifiction text code in PayEx distribution system</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                            <xs:element name="NotificationDistributionType" type="eNotificationDistributionType" maxOccurs="1" minOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Valid notification distribution type from enumeration eNotificationDistributionType</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                          </xs:sequence>
                                          <xs:attribute name="NotificationBillType" type="eNotificationBillType">
                                            <xs:annotation>
                                              <xs:documentation>The billtype from enumeration eNotificationBillType for wich notification setting apply</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:choice>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="LegalEntity" type="LegalEntity" use="optional">
                    <xs:annotation>
                      <xs:documentation>States the legal entity of the customer</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element minOccurs="0" maxOccurs="1" name="Invoices">
                <xs:annotation>
                  <xs:documentation>Contains 1-n invoices for the customer. Contracted service with PayEx determines if elementstructure InvoiceWithDistribution or InvoiceWithoutDistribution should be used</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceWithDistribution">
                      <xs:annotation>
                        <xs:documentation>Contains invoice information if your contracted service is with distribution of invoices</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Your unique identifier/invoice number of the invoice. Mandatory/Prohibited depending on contracted service with PayEx</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="ReferenceInfo" type="ReferenceInfo" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Containing additional invoice reference information</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="InvoiceDate" type="xs:date" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Invoice date from invoicing/billing system. Mandatory/Prohibited depending on contracted service with PayEx</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="PreferredDueDate" type="xs:date" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Used if a specific duedate is preferred. Number of days between distributiondate, wich it set by PayEx based on invoicedate and processingdate, and preferred due date, must exceed minimum payment terms for the specific country else minimum paymentterms for the country will be used. Number of days between distributiondate, wich it set by PayEx based on invoicedate and processingdate, and preferred due date, can not exceed maximum paymentterms (default 60 days), if true an ERROR is created and the customer and its invoices will be rejected.</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="Amount" type="Amount" maxOccurs="1" minOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Contains amounts and currency of the invoice. Positive amount is used for debit invoice. Negative amount is used for credit invoice</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="DistributionInfo" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Contains distribution and printing details for invoice</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="DCCode" type="String15" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Differing invoice layout from accountsreceivable default. Possible layouts must be preconfigured an contracted with PayEx</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="DistributionType" type="eDistributionType" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>If desired distribution type is different from set distribution type on customer or accounts receivable default</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="InvoicePrintInfo" minOccurs="1" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Contains printing info for one invoice document</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="InvoicePrintBlocks" type="StandardPrintBlocks" maxOccurs="1" minOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Containing print blocks printed in the main/standard area of the invoice layout</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Can only be used if specially contracted with PayEx. Containing print blocks printed in specified predefined areas of the invoice layout</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Can only be used if specially contracted with PayEx. Containing references to predefined printblocks in specified predefined areas of the invoice layout</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="SummaryPrintInfos" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Can only be used if specially contracted with PayEx. Containing print info for summary documents</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="SummaryPrintInfo" minOccurs="0" maxOccurs="2">
                                        <xs:annotation>
                                          <xs:documentation>Contains print info for a summary document</xs:documentation>
                                        </xs:annotation>
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="SummaryPrintBlocks" type="StandardPrintBlocks" maxOccurs="1" minOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Containing print blocks printed in the main/standard area of the summary layout</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                            <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Containing print blocks printed in specified predefined areas of the summary layout</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                            <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Containing references to predefined printblocks in specified predefined areas of the summary layout</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                          </xs:sequence>
                                          <xs:attribute name="Distribute" type="xs:boolean" use="required">
                                            <xs:annotation>
                                              <xs:documentation>Instruction to distribute the summary with the inoice or only be archived</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                          <xs:attribute name="SummaryType" type="eSummaryType">
                                            <xs:annotation>
                                              <xs:documentation>Valid summary type from enumeration eSummaryType</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="SpecificationPrintInfo" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Contains print info for a specification. Can only be used if specially contracted with PayEx</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="SpecificationPrintBlocks" type="SpecificationPrintBlocks" minOccurs="1" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Containing print blocks printed in the main/standard area of the specification layout</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Containing print blocks printed in specified predefined areas of the specification layout</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Containing references to predefined printblocks in specified predefined areas of the specification layout</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                    </xs:sequence>
                                    <xs:attribute name="Distribute" type="xs:boolean" use="required">
                                      <xs:annotation>
                                        <xs:documentation>Instruction to distribute the specification with the inoice or only be archived</xs:documentation>
                                      </xs:annotation>
                                    </xs:attribute>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="Enclosures" maxOccurs="1" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>Contains predefined/preconfigured enclosures to be enclosed with invoice. Can only be used if specially contracted with PayEx</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element minOccurs="1" maxOccurs="4" name="Enclosure" type="String30">
                                        <xs:annotation>
                                          <xs:documentation>Reference to the predefined/preconfigured enclosure in PayEx printing and distribution system</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="EDIInfo" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Only relevant if distribution is EInvoiceB2B. Can only be used if specially contracted with PayEx</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="VAN" type="xs:string" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Customer VAN identifier (OperatorId)</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="InterChangeRecipient" type="xs:string" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Routing address. EAN</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="SellerId" type="xs:string" minOccurs="1" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>NAD_SU/Sellerparty. EAN/Corporate identity number</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="BuyerId" type="xs:string" minOccurs="1" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>NAD_BY/Buyerparty. EAN/Corporate identity number</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="InvoiceAddressee" type="xs:string" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>NAD_ITO/InvoiceNote. EAN/Corporate identity number</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="InvoiceRecipient" type="xs:string" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>NAD_IV/InvoiceNote. EAN/Corporate identity number</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="DeliveryAddressee" type="xs:string" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>NAD_DP/Deliveryaddress. EAN/Corporate identity number/Name</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="DeliveryRecipient" type="xs:string" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>NAD_CN/InvoiceNote. EAN/Corporate identity number/Name</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="InvoiceReference" type="xs:string" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>RFF_IV/InitialInvoiceDocumentReference. Reference to invoice</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="AgreementReference" type="xs:string" minOccurs="0" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>RFF_CT/AdditionalDocumentReference. Reference to agreement</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="BuyerReference" type="xs:string" minOccurs="0" maxOccurs="2">
                                        <xs:annotation>
                                          <xs:documentation>RFF_CR/RequisitionistDocumentReference. Reference to buyer department and or invividual</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="EDIOrderRows" maxOccurs="1" minOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Containing invoice info specified in edi invoice</xs:documentation>
                                        </xs:annotation>
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="EDIVatGroup" minOccurs="1" maxOccurs="unbounded">
                                              <xs:annotation>
                                                <xs:documentation>Containing one VAT group and associated invoicerows</xs:documentation>
                                              </xs:annotation>
                                              <xs:complexType>
                                                <xs:sequence>
                                                  <xs:element name="VatInfo" type="VatInfo" maxOccurs="1" minOccurs="1">
                                                  </xs:element>
                                                  <xs:element minOccurs="1" name="EDIOrderRow" maxOccurs="unbounded">
                                                    <xs:annotation>
                                                      <xs:documentation>Containing information about one edi inovice row</xs:documentation>
                                                    </xs:annotation>
                                                    <xs:complexType>
                                                      <xs:sequence>
                                                        <xs:element name="ArticleId" type="String35" minOccurs="0" maxOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Optional articleid associated to product/service</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                        <xs:element name="ProductGroup" type="String10" minOccurs="0" maxOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Optional productgroup associated to product/service</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                        <xs:element name="ProductDate" type="xs:date" minOccurs="0" maxOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Optional date of product/service</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                        <xs:element name="Text" type="String35" maxOccurs="1" minOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Mandatory description of product/service</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                        <xs:element name="Quantity" type="xs:integer" maxOccurs="1" minOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Mandatory quantity of the invoice product/service</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                        <xs:element name="Unit" type="String10" maxOccurs="1" minOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Mandatory unit of quantity</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                        <xs:element name="UnitPriceExclVat" type="Money" maxOccurs="1" minOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Mandatory unitprice exclusive of VAT</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                        <xs:element name="AmountExclVat" type="Money" maxOccurs="1" minOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Total orderrow amount exclusive of VAT</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                        <xs:element name="ContractDef" type="String35" minOccurs="0" maxOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Optional definition of agreement</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                        <xs:element name="ContractType" type="String35" maxOccurs="1" minOccurs="1">
                                                          <xs:annotation>
                                                            <xs:documentation>Mandatory type of agreement</xs:documentation>
                                                          </xs:annotation>
                                                        </xs:element>
                                                      </xs:sequence>
                                                    </xs:complexType>
                                                  </xs:element>
                                                </xs:sequence>
                                              </xs:complexType>
                                            </xs:element>
                                          </xs:sequence>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="Notification" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Containing differing notification than customer setting or accountsreceivable default</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="NotificationTextCode" type="xs:string" maxOccurs="1" minOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Preconfigured notifiction text code in PayEx distribution system</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                      <xs:element name="NotificationDistributionType" type="eNotificationDistributionType" maxOccurs="1" minOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>Valid notification distribution type from enumeration eNotificationDistributionType</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="CreditInstructions" type="CreditInstructions" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Containing instructions to settle the credit invoice against specific debit invoices</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceWithoutDistribution">
                      <xs:annotation>
                        <xs:documentation>Contains invoice information if your contracted service is with distribution of invoices</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Your unique identifier/invoice number from the invoicing/billing system</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="ReferenceInfo" type="ReferenceInfo" minOccurs="0" maxOccurs="1">
                            <xs:annotation> 
                              <xs:documentation>Containing additional invoice reference information</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="InvoiceDate" type="xs:date" maxOccurs="1" minOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Invoice date from invoicing system</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="DueDate" type="xs:date" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Due date for the invoice. If the invoice has a positive amount (debit invoice) a duedate must be supplied, otherwise an ERROR is created and customer and its invoices will be rejected. Duedate must be equal or greater than the invoice date, otherwise an ERROR is created and customer and its invoices will be rejected.</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="DistributionDate" type="xs:date" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Date of distribution for the invoice</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="PaymentRefNo" type="String25" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Unique paymentreference (OCR) identifying invoice. Algorithm for creating paymentreferences has to be approved by PayEx</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="Amount" type="Amount" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Specifies the amount and currency of the invoice. Positive amount is used for debit invoice. Negative amount is used for credit invoice. Must exist a bank account for the specified currency, otherwise an ERROR is created and customer and its invoices will be rejected.</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="CreditInstructions" type="CreditInstructions" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>Containing instructions to settle the credit invoice against specific debit invoices. Only possible to use for credit invoice</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="Version" type="xs:string" fixed="2.0" use="required">
        <xs:annotation>
          <xs:documentation>Describes which version of the xsd the xml is validated against. XSD validation should be done before sending xml file 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 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/accountsreceivable</xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
  </xs:element>

Simple type Money

Notes

Formal declaration in XSD source form

  <xs:simpleType name="Money">
    <xs:annotation><xs:documentation>Money is an decimal that is used to describe the amount in some way</xs:documentation></xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:fractionDigits value="2"/>
      <xs:minInclusive value="-100000000"/>
      <xs:maxInclusive
           value="100000000"/>
    </xs:restriction>
  </xs:simpleType>

Simple type CreditMoney

Formal declaration in XSD source form

  <xs:simpleType name="CreditMoney">
    <xs:restriction base="xs:decimal">
      <xs:fractionDigits value="2"/>
      <xs:minInclusive value="0.01"/>
      <xs:maxInclusive
           value="100000000"/>
    </xs:restriction>
  </xs:simpleType>

Simple type Identifier15

Formal declaration in XSD source form

  <xs:simpleType name="Identifier15">
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z0-9äåöÄÅÖ&/_ -.]*"/>
      <xs:minLength value="1"/>
      <xs:maxLength value="15"/>
    </xs:restriction>
  </xs:simpleType>

Simple type ISO3166

Formal declaration in XSD source form

  <xs:simpleType name="ISO3166">
    <xs:restriction base="xs:string">
      <xs:pattern value="[A-Z]*"/>
      <xs:minLength value="2"/>
      <xs:maxLength value="2"/>
    </xs:restriction>
  </xs:simpleType>

Simple type CompanyNumber

Formal declaration in XSD source form

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

Simple type ISO639

Formal declaration in XSD source form

  <xs:simpleType name="ISO639">
    <xs:restriction base="PXString">
      <xs:enumeration value="SV"/>
      <xs:enumeration value="NO"/>
      <xs:enumeration value="DA"/>
      <xs:enumeration value="FI"/>
      <xs:enumeration value="EN"/>
    </xs:restriction>
  </xs:simpleType>

Simple type String35

Formal declaration in XSD source form

  <xs:simpleType name="String35">
    <xs:restriction base="PXString">
      <xs:maxLength
           value="35"/>
    </xs:restriction>
  </xs:simpleType>

Simple type Email

Formal declaration in XSD source form

  <xs:simpleType name="Email">
    <xs:restriction base="PXString">
      <xs:maxLength
           value="60"/>
    </xs:restriction>
  </xs:simpleType>

Simple type String15

Formal declaration in XSD source form

  <xs:simpleType name="String15">
    <xs:restriction base="PXString">
      <xs:maxLength value="15"/>
    </xs:restriction>
  </xs:simpleType>

Simple type ZipCode

Formal declaration in XSD source form

  <xs:simpleType name="ZipCode">
    <xs:restriction base="xs:string">
      <xs:pattern value="[A-Z0-9\-]+"/>
      <xs:maxLength value="9"/>
    </xs:restriction>
  </xs:simpleType>

Simple type ePaymentType

Notes

Formal declaration in XSD source form

  <xs:simpleType name="ePaymentType">
        <xs:annotation>
          <xs:documentation>
          Refers to a Swedish Plusgiro account
          Refers to a Swedish Bankgiro account
          Refers to a Norwegian bank account</xs:documentation>
        </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="PGSE">
      </xs:enumeration>
      <xs:enumeration value="BGSE">
      </xs:enumeration>
      <xs:enumeration value="BKNO">
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Simple type VatNumber

Formal declaration in XSD source form

  <xs:simpleType name="VatNumber">
    <xs:restriction base="xs:string">
      <xs:pattern value="[A-Z]{2}.*"/>
      <xs:minLength value="7"/>
      <xs:maxLength value="14"/>
    </xs:restriction>
  </xs:simpleType>

Simple type eDistributionType

Formal declaration in XSD source form

  <xs:simpleType name="eDistributionType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="PostalService">
        <xs:annotation>
          <xs:documentation>Distribution is made by postal service</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EMail">
        <xs:annotation>
          <xs:documentation>Distribution is made by E-mail</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EInvoiceB2B">
        <xs:annotation>
          <xs:documentation>Distribution is made by B2B EDI</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Archive">
        <xs:annotation>
          <xs:documentation>No distribution, only archiving</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Simple type String50

Formal declaration in XSD source form

  <xs:simpleType name="String50">
    <xs:restriction base="xs:string">
      <xs:maxLength
           value="50"/>
    </xs:restriction>
  </xs:simpleType>

Complex type Address

Formal declaration in XSD source form

  <xs:complexType name="Address">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" type="NameAddressString72" name="Addressee">
        <xs:annotation>
          <xs:documentation>Full name of addressee</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StreetAddress" type="NameAddressString35" minOccurs="0" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:documentation>Street address</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ZipCode" type="ZipCode" maxOccurs="1" minOccurs="1" nillable="false">
        <xs:annotation>
          <xs:documentation>Zipcode conforming to country standard</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="City" type="NameAddressString27" minOccurs="1" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:documentation>City</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CoAddress" type="NameAddressString35" minOccurs="0" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:documentation>Care of address</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CountryCode" type="ISO3166" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Country code accoriding to ISO 3166</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="AddressType" type="AddressType" use="required">
      <xs:annotation>
        <xs:documentation>Valid address type from enumeration AddressType</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

Simple type AddressType

Formal declaration in XSD source form

  <xs:simpleType name="AddressType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="LegalAddress">
        <xs:annotation>
          <xs:documentation>Legal address. Mandatory</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BillingAddress">
        <xs:annotation>
          <xs:documentation>Billing address. Should only be supplied if it differs from legal address</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Complex type Amount

Notes

Formal declaration in XSD source form

  <xs:complexType name="Amount">
    <xs:annotation>
      <xs:documentation>Contaning amount excl vat and vat amount</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="AmountExclVat" type="Money" nillable="false">
        <xs:annotation>
          <xs:documentation>Amount exclusive of VAT</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="1" maxOccurs="1" name="VatAmount" type="Money" nillable="false">
        <xs:annotation>
          <xs:documentation>VAT amount</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="Currency" type="eCurrencyType" use="required">
      <xs:annotation>
        <xs:documentation>Valid currency from enumeration eCurrencyType</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

Simple type PXFactoringServiceCode

Formal declaration in XSD source form

  <xs:simpleType name="PXFactoringServiceCode">
    <xs:restriction base="xs:string">
      <xs:enumeration value="K">
        <xs:annotation>
          <xs:documentation>Only valid for contracted factoringservice. Indication to the contracted factoring company to buy the invoice</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Simple type VatRate

Notes

Formal declaration in XSD source form

  <xs:simpleType name="VatRate">
    <xs:annotation>
      <xs:documentation>Supported VAT rates</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:enumeration value="0.00"/>
      <xs:enumeration value="6.00"/>
      <xs:enumeration value="12.00"/>
      <xs:enumeration
           value="25.00"/>
      <xs:enumeration value="14.00"/>
      <xs:enumeration value="8.00"/>
      <xs:enumeration
           value="22.0"/>
    </xs:restriction>
  </xs:simpleType>

Simple type String10

Formal declaration in XSD source form

  <xs:simpleType name="String10">
    <xs:restriction base="PXString">
      <xs:maxLength value="10"/>
    </xs:restriction>
  </xs:simpleType>

Simple type String30

Formal declaration in XSD source form

  <xs:simpleType name="String30">
    <xs:restriction base="PXString">
      <xs:maxLength
           value="30"/>
    </xs:restriction>
  </xs:simpleType>

Simple type String25

Formal declaration in XSD source form

  <xs:simpleType name="String25">
    <xs:restriction base="PXString">
      <xs:maxLength
           value="25"/>
    </xs:restriction>
  </xs:simpleType>

Simple type NameAddressString35

Formal declaration in XSD source form

  <xs:simpleType name="NameAddressString35">
    <xs:restriction base="PXNameAddressString">
      <xs:maxLength
           value="35"/>
    </xs:restriction>
  </xs:simpleType>

Simple type NameAddressString72

Formal declaration in XSD source form

  <xs:simpleType name="NameAddressString72">
    <xs:restriction base="PXNameAddressString">
      <xs:minLength value="1"/>
      <xs:maxLength
           value="72"/>
    </xs:restriction>
  </xs:simpleType>

Simple type NameAddressString27

Formal declaration in XSD source form

  <xs:simpleType name="NameAddressString27">
    <xs:restriction base="PXNameAddressString">
      <xs:minLength value="1"/>
      <xs:maxLength
           value="27"/>
    </xs:restriction>
  </xs:simpleType>

Simple type PXString

Formal declaration in XSD source form

  <xs:simpleType name="PXString">
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z0-9_:!;"#<>=?\[\]@{}´

 %-/À-ÖØ-öø-ú]*"/>
      <xs:minLength value="1"/>
    </xs:restriction>
  </xs:simpleType>

Simple type PXNameAddressString

Formal declaration in XSD source form

  <xs:simpleType name="PXNameAddressString">
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z0-9_:!;"#<>=?\[\]@{}´

 %-/À-ÖØ-öø-úü]*"/>
    </xs:restriction>
  </xs:simpleType>

Simple type TableType

Formal declaration in XSD source form

  <xs:simpleType name="TableType">
    <xs:restriction base="xs:string">
      <xs:pattern value="[A-Z]1|[A-Z]2|[A-Z]3|[A-Z]4|[A-Z]5|[A-Z]6|[A-Z]7|[A-Z]8|[A-Z]9|[A-Z]10|[A-Z]11|[A-Z]12"/>
    </xs:restriction>
  </xs:simpleType>

Complex type ReferenceInfo

Formal declaration in XSD source form

  <xs:complexType name="ReferenceInfo">
    <xs:sequence>
      <xs:element name="ExternalInvoiceId" type="String50" maxOccurs="1" minOccurs="0" nillable="false">
        <xs:annotation>
          <xs:documentation>Additional unique invoice identfier in accountsreceivable</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExternalReference" type="String50" maxOccurs="1" minOccurs="0" nillable="false">
        <xs:annotation>
          <xs:documentation>Optional reference text</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InvoiceReferenceText" type="String25" maxOccurs="1" minOccurs="0" nillable="false">
        <xs:annotation>
          <xs:documentation>General text describing the product/service invoiced</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Complex type RegNo

Notes

Formal declaration in XSD source form

  <xs:complexType name="RegNo">
    <xs:annotation>
      <xs:documentation>Social security number/Corporate identity number conforming to country standard</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="String15">
        <xs:attribute name="CountryCode" type="ISO3166" use="required">
          <xs:annotation>
            <xs:documentation>Nationality of RegNo according to ISO3166</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

Simple type LegalEntity

Notes

Formal declaration in XSD source form

  <xs:simpleType name="LegalEntity">
    <xs:annotation>
      <xs:documentation>Legal entity of the customer.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Private"/>
      <xs:enumeration value="Business"/>
    </xs:restriction>
  </xs:simpleType>

Simple type eNotificationDistributionType

Formal declaration in XSD source form

  <xs:simpleType name="eNotificationDistributionType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="EMail">
        <xs:annotation>
          <xs:documentation>Notification is made by E-Mail</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Complex type VatInfo

Formal declaration in XSD source form

  <xs:complexType name="VatInfo">
    <xs:sequence>
      <xs:element name="VatAmount" type="Money" maxOccurs="1" minOccurs="1">
        <xs:annotation>
          <xs:documentation>VAT amount</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VatRate" type="VatRate" maxOccurs="1" minOccurs="1">
        <xs:annotation>
          <xs:documentation>VAT rate associated with VatAmount</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Simple type eDunningBillType

Formal declaration in XSD source form

  <xs:simpleType name="eDunningBillType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="SE_10">
        <xs:annotation>
          <xs:documentation>Swedish reminder 1</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SE_20">
        <xs:annotation>
          <xs:documentation>Swedish reminder 2</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Simple type fInvoiceNo

Formal declaration in XSD source form

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

Simple type eDistributionBillType

Formal declaration in XSD source form

  <xs:simpleType name="eDistributionBillType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="I_Invoice">
        <xs:annotation>
          <xs:documentation>Referes to invoice</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Simple type eDunningRule

Formal declaration in XSD source form

  <xs:simpleType name="eDunningRule">
    <xs:restriction base="xs:string">
      <xs:enumeration value="I_PenaltyIntrAndFeeLimit">
        <xs:annotation>
          <xs:documentation>Instruction to credit non payed penaltyinterest and fees below limit amount. Set value to a positive amount (integer) </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I_PaymentTerms">
        <xs:annotation>
          <xs:documentation>Payment terms for invoice. Set value to number of days (integer)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Simple type eNotificationBillType

Formal declaration in XSD source form

  <xs:simpleType name="eNotificationBillType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="I_Invoice">
        <xs:annotation>
          <xs:documentation>Referes to Invoice</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Simple type eCurrencyType

Formal declaration in XSD source form

  <xs:simpleType name="eCurrencyType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="SEK"/>
      <xs:enumeration value="NOK"/>
      <xs:enumeration value="DKK"/>
      <xs:enumeration value="EUR"/>
    </xs:restriction>
  </xs:simpleType>

Complex type CreditInstructions

Notes

Formal declaration in XSD source form

  <xs:complexType name="CreditInstructions">
    <xs:annotation>
      <xs:documentation>Containing settle instructions for a credit invoice. Can only be used if specially contracted with PayEx</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CreditInstruction" minOccurs="1" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Containing 1 settle instruction for a credit invoice</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="InvoiceIdentifier" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>Containing either InvoiceNo or ExternalInvoiceId to identify a debit invoice</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:choice>
                  <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                      <xs:documentation>InvoiceNo identifying a debit invoice</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="ExternalInvoiceId" type="String50" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                      <xs:documentation>ExternalInvoiceId identifying a debit invoice</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:choice>
              </xs:complexType>
            </xs:element>
            <xs:element name="CreditAmount" type="CreditMoney">
              <xs:annotation>
                <xs:documentation>The amount to credit</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="SendCopy" type="xs:boolean" use="required">
            <xs:annotation>
              <xs:documentation>Set to true if a adjusted "invoice copy" shall be sent to the customer after the credit has been made</xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Complex type Columns

Notes

Formal declaration in XSD source form

  <xs:complexType name="Columns">
    <xs:annotation>
      <xs:documentation>Containing 1-12 columns</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Column" type="Column" minOccurs="1" maxOccurs="12"/>
    </xs:sequence>
  </xs:complexType>

Simple type ePaymentRule

Formal declaration in XSD source form

  <xs:simpleType name="ePaymentRule">
    <xs:restriction base="xs:string">
      <xs:enumeration value="UseBGAGSE">
        <xs:annotation>
          <xs:documentation>Activate or deactivates direct debit as part of the "verified payment" service. Set Value to 1 for activation and Value to 0 for deactivation</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Simple type eDistributionRule

Formal declaration in XSD source form

  <xs:simpleType name="eDistributionRule">
    <xs:restriction base="xs:string">
      <xs:enumeration value="UseEInvoiceB2CSE">
        <xs:annotation>
          <xs:documentation>Activate or deactivates EInvoiceB2CSE as part of the "verified distribution" service. Set Value to 1 for activation and Value to 0 for deactivation</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Simple type eColumnNo

Formal declaration in XSD source form

  
  <xs:simpleType name="eColumnNo">
    <xs:restriction base="xs:unsignedShort">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Refers to column 1</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Refers to column 2</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Refers to column 3</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Refers to column 4</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Refers to column 5</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>Refers to column 6</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="7">
        <xs:annotation>
          <xs:documentation>Refers to column 7</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="8">
        <xs:annotation>
          <xs:documentation>Refers to column 8</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="9">
        <xs:annotation>
          <xs:documentation>Refers to column 9</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:documentation>Refers to column 10</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="11">
        <xs:annotation>
          <xs:documentation>Refers to column 11</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12">
        <xs:annotation>
          <xs:documentation>Refers to column 12</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Complex type Column

Formal declaration in XSD source form

  <xs:complexType name="Column">
    <xs:sequence>
      <xs:element name="Text" type="xs:string" maxOccurs="1" minOccurs="1">
        <xs:annotation>
          <xs:documentation>Text printed in cell</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ColumnNo" type="eColumnNo" use="required"/>
  </xs:complexType>

Complex type BasePrintBlock

Notes

Formal declaration in XSD source form

  <xs:complexType name="BasePrintBlock">
    <xs:annotation>
      <xs:documentation>A base printblock is a predefined tabletype at PayEx. Wich tabletypes that are enabled are described in a separate document. You refer the requested tabletype by the attribute "TableType"</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="HeadLine" type="xs:string" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Optional printblock headline</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubOrderBlocks" minOccurs="1" maxOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="SubOrderBlock" minOccurs="1" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element minOccurs="0" name="HeadLine" maxOccurs="1" type="xs:string">
                    <xs:annotation>
                      <xs:documentation>Optional suborderblock headline</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element minOccurs="0" maxOccurs="1" name="ColumnHeadLine">
                    <xs:annotation>
                      <xs:documentation>Optional column headline(s)</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Columns" type="Columns" maxOccurs="1" minOccurs="1">
                          <xs:annotation>
                            <xs:documentation>Containing cells for column headline row of the refered tabletype</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="Rows" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                      <xs:documentation>Containing rows</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element minOccurs="1" name="Row" maxOccurs="unbounded">
                          <xs:annotation>
                            <xs:documentation>Containing one row</xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="Columns" type="Columns" maxOccurs="1" minOccurs="1">
                                <xs:annotation>
                                  <xs:documentation>Containing cells for one row of the refered tabletype</xs:documentation>
                                </xs:annotation>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="SummaryRow" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                      <xs:documentation>Optional summary row of refered tabletype</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Columns" type="Columns" minOccurs="1" maxOccurs="1">
                          <xs:annotation>
                            <xs:documentation>Containing cells for summary row of the refered tabletype</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="TableType" type="TableType" use="required">
                  <xs:annotation>
                    <xs:documentation>The name of the predefined table type in PayEx print system.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Complex type PrintBlockConfig

Formal declaration in XSD source form

  <xs:complexType name="PrintBlockConfig">
    <xs:sequence>
    </xs:sequence>
    <xs:attribute name="PrecedingPageBreak" type="xs:boolean" use="optional">
      <xs:annotation>
        <xs:documentation>Instruction to start printing the printblock on a new page</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="PrecedingSheetBreak" type="xs:boolean" use="optional">
      <xs:annotation>
        <xs:documentation>Instruction to start printing the printblock on a new sheet</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

Complex type PredefinedPrintBlocks

Formal declaration in XSD source form

  <xs:complexType name="PredefinedPrintBlocks">
    <xs:sequence>
      <xs:element name="PredefinedPrintBlock" minOccurs="1" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Containing predefined print block printed in specified predefined area in layout</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:choice>
            <xs:element name="Image" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>Containing predefined image printed in specified predefined area in layout</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ImageName" type="xs:string" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                      <xs:documentation>Name of predefined image in PayEx print system</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="ImageAreaName" type="xs:string" use="required">
                  <xs:annotation>
                    <xs:documentation>Name of predefined image area in layout</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
            <xs:element name="Paragraph" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation>Containing predefined paragraph printed in specified predifined area in layout</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ParagraphName" type="xs:string" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                      <xs:documentation>Name of predefined paragraph in PayEx print system</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="ParagraphAreaName" type="xs:string" use="required">
                  <xs:annotation>
                    <xs:documentation>Name of predefined paragraph area name in layout</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:choice>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Complex type ExtraPrintBlocks

Formal declaration in XSD source form

  <xs:complexType name="ExtraPrintBlocks">
    <xs:sequence>
      <xs:element name="ExtraPrintBlock" minOccurs="1" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Containing print block printed in specified predefined area in layout</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="BasePrintBlock" type="BasePrintBlock" minOccurs="1" maxOccurs="1"/>
          </xs:sequence>
          <xs:attribute name="PrintBlockAreaName" type="xs:string" use="required">
            <xs:annotation>
              <xs:documentation>Name of predefined area in layout</xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Complex type StandardPrintBlocks

Formal declaration in XSD source form

  <xs:complexType name="StandardPrintBlocks">
    <xs:sequence>
      <xs:element name="StandardPrintBlock" minOccurs="1" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="BasePrintBlock" type="BasePrintBlock" maxOccurs="1" minOccurs="1"/>
            <xs:element name="PrintBlockConfig" type="PrintBlockConfig" minOccurs="0" maxOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Complex type SpecificationPrintBlocks

Formal declaration in XSD source form

  <xs:complexType name="SpecificationPrintBlocks">
    <xs:sequence>
      <xs:element name="SpecificationPrintBlock" minOccurs="1" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="BasePrintBlock" type="BasePrintBlock" maxOccurs="1" minOccurs="1"/>
            <xs:element name="PrintBlockConfig" type="PrintBlockConfig" maxOccurs="1" minOccurs="1"/>
          </xs:sequence>
          <xs:attribute name="PrintBlockIdentifier" type="xs:string"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Simple type eSummaryType

Formal declaration in XSD source form

  <xs:simpleType name="eSummaryType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="SA">
        <xs:annotation>
          <xs:documentation>Summary</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SSA">
        <xs:annotation>
          <xs:documentation>Aggregated summary</xs:documentation>
        </xs:annotation> </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

Created by Helge Dahl on 2018/12/07 11:25