Main.Invoicing.invoice-service.Implementation guide.Technical reference.Cusin.XML Schema specification - XML Schema description

Page of - pēdējo reizi mainījis dap laiks 2023/04/04 16:12

XML Schema description

dap

2023/04/04 16:12

Satura rādītājs

CUSIN

<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>

Money

<xs:simpleType name="Money">

<xs:restriction base="xs:decimal">

<xs:fractionDigits value="2"/>

<xs:minInclusive value="-500000000"/>

<xs:maxInclusive

value="500000000"/>

</xs:restriction>

</xs:simpleType>

CreditMoney

<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>

CashDiscountMoney

<xs:simpleType name="CashDiscountMoney">

<xs:restriction base="xs:decimal">

<xs:fractionDigits value="2"/>

<xs:minInclusive value="0.01"/>

<xs:maxInclusive

value="100000000"/>

</xs:restriction>

</xs:simpleType>

Decimal5

<xs:simpleType name="Decimal5">

<xs:restriction base="xs:decimal">

<xs:fractionDigits value="5"/>

</xs:restriction>

</xs:simpleType>

Identifier15

<xs:simpleType name="Identifier15">

<xs:restriction base="xs:string">

<xs:pattern value="[a-zA-Z0-9äåö&Auml;&Aring;&Ouml;&/_ -.]*"/>

<xs:minLength value="1"/>

<xs:maxLength value="15"/>

</xs:restriction>

</xs:simpleType>

ISO3166

<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>

CompanyNumber

<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>

ISO639

<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>

VatType

<xs:simpleType name="VatType">

<xs:restriction base="PXString">

<xs:enumeration value="Normal">

<xs:annotation>

<xs:documentation>Customer is liable to pay taxes in the same country as the Company</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="ReverseVatLiability_Eu">

<xs:annotation>

<xs:documentation>Customer operates in another EU country and is obliged to pay VAT in that country</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="NotSubjectToVat_Eu">

<xs:annotation>

<xs:documentation>Customer operates in another EU country and is not subject to VAT</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="NotSubjectToVat_NonEu">

<xs:annotation>

<xs:documentation>Customer operates in another country outside the EU and is not subject to VAT</xs:documentation>

</xs:annotation>

</xs:enumeration>

</xs:restriction>

</xs:simpleType>

String35

<xs:simpleType name="String35">

<xs:restriction base="PXString">

<xs:maxLength

value="35"/>

</xs:restriction>

</xs:simpleType>

Email

<xs:simpleType name="Email">

<xs:restriction base="PXString">

<xs:maxLength

value="254"/>

</xs:restriction>

</xs:simpleType>

String15

<xs:simpleType name="String15">

<xs:restriction base="PXString">

<xs:maxLength value="15"/>

</xs:restriction>

</xs:simpleType>

ZipCode

<xs:simpleType name="ZipCode">

<xs:restriction base="xs:string">

<xs:pattern value="[A-Z0-9\-]+"/>

<xs:maxLength value="9"/>

</xs:restriction>

</xs:simpleType>

ePaymentType

<xs:simpleType name="ePaymentType">

<xs:restriction base="xs:string">

<xs:enumeration value="PGSE">

<xs:annotation>

<xs:documentation>Refers to a Swedish Plusgiro account</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="BGSE">

<xs:annotation>

<xs:documentation>Refers to a Swedish Bankgiro account</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="BKNO">

<xs:annotation>

<xs:documentation>Refers to a Norwegian bank account</xs:documentation>

</xs:annotation>

</xs:enumeration>

</xs:restriction>

</xs:simpleType>

VatNumber

<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>

eDistributionType

<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>

String50

<xs:simpleType name="String50">

<xs:restriction base="xs:string">

<xs:maxLength

value="50"/>

</xs:restriction>

</xs:simpleType>

String100

<xs:simpleType name="String100">

<xs:restriction base="xs:string">

<xs:maxLength

value="100"/>

</xs:restriction>

</xs:simpleType>

String200

<xs:simpleType name="String200">

<xs:restriction base="xs:string">

<xs:maxLength

value="200"/>

</xs:restriction>

</xs:simpleType>

String300

<xs:simpleType name="String300">

<xs:restriction base="PXString">

<xs:maxLength

value="300"/>

</xs:restriction>

</xs:simpleType>

Address

<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="NameAddressString72EmptyAllowed" 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="NameAddressString72EmptyAllowed" 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 according 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>

AddressType

<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>

Amount

Notes

<xs:complexType name="Amount">

<xs:annotation>

<xs:documentation>Containing 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>

PXFactoringServiceCode

<xs:simpleType name="PXFactoringServiceCode">

<xs:restriction base="xs:string">

<xs:enumeration value="K">

<xs:annotation>

<xs:documentation>Only valid for contracted factoring service. Indication to the contracted factoring company to buy the invoice</xs:documentation>

</xs:annotation>

</xs:enumeration>

</xs:restriction>

</xs:simpleType>

VatRate

Notes

<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:enumeration

value="24.00"/>

<xs:enumeration value="10.00"/>

</xs:restriction>

</xs:simpleType>

String10

<xs:simpleType name="String10">

<xs:restriction base="PXString">

<xs:maxLength value="10"/>

</xs:restriction>

</xs:simpleType>

String30

<xs:simpleType name="String30">

<xs:restriction base="PXString">

<xs:maxLength

value="30"/>

</xs:restriction>

</xs:simpleType>

String25

<xs:simpleType name="String25">

<xs:restriction base="PXString">

<xs:maxLength

value="25"/>

</xs:restriction>

</xs:simpleType>

NameAddressString72

<xs:simpleType name="NameAddressString72">

<xs:restriction base="PXNameAddressString">

<xs:minLength value="1"/>

<xs:maxLength

value="72"/>

</xs:restriction>

</xs:simpleType>

NameAddressString72EmptyAllowed

<xs:simpleType name="NameAddressString72EmptyAllowed">

<xs:restriction base="PXNameAddressString">

<xs:maxLength

value="72"/>

</xs:restriction>

</xs:simpleType>

NameAddressString27

<xs:simpleType name="NameAddressString27">

<xs:restriction base="PXNameAddressString">

<xs:minLength value="1"/>

<xs:maxLength

value="27"/>

</xs:restriction>

</xs:simpleType>

PXString

<xs:simpleType name="PXString">

<xs:restriction base="xs:string">

<xs:pattern value="[a-zA-Z0-9_:!;"#<>=?\[\]@{}´ %'-/&Agrave;-&Ouml;&Oslash;-öø-úü&]*"/>

<xs:minLength value="1"/>

</xs:restriction>

</xs:simpleType>

PXNameAddressString

<xs:simpleType name="PXNameAddressString">

<xs:restriction base="xs:string">

<xs:pattern value="[a-zA-Z0-9&Agrave;-ɏЀ-ӿḀ-ỿ_:!;"#<>=?\[\]@{}´ %'-/&]*"/>

</xs:restriction>

</xs:simpleType>

TableType

<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>

ReferenceInfo

<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 identifier in accounts receivable</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="String200" 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>

RegNo

Notes

<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>

LegalEntity

Notes

<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>

LegalStatus

Notes

<xs:simpleType name="LegalStatus">

<xs:annotation>

<xs:documentation>Use of LegalStatus is mainly used to register customer as deceased</xs:documentation>

</xs:annotation>

<xs:restriction base="xs:string">

<xs:enumeration value="Active">

<xs:annotation>

<xs:documentation>The customer is active (default value if not set)</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="Deceased">

<xs:annotation>

<xs:documentation>The customer is deceased</xs:documentation>

</xs:annotation>

</xs:enumeration>

</xs:restriction>

</xs:simpleType>

eNotificationDistributionType

<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>

VatInfo

<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>

eDunningBillType

<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>

fInvoiceNo

<xs:simpleType name="fInvoiceNo">

<xs:restriction base="xs:string">

<xs:pattern value="[A-Za-z0-9\-]+"/>

<xs:maxLength value="15"/>

</xs:restriction>

</xs:simpleType>

eDistributionBillType

<xs:simpleType name="eDistributionBillType">

<xs:restriction base="xs:string">

<xs:enumeration value="I_Invoice">

<xs:annotation>

<xs:documentation>Refers to invoice</xs:documentation>

</xs:annotation>

</xs:enumeration>

</xs:restriction>

</xs:simpleType>

eDunningRule

<xs:simpleType name="eDunningRule">

<xs:restriction base="xs:string">

<xs:enumeration value="I_PenaltyIntrAndFeeLimit">

<xs:annotation>

<xs:documentation>Instruction to credit non payed penalty interest 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>

eNotificationBillType

<xs:simpleType name="eNotificationBillType">

<xs:restriction base="xs:string">

<xs:enumeration value="I_Invoice">

<xs:annotation>

<xs:documentation>Refers to Invoice</xs:documentation>

</xs:annotation>

</xs:enumeration>

</xs:restriction>

</xs:simpleType>

eCurrencyType

<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:enumeration value="USD"/>

<xs:enumeration value="GBP"/>

</xs:restriction>

</xs:simpleType>

CreditInstructions

Notes

<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>

CashDiscountInfo

<xs:complexType name="CashDiscountInfo">

<xs:sequence>

<xs:element name="CashDiscountDueDate" type="xs:date" minOccurs="1" maxOccurs="1">

<xs:annotation>

<xs:documentation>Due date of the CashDiscountAmount</xs:documentation>

</xs:annotation>

</xs:element>

<xs:element name="CashDiscountAmount" type="CashDiscountMoney" maxOccurs="1" minOccurs="1" nillable="false">

<xs:annotation>

<xs:documentation>The discount amount (including VAT) to be deducted from the invoice amount</xs:documentation>

</xs:annotation>

</xs:element>

</xs:sequence>

</xs:complexType>

Columns

Notes

<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>

ePaymentRule

<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:enumeration value="UseBKAGNO">

<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>

eDistributionRule

<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:enumeration value="UseEInvoiceB2CNO">

<xs:annotation>

<xs:documentation>Activate or deactivates EInvoiceB2CNO 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:enumeration value="UseEInvoiceB2CFI">

<xs:annotation>

<xs:documentation>Activate or deactivates UseEInvoiceB2CFI 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>

eColumnNo

<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>

Column

<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>

BasePrintBlock

Notes

<xs:complexType name="BasePrintBlock">

<xs:annotation>

<xs:documentation>A base print block is a predefined table type at PayEx. Which table types 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 print block 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 suborder block 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 referred table type</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="0" 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 referred table type</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 referred table type</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 referred table type</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>

PrintBlockConfig

<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 print block 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 print block on a new sheet</xs:documentation>

</xs:annotation>

</xs:attribute>

</xs:complexType>

PredefinedPrintBlocks

<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 predefined 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>

ExtraPrintBlocks

<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>

StandardPrintBlocks

<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>

SpecificationPrintBlocks

<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>

Card

<xs:complexType name="Card">

<xs:sequence>

<xs:element name="CardReference" type="String50" minOccurs="1" maxOccurs="1"/>

<xs:element name="ExpiryDate" type="PXExpiryDate" minOccurs="1" maxOccurs="1"/>

</xs:sequence>

</xs:complexType>

PXExpiryDate

<xs:simpleType name="PXExpiryDate">

<xs:restriction base="xs:string">

<xs:length value="5"/>

<xs:pattern value="(0[1-9]|1[012])/(\d{2})"/>

</xs:restriction>

</xs:simpleType>

eSummaryType

<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>

Version

<xs:simpleType name="Version">

<xs:restriction base="xs:string">

<xs:enumeration value="2.0"/>

<xs:enumeration value="2.1">

<xs:annotation>

<xs:documentation>Added new DistributionRule UseEInvoiceB2CFI, and two new properties for accounting InterCompanyCode and VatType. Increased Money type to 500 000 000</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="2.2">

<xs:annotation>

<xs:documentation>

EdiInfo.EDIOrderRows.Quantity decimal support,

EDIInfo.ExternalreferenceURL, added new field

Added support for more characters in EdiInfo.EDIOrderRow.ContractType

</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="2.3">

<xs:annotation>

<xs:documentation>DistributionAddressInfo, added new field ProtectedIdentity</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="2.4">

<xs:annotation>

<xs:documentation>eCurrencyType, added new values USD,GBP</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="2.5">

<xs:annotation>

<xs:documentation>Added support for setting customer LegalStatus</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="2.6">

<xs:annotation>

<xs:documentation>

Supports diacritic chars for Name, Addressee, StreetAddress, COAddress and City.

Supports StreetAddress and COAddress with up to 72 chars in length.

</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="2.7">

<xs:annotation>

<xs:documentation>Added VatRate 24 and 10</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="2.8">

<xs:annotation>

<xs:documentation>Added element 'RecurringCardInfo' to support recurring card payments</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="2.9">

<xs:annotation>

<xs:documentation>Added element 'CashDiscountInfo' for specifying cash discount on invoices, only supported for invoices without distribution</xs:documentation>

</xs:annotation>

</xs:enumeration>

</xs:restriction>

</xs:simpleType>