<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. Distribution date has to be in the future. Distribution date has to be a bank day</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 accounts receivable 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 customer info 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 accounts receivable system. 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="LegalStatus" type="LegalStatus" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Set legal status of the customer</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 accounts receivable system</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="InterCompanyCode" type="String15" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Relating to interactions between two or more internal companies</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VatType" type="VatType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies if/where the customer liable to pay VAT</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 billing address 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 legal address</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:element name="ProtectedIdentity" type="xs:boolean" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Customer has ProtectedIdentity, postal distribution handled by Skatteverket</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 payment info 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 payment info on customer</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Set" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Sets differing payment info 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 account sreceivable 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="RecurringCardInfo" type="Card" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Info about token and expiry date</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 payment rule.</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 dunning info from accounts receivable default</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element name="Clear">
<xs:annotation>
<xs:documentation>Erases previously set dunning info on customer</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Set" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Sets differing dunning info on customer. Fully replaces previously set dunning info</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 bill type 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 bill type from enumeration eDunningBillType which 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 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 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 bill types 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 bill type 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 bill type</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 bill type from enumeration eDistributionBillType for which 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 bill types 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 bill type 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 notification 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 bill type from enumeration eNotificationBillType for which 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 element structure 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 distribution date, which 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 accounts receivable 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 print blocks 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 print blocks 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 invoice 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 print blocks 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 invoice 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 individual</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ExternalReferenceURL" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>URL for example to invoiceground</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 invoice rows</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 invoice row</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ArticleId" type="String35" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Optional article id associated to product/service</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ProductGroup" type="String35" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Optional product group 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="String300" maxOccurs="1" minOccurs="1">
<xs:annotation>
<xs:documentation>Mandatory description of product/service</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Quantity" type="Decimal5" 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 unit price exclusive of VAT</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AmountExclVat" type="Money" maxOccurs="1" minOccurs="1">
<xs:annotation>
<xs:documentation>Total order row 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 accounts receivable 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 notification 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 payment reference (OCR) identifying invoice. Algorithm for creating payment references 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:element name="CashDiscountInfo" type="CashDiscountInfo" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Contains info for CashDiscount on the 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="Version" 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 accounts receivable number 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/accounts receivable</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>