Changes for page 01. Cusin

Last modified by David Persson on 2024/08/21 13:11
From empty
To version 165.1
edited by David Persson
on 2023/03/31 10:12
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +01. Cusin
Parent
... ... @@ -1,0 +1,1 @@
1 +developer:Main.Invoicing.invoice-service.Implementation guide.Technical reference.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.XWikiGuest
1 +xwiki:XWiki.dap
Default language
... ... @@ -1,0 +1,1 @@
1 +en
Tags
... ... @@ -1,0 +1,1 @@
1 +px-custom-page-content
Content
... ... @@ -1,0 +1,238 @@
1 +(% class="jumbotron" %)
2 +(((
3 +(% class="container" %)
4 +(((
5 +PayEx CUSIN (CustomerInvoice) is a file format for you to send customer and invoice information to PayEx. This is a technical overview of the file format, its elements and related material. This section should be seen as a companion to the standard setup scenario.
6 +)))
7 +)))
8 +
9 +== XSD overview ==
10 +
11 +{{warning}}
12 +Please note that your CUSIN file, depending on package type and file version, might only utilize and/or contain a subset of all elements described below. See the XSD for your CUSIN file version to learn more.
13 +
14 +Invoice Service = <InvoiceWithDistribution>
15 +
16 +Ledger Service = <InvoiceWithoutDistribution>
17 +{{/warning}}
18 +
19 +=== Invoice service (with distribution) ===
20 +
21 +(% class="wikigeneratedid" id="H" %)
22 +[[image:Cusin_[2.0].xsd-withdistribution.svg||height="961" width="435"]]
23 +
24 +=== Ledger service (without distribution) ===
25 +
26 +[[image:Cusin_[2.0].xsd-withoutdistribution.svg||height="829" width="397"]]
27 +
28 +== Encoding ==
29 +
30 +The file must use [[(% style="color:#0066cc" %)__UTF-8 encoding__>>url:https://en.wikipedia.org/wiki/UTF-8]](%%).
31 +
32 +(% id="HNameconvention" %)
33 +== Name convention ==
34 +
35 +CUSIN_<CompanyNumber>_<DateTime>_<SerialNumber>.xml
36 +
37 +(% class="table-bordered table-striped" %)
38 +|=Name components|=Description
39 +|CompanyNumber|The company number in our ledger system
40 +|DateTime|Date created, Should be in the format ISO 8601 format, YYYYMMDDhhmmdd
41 +|SerialNumber|Should follow an uninterrupted number series, 1, 2, 3 and so on.
42 +
43 +(% id="HXSDValidation" %)
44 +== Limitations ==
45 +
46 +(% class="table-bordered table-striped" %)
47 +|=Limitations|=Description
48 +|Maximum size limit|100 MB
49 +|Maximum number of lines|50.000 items
50 +
51 +== Important to note! ==
52 +
53 +* You cannot use the same serial number more than once. In case something goes wrong during CUSIN processing, you need to supply a new serial number - the next number in the number series you are using - when transferring the rectified file to PayEx.
54 +* To avoid most file errors, always validate the cusin-file toward an up-to-date XML schema before transferring the file to PayEx.
55 +* Standard length of CustomerNo in Norway and Denmark is 7 characters (numeric only).
56 +* Only use numeric characters and not with a leading zero for CustomerNo in Sweden, in order to use AutoGiro (Direct Debit).
57 +* The use of EDIInfo will result in distribution by E-Invoice B2B if no other preferred distribution method is set in eDistributionType, see [[Standard Invoice distribution order of priority>>doc:Main.Invoicing.invoice-service.Implementation guide.Invoice columns.WebHome||anchor="HStandardInvoicedistributionorderofpriority"]].
58 +* Dependency to [[LegalEntity>>url:https://developer.payex.com/xwiki/wiki/developer/view/Main/Invoicing/invoice-service/Implementation%20guide/Technical%20reference/Cusin/XML%20Schema%20specification/#type_LegalEntity]] in CustomerInfo element:
59 +** [[Late fee>>url:https://developer.payex.com/xwiki/wiki/developer/view/Main/Invoicing/invoice-service/Implementation%20guide/Supplementary%20features/?HLatefee]] will be added instead of reminder fee or collection claim fee when LegalEntity is set to "Business" (if specially contracted with PayEx and configured in ledger)
60 +** SSN (RegNo) for private individuals will not be displayed in ledger reports due to GDPR. RegNO will only be displayed when LegalEntity is set till "Business"
61 +** If distributed by e-mail: When LegalEntity is set to "Private" the e-mail message will include a link to PayEx Invoice Portal where the invoice/claim is available, otherwise a copy of the invoice/claim will be attached in the e-mail message as a pdf-file.
62 +** Finland only: Different claim processes will be used depending on "Private" or "Business"
63 +
64 +== Current XML schema description ==
65 +
66 +A detailed description of the elements in the current version of the XML schema definition file (XSD) can be found [[here>>doc:Main.Invoicing.invoice-service.Implementation guide.Technical reference.Cusin.XML Schema specification.WebHome]]
67 +
68 +The Cusin file must be validated toward an up-to-date XML schema file!
69 +
70 +== Download current XML schema file ==
71 +
72 +(% class="row" %)
73 +(((
74 +(% class="col-xs-12" %)
75 +(((
76 +(% border="0" style="width:1023px" %)
77 +|=(% style="width: 208px; background-color: rgb(237, 237, 237);" %)Fileversion|=(% style="width: 213px; background-color: rgb(237, 237, 237);" %)Version|=(% style="width: 288px; background-color: rgb(237, 237, 237);" %)Releasedate|=(% style="width: 585px; background-color: rgb(237, 237, 237);" %)Comment
78 +|(% style="width:208px" %)[[Cusin[2.X].xsd>>attach:CUSIN_[2.X].xsd]]|(% style="width:213px" %)2.8|(% style="width:288px" %)2023-02-02|(% style="width:585px" %)Added VatRate 24 and 10
79 +
80 +== Change Log ==
81 +
82 +(% id="HVersion1.1" %)
83 +==== **Version 2.9{{id name="3"/}}** ====
84 +
85 +(% id="HJanuary2C2016" %)
86 +===== April 18, 2023 =====
87 +
88 +[[Cusin[2.9].xsd>>attach:CUSIN_[2.9].xsd]]
89 +
90 +(% class="box" %)
91 +(((
92 +Added element 'CashDiscountInfo' for specifying cash discount on invoices, only supported for invoices without distribution
93 +)))
94 +
95 +(% id="HVersion1.1" %)
96 +==== **Version 2.8{{id name="3"/}}** ====
97 +
98 +(% id="HJanuary2C2016" %)
99 +===== March 29, 2023 =====
100 +
101 +[[Cusin[2.8].xsd>>attach:CUSIN_[2.8].xsd]]
102 +
103 +(% class="box" %)
104 +(((
105 +Added element 'RecurringCardInfo' to support recurring card payments (agreement for card payments must be set before use)
106 +)))
107 +
108 +(% id="HVersion1.1" %)
109 +==== **Version 2.7{{id name="3"/}}** ====
110 +
111 +(% id="HJanuary2C2016" %)
112 +===== February, 2023 =====
113 +
114 +[[Cusin[2.7].xsd>>attach:CUSIN_[2.7].xsd]]
115 +
116 +(% class="box" %)
117 +(((
118 +Added VatRate 24 and 10
119 +)))
120 +
121 +(% id="HVersion1.1" %)
122 +==== **Version 2.6{{id name="3"/}}** ====
123 +
124 +(% id="HJanuary2C2016" %)
125 +===== October, 2022 =====
126 +
127 +[[Cusin[2.6].xsd>>attach:CUSIN_[2.6].xsd]]
128 +
129 +(% class="box" %)
130 +(((
131 +Allows a wider range of chars for Name, Addressee, StreetAddress, COAddress and City.
132 +
133 +Supports StreetAddress and COAddress with up to 72 chars in length.
134 +)))
135 +
136 +(% id="HVersion1.1" %)
137 +==== **Version 2.5{{id name="3"/}}** ====
138 +
139 +(% id="HJanuary2C2016" %)
140 +===== September, 2022 =====
141 +
142 +[[Cusin[2.5].xsd>>attach:CUSIN_[2.5].xsd]]
143 +
144 +(% class="box" %)
145 +(((
146 +Added support for setting customer LegalStatus
147 +)))
148 +
149 +(% id="HVersion1.1" %)
150 +==== **Version 2.4{{id name="3"/}}** ====
151 +
152 +(% id="HJanuary2C2016" %)
153 +===== April, 2022 =====
154 +
155 +[[Cusin[2.4].xsd>>attach:CUSIN_[2.4].xsd]]
156 +
157 +(% class="box" %)
158 +(((
159 +eCurrencyType, added new values USD,GBP
160 +)))
161 +
162 +(% id="HVersion1.1" %)
163 +==== **Version 2.3{{id name="3"/}}** ====
164 +
165 +(% id="HJanuary2C2016" %)
166 +===== November, 2020 =====
167 +
168 +[[(% class="wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink" style="color:#2980b9" %)__Cusin[2.3].xsd__>>attach:CUSIN_[2.3].xsd]]
169 +
170 +(% class="box" %)
171 +(((
172 +DistributionAddressInfo, added new field ProtectedIdentity
173 +)))
174 +
175 +(% id="HVersion1.1" %)
176 +==== **Version 2.2{{id name="3"/}}** ====
177 +
178 +(% id="HJanuary2C2016" %)
179 +===== October, 2020 =====
180 +
181 +[[(% class="wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink" style="color:#2980b9" %)__Cusin[2.2].xsd__>>attach:Main.Invoicing.invoice-service.Technical reference.WebHome@CUSIN_[2.2].xsd]]
182 +
183 +(% class="box" %)
184 +(((
185 +EdiInfo.EDIOrderRows.Quantity decimal support,
186 +
187 +EDIInfo.ExternalreferenceURL, added new field
188 +
189 +Added support for more characters in EdiInfo.EDIOrderRow.ContractType
190 +)))
191 +
192 +(% style="color:inherit; font-family:inherit; font-size:20px" %)**Version 2.1**
193 +
194 +(% id="HVersion1.1" %)
195 +==== **{{id name="3"/}}** ====
196 +
197 +(% id="HJanuary2C2016" %)
198 +===== June, 2020 =====
199 +
200 +[[(% class="wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink" style="color:#2980b9" %)__Cusin[2.1].xsd__>>attach:Main.Invoicing.invoice-service.Technical reference.WebHome@CUSIN_[2.1].xsd]]
201 +
202 +(% class="box" %)
203 +(((
204 +Order rows under SubOrderBlocks, no longer mandatory
205 +)))
206 +
207 +
208 +(% id="HVersion1.1" %)
209 +==== **Version 2.1{{id name="3"/}}** ====
210 +
211 +(% id="HJanuary2C2016" %)
212 +===== February, 2020 =====
213 +
214 +(% class="wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink wikiattachmentlink" style="color:#2980b9" %)__Cusin[2.01].xsd__
215 +
216 +(% class="box" %)
217 +(((
218 +Added new DistributionRule UseEInvoiceB2CFI, and two new properties for accounting InterCompanyCode and VatType
219 +)))
220 +
221 +(% id="HVersion1.1" %)
222 +==== **Version 2.0{{id name="3"/}}** ====
223 +
224 +(% id="HJanuary2C2016" %)
225 +===== September, 2016 =====
226 +
227 +Cusin[2.0].xsd
228 +
229 +(% class="box" %)
230 +(((
231 + Initial version (latest documented version)
232 +)))
233 +
234 +== Download sample file ==
235 +
236 +[[CUSIN_367_20190911090045_93>>attach:Main.Invoicing.invoice-service.Technical reference.WebHome@CUSIN_367_20190911090045_93.xml]]
237 +)))
238 +)))
CUSIN_[2.2].xsd
Author
... ... @@ -1,0 +1,1 @@
1 +xwiki:XWiki.aha
Size
... ... @@ -1,0 +1,1 @@
1 +0 bytes
Content
... ... @@ -1,0 +1,1634 @@
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 + <xs:element name="CUSIN">
4 + <xs:complexType>
5 + <xs:sequence>
6 + <xs:element name="DistributionDate" minOccurs="0" maxOccurs="1">
7 + <xs:annotation>
8 + <xs:documentation>Mandatory for services with distribution.</xs:documentation>
9 + </xs:annotation>
10 + <xs:complexType>
11 + <xs:choice>
12 + <xs:element name="Date" type="xs:date">
13 + <xs:annotation>
14 + <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>
15 + </xs:annotation>
16 + </xs:element>
17 + <xs:element name="AsSoonAsPossible">
18 + <xs:annotation>
19 + <xs:documentation>Used to distribute invoices as soon as possible. The element supposed to be empty.</xs:documentation>
20 + </xs:annotation>
21 + <xs:complexType>
22 + <xs:complexContent>
23 + <xs:restriction base="xs:anyType" />
24 + </xs:complexContent>
25 + </xs:complexType>
26 + </xs:element>
27 + </xs:choice>
28 + </xs:complexType>
29 + </xs:element>
30 + <xs:element name="CUSINInfo" minOccurs="1" maxOccurs="unbounded">
31 + <xs:annotation>
32 + <xs:documentation>Containing one customer (payer) and that customers invoice(s)</xs:documentation>
33 + </xs:annotation>
34 + <xs:complexType>
35 + <xs:sequence>
36 + <xs:element name="CustomerNo" type="Identifier15" minOccurs="0" maxOccurs="1" nillable="false" >
37 + <xs:annotation>
38 + <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>
39 + </xs:annotation>
40 + </xs:element>
41 + <xs:element minOccurs="0" maxOccurs="1" name="CustomerInfo">
42 + <xs:annotation>
43 + <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>
44 + </xs:annotation>
45 + <xs:complexType>
46 + <xs:sequence>
47 + <xs:element name="Name" type="NameAddressString72" minOccurs="1" maxOccurs="1" >
48 + <xs:annotation>
49 + <xs:documentation>Full name for the customer in the accounts receivable system. Used as display name</xs:documentation>
50 + </xs:annotation>
51 + </xs:element>
52 + <xs:element name="RegNo" type="RegNo" minOccurs="0" maxOccurs="1" >
53 + <xs:annotation>
54 + <xs:documentation>Customer social security number/corporate identity number. Has to conform to country specific algorithms</xs:documentation>
55 + </xs:annotation>
56 + </xs:element>
57 + <xs:element name="Category" type="String10" minOccurs="0" maxOccurs="1" >
58 + <xs:annotation>
59 + <xs:documentation>Can only be used if contracted with PayEx. Category has to be preconfigured in the accounts receivable system</xs:documentation>
60 + </xs:annotation>
61 + </xs:element>
62 + <xs:element name="InterCompanyCode" type="String15" minOccurs="0" maxOccurs="1" >
63 + <xs:annotation>
64 + <xs:documentation>Relating to interactions between two or more internal companies</xs:documentation>
65 + </xs:annotation>
66 + </xs:element>
67 + <xs:element name="VatType" type="VatType" minOccurs="0" maxOccurs="1" >
68 + <xs:annotation>
69 + <xs:documentation>Specifies if/where the customer liable to pay VAT</xs:documentation>
70 + </xs:annotation>
71 + </xs:element>
72 + <xs:element name="LanguageCode" type="ISO639" minOccurs="0" maxOccurs="1" >
73 + <xs:annotation>
74 + <xs:documentation>Only used if preferred invoice language is other than accounts receivable default</xs:documentation>
75 + </xs:annotation>
76 + </xs:element>
77 + <xs:element name="VatNo" type="VatNumber" minOccurs="0" maxOccurs="1" >
78 + <xs:annotation>
79 + <xs:documentation>Customer VAT registration number. Mandatory if reverse tax is used. Must conform to country specific algorithm</xs:documentation>
80 + </xs:annotation>
81 + </xs:element>
82 + <xs:element name="DistributionAddressInfo" minOccurs="1" maxOccurs="1">
83 + <xs:annotation>
84 + <xs:documentation>Contains customer distribution address information</xs:documentation>
85 + </xs:annotation>
86 + <xs:complexType>
87 + <xs:sequence>
88 + <xs:element name="Addresses" minOccurs="1" maxOccurs="1">
89 + <xs:annotation>
90 + <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>
91 + </xs:annotation>
92 + <xs:complexType>
93 + <xs:sequence>
94 + <xs:element name="Address" type="Address" minOccurs="1" maxOccurs="2">
95 + <xs:annotation>
96 + <xs:documentation>Legal address is mandatory. Only supply billing address i different from legal address</xs:documentation>
97 + </xs:annotation>
98 + </xs:element>
99 + </xs:sequence>
100 + </xs:complexType>
101 + </xs:element>
102 + <xs:element name="E-MailAddress" type="Email" minOccurs="0" maxOccurs="1" >
103 + <xs:annotation>
104 + <xs:documentation>Customers E-mail address. Mandatory if delivery is set to EMail or E-notification is active.</xs:documentation>
105 + </xs:annotation>
106 + </xs:element>
107 + <xs:element name="Cellphone" type="String15" minOccurs="0" maxOccurs="1" >
108 + <xs:annotation>
109 + <xs:documentation>Customers mobile number msisdn</xs:documentation>
110 + </xs:annotation>
111 + </xs:element>
112 + </xs:sequence>
113 + </xs:complexType>
114 + </xs:element>
115 + <xs:element name="PaymentInfo" minOccurs="0" maxOccurs="1">
116 + <xs:annotation>
117 + <xs:documentation>Contains differing customer payment info from accounts receivable default</xs:documentation>
118 + </xs:annotation>
119 + <xs:complexType>
120 + <xs:choice>
121 + <xs:element name="Clear" minOccurs="1" maxOccurs="1" >
122 + <xs:annotation>
123 + <xs:documentation>Erases previously set payment info on customer</xs:documentation>
124 + </xs:annotation>
125 + </xs:element>
126 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
127 + <xs:annotation>
128 + <xs:documentation>Sets differing payment info on customer, fully replaces earlier settings</xs:documentation>
129 + </xs:annotation>
130 + <xs:complexType>
131 + <xs:sequence>
132 + <xs:element name="PaymentType" type="ePaymentType" minOccurs="0" maxOccurs="1" >
133 + <xs:annotation>
134 + <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>
135 + </xs:annotation>
136 + </xs:element>
137 + <xs:element name="PaymentRules" minOccurs="0" maxOccurs="1">
138 + <xs:annotation>
139 + <xs:documentation>Containing differing customer payment rules.</xs:documentation>
140 + </xs:annotation>
141 + <xs:complexType>
142 + <xs:sequence>
143 + <xs:element name="PaymentRule" minOccurs="1" maxOccurs="unbounded">
144 + <xs:annotation>
145 + <xs:documentation>Customer differing payment rule.</xs:documentation>
146 + </xs:annotation>
147 + <xs:complexType>
148 + <xs:sequence>
149 + <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
150 + <xs:annotation>
151 + <xs:documentation>Valid value of rule</xs:documentation>
152 + </xs:annotation>
153 + </xs:element>
154 + </xs:sequence>
155 + <xs:attribute name="Rule" type="ePaymentRule" >
156 + <xs:annotation>
157 + <xs:documentation>Valid payment rule from enumeration ePaymentRule</xs:documentation>
158 + </xs:annotation>
159 + </xs:attribute>
160 + </xs:complexType>
161 + </xs:element>
162 + </xs:sequence>
163 + </xs:complexType>
164 + </xs:element>
165 + </xs:sequence>
166 + </xs:complexType>
167 + </xs:element>
168 + </xs:choice>
169 + </xs:complexType>
170 + </xs:element>
171 + <xs:element name="DunningInfo" minOccurs="0" maxOccurs="1">
172 + <xs:annotation>
173 + <xs:documentation>Contains differing customer dunning info from accounts receivable default</xs:documentation>
174 + </xs:annotation>
175 + <xs:complexType>
176 + <xs:choice>
177 + <xs:element name="Clear" >
178 + <xs:annotation>
179 + <xs:documentation>Erases previously set dunning info on customer</xs:documentation>
180 + </xs:annotation>
181 + </xs:element>
182 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
183 + <xs:annotation>
184 + <xs:documentation>Sets differing dunning info on customer. Fully replaces previously set dunning info</xs:documentation>
185 + </xs:annotation>
186 + <xs:complexType>
187 + <xs:sequence minOccurs="1" maxOccurs="3">
188 + <xs:element name="DunningRules" minOccurs="0" maxOccurs="1">
189 + <xs:annotation>
190 + <xs:documentation>Containing differing dunning rules</xs:documentation>
191 + </xs:annotation>
192 + <xs:complexType>
193 + <xs:sequence>
194 + <xs:element name="DunningRule" minOccurs="1" maxOccurs="unbounded">
195 + <xs:annotation>
196 + <xs:documentation>Contains a dunning rule and its value</xs:documentation>
197 + </xs:annotation>
198 + <xs:complexType>
199 + <xs:sequence>
200 + <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
201 + <xs:annotation>
202 + <xs:documentation>Valid value of rule</xs:documentation>
203 + </xs:annotation>
204 + </xs:element>
205 + </xs:sequence>
206 + <xs:attribute name="Rule" type="eDunningRule">
207 + <xs:annotation>
208 + <xs:documentation>Valid dunning rule from enumeration eDunningRule</xs:documentation>
209 + </xs:annotation>
210 + </xs:attribute>
211 + </xs:complexType>
212 + </xs:element>
213 + </xs:sequence>
214 + </xs:complexType>
215 + </xs:element>
216 + <xs:element name="DunningEnclosures" minOccurs="0" maxOccurs="1">
217 + <xs:annotation>
218 + <xs:documentation>Contains dunning enclosures</xs:documentation>
219 + </xs:annotation>
220 + <xs:complexType>
221 + <xs:sequence>
222 + <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
223 + <xs:annotation>
224 + <xs:documentation>Contains a dunning bill type and a predefined enclosure</xs:documentation>
225 + </xs:annotation>
226 + <xs:complexType>
227 + <xs:sequence>
228 + <xs:element name="EnclosureName" type="xs:string" maxOccurs="1" minOccurs="1">
229 + <xs:annotation>
230 + <xs:documentation>Predefined enclosure name in PayEx distribution system</xs:documentation>
231 + </xs:annotation>
232 + </xs:element>
233 + </xs:sequence>
234 + <xs:attribute name="DunningBillType" type="eDunningBillType">
235 + <xs:annotation>
236 + <xs:documentation>The bill type from enumeration eDunningBillType which to enclose the predefined enclosure</xs:documentation>
237 + </xs:annotation>
238 + </xs:attribute>
239 + </xs:complexType>
240 + </xs:element>
241 + </xs:sequence>
242 + </xs:complexType>
243 + </xs:element>
244 + </xs:sequence>
245 + </xs:complexType>
246 + </xs:element>
247 + </xs:choice>
248 + </xs:complexType>
249 + </xs:element>
250 + <xs:element name="DistributionInfo" minOccurs="0" maxOccurs="1">
251 + <xs:annotation>
252 + <xs:documentation>Contains differing customer distribution info from accounts receivable default</xs:documentation>
253 + </xs:annotation>
254 + <xs:complexType>
255 + <xs:choice>
256 + <xs:element name="Clear" minOccurs="1" maxOccurs="1" >
257 + <xs:annotation>
258 + <xs:documentation>Erases earlier set values</xs:documentation>
259 + </xs:annotation>
260 + </xs:element>
261 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
262 + <xs:annotation>
263 + <xs:documentation>Sets differing distribution info on customer. Fully replaces previously set distribution info</xs:documentation>
264 + </xs:annotation>
265 + <xs:complexType>
266 + <xs:sequence>
267 + <xs:element name="BillTypes" minOccurs="1" maxOccurs="1">
268 + <xs:annotation>
269 + <xs:documentation>Containing bill types with differing distribution from accounts receivable default</xs:documentation>
270 + </xs:annotation>
271 + <xs:complexType>
272 + <xs:sequence>
273 + <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
274 + <xs:annotation>
275 + <xs:documentation>Containing bill type with differing distribution</xs:documentation>
276 + </xs:annotation>
277 + <xs:complexType>
278 + <xs:sequence>
279 + <xs:element name="DistributionType" type="eDistributionType" maxOccurs="1" minOccurs="0">
280 + <xs:annotation>
281 + <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>
282 + </xs:annotation>
283 + </xs:element>
284 + <xs:element name="DistributionRules" minOccurs="0" maxOccurs="1">
285 + <xs:annotation>
286 + <xs:documentation>Contains distribution rules for bill type</xs:documentation>
287 + </xs:annotation>
288 + <xs:complexType>
289 + <xs:sequence>
290 + <xs:element name="DistributionRule" minOccurs="1" maxOccurs="unbounded">
291 + <xs:annotation>
292 + <xs:documentation>Contains a distribution rule and its value</xs:documentation>
293 + </xs:annotation>
294 + <xs:complexType>
295 + <xs:sequence>
296 + <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
297 + <xs:annotation>
298 + <xs:documentation>Valid value of distribution rule</xs:documentation>
299 + </xs:annotation>
300 + </xs:element>
301 + </xs:sequence>
302 + <xs:attribute name="Rule" type="eDistributionRule">
303 + <xs:annotation>
304 + <xs:documentation>Valid rule from enumeration eDistributionRule</xs:documentation>
305 + </xs:annotation>
306 + </xs:attribute>
307 + </xs:complexType>
308 + </xs:element>
309 + </xs:sequence>
310 + </xs:complexType>
311 + </xs:element>
312 + </xs:sequence>
313 + <xs:attribute name="DistributionBillType" type="eDistributionBillType">
314 + <xs:annotation>
315 + <xs:documentation>The bill type from enumeration eDistributionBillType for which distribution settings apply</xs:documentation>
316 + </xs:annotation>
317 + </xs:attribute>
318 + </xs:complexType>
319 + </xs:element>
320 + </xs:sequence>
321 + </xs:complexType>
322 + </xs:element>
323 + </xs:sequence>
324 + </xs:complexType>
325 + </xs:element>
326 + </xs:choice>
327 + </xs:complexType>
328 + </xs:element>
329 + <xs:element name="NotificationInfo" minOccurs="0" maxOccurs="1">
330 + <xs:annotation>
331 + <xs:documentation>Contains differing notification settings from accounts receivable default</xs:documentation>
332 + </xs:annotation>
333 + <xs:complexType>
334 + <xs:choice>
335 + <xs:element name="Clear" minOccurs="1" maxOccurs="1" >
336 + <xs:annotation>
337 + <xs:documentation>Erases earlier set values</xs:documentation>
338 + </xs:annotation>
339 + </xs:element>
340 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
341 + <xs:annotation>
342 + <xs:documentation>Sets differing notification info on customer. Fully replaces previously set notification info</xs:documentation>
343 + </xs:annotation>
344 + <xs:complexType>
345 + <xs:sequence>
346 + <xs:element name="BillTypes" minOccurs="1" maxOccurs="1">
347 + <xs:annotation>
348 + <xs:documentation>Contains bill types with differing notification settings from accounts receivable default</xs:documentation>
349 + </xs:annotation>
350 + <xs:complexType>
351 + <xs:sequence>
352 + <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
353 + <xs:annotation>
354 + <xs:documentation>Contains bill type with differing notification settings</xs:documentation>
355 + </xs:annotation>
356 + <xs:complexType>
357 + <xs:sequence>
358 + <xs:element name="NotificationTextCode" type="xs:string" maxOccurs="1" minOccurs="1">
359 + <xs:annotation>
360 + <xs:documentation>Preconfigured notification text code in PayEx distribution system</xs:documentation>
361 + </xs:annotation>
362 + </xs:element>
363 + <xs:element name="NotificationDistributionType" type="eNotificationDistributionType" maxOccurs="1" minOccurs="1" >
364 + <xs:annotation>
365 + <xs:documentation>Valid notification distribution type from enumeration eNotificationDistributionType</xs:documentation>
366 + </xs:annotation>
367 + </xs:element>
368 + </xs:sequence>
369 + <xs:attribute name="NotificationBillType" type="eNotificationBillType">
370 + <xs:annotation>
371 + <xs:documentation>The bill type from enumeration eNotificationBillType for which notification setting apply</xs:documentation>
372 + </xs:annotation>
373 + </xs:attribute>
374 + </xs:complexType>
375 + </xs:element>
376 + </xs:sequence>
377 + </xs:complexType>
378 + </xs:element>
379 + </xs:sequence>
380 + </xs:complexType>
381 + </xs:element>
382 + </xs:choice>
383 + </xs:complexType>
384 + </xs:element>
385 + </xs:sequence>
386 + <xs:attribute name="LegalEntity" type="LegalEntity" use="optional" >
387 + <xs:annotation>
388 + <xs:documentation>States the legal entity of the customer</xs:documentation>
389 + </xs:annotation>
390 + </xs:attribute>
391 + </xs:complexType>
392 + </xs:element>
393 + <xs:element minOccurs="0" maxOccurs="1" name="Invoices">
394 + <xs:annotation>
395 + <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>
396 + </xs:annotation>
397 + <xs:complexType>
398 + <xs:sequence>
399 + <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceWithDistribution">
400 + <xs:annotation>
401 + <xs:documentation>Contains invoice information if your contracted service is with distribution of invoices</xs:documentation>
402 + </xs:annotation>
403 + <xs:complexType>
404 + <xs:sequence>
405 + <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="0" maxOccurs="1" >
406 + <xs:annotation>
407 + <xs:documentation>Your unique identifier/invoice number of the invoice. Mandatory/Prohibited depending on contracted service with PayEx</xs:documentation>
408 + </xs:annotation>
409 + </xs:element>
410 + <xs:element name="ReferenceInfo" type="ReferenceInfo" minOccurs="0" maxOccurs="1" >
411 + <xs:annotation>
412 + <xs:documentation>Containing additional invoice reference information</xs:documentation>
413 + </xs:annotation>
414 + </xs:element>
415 + <xs:element name="InvoiceDate" type="xs:date" minOccurs="0" maxOccurs="1" >
416 + <xs:annotation>
417 + <xs:documentation>Invoice date from invoicing/billing system. Mandatory/Prohibited depending on contracted service with PayEx</xs:documentation>
418 + </xs:annotation>
419 + </xs:element>
420 + <xs:element name="PreferredDueDate" type="xs:date" minOccurs="0" maxOccurs="1" >
421 + <xs:annotation>
422 + <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>
423 + </xs:annotation>
424 + </xs:element>
425 + <xs:element name="Amount" type="Amount" maxOccurs="1" minOccurs="1" >
426 + <xs:annotation>
427 + <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>
428 + </xs:annotation>
429 + </xs:element>
430 + <xs:element name="DistributionInfo" minOccurs="1" maxOccurs="1">
431 + <xs:annotation>
432 + <xs:documentation>Contains distribution and printing details for invoice</xs:documentation>
433 + </xs:annotation>
434 + <xs:complexType>
435 + <xs:sequence>
436 + <xs:element name="DCCode" type="String15" minOccurs="0" maxOccurs="1" >
437 + <xs:annotation>
438 + <xs:documentation>Differing invoice layout from accounts receivable default. Possible layouts must be preconfigured an contracted with PayEx</xs:documentation>
439 + </xs:annotation>
440 + </xs:element>
441 + <xs:element name="DistributionType" type="eDistributionType" minOccurs="0" maxOccurs="1" >
442 + <xs:annotation>
443 + <xs:documentation>If desired distribution type is different from set distribution type on customer or accounts receivable default</xs:documentation>
444 + </xs:annotation>
445 + </xs:element>
446 + <xs:element name="InvoicePrintInfo" minOccurs="1" maxOccurs="1">
447 + <xs:annotation>
448 + <xs:documentation>Contains printing info for one invoice document</xs:documentation>
449 + </xs:annotation>
450 + <xs:complexType>
451 + <xs:sequence>
452 + <xs:element name="InvoicePrintBlocks" type="StandardPrintBlocks" maxOccurs="1" minOccurs="1">
453 + <xs:annotation>
454 + <xs:documentation>Containing print blocks printed in the main/standard area of the invoice layout</xs:documentation>
455 + </xs:annotation>
456 + </xs:element>
457 + <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
458 + <xs:annotation>
459 + <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>
460 + </xs:annotation>
461 + </xs:element>
462 + <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
463 + <xs:annotation>
464 + <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>
465 + </xs:annotation>
466 + </xs:element>
467 + </xs:sequence>
468 + </xs:complexType>
469 + </xs:element>
470 + <xs:element name="SummaryPrintInfos" minOccurs="0" maxOccurs="1">
471 + <xs:annotation>
472 + <xs:documentation>Can only be used if specially contracted with PayEx. Containing print info for summary documents</xs:documentation>
473 + </xs:annotation>
474 + <xs:complexType>
475 + <xs:sequence>
476 + <xs:element name="SummaryPrintInfo" minOccurs="0" maxOccurs="2">
477 + <xs:annotation>
478 + <xs:documentation>Contains print info for a summary document</xs:documentation>
479 + </xs:annotation>
480 + <xs:complexType>
481 + <xs:sequence>
482 + <xs:element name="SummaryPrintBlocks" type="StandardPrintBlocks" maxOccurs="1" minOccurs="1">
483 + <xs:annotation>
484 + <xs:documentation>Containing print blocks printed in the main/standard area of the summary layout</xs:documentation>
485 + </xs:annotation>
486 + </xs:element>
487 + <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
488 + <xs:annotation>
489 + <xs:documentation>Containing print blocks printed in specified predefined areas of the summary layout</xs:documentation>
490 + </xs:annotation>
491 + </xs:element>
492 + <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
493 + <xs:annotation>
494 + <xs:documentation>Containing references to predefined print blocks in specified predefined areas of the summary layout</xs:documentation>
495 + </xs:annotation>
496 + </xs:element>
497 + </xs:sequence>
498 + <xs:attribute name="Distribute" type="xs:boolean" use="required">
499 + <xs:annotation>
500 + <xs:documentation>Instruction to distribute the summary with the invoice or only be archived</xs:documentation>
501 + </xs:annotation>
502 + </xs:attribute>
503 + <xs:attribute name="SummaryType" type="eSummaryType">
504 + <xs:annotation>
505 + <xs:documentation>Valid summary type from enumeration eSummaryType</xs:documentation>
506 + </xs:annotation>
507 + </xs:attribute>
508 + </xs:complexType>
509 + </xs:element>
510 + </xs:sequence>
511 + </xs:complexType>
512 + </xs:element>
513 + <xs:element name="SpecificationPrintInfo" minOccurs="0" maxOccurs="1">
514 + <xs:annotation>
515 + <xs:documentation>Contains print info for a specification. Can only be used if specially contracted with PayEx</xs:documentation>
516 + </xs:annotation>
517 + <xs:complexType>
518 + <xs:sequence>
519 + <xs:element name="SpecificationPrintBlocks" type="SpecificationPrintBlocks" minOccurs="1" maxOccurs="1">
520 + <xs:annotation>
521 + <xs:documentation>Containing print blocks printed in the main/standard area of the specification layout</xs:documentation>
522 + </xs:annotation>
523 + </xs:element>
524 + <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
525 + <xs:annotation>
526 + <xs:documentation>Containing print blocks printed in specified predefined areas of the specification layout</xs:documentation>
527 + </xs:annotation>
528 + </xs:element>
529 + <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
530 + <xs:annotation>
531 + <xs:documentation>Containing references to predefined print blocks in specified predefined areas of the specification layout</xs:documentation>
532 + </xs:annotation>
533 + </xs:element>
534 + </xs:sequence>
535 + <xs:attribute name="Distribute" type="xs:boolean" use="required">
536 + <xs:annotation>
537 + <xs:documentation>Instruction to distribute the specification with the invoice or only be archived</xs:documentation>
538 + </xs:annotation>
539 + </xs:attribute>
540 + </xs:complexType>
541 + </xs:element>
542 + <xs:element name="Enclosures" maxOccurs="1" minOccurs="0">
543 + <xs:annotation>
544 + <xs:documentation>Contains predefined/preconfigured enclosures to be enclosed with invoice. Can only be used if specially contracted with PayEx</xs:documentation>
545 + </xs:annotation>
546 + <xs:complexType>
547 + <xs:sequence>
548 + <xs:element minOccurs="1" maxOccurs="4" name="Enclosure" type="String30">
549 + <xs:annotation>
550 + <xs:documentation>Reference to the predefined/preconfigured enclosure in PayEx printing and distribution system</xs:documentation>
551 + </xs:annotation>
552 + </xs:element>
553 + </xs:sequence>
554 + </xs:complexType>
555 + </xs:element>
556 + <xs:element name="EDIInfo" minOccurs="0" maxOccurs="1">
557 + <xs:annotation>
558 + <xs:documentation>Only relevant if distribution is EInvoiceB2B. Can only be used if specially contracted with PayEx</xs:documentation>
559 + </xs:annotation>
560 + <xs:complexType>
561 + <xs:sequence>
562 + <xs:element name="VAN" type="xs:string" minOccurs="0" maxOccurs="1">
563 + <xs:annotation>
564 + <xs:documentation>Customer VAN identifier (OperatorId)</xs:documentation>
565 + </xs:annotation>
566 + </xs:element>
567 + <xs:element name="InterChangeRecipient" type="xs:string" minOccurs="0" maxOccurs="1">
568 + <xs:annotation>
569 + <xs:documentation>Routing address. EAN</xs:documentation>
570 + </xs:annotation>
571 + </xs:element>
572 + <xs:element name="SellerId" type="xs:string" minOccurs="1" maxOccurs="1">
573 + <xs:annotation>
574 + <xs:documentation>NAD_SU/SellerParty. EAN/Corporate identity number</xs:documentation>
575 + </xs:annotation>
576 + </xs:element>
577 + <xs:element name="BuyerId" type="xs:string" minOccurs="1" maxOccurs="1">
578 + <xs:annotation>
579 + <xs:documentation>NAD_BY/BuyerParty. EAN/Corporate identity number</xs:documentation>
580 + </xs:annotation>
581 + </xs:element>
582 + <xs:element name="InvoiceAddressee" type="xs:string" minOccurs="0" maxOccurs="1">
583 + <xs:annotation>
584 + <xs:documentation>NAD_ITO/InvoiceNote. EAN/Corporate identity number</xs:documentation>
585 + </xs:annotation>
586 + </xs:element>
587 + <xs:element name="InvoiceRecipient" type="xs:string" minOccurs="0" maxOccurs="1">
588 + <xs:annotation>
589 + <xs:documentation>NAD_IV/InvoiceNote. EAN/Corporate identity number</xs:documentation>
590 + </xs:annotation>
591 + </xs:element>
592 + <xs:element name="DeliveryAddressee" type="xs:string" minOccurs="0" maxOccurs="1">
593 + <xs:annotation>
594 + <xs:documentation>NAD_DP/DeliveryAddress. EAN/Corporate identity number/Name</xs:documentation>
595 + </xs:annotation>
596 + </xs:element>
597 + <xs:element name="DeliveryRecipient" type="xs:string" minOccurs="0" maxOccurs="1">
598 + <xs:annotation>
599 + <xs:documentation>NAD_CN/InvoiceNote. EAN/Corporate identity number/Name</xs:documentation>
600 + </xs:annotation>
601 + </xs:element>
602 + <xs:element name="InvoiceReference" type="xs:string" minOccurs="0" maxOccurs="1">
603 + <xs:annotation>
604 + <xs:documentation>RFF_IV/InitialInvoiceDocumentReference. Reference to invoice</xs:documentation>
605 + </xs:annotation>
606 + </xs:element>
607 + <xs:element name="AgreementReference" type="xs:string" minOccurs="0" maxOccurs="1">
608 + <xs:annotation>
609 + <xs:documentation>RFF_CT/AdditionalDocumentReference. Reference to agreement</xs:documentation>
610 + </xs:annotation>
611 + </xs:element>
612 + <xs:element name="BuyerReference" type="xs:string" minOccurs="0" maxOccurs="2">
613 + <xs:annotation>
614 + <xs:documentation>RFF_CR/RequisitionistDocumentReference. Reference to buyer department and or individual</xs:documentation>
615 + </xs:annotation>
616 + </xs:element>
617 + <xs:element name="ExternalReferenceURL" type="xs:string" minOccurs="0" maxOccurs="1">
618 + <xs:annotation>
619 + <xs:documentation>URL for example to invoiceground</xs:documentation>
620 + </xs:annotation>
621 + </xs:element>
622 + <xs:element name="EDIOrderRows" maxOccurs="1" minOccurs="1">
623 + <xs:annotation>
624 + <xs:documentation>Containing invoice info specified in edi invoice</xs:documentation>
625 + </xs:annotation>
626 + <xs:complexType>
627 + <xs:sequence>
628 + <xs:element name="EDIVatGroup" minOccurs="1" maxOccurs="unbounded">
629 + <xs:annotation>
630 + <xs:documentation>Containing one VAT group and associated invoice rows</xs:documentation>
631 + </xs:annotation>
632 + <xs:complexType>
633 + <xs:sequence>
634 + <xs:element name="VatInfo" type="VatInfo" maxOccurs="1" minOccurs="1">
635 + </xs:element>
636 + <xs:element minOccurs="1" name="EDIOrderRow" maxOccurs="unbounded">
637 + <xs:annotation>
638 + <xs:documentation>Containing information about one edi invoice row</xs:documentation>
639 + </xs:annotation>
640 + <xs:complexType>
641 + <xs:sequence>
642 + <xs:element name="ArticleId" type="String35" minOccurs="0" maxOccurs="1">
643 + <xs:annotation>
644 + <xs:documentation>Optional article id associated to product/service</xs:documentation>
645 + </xs:annotation>
646 + </xs:element>
647 + <xs:element name="ProductGroup" type="String35" minOccurs="0" maxOccurs="1">
648 + <xs:annotation>
649 + <xs:documentation>Optional product group associated to product/service</xs:documentation>
650 + </xs:annotation>
651 + </xs:element>
652 + <xs:element name="ProductDate" type="xs:date" minOccurs="0" maxOccurs="1">
653 + <xs:annotation>
654 + <xs:documentation>Optional date of product/service</xs:documentation>
655 + </xs:annotation>
656 + </xs:element>
657 + <xs:element name="Text" type="String300" maxOccurs="1" minOccurs="1">
658 + <xs:annotation>
659 + <xs:documentation>Mandatory description of product/service</xs:documentation>
660 + </xs:annotation>
661 + </xs:element>
662 + <xs:element name="Quantity" type="Decimal5" maxOccurs="1" minOccurs="1">
663 + <xs:annotation>
664 + <xs:documentation>Mandatory quantity of the invoice product/service</xs:documentation>
665 + </xs:annotation>
666 + </xs:element>
667 + <xs:element name="Unit" type="String10" maxOccurs="1" minOccurs="1">
668 + <xs:annotation>
669 + <xs:documentation>Mandatory unit of quantity</xs:documentation>
670 + </xs:annotation>
671 + </xs:element>
672 + <xs:element name="UnitPriceExclVat" type="Money" maxOccurs="1" minOccurs="1">
673 + <xs:annotation>
674 + <xs:documentation>Mandatory unit price exclusive of VAT</xs:documentation>
675 + </xs:annotation>
676 + </xs:element>
677 + <xs:element name="AmountExclVat" type="Money" maxOccurs="1" minOccurs="1">
678 + <xs:annotation>
679 + <xs:documentation>Total order row amount exclusive of VAT</xs:documentation>
680 + </xs:annotation>
681 + </xs:element>
682 + <xs:element name="ContractDef" type="String35" minOccurs="0" maxOccurs="1">
683 + <xs:annotation>
684 + <xs:documentation>Optional definition of agreement</xs:documentation>
685 + </xs:annotation>
686 + </xs:element>
687 + <xs:element name="ContractType" type="String35" maxOccurs="1" minOccurs="1">
688 + <xs:annotation>
689 + <xs:documentation>Mandatory type of agreement</xs:documentation>
690 + </xs:annotation>
691 + </xs:element>
692 + </xs:sequence>
693 + </xs:complexType>
694 + </xs:element>
695 + </xs:sequence>
696 + </xs:complexType>
697 + </xs:element>
698 + </xs:sequence>
699 + </xs:complexType>
700 + </xs:element>
701 + </xs:sequence>
702 + </xs:complexType>
703 + </xs:element>
704 + <xs:element name="Notification" minOccurs="0" maxOccurs="1">
705 + <xs:annotation>
706 + <xs:documentation>Containing differing notification than customer setting or accounts receivable default</xs:documentation>
707 + </xs:annotation>
708 + <xs:complexType>
709 + <xs:sequence>
710 + <xs:element name="NotificationTextCode" type="xs:string" maxOccurs="1" minOccurs="1">
711 + <xs:annotation>
712 + <xs:documentation>Preconfigured notification text code in PayEx distribution system</xs:documentation>
713 + </xs:annotation>
714 + </xs:element>
715 + <xs:element name="NotificationDistributionType" type="eNotificationDistributionType" maxOccurs="1" minOccurs="1">
716 + <xs:annotation>
717 + <xs:documentation>Valid notification distribution type from enumeration eNotificationDistributionType</xs:documentation>
718 + </xs:annotation>
719 + </xs:element>
720 + </xs:sequence>
721 + </xs:complexType>
722 + </xs:element>
723 + </xs:sequence>
724 + </xs:complexType>
725 + </xs:element>
726 + <xs:element name="CreditInstructions" type="CreditInstructions" minOccurs="0" maxOccurs="1" >
727 + <xs:annotation>
728 + <xs:documentation>Containing instructions to settle the credit invoice against specific debit invoices</xs:documentation>
729 + </xs:annotation>
730 + </xs:element>
731 + </xs:sequence>
732 + </xs:complexType>
733 + </xs:element>
734 + <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceWithoutDistribution">
735 + <xs:annotation>
736 + <xs:documentation>Contains invoice information if your contracted service is with distribution of invoices</xs:documentation>
737 + </xs:annotation>
738 + <xs:complexType>
739 + <xs:sequence>
740 + <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="1" maxOccurs="1" >
741 + <xs:annotation>
742 + <xs:documentation>Your unique identifier/invoice number from the invoicing/billing system</xs:documentation>
743 + </xs:annotation>
744 + </xs:element>
745 + <xs:element name="ReferenceInfo" type="ReferenceInfo" minOccurs="0" maxOccurs="1" >
746 + <xs:annotation>
747 + <xs:documentation>Containing additional invoice reference information</xs:documentation>
748 + </xs:annotation>
749 + </xs:element>
750 + <xs:element name="InvoiceDate" type="xs:date" maxOccurs="1" minOccurs="1" >
751 + <xs:annotation>
752 + <xs:documentation>Invoice date from invoicing system</xs:documentation>
753 + </xs:annotation>
754 + </xs:element>
755 + <xs:element name="DueDate" type="xs:date" minOccurs="0" maxOccurs="1" >
756 + <xs:annotation>
757 + <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>
758 + </xs:annotation>
759 + </xs:element>
760 + <xs:element name="DistributionDate" type="xs:date" minOccurs="1" maxOccurs="1" >
761 + <xs:annotation>
762 + <xs:documentation>Date of distribution for the invoice</xs:documentation>
763 + </xs:annotation>
764 + </xs:element>
765 + <xs:element name="PaymentRefNo" type="String25" minOccurs="1" maxOccurs="1" >
766 + <xs:annotation>
767 + <xs:documentation>Unique payment reference (OCR) identifying invoice. Algorithm for creating payment references has to be approved by PayEx</xs:documentation>
768 + </xs:annotation>
769 + </xs:element>
770 + <xs:element name="Amount" type="Amount" minOccurs="1" maxOccurs="1" >
771 + <xs:annotation>
772 + <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>
773 + </xs:annotation>
774 + </xs:element>
775 + <xs:element name="CreditInstructions" type="CreditInstructions" minOccurs="0" maxOccurs="1">
776 + <xs:annotation>
777 + <xs:documentation>Containing instructions to settle the credit invoice against specific debit invoices. Only possible to use for credit invoice</xs:documentation>
778 + </xs:annotation>
779 + </xs:element>
780 + </xs:sequence>
781 + </xs:complexType>
782 + </xs:element>
783 + </xs:sequence>
784 + </xs:complexType>
785 + </xs:element>
786 + </xs:sequence>
787 + </xs:complexType>
788 + </xs:element>
789 + </xs:sequence>
790 + <xs:attribute name="Version" type="Version" use="required">
791 + <xs:annotation>
792 + <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>
793 + </xs:annotation>
794 + </xs:attribute>
795 + <xs:attribute name="CreatedDateTime" type="xs:dateTime" use="required" >
796 + <xs:annotation>
797 + <xs:documentation>Date and time when the file was created</xs:documentation>
798 + </xs:annotation>
799 + </xs:attribute>
800 + <xs:attribute name="CompanyNo" type="CompanyNumber" use="required" >
801 + <xs:annotation>
802 + <xs:documentation>Your accounts receivable number at PayEx</xs:documentation>
803 + </xs:annotation>
804 + </xs:attribute>
805 + <xs:attribute name="CompanyName" type="xs:string" use="required" >
806 + <xs:annotation>
807 + <xs:documentation>The name of your company/accounts receivable</xs:documentation>
808 + </xs:annotation>
809 + </xs:attribute>
810 + </xs:complexType>
811 + </xs:element>
812 + <xs:simpleType name="Money">
813 + <xs:restriction base="xs:decimal">
814 + <xs:fractionDigits value="2" />
815 + <xs:minInclusive value="-500000000" />
816 + <xs:maxInclusive value="500000000" />
817 + </xs:restriction>
818 + </xs:simpleType>
819 + <xs:simpleType name="CreditMoney">
820 + <xs:restriction base="xs:decimal">
821 + <xs:fractionDigits value="2" />
822 + <xs:minInclusive value="0.01" />
823 + <xs:maxInclusive value="100000000" />
824 + </xs:restriction>
825 + </xs:simpleType>
826 + <xs:simpleType name="Decimal5">
827 + <xs:restriction base="xs:decimal">
828 + <xs:fractionDigits value="5" />
829 + </xs:restriction>
830 + </xs:simpleType>
831 + <xs:simpleType name="Identifier15">
832 + <xs:restriction base="xs:string">
833 + <xs:pattern value="[a-zA-Z0-9äåöÄÅÖ&amp;/_ -.]*" />
834 + <xs:minLength value="1" />
835 + <xs:maxLength value="15" />
836 + </xs:restriction>
837 + </xs:simpleType>
838 + <xs:simpleType name="ISO3166">
839 + <xs:restriction base="xs:string">
840 + <xs:pattern value="[A-Z]*" />
841 + <xs:minLength value="2" />
842 + <xs:maxLength value="2" />
843 + </xs:restriction>
844 + </xs:simpleType>
845 + <xs:simpleType name="CompanyNumber">
846 + <xs:restriction base="xs:string">
847 + <xs:pattern value="[0-9]*" />
848 + <xs:minLength value="1" />
849 + <xs:maxLength value="15" />
850 + </xs:restriction>
851 + </xs:simpleType>
852 + <xs:simpleType name="ISO639">
853 + <xs:restriction base="PXString">
854 + <xs:enumeration value="SV" />
855 + <xs:enumeration value="NO" />
856 + <xs:enumeration value="DA" />
857 + <xs:enumeration value="FI" />
858 + <xs:enumeration value="EN" />
859 + </xs:restriction>
860 + </xs:simpleType>
861 + <xs:simpleType name="VatType">
862 + <xs:restriction base="PXString">
863 + <xs:enumeration value="Normal" >
864 + <xs:annotation>
865 + <xs:documentation>Customer is liable to pay taxes in the same country as the Company</xs:documentation>
866 + </xs:annotation>
867 + </xs:enumeration>
868 + <xs:enumeration value="ReverseVatLiability_Eu">
869 + <xs:annotation>
870 + <xs:documentation>Customer operates in another EU country and is obliged to pay VAT in that country</xs:documentation>
871 + </xs:annotation>
872 + </xs:enumeration>
873 + <xs:enumeration value="NotSubjectToVat_Eu">
874 + <xs:annotation>
875 + <xs:documentation>Customer operates in another EU country and is not subject to VAT</xs:documentation>
876 + </xs:annotation>
877 + </xs:enumeration>
878 + <xs:enumeration value="NotSubjectToVat_NonEu">
879 + <xs:annotation>
880 + <xs:documentation>Customer operates in another country outside the EU and is not subject to VAT</xs:documentation>
881 + </xs:annotation>
882 + </xs:enumeration>
883 + </xs:restriction>
884 + </xs:simpleType>
885 + <xs:simpleType name="String35">
886 + <xs:restriction base="PXString">
887 + <xs:maxLength value="35" />
888 + </xs:restriction>
889 + </xs:simpleType>
890 + <xs:simpleType name="Email">
891 + <xs:restriction base="PXString">
892 + <xs:maxLength value="254" />
893 + </xs:restriction>
894 + </xs:simpleType>
895 + <xs:simpleType name="String15">
896 + <xs:restriction base="PXString">
897 + <xs:maxLength value="15" />
898 + </xs:restriction>
899 + </xs:simpleType>
900 + <xs:simpleType name="ZipCode">
901 + <xs:restriction base="xs:string">
902 + <xs:pattern value="[A-Z0-9\-]+" />
903 + <xs:maxLength value="9" />
904 + </xs:restriction>
905 + </xs:simpleType>
906 + <xs:simpleType name="ePaymentType">
907 + <xs:restriction base="xs:string">
908 + <xs:enumeration value="PGSE">
909 + <xs:annotation>
910 + <xs:documentation>Refers to a Swedish Plusgiro account</xs:documentation>
911 + </xs:annotation>
912 + </xs:enumeration>
913 + <xs:enumeration value="BGSE">
914 + <xs:annotation>
915 + <xs:documentation>Refers to a Swedish Bankgiro account</xs:documentation>
916 + </xs:annotation>
917 + </xs:enumeration>
918 + <xs:enumeration value="BKNO">
919 + <xs:annotation>
920 + <xs:documentation>Refers to a Norwegian bank account</xs:documentation>
921 + </xs:annotation>
922 + </xs:enumeration>
923 + </xs:restriction>
924 + </xs:simpleType>
925 + <xs:simpleType name="VatNumber">
926 + <xs:restriction base="xs:string">
927 + <xs:pattern value="[A-Z]{2}.*" />
928 + <xs:minLength value="7" />
929 + <xs:maxLength value="14" />
930 + </xs:restriction>
931 + </xs:simpleType>
932 + <xs:simpleType name="eDistributionType">
933 + <xs:restriction base="xs:string">
934 + <xs:enumeration value="PostalService">
935 + <xs:annotation>
936 + <xs:documentation>Distribution is made by postal service</xs:documentation>
937 + </xs:annotation>
938 + </xs:enumeration>
939 + <xs:enumeration value="EMail">
940 + <xs:annotation>
941 + <xs:documentation>Distribution is made by E-mail</xs:documentation>
942 + </xs:annotation>
943 + </xs:enumeration>
944 + <xs:enumeration value="EInvoiceB2B">
945 + <xs:annotation>
946 + <xs:documentation>Distribution is made by B2B EDI</xs:documentation>
947 + </xs:annotation>
948 + </xs:enumeration>
949 + <xs:enumeration value="Archive">
950 + <xs:annotation>
951 + <xs:documentation>No distribution, only archiving</xs:documentation>
952 + </xs:annotation>
953 + </xs:enumeration>
954 + </xs:restriction>
955 + </xs:simpleType>
956 + <xs:simpleType name="String50">
957 + <xs:restriction base="xs:string">
958 + <xs:maxLength value="50" />
959 + </xs:restriction>
960 + </xs:simpleType>
961 + <xs:simpleType name="String100">
962 + <xs:restriction base="xs:string">
963 + <xs:maxLength value="100" />
964 + </xs:restriction>
965 + </xs:simpleType>
966 + <xs:simpleType name="String200">
967 + <xs:restriction base="xs:string">
968 + <xs:maxLength value="200" />
969 + </xs:restriction>
970 + </xs:simpleType>
971 + <xs:simpleType name="String300">
972 + <xs:restriction base="PXString">
973 + <xs:maxLength value="300" />
974 + </xs:restriction>
975 + </xs:simpleType>
976 + <xs:complexType name="Address">
977 + <xs:sequence>
978 + <xs:element minOccurs="1" maxOccurs="1" type="NameAddressString72" name="Addressee">
979 + <xs:annotation>
980 + <xs:documentation>Full name of addressee</xs:documentation>
981 + </xs:annotation>
982 + </xs:element>
983 + <xs:element name="StreetAddress" type="NameAddressString35" minOccurs="0" maxOccurs="1" nillable="false">
984 + <xs:annotation>
985 + <xs:documentation>Street address</xs:documentation>
986 + </xs:annotation>
987 + </xs:element>
988 + <xs:element name="ZipCode" type="ZipCode" maxOccurs="1" minOccurs="1" nillable="false">
989 + <xs:annotation>
990 + <xs:documentation>Zipcode conforming to country standard</xs:documentation>
991 + </xs:annotation>
992 + </xs:element>
993 + <xs:element name="City" type="NameAddressString27" minOccurs="1" maxOccurs="1" nillable="false">
994 + <xs:annotation>
995 + <xs:documentation>City</xs:documentation>
996 + </xs:annotation>
997 + </xs:element>
998 + <xs:element name="CoAddress" type="NameAddressString35" minOccurs="0" maxOccurs="1" nillable="false">
999 + <xs:annotation>
1000 + <xs:documentation>Care of address</xs:documentation>
1001 + </xs:annotation>
1002 + </xs:element>
1003 + <xs:element name="CountryCode" type="ISO3166" minOccurs="1" maxOccurs="1">
1004 + <xs:annotation>
1005 + <xs:documentation>Country code according to ISO 3166</xs:documentation>
1006 + </xs:annotation>
1007 + </xs:element>
1008 + </xs:sequence>
1009 + <xs:attribute name="AddressType" type="AddressType" use="required">
1010 + <xs:annotation>
1011 + <xs:documentation>Valid address type from enumeration AddressType</xs:documentation>
1012 + </xs:annotation>
1013 + </xs:attribute>
1014 + </xs:complexType>
1015 + <xs:simpleType name="AddressType">
1016 + <xs:restriction base="xs:string">
1017 + <xs:enumeration value="LegalAddress">
1018 + <xs:annotation>
1019 + <xs:documentation>Legal address. Mandatory</xs:documentation>
1020 + </xs:annotation>
1021 + </xs:enumeration>
1022 + <xs:enumeration value="BillingAddress">
1023 + <xs:annotation>
1024 + <xs:documentation>Billing address. Should only be supplied if it differs from legal address</xs:documentation>
1025 + </xs:annotation>
1026 + </xs:enumeration>
1027 + </xs:restriction>
1028 + </xs:simpleType>
1029 + <xs:complexType name="Amount">
1030 + <xs:annotation>
1031 + <xs:documentation>Containing amount excl vat and vat amount</xs:documentation>
1032 + </xs:annotation>
1033 + <xs:sequence>
1034 + <xs:element minOccurs="1" maxOccurs="1" name="AmountExclVat" type="Money" nillable="false">
1035 + <xs:annotation>
1036 + <xs:documentation>Amount exclusive of VAT</xs:documentation>
1037 + </xs:annotation>
1038 + </xs:element>
1039 + <xs:element minOccurs="1" maxOccurs="1" name="VatAmount" type="Money" nillable="false">
1040 + <xs:annotation>
1041 + <xs:documentation>VAT amount</xs:documentation>
1042 + </xs:annotation>
1043 + </xs:element>
1044 + </xs:sequence>
1045 + <xs:attribute name="Currency" type="eCurrencyType" use="required">
1046 + <xs:annotation>
1047 + <xs:documentation>Valid currency from enumeration eCurrencyType</xs:documentation>
1048 + </xs:annotation>
1049 + </xs:attribute>
1050 + </xs:complexType>
1051 + <xs:simpleType name="PXFactoringServiceCode">
1052 + <xs:restriction base="xs:string">
1053 + <xs:enumeration value="K">
1054 + <xs:annotation>
1055 + <xs:documentation>Only valid for contracted factoring service. Indication to the contracted factoring company to buy the invoice</xs:documentation>
1056 + </xs:annotation>
1057 + </xs:enumeration>
1058 + </xs:restriction>
1059 + </xs:simpleType>
1060 + <xs:simpleType name="VatRate">
1061 + <xs:annotation>
1062 + <xs:documentation>Supported VAT rates</xs:documentation>
1063 + </xs:annotation>
1064 + <xs:restriction base="xs:decimal">
1065 + <xs:enumeration value="0.00" />
1066 + <xs:enumeration value="6.00" />
1067 + <xs:enumeration value="12.00" />
1068 + <xs:enumeration value="25.00" />
1069 + <xs:enumeration value="14.00" />
1070 + <xs:enumeration value="8.00" />
1071 + <xs:enumeration value="22.0" />
1072 + </xs:restriction>
1073 + </xs:simpleType>
1074 + <xs:simpleType name="String10">
1075 + <xs:restriction base="PXString">
1076 + <xs:maxLength value="10" />
1077 + </xs:restriction>
1078 + </xs:simpleType>
1079 + <xs:simpleType name="String30">
1080 + <xs:restriction base="PXString">
1081 + <xs:maxLength value="30" />
1082 + </xs:restriction>
1083 + </xs:simpleType>
1084 + <xs:simpleType name="String25">
1085 + <xs:restriction base="PXString">
1086 + <xs:maxLength value="25" />
1087 + </xs:restriction>
1088 + </xs:simpleType>
1089 + <xs:simpleType name="NameAddressString35">
1090 + <xs:restriction base="PXNameAddressString">
1091 + <xs:maxLength value="35" />
1092 + </xs:restriction>
1093 + </xs:simpleType>
1094 + <xs:simpleType name="NameAddressString72">
1095 + <xs:restriction base="PXNameAddressString">
1096 + <xs:minLength value="1" />
1097 + <xs:maxLength value="72" />
1098 + </xs:restriction>
1099 + </xs:simpleType>
1100 + <xs:simpleType name="NameAddressString27">
1101 + <xs:restriction base="PXNameAddressString">
1102 + <xs:minLength value="1" />
1103 + <xs:maxLength value="27" />
1104 + </xs:restriction>
1105 + </xs:simpleType>
1106 + <xs:simpleType name="PXString">
1107 + <xs:restriction base="xs:string">
1108 + <xs:pattern value="[a-zA-Z0-9_:!;&quot;#&lt;&gt;=?\[\]@{}´ %'-/À-ÖØ-öø-úü&amp;]*" />
1109 + <xs:minLength value="1" />
1110 + </xs:restriction>
1111 + </xs:simpleType>
1112 + <xs:simpleType name="PXNameAddressString">
1113 + <xs:restriction base="xs:string">
1114 + <xs:pattern value="[a-zA-Z0-9_:!;&quot;#&lt;&gt;=?\[\]@{}´ %'-/À-ÖØ-öø-úü&amp;]*" />
1115 + </xs:restriction>
1116 + </xs:simpleType>
1117 + <xs:simpleType name="TableType">
1118 + <xs:restriction base="xs:string">
1119 + <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" />
1120 + </xs:restriction>
1121 + </xs:simpleType>
1122 + <xs:complexType name="ReferenceInfo">
1123 + <xs:sequence>
1124 + <xs:element name="ExternalInvoiceId" type="String50" maxOccurs="1" minOccurs="0" nillable="false">
1125 + <xs:annotation>
1126 + <xs:documentation>Additional unique invoice identifier in accounts receivable</xs:documentation>
1127 + </xs:annotation>
1128 + </xs:element>
1129 + <xs:element name="ExternalReference" type="String50" maxOccurs="1" minOccurs="0" nillable="false">
1130 + <xs:annotation>
1131 + <xs:documentation>Optional reference text</xs:documentation>
1132 + </xs:annotation>
1133 + </xs:element>
1134 + <xs:element name="InvoiceReferenceText" type="String200" maxOccurs="1" minOccurs="0" nillable="false">
1135 + <xs:annotation>
1136 + <xs:documentation>General text describing the product/service invoiced</xs:documentation>
1137 + </xs:annotation>
1138 + </xs:element>
1139 + </xs:sequence>
1140 + </xs:complexType>
1141 + <xs:complexType name="RegNo">
1142 + <xs:annotation>
1143 + <xs:documentation>Social security number/Corporate identity number conforming to country standard</xs:documentation>
1144 + </xs:annotation>
1145 + <xs:simpleContent>
1146 + <xs:extension base="String15">
1147 + <xs:attribute name="CountryCode" type="ISO3166" use="required">
1148 + <xs:annotation>
1149 + <xs:documentation>Nationality of RegNo according to ISO3166</xs:documentation>
1150 + </xs:annotation>
1151 + </xs:attribute>
1152 + </xs:extension>
1153 + </xs:simpleContent>
1154 + </xs:complexType>
1155 + <xs:simpleType name="LegalEntity">
1156 + <xs:annotation>
1157 + <xs:documentation>Legal entity of the customer.</xs:documentation>
1158 + </xs:annotation>
1159 + <xs:restriction base="xs:string">
1160 + <xs:enumeration value="Private" />
1161 + <xs:enumeration value="Business" />
1162 + </xs:restriction>
1163 + </xs:simpleType>
1164 + <xs:simpleType name="eNotificationDistributionType">
1165 + <xs:restriction base="xs:string">
1166 + <xs:enumeration value="EMail">
1167 + <xs:annotation>
1168 + <xs:documentation>Notification is made by E-Mail</xs:documentation>
1169 + </xs:annotation>
1170 + </xs:enumeration>
1171 + </xs:restriction>
1172 + </xs:simpleType>
1173 + <xs:complexType name="VatInfo">
1174 + <xs:sequence>
1175 + <xs:element name="VatAmount" type="Money" maxOccurs="1" minOccurs="1">
1176 + <xs:annotation>
1177 + <xs:documentation>VAT amount</xs:documentation>
1178 + </xs:annotation>
1179 + </xs:element>
1180 + <xs:element name="VatRate" type="VatRate" maxOccurs="1" minOccurs="1">
1181 + <xs:annotation>
1182 + <xs:documentation>VAT rate associated with VatAmount</xs:documentation>
1183 + </xs:annotation>
1184 + </xs:element>
1185 + </xs:sequence>
1186 + </xs:complexType>
1187 + <xs:simpleType name="eDunningBillType">
1188 + <xs:restriction base="xs:string">
1189 + <xs:enumeration value="SE_10">
1190 + <xs:annotation>
1191 + <xs:documentation>Swedish reminder 1</xs:documentation>
1192 + </xs:annotation>
1193 + </xs:enumeration>
1194 + <xs:enumeration value="SE_20">
1195 + <xs:annotation>
1196 + <xs:documentation>Swedish reminder 2</xs:documentation>
1197 + </xs:annotation>
1198 + </xs:enumeration>
1199 + </xs:restriction>
1200 + </xs:simpleType>
1201 + <xs:simpleType name="fInvoiceNo">
1202 + <xs:restriction base="xs:string">
1203 + <xs:pattern value="[A-Za-z0-9\-]+" />
1204 + <xs:maxLength value="15" />
1205 + </xs:restriction>
1206 + </xs:simpleType>
1207 + <xs:simpleType name="eDistributionBillType">
1208 + <xs:restriction base="xs:string">
1209 + <xs:enumeration value="I_Invoice">
1210 + <xs:annotation>
1211 + <xs:documentation>Refers to invoice</xs:documentation>
1212 + </xs:annotation>
1213 + </xs:enumeration>
1214 + </xs:restriction>
1215 + </xs:simpleType>
1216 + <xs:simpleType name="eDunningRule">
1217 + <xs:restriction base="xs:string">
1218 + <xs:enumeration value="I_PenaltyIntrAndFeeLimit">
1219 + <xs:annotation>
1220 + <xs:documentation>Instruction to credit non payed penalty interest and fees below limit amount. Set value to a positive amount (integer) </xs:documentation>
1221 + </xs:annotation>
1222 + </xs:enumeration>
1223 + <xs:enumeration value="I_PaymentTerms">
1224 + <xs:annotation>
1225 + <xs:documentation>Payment terms for invoice. Set value to number of days (integer)</xs:documentation>
1226 + </xs:annotation>
1227 + </xs:enumeration>
1228 + </xs:restriction>
1229 + </xs:simpleType>
1230 + <xs:simpleType name="eNotificationBillType">
1231 + <xs:restriction base="xs:string">
1232 + <xs:enumeration value="I_Invoice">
1233 + <xs:annotation>
1234 + <xs:documentation>Refers to Invoice</xs:documentation>
1235 + </xs:annotation>
1236 + </xs:enumeration>
1237 + </xs:restriction>
1238 + </xs:simpleType>
1239 + <xs:simpleType name="eCurrencyType">
1240 + <xs:restriction base="xs:string">
1241 + <xs:enumeration value="SEK" />
1242 + <xs:enumeration value="NOK" />
1243 + <xs:enumeration value="DKK" />
1244 + <xs:enumeration value="EUR" />
1245 + </xs:restriction>
1246 + </xs:simpleType>
1247 + <xs:complexType name="CreditInstructions">
1248 + <xs:annotation>
1249 + <xs:documentation>Containing settle instructions for a credit invoice. Can only be used if specially contracted with PayEx</xs:documentation>
1250 + </xs:annotation>
1251 + <xs:sequence>
1252 + <xs:element name="CreditInstruction" minOccurs="1" maxOccurs="unbounded">
1253 + <xs:annotation>
1254 + <xs:documentation>Containing 1 settle instruction for a credit invoice</xs:documentation>
1255 + </xs:annotation>
1256 + <xs:complexType>
1257 + <xs:sequence>
1258 + <xs:element name="InvoiceIdentifier" minOccurs="1" maxOccurs="1">
1259 + <xs:annotation>
1260 + <xs:documentation>Containing either InvoiceNo or ExternalInvoiceId to identify a debit invoice</xs:documentation>
1261 + </xs:annotation>
1262 + <xs:complexType>
1263 + <xs:choice>
1264 + <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="1" maxOccurs="1">
1265 + <xs:annotation>
1266 + <xs:documentation>InvoiceNo identifying a debit invoice</xs:documentation>
1267 + </xs:annotation>
1268 + </xs:element>
1269 + <xs:element name="ExternalInvoiceId" type="String50" minOccurs="1" maxOccurs="1">
1270 + <xs:annotation>
1271 + <xs:documentation>ExternalInvoiceId identifying a debit invoice</xs:documentation>
1272 + </xs:annotation>
1273 + </xs:element>
1274 + </xs:choice>
1275 + </xs:complexType>
1276 + </xs:element>
1277 + <xs:element name="CreditAmount" type="CreditMoney">
1278 + <xs:annotation>
1279 + <xs:documentation>The amount to credit</xs:documentation>
1280 + </xs:annotation>
1281 + </xs:element>
1282 + </xs:sequence>
1283 + <xs:attribute name="SendCopy" type="xs:boolean" use="required" >
1284 + <xs:annotation>
1285 + <xs:documentation>Set to true if a adjusted "invoice copy" shall be sent to the customer after the credit has been made</xs:documentation>
1286 + </xs:annotation>
1287 + </xs:attribute>
1288 + </xs:complexType>
1289 + </xs:element>
1290 + </xs:sequence>
1291 + </xs:complexType>
1292 + <xs:complexType name="Columns">
1293 + <xs:annotation>
1294 + <xs:documentation>Containing 1-12 columns</xs:documentation>
1295 + </xs:annotation>
1296 + <xs:sequence>
1297 + <xs:element name="Column" type="Column" minOccurs="1" maxOccurs="12" />
1298 + </xs:sequence>
1299 + </xs:complexType>
1300 + <xs:simpleType name="ePaymentRule">
1301 + <xs:restriction base="xs:string">
1302 + <xs:enumeration value="UseBGAGSE">
1303 + <xs:annotation>
1304 + <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>
1305 + </xs:annotation>
1306 + </xs:enumeration>
1307 + <xs:enumeration value="UseBKAGNO">
1308 + <xs:annotation>
1309 + <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>
1310 + </xs:annotation>
1311 + </xs:enumeration>
1312 + </xs:restriction>
1313 + </xs:simpleType>
1314 + <xs:simpleType name="eDistributionRule">
1315 + <xs:restriction base="xs:string">
1316 + <xs:enumeration value="UseEInvoiceB2CSE">
1317 + <xs:annotation>
1318 + <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>
1319 + </xs:annotation>
1320 + </xs:enumeration>
1321 + <xs:enumeration value="UseEInvoiceB2CNO">
1322 + <xs:annotation>
1323 + <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>
1324 + </xs:annotation>
1325 + </xs:enumeration>
1326 + <xs:enumeration value="UseEInvoiceB2CFI">
1327 + <xs:annotation>
1328 + <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>
1329 + </xs:annotation>
1330 + </xs:enumeration>
1331 + </xs:restriction>
1332 + </xs:simpleType>
1333 + <xs:simpleType name="eColumnNo">
1334 + <xs:restriction base="xs:unsignedShort">
1335 + <xs:enumeration value="1">
1336 + <xs:annotation>
1337 + <xs:documentation>Refers to column 1</xs:documentation>
1338 + </xs:annotation>
1339 + </xs:enumeration>
1340 + <xs:enumeration value="2">
1341 + <xs:annotation>
1342 + <xs:documentation>Refers to column 2</xs:documentation>
1343 + </xs:annotation>
1344 + </xs:enumeration>
1345 + <xs:enumeration value="3">
1346 + <xs:annotation>
1347 + <xs:documentation>Refers to column 3</xs:documentation>
1348 + </xs:annotation>
1349 + </xs:enumeration>
1350 + <xs:enumeration value="4">
1351 + <xs:annotation>
1352 + <xs:documentation>Refers to column 4</xs:documentation>
1353 + </xs:annotation>
1354 + </xs:enumeration>
1355 + <xs:enumeration value="5">
1356 + <xs:annotation>
1357 + <xs:documentation>Refers to column 5</xs:documentation>
1358 + </xs:annotation>
1359 + </xs:enumeration>
1360 + <xs:enumeration value="6">
1361 + <xs:annotation>
1362 + <xs:documentation>Refers to column 6</xs:documentation>
1363 + </xs:annotation>
1364 + </xs:enumeration>
1365 + <xs:enumeration value="7">
1366 + <xs:annotation>
1367 + <xs:documentation>Refers to column 7</xs:documentation>
1368 + </xs:annotation>
1369 + </xs:enumeration>
1370 + <xs:enumeration value="8">
1371 + <xs:annotation>
1372 + <xs:documentation>Refers to column 8</xs:documentation>
1373 + </xs:annotation>
1374 + </xs:enumeration>
1375 + <xs:enumeration value="9">
1376 + <xs:annotation>
1377 + <xs:documentation>Refers to column 9</xs:documentation>
1378 + </xs:annotation>
1379 + </xs:enumeration>
1380 + <xs:enumeration value="10">
1381 + <xs:annotation>
1382 + <xs:documentation>Refers to column 10</xs:documentation>
1383 + </xs:annotation>
1384 + </xs:enumeration>
1385 + <xs:enumeration value="11">
1386 + <xs:annotation>
1387 + <xs:documentation>Refers to column 11</xs:documentation>
1388 + </xs:annotation>
1389 + </xs:enumeration>
1390 + <xs:enumeration value="12">
1391 + <xs:annotation>
1392 + <xs:documentation>Refers to column 12</xs:documentation>
1393 + </xs:annotation>
1394 + </xs:enumeration>
1395 + </xs:restriction>
1396 + </xs:simpleType>
1397 + <xs:complexType name="Column">
1398 + <xs:sequence>
1399 + <xs:element name="Text" type="xs:string" maxOccurs="1" minOccurs="1">
1400 + <xs:annotation>
1401 + <xs:documentation>Text printed in cell</xs:documentation>
1402 + </xs:annotation>
1403 + </xs:element>
1404 + </xs:sequence>
1405 + <xs:attribute name="ColumnNo" type="eColumnNo" use="required" />
1406 + </xs:complexType>
1407 + <xs:complexType name="BasePrintBlock">
1408 + <xs:annotation>
1409 + <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>
1410 + </xs:annotation>
1411 + <xs:sequence>
1412 + <xs:element name="HeadLine" type="xs:string" minOccurs="0" maxOccurs="1">
1413 + <xs:annotation>
1414 + <xs:documentation>Optional print block headline</xs:documentation>
1415 + </xs:annotation>
1416 + </xs:element>
1417 + <xs:element name="SubOrderBlocks" minOccurs="1" maxOccurs="1">
1418 + <xs:complexType>
1419 + <xs:sequence>
1420 + <xs:element name="SubOrderBlock" minOccurs="1" maxOccurs="unbounded">
1421 + <xs:complexType>
1422 + <xs:sequence>
1423 + <xs:element minOccurs="0" name="HeadLine" maxOccurs="1" type="xs:string">
1424 + <xs:annotation>
1425 + <xs:documentation>Optional suborder block headline</xs:documentation>
1426 + </xs:annotation>
1427 + </xs:element>
1428 + <xs:element minOccurs="0" maxOccurs="1" name="ColumnHeadLine">
1429 + <xs:annotation>
1430 + <xs:documentation>Optional column headline(s)</xs:documentation>
1431 + </xs:annotation>
1432 + <xs:complexType>
1433 + <xs:sequence>
1434 + <xs:element name="Columns" type="Columns" maxOccurs="1" minOccurs="1">
1435 + <xs:annotation>
1436 + <xs:documentation>Containing cells for column headline row of the referred table type</xs:documentation>
1437 + </xs:annotation>
1438 + </xs:element>
1439 + </xs:sequence>
1440 + </xs:complexType>
1441 + </xs:element>
1442 + <xs:element name="Rows" minOccurs="1" maxOccurs="1">
1443 + <xs:annotation>
1444 + <xs:documentation>Containing rows</xs:documentation>
1445 + </xs:annotation>
1446 + <xs:complexType>
1447 + <xs:sequence>
1448 + <xs:element minOccurs="0" name="Row" maxOccurs="unbounded">
1449 + <xs:annotation>
1450 + <xs:documentation>Containing one row</xs:documentation>
1451 + </xs:annotation>
1452 + <xs:complexType>
1453 + <xs:sequence>
1454 + <xs:element name="Columns" type="Columns" maxOccurs="1" minOccurs="1">
1455 + <xs:annotation>
1456 + <xs:documentation>Containing cells for one row of the referred table type</xs:documentation>
1457 + </xs:annotation>
1458 + </xs:element>
1459 + </xs:sequence>
1460 + </xs:complexType>
1461 + </xs:element>
1462 + </xs:sequence>
1463 + </xs:complexType>
1464 + </xs:element>
1465 + <xs:element name="SummaryRow" minOccurs="0" maxOccurs="1">
1466 + <xs:annotation>
1467 + <xs:documentation>Optional summary row of referred table type</xs:documentation>
1468 + </xs:annotation>
1469 + <xs:complexType>
1470 + <xs:sequence>
1471 + <xs:element name="Columns" type="Columns" minOccurs="1" maxOccurs="1">
1472 + <xs:annotation>
1473 + <xs:documentation>Containing cells for summary row of the referred table type</xs:documentation>
1474 + </xs:annotation>
1475 + </xs:element>
1476 + </xs:sequence>
1477 + </xs:complexType>
1478 + </xs:element>
1479 + </xs:sequence>
1480 + <xs:attribute name="TableType" type="TableType" use="required">
1481 + <xs:annotation>
1482 + <xs:documentation>The name of the predefined table type in PayEx print system.</xs:documentation>
1483 + </xs:annotation>
1484 + </xs:attribute>
1485 + </xs:complexType>
1486 + </xs:element>
1487 + </xs:sequence>
1488 + </xs:complexType>
1489 + </xs:element>
1490 + </xs:sequence>
1491 + </xs:complexType>
1492 + <xs:complexType name="PrintBlockConfig">
1493 + <xs:sequence>
1494 + </xs:sequence>
1495 + <xs:attribute name="PrecedingPageBreak" type="xs:boolean" use="optional">
1496 + <xs:annotation>
1497 + <xs:documentation>Instruction to start printing the print block on a new page</xs:documentation>
1498 + </xs:annotation>
1499 + </xs:attribute>
1500 + <xs:attribute name="PrecedingSheetBreak" type="xs:boolean" use="optional">
1501 + <xs:annotation>
1502 + <xs:documentation>Instruction to start printing the print block on a new sheet</xs:documentation>
1503 + </xs:annotation>
1504 + </xs:attribute>
1505 + </xs:complexType>
1506 + <xs:complexType name="PredefinedPrintBlocks">
1507 + <xs:sequence>
1508 + <xs:element name="PredefinedPrintBlock" minOccurs="1" maxOccurs="unbounded">
1509 + <xs:annotation>
1510 + <xs:documentation>Containing predefined print block printed in specified predefined area in layout</xs:documentation>
1511 + </xs:annotation>
1512 + <xs:complexType>
1513 + <xs:choice>
1514 + <xs:element name="Image" minOccurs="1" maxOccurs="1">
1515 + <xs:annotation>
1516 + <xs:documentation>Containing predefined image printed in specified predefined area in layout</xs:documentation>
1517 + </xs:annotation>
1518 + <xs:complexType>
1519 + <xs:sequence>
1520 + <xs:element name="ImageName" type="xs:string" minOccurs="1" maxOccurs="1">
1521 + <xs:annotation>
1522 + <xs:documentation>Name of predefined image in PayEx print system</xs:documentation>
1523 + </xs:annotation>
1524 + </xs:element>
1525 + </xs:sequence>
1526 + <xs:attribute name="ImageAreaName" type="xs:string" use="required">
1527 + <xs:annotation>
1528 + <xs:documentation>Name of predefined image area in layout</xs:documentation>
1529 + </xs:annotation>
1530 + </xs:attribute>
1531 + </xs:complexType>
1532 + </xs:element>
1533 + <xs:element name="Paragraph" minOccurs="1" maxOccurs="1">
1534 + <xs:annotation>
1535 + <xs:documentation>Containing predefined paragraph printed in specified predefined area in layout</xs:documentation>
1536 + </xs:annotation>
1537 + <xs:complexType>
1538 + <xs:sequence>
1539 + <xs:element name="ParagraphName" type="xs:string" minOccurs="1" maxOccurs="1">
1540 + <xs:annotation>
1541 + <xs:documentation>Name of predefined paragraph in PayEx print system</xs:documentation>
1542 + </xs:annotation>
1543 + </xs:element>
1544 + </xs:sequence>
1545 + <xs:attribute name="ParagraphAreaName" type="xs:string" use="required">
1546 + <xs:annotation>
1547 + <xs:documentation>Name of predefined paragraph area name in layout</xs:documentation>
1548 + </xs:annotation>
1549 + </xs:attribute>
1550 + </xs:complexType>
1551 + </xs:element>
1552 + </xs:choice>
1553 + </xs:complexType>
1554 + </xs:element>
1555 + </xs:sequence>
1556 + </xs:complexType>
1557 + <xs:complexType name="ExtraPrintBlocks">
1558 + <xs:sequence>
1559 + <xs:element name="ExtraPrintBlock" minOccurs="1" maxOccurs="unbounded">
1560 + <xs:annotation>
1561 + <xs:documentation>Containing print block printed in specified predefined area in layout</xs:documentation>
1562 + </xs:annotation>
1563 + <xs:complexType>
1564 + <xs:sequence>
1565 + <xs:element name="BasePrintBlock" type="BasePrintBlock" minOccurs="1" maxOccurs="1" />
1566 + </xs:sequence>
1567 + <xs:attribute name="PrintBlockAreaName" type="xs:string" use="required">
1568 + <xs:annotation>
1569 + <xs:documentation>Name of predefined area in layout</xs:documentation>
1570 + </xs:annotation>
1571 + </xs:attribute>
1572 + </xs:complexType>
1573 + </xs:element>
1574 + </xs:sequence>
1575 + </xs:complexType>
1576 + <xs:complexType name="StandardPrintBlocks">
1577 + <xs:sequence>
1578 + <xs:element name="StandardPrintBlock" minOccurs="1" maxOccurs="unbounded">
1579 + <xs:complexType>
1580 + <xs:sequence>
1581 + <xs:element name="BasePrintBlock" type="BasePrintBlock" maxOccurs="1" minOccurs="1" />
1582 + <xs:element name="PrintBlockConfig" type="PrintBlockConfig" minOccurs="0" maxOccurs="1" />
1583 + </xs:sequence>
1584 + </xs:complexType>
1585 + </xs:element>
1586 + </xs:sequence>
1587 + </xs:complexType>
1588 + <xs:complexType name="SpecificationPrintBlocks">
1589 + <xs:sequence>
1590 + <xs:element name="SpecificationPrintBlock" minOccurs="1" maxOccurs="unbounded">
1591 + <xs:complexType>
1592 + <xs:sequence>
1593 + <xs:element name="BasePrintBlock" type="BasePrintBlock" maxOccurs="1" minOccurs="1" />
1594 + <xs:element name="PrintBlockConfig" type="PrintBlockConfig" maxOccurs="1" minOccurs="1" />
1595 + </xs:sequence>
1596 + <xs:attribute name="PrintBlockIdentifier" type="xs:string" />
1597 + </xs:complexType>
1598 + </xs:element>
1599 + </xs:sequence>
1600 + </xs:complexType>
1601 + <xs:simpleType name="eSummaryType">
1602 + <xs:restriction base="xs:string">
1603 + <xs:enumeration value="SA">
1604 + <xs:annotation>
1605 + <xs:documentation>Summary</xs:documentation>
1606 + </xs:annotation>
1607 + </xs:enumeration>
1608 + <xs:enumeration value="SSA">
1609 + <xs:annotation>
1610 + <xs:documentation>Aggregated summary</xs:documentation>
1611 + </xs:annotation>
1612 + </xs:enumeration>
1613 + </xs:restriction>
1614 + </xs:simpleType>
1615 + <xs:simpleType name="Version">
1616 + <xs:restriction base="xs:string">
1617 + <xs:enumeration value="2.0"/>
1618 + <xs:enumeration value="2.1">
1619 + <xs:enumeration value="2.2">
1620 + <xs:annotation>
1621 + <xs:documentation>EdiInfo.EDIOrderRows.Quantity decimal support,
1622 + EDIInfo.ExternalreferenceURL, added new field
1623 + Added support for more characters in EdiInfo.EDIOrderRow.ContractType
1624 + </xs:documentation>
1625 + </xs:annotation>
1626 + </xs:enumeration>
1627 + <xs:annotation>
1628 + <xs:documentation>Added new DistributionRule UseEInvoiceB2CFI, and two new properties for accounting InterCompanyCode and VatType. Increased Money type to 500 000 000</xs:documentation>
1629 + </xs:annotation>
1630 + </xs:enumeration>
1631 + </xs:restriction>
1632 + </xs:simpleType>
1633 +</xs:schema>
1634 +
CUSIN_[2.3].xsd
Author
... ... @@ -1,0 +1,1 @@
1 +xwiki:XWiki.ihq
Size
... ... @@ -1,0 +1,1 @@
1 +0 bytes
Content
... ... @@ -1,0 +1,1644 @@
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 + <xs:element name="CUSIN">
4 + <xs:complexType>
5 + <xs:sequence>
6 + <xs:element name="DistributionDate" minOccurs="0" maxOccurs="1">
7 + <xs:annotation>
8 + <xs:documentation>Mandatory for services with distribution.</xs:documentation>
9 + </xs:annotation>
10 + <xs:complexType>
11 + <xs:choice>
12 + <xs:element name="Date" type="xs:date">
13 + <xs:annotation>
14 + <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>
15 + </xs:annotation>
16 + </xs:element>
17 + <xs:element name="AsSoonAsPossible">
18 + <xs:annotation>
19 + <xs:documentation>Used to distribute invoices as soon as possible. The element supposed to be empty.</xs:documentation>
20 + </xs:annotation>
21 + <xs:complexType>
22 + <xs:complexContent>
23 + <xs:restriction base="xs:anyType" />
24 + </xs:complexContent>
25 + </xs:complexType>
26 + </xs:element>
27 + </xs:choice>
28 + </xs:complexType>
29 + </xs:element>
30 + <xs:element name="CUSINInfo" minOccurs="1" maxOccurs="unbounded">
31 + <xs:annotation>
32 + <xs:documentation>Containing one customer (payer) and that customers invoice(s)</xs:documentation>
33 + </xs:annotation>
34 + <xs:complexType>
35 + <xs:sequence>
36 + <xs:element name="CustomerNo" type="Identifier15" minOccurs="0" maxOccurs="1" nillable="false" >
37 + <xs:annotation>
38 + <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>
39 + </xs:annotation>
40 + </xs:element>
41 + <xs:element minOccurs="0" maxOccurs="1" name="CustomerInfo">
42 + <xs:annotation>
43 + <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>
44 + </xs:annotation>
45 + <xs:complexType>
46 + <xs:sequence>
47 + <xs:element name="Name" type="NameAddressString72" minOccurs="1" maxOccurs="1" >
48 + <xs:annotation>
49 + <xs:documentation>Full name for the customer in the accounts receivable system. Used as display name</xs:documentation>
50 + </xs:annotation>
51 + </xs:element>
52 + <xs:element name="RegNo" type="RegNo" minOccurs="0" maxOccurs="1" >
53 + <xs:annotation>
54 + <xs:documentation>Customer social security number/corporate identity number. Has to conform to country specific algorithms</xs:documentation>
55 + </xs:annotation>
56 + </xs:element>
57 + <xs:element name="Category" type="String10" minOccurs="0" maxOccurs="1" >
58 + <xs:annotation>
59 + <xs:documentation>Can only be used if contracted with PayEx. Category has to be preconfigured in the accounts receivable system</xs:documentation>
60 + </xs:annotation>
61 + </xs:element>
62 + <xs:element name="InterCompanyCode" type="String15" minOccurs="0" maxOccurs="1" >
63 + <xs:annotation>
64 + <xs:documentation>Relating to interactions between two or more internal companies</xs:documentation>
65 + </xs:annotation>
66 + </xs:element>
67 + <xs:element name="VatType" type="VatType" minOccurs="0" maxOccurs="1" >
68 + <xs:annotation>
69 + <xs:documentation>Specifies if/where the customer liable to pay VAT</xs:documentation>
70 + </xs:annotation>
71 + </xs:element>
72 + <xs:element name="LanguageCode" type="ISO639" minOccurs="0" maxOccurs="1" >
73 + <xs:annotation>
74 + <xs:documentation>Only used if preferred invoice language is other than accounts receivable default</xs:documentation>
75 + </xs:annotation>
76 + </xs:element>
77 + <xs:element name="VatNo" type="VatNumber" minOccurs="0" maxOccurs="1" >
78 + <xs:annotation>
79 + <xs:documentation>Customer VAT registration number. Mandatory if reverse tax is used. Must conform to country specific algorithm</xs:documentation>
80 + </xs:annotation>
81 + </xs:element>
82 + <xs:element name="DistributionAddressInfo" minOccurs="1" maxOccurs="1">
83 + <xs:annotation>
84 + <xs:documentation>Contains customer distribution address information</xs:documentation>
85 + </xs:annotation>
86 + <xs:complexType>
87 + <xs:sequence>
88 + <xs:element name="Addresses" minOccurs="1" maxOccurs="1">
89 + <xs:annotation>
90 + <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>
91 + </xs:annotation>
92 + <xs:complexType>
93 + <xs:sequence>
94 + <xs:element name="Address" type="Address" minOccurs="1" maxOccurs="2">
95 + <xs:annotation>
96 + <xs:documentation>Legal address is mandatory. Only supply billing address i different from legal address</xs:documentation>
97 + </xs:annotation>
98 + </xs:element>
99 + </xs:sequence>
100 + </xs:complexType>
101 + </xs:element>
102 + <xs:element name="E-MailAddress" type="Email" minOccurs="0" maxOccurs="1" >
103 + <xs:annotation>
104 + <xs:documentation>Customers E-mail address. Mandatory if delivery is set to EMail or E-notification is active.</xs:documentation>
105 + </xs:annotation>
106 + </xs:element>
107 + <xs:element name="Cellphone" type="String15" minOccurs="0" maxOccurs="1" >
108 + <xs:annotation>
109 + <xs:documentation>Customers mobile number msisdn</xs:documentation>
110 + </xs:annotation>
111 + </xs:element>
112 + <xs:element name="ProtectedIdentity" type="xs:boolean" minOccurs="0" maxOccurs="1" >
113 + <xs:annotation>
114 + <xs:documentation>Customer has ProtectedIdentity, postal distribution handled by Skatteverket</xs:documentation>
115 + </xs:annotation>
116 + </xs:element>
117 + </xs:sequence>
118 + </xs:complexType>
119 + </xs:element>
120 + <xs:element name="PaymentInfo" minOccurs="0" maxOccurs="1">
121 + <xs:annotation>
122 + <xs:documentation>Contains differing customer payment info from accounts receivable default</xs:documentation>
123 + </xs:annotation>
124 + <xs:complexType>
125 + <xs:choice>
126 + <xs:element name="Clear" minOccurs="1" maxOccurs="1" >
127 + <xs:annotation>
128 + <xs:documentation>Erases previously set payment info on customer</xs:documentation>
129 + </xs:annotation>
130 + </xs:element>
131 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
132 + <xs:annotation>
133 + <xs:documentation>Sets differing payment info on customer, fully replaces earlier settings</xs:documentation>
134 + </xs:annotation>
135 + <xs:complexType>
136 + <xs:sequence>
137 + <xs:element name="PaymentType" type="ePaymentType" minOccurs="0" maxOccurs="1" >
138 + <xs:annotation>
139 + <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>
140 + </xs:annotation>
141 + </xs:element>
142 + <xs:element name="PaymentRules" minOccurs="0" maxOccurs="1">
143 + <xs:annotation>
144 + <xs:documentation>Containing differing customer payment rules.</xs:documentation>
145 + </xs:annotation>
146 + <xs:complexType>
147 + <xs:sequence>
148 + <xs:element name="PaymentRule" minOccurs="1" maxOccurs="unbounded">
149 + <xs:annotation>
150 + <xs:documentation>Customer differing payment rule.</xs:documentation>
151 + </xs:annotation>
152 + <xs:complexType>
153 + <xs:sequence>
154 + <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
155 + <xs:annotation>
156 + <xs:documentation>Valid value of rule</xs:documentation>
157 + </xs:annotation>
158 + </xs:element>
159 + </xs:sequence>
160 + <xs:attribute name="Rule" type="ePaymentRule" >
161 + <xs:annotation>
162 + <xs:documentation>Valid payment rule from enumeration ePaymentRule</xs:documentation>
163 + </xs:annotation>
164 + </xs:attribute>
165 + </xs:complexType>
166 + </xs:element>
167 + </xs:sequence>
168 + </xs:complexType>
169 + </xs:element>
170 + </xs:sequence>
171 + </xs:complexType>
172 + </xs:element>
173 + </xs:choice>
174 + </xs:complexType>
175 + </xs:element>
176 + <xs:element name="DunningInfo" minOccurs="0" maxOccurs="1">
177 + <xs:annotation>
178 + <xs:documentation>Contains differing customer dunning info from accounts receivable default</xs:documentation>
179 + </xs:annotation>
180 + <xs:complexType>
181 + <xs:choice>
182 + <xs:element name="Clear" >
183 + <xs:annotation>
184 + <xs:documentation>Erases previously set dunning info on customer</xs:documentation>
185 + </xs:annotation>
186 + </xs:element>
187 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
188 + <xs:annotation>
189 + <xs:documentation>Sets differing dunning info on customer. Fully replaces previously set dunning info</xs:documentation>
190 + </xs:annotation>
191 + <xs:complexType>
192 + <xs:sequence minOccurs="1" maxOccurs="3">
193 + <xs:element name="DunningRules" minOccurs="0" maxOccurs="1">
194 + <xs:annotation>
195 + <xs:documentation>Containing differing dunning rules</xs:documentation>
196 + </xs:annotation>
197 + <xs:complexType>
198 + <xs:sequence>
199 + <xs:element name="DunningRule" minOccurs="1" maxOccurs="unbounded">
200 + <xs:annotation>
201 + <xs:documentation>Contains a dunning rule and its value</xs:documentation>
202 + </xs:annotation>
203 + <xs:complexType>
204 + <xs:sequence>
205 + <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
206 + <xs:annotation>
207 + <xs:documentation>Valid value of rule</xs:documentation>
208 + </xs:annotation>
209 + </xs:element>
210 + </xs:sequence>
211 + <xs:attribute name="Rule" type="eDunningRule">
212 + <xs:annotation>
213 + <xs:documentation>Valid dunning rule from enumeration eDunningRule</xs:documentation>
214 + </xs:annotation>
215 + </xs:attribute>
216 + </xs:complexType>
217 + </xs:element>
218 + </xs:sequence>
219 + </xs:complexType>
220 + </xs:element>
221 + <xs:element name="DunningEnclosures" minOccurs="0" maxOccurs="1">
222 + <xs:annotation>
223 + <xs:documentation>Contains dunning enclosures</xs:documentation>
224 + </xs:annotation>
225 + <xs:complexType>
226 + <xs:sequence>
227 + <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
228 + <xs:annotation>
229 + <xs:documentation>Contains a dunning bill type and a predefined enclosure</xs:documentation>
230 + </xs:annotation>
231 + <xs:complexType>
232 + <xs:sequence>
233 + <xs:element name="EnclosureName" type="xs:string" maxOccurs="1" minOccurs="1">
234 + <xs:annotation>
235 + <xs:documentation>Predefined enclosure name in PayEx distribution system</xs:documentation>
236 + </xs:annotation>
237 + </xs:element>
238 + </xs:sequence>
239 + <xs:attribute name="DunningBillType" type="eDunningBillType">
240 + <xs:annotation>
241 + <xs:documentation>The bill type from enumeration eDunningBillType which to enclose the predefined enclosure</xs:documentation>
242 + </xs:annotation>
243 + </xs:attribute>
244 + </xs:complexType>
245 + </xs:element>
246 + </xs:sequence>
247 + </xs:complexType>
248 + </xs:element>
249 + </xs:sequence>
250 + </xs:complexType>
251 + </xs:element>
252 + </xs:choice>
253 + </xs:complexType>
254 + </xs:element>
255 + <xs:element name="DistributionInfo" minOccurs="0" maxOccurs="1">
256 + <xs:annotation>
257 + <xs:documentation>Contains differing customer distribution info from accounts receivable default</xs:documentation>
258 + </xs:annotation>
259 + <xs:complexType>
260 + <xs:choice>
261 + <xs:element name="Clear" minOccurs="1" maxOccurs="1" >
262 + <xs:annotation>
263 + <xs:documentation>Erases earlier set values</xs:documentation>
264 + </xs:annotation>
265 + </xs:element>
266 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
267 + <xs:annotation>
268 + <xs:documentation>Sets differing distribution info on customer. Fully replaces previously set distribution info</xs:documentation>
269 + </xs:annotation>
270 + <xs:complexType>
271 + <xs:sequence>
272 + <xs:element name="BillTypes" minOccurs="1" maxOccurs="1">
273 + <xs:annotation>
274 + <xs:documentation>Containing bill types with differing distribution from accounts receivable default</xs:documentation>
275 + </xs:annotation>
276 + <xs:complexType>
277 + <xs:sequence>
278 + <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
279 + <xs:annotation>
280 + <xs:documentation>Containing bill type with differing distribution</xs:documentation>
281 + </xs:annotation>
282 + <xs:complexType>
283 + <xs:sequence>
284 + <xs:element name="DistributionType" type="eDistributionType" maxOccurs="1" minOccurs="0">
285 + <xs:annotation>
286 + <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>
287 + </xs:annotation>
288 + </xs:element>
289 + <xs:element name="DistributionRules" minOccurs="0" maxOccurs="1">
290 + <xs:annotation>
291 + <xs:documentation>Contains distribution rules for bill type</xs:documentation>
292 + </xs:annotation>
293 + <xs:complexType>
294 + <xs:sequence>
295 + <xs:element name="DistributionRule" minOccurs="1" maxOccurs="unbounded">
296 + <xs:annotation>
297 + <xs:documentation>Contains a distribution rule and its value</xs:documentation>
298 + </xs:annotation>
299 + <xs:complexType>
300 + <xs:sequence>
301 + <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
302 + <xs:annotation>
303 + <xs:documentation>Valid value of distribution rule</xs:documentation>
304 + </xs:annotation>
305 + </xs:element>
306 + </xs:sequence>
307 + <xs:attribute name="Rule" type="eDistributionRule">
308 + <xs:annotation>
309 + <xs:documentation>Valid rule from enumeration eDistributionRule</xs:documentation>
310 + </xs:annotation>
311 + </xs:attribute>
312 + </xs:complexType>
313 + </xs:element>
314 + </xs:sequence>
315 + </xs:complexType>
316 + </xs:element>
317 + </xs:sequence>
318 + <xs:attribute name="DistributionBillType" type="eDistributionBillType">
319 + <xs:annotation>
320 + <xs:documentation>The bill type from enumeration eDistributionBillType for which distribution settings apply</xs:documentation>
321 + </xs:annotation>
322 + </xs:attribute>
323 + </xs:complexType>
324 + </xs:element>
325 + </xs:sequence>
326 + </xs:complexType>
327 + </xs:element>
328 + </xs:sequence>
329 + </xs:complexType>
330 + </xs:element>
331 + </xs:choice>
332 + </xs:complexType>
333 + </xs:element>
334 + <xs:element name="NotificationInfo" minOccurs="0" maxOccurs="1">
335 + <xs:annotation>
336 + <xs:documentation>Contains differing notification settings from accounts receivable default</xs:documentation>
337 + </xs:annotation>
338 + <xs:complexType>
339 + <xs:choice>
340 + <xs:element name="Clear" minOccurs="1" maxOccurs="1" >
341 + <xs:annotation>
342 + <xs:documentation>Erases earlier set values</xs:documentation>
343 + </xs:annotation>
344 + </xs:element>
345 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
346 + <xs:annotation>
347 + <xs:documentation>Sets differing notification info on customer. Fully replaces previously set notification info</xs:documentation>
348 + </xs:annotation>
349 + <xs:complexType>
350 + <xs:sequence>
351 + <xs:element name="BillTypes" minOccurs="1" maxOccurs="1">
352 + <xs:annotation>
353 + <xs:documentation>Contains bill types with differing notification settings from accounts receivable default</xs:documentation>
354 + </xs:annotation>
355 + <xs:complexType>
356 + <xs:sequence>
357 + <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
358 + <xs:annotation>
359 + <xs:documentation>Contains bill type with differing notification settings</xs:documentation>
360 + </xs:annotation>
361 + <xs:complexType>
362 + <xs:sequence>
363 + <xs:element name="NotificationTextCode" type="xs:string" maxOccurs="1" minOccurs="1">
364 + <xs:annotation>
365 + <xs:documentation>Preconfigured notification text code in PayEx distribution system</xs:documentation>
366 + </xs:annotation>
367 + </xs:element>
368 + <xs:element name="NotificationDistributionType" type="eNotificationDistributionType" maxOccurs="1" minOccurs="1" >
369 + <xs:annotation>
370 + <xs:documentation>Valid notification distribution type from enumeration eNotificationDistributionType</xs:documentation>
371 + </xs:annotation>
372 + </xs:element>
373 + </xs:sequence>
374 + <xs:attribute name="NotificationBillType" type="eNotificationBillType">
375 + <xs:annotation>
376 + <xs:documentation>The bill type from enumeration eNotificationBillType for which notification setting apply</xs:documentation>
377 + </xs:annotation>
378 + </xs:attribute>
379 + </xs:complexType>
380 + </xs:element>
381 + </xs:sequence>
382 + </xs:complexType>
383 + </xs:element>
384 + </xs:sequence>
385 + </xs:complexType>
386 + </xs:element>
387 + </xs:choice>
388 + </xs:complexType>
389 + </xs:element>
390 + </xs:sequence>
391 + <xs:attribute name="LegalEntity" type="LegalEntity" use="optional" >
392 + <xs:annotation>
393 + <xs:documentation>States the legal entity of the customer</xs:documentation>
394 + </xs:annotation>
395 + </xs:attribute>
396 + </xs:complexType>
397 + </xs:element>
398 + <xs:element minOccurs="0" maxOccurs="1" name="Invoices">
399 + <xs:annotation>
400 + <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>
401 + </xs:annotation>
402 + <xs:complexType>
403 + <xs:sequence>
404 + <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceWithDistribution">
405 + <xs:annotation>
406 + <xs:documentation>Contains invoice information if your contracted service is with distribution of invoices</xs:documentation>
407 + </xs:annotation>
408 + <xs:complexType>
409 + <xs:sequence>
410 + <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="0" maxOccurs="1" >
411 + <xs:annotation>
412 + <xs:documentation>Your unique identifier/invoice number of the invoice. Mandatory/Prohibited depending on contracted service with PayEx</xs:documentation>
413 + </xs:annotation>
414 + </xs:element>
415 + <xs:element name="ReferenceInfo" type="ReferenceInfo" minOccurs="0" maxOccurs="1" >
416 + <xs:annotation>
417 + <xs:documentation>Containing additional invoice reference information</xs:documentation>
418 + </xs:annotation>
419 + </xs:element>
420 + <xs:element name="InvoiceDate" type="xs:date" minOccurs="0" maxOccurs="1" >
421 + <xs:annotation>
422 + <xs:documentation>Invoice date from invoicing/billing system. Mandatory/Prohibited depending on contracted service with PayEx</xs:documentation>
423 + </xs:annotation>
424 + </xs:element>
425 + <xs:element name="PreferredDueDate" type="xs:date" minOccurs="0" maxOccurs="1" >
426 + <xs:annotation>
427 + <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>
428 + </xs:annotation>
429 + </xs:element>
430 + <xs:element name="Amount" type="Amount" maxOccurs="1" minOccurs="1" >
431 + <xs:annotation>
432 + <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>
433 + </xs:annotation>
434 + </xs:element>
435 + <xs:element name="DistributionInfo" minOccurs="1" maxOccurs="1">
436 + <xs:annotation>
437 + <xs:documentation>Contains distribution and printing details for invoice</xs:documentation>
438 + </xs:annotation>
439 + <xs:complexType>
440 + <xs:sequence>
441 + <xs:element name="DCCode" type="String15" minOccurs="0" maxOccurs="1" >
442 + <xs:annotation>
443 + <xs:documentation>Differing invoice layout from accounts receivable default. Possible layouts must be preconfigured an contracted with PayEx</xs:documentation>
444 + </xs:annotation>
445 + </xs:element>
446 + <xs:element name="DistributionType" type="eDistributionType" minOccurs="0" maxOccurs="1" >
447 + <xs:annotation>
448 + <xs:documentation>If desired distribution type is different from set distribution type on customer or accounts receivable default</xs:documentation>
449 + </xs:annotation>
450 + </xs:element>
451 + <xs:element name="InvoicePrintInfo" minOccurs="1" maxOccurs="1">
452 + <xs:annotation>
453 + <xs:documentation>Contains printing info for one invoice document</xs:documentation>
454 + </xs:annotation>
455 + <xs:complexType>
456 + <xs:sequence>
457 + <xs:element name="InvoicePrintBlocks" type="StandardPrintBlocks" maxOccurs="1" minOccurs="1">
458 + <xs:annotation>
459 + <xs:documentation>Containing print blocks printed in the main/standard area of the invoice layout</xs:documentation>
460 + </xs:annotation>
461 + </xs:element>
462 + <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
463 + <xs:annotation>
464 + <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>
465 + </xs:annotation>
466 + </xs:element>
467 + <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
468 + <xs:annotation>
469 + <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>
470 + </xs:annotation>
471 + </xs:element>
472 + </xs:sequence>
473 + </xs:complexType>
474 + </xs:element>
475 + <xs:element name="SummaryPrintInfos" minOccurs="0" maxOccurs="1">
476 + <xs:annotation>
477 + <xs:documentation>Can only be used if specially contracted with PayEx. Containing print info for summary documents</xs:documentation>
478 + </xs:annotation>
479 + <xs:complexType>
480 + <xs:sequence>
481 + <xs:element name="SummaryPrintInfo" minOccurs="0" maxOccurs="2">
482 + <xs:annotation>
483 + <xs:documentation>Contains print info for a summary document</xs:documentation>
484 + </xs:annotation>
485 + <xs:complexType>
486 + <xs:sequence>
487 + <xs:element name="SummaryPrintBlocks" type="StandardPrintBlocks" maxOccurs="1" minOccurs="1">
488 + <xs:annotation>
489 + <xs:documentation>Containing print blocks printed in the main/standard area of the summary layout</xs:documentation>
490 + </xs:annotation>
491 + </xs:element>
492 + <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
493 + <xs:annotation>
494 + <xs:documentation>Containing print blocks printed in specified predefined areas of the summary layout</xs:documentation>
495 + </xs:annotation>
496 + </xs:element>
497 + <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
498 + <xs:annotation>
499 + <xs:documentation>Containing references to predefined print blocks in specified predefined areas of the summary layout</xs:documentation>
500 + </xs:annotation>
501 + </xs:element>
502 + </xs:sequence>
503 + <xs:attribute name="Distribute" type="xs:boolean" use="required">
504 + <xs:annotation>
505 + <xs:documentation>Instruction to distribute the summary with the invoice or only be archived</xs:documentation>
506 + </xs:annotation>
507 + </xs:attribute>
508 + <xs:attribute name="SummaryType" type="eSummaryType">
509 + <xs:annotation>
510 + <xs:documentation>Valid summary type from enumeration eSummaryType</xs:documentation>
511 + </xs:annotation>
512 + </xs:attribute>
513 + </xs:complexType>
514 + </xs:element>
515 + </xs:sequence>
516 + </xs:complexType>
517 + </xs:element>
518 + <xs:element name="SpecificationPrintInfo" minOccurs="0" maxOccurs="1">
519 + <xs:annotation>
520 + <xs:documentation>Contains print info for a specification. Can only be used if specially contracted with PayEx</xs:documentation>
521 + </xs:annotation>
522 + <xs:complexType>
523 + <xs:sequence>
524 + <xs:element name="SpecificationPrintBlocks" type="SpecificationPrintBlocks" minOccurs="1" maxOccurs="1">
525 + <xs:annotation>
526 + <xs:documentation>Containing print blocks printed in the main/standard area of the specification layout</xs:documentation>
527 + </xs:annotation>
528 + </xs:element>
529 + <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
530 + <xs:annotation>
531 + <xs:documentation>Containing print blocks printed in specified predefined areas of the specification layout</xs:documentation>
532 + </xs:annotation>
533 + </xs:element>
534 + <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
535 + <xs:annotation>
536 + <xs:documentation>Containing references to predefined print blocks in specified predefined areas of the specification layout</xs:documentation>
537 + </xs:annotation>
538 + </xs:element>
539 + </xs:sequence>
540 + <xs:attribute name="Distribute" type="xs:boolean" use="required">
541 + <xs:annotation>
542 + <xs:documentation>Instruction to distribute the specification with the invoice or only be archived</xs:documentation>
543 + </xs:annotation>
544 + </xs:attribute>
545 + </xs:complexType>
546 + </xs:element>
547 + <xs:element name="Enclosures" maxOccurs="1" minOccurs="0">
548 + <xs:annotation>
549 + <xs:documentation>Contains predefined/preconfigured enclosures to be enclosed with invoice. Can only be used if specially contracted with PayEx</xs:documentation>
550 + </xs:annotation>
551 + <xs:complexType>
552 + <xs:sequence>
553 + <xs:element minOccurs="1" maxOccurs="4" name="Enclosure" type="String30">
554 + <xs:annotation>
555 + <xs:documentation>Reference to the predefined/preconfigured enclosure in PayEx printing and distribution system</xs:documentation>
556 + </xs:annotation>
557 + </xs:element>
558 + </xs:sequence>
559 + </xs:complexType>
560 + </xs:element>
561 + <xs:element name="EDIInfo" minOccurs="0" maxOccurs="1">
562 + <xs:annotation>
563 + <xs:documentation>Only relevant if distribution is EInvoiceB2B. Can only be used if specially contracted with PayEx</xs:documentation>
564 + </xs:annotation>
565 + <xs:complexType>
566 + <xs:sequence>
567 + <xs:element name="VAN" type="xs:string" minOccurs="0" maxOccurs="1">
568 + <xs:annotation>
569 + <xs:documentation>Customer VAN identifier (OperatorId)</xs:documentation>
570 + </xs:annotation>
571 + </xs:element>
572 + <xs:element name="InterChangeRecipient" type="xs:string" minOccurs="0" maxOccurs="1">
573 + <xs:annotation>
574 + <xs:documentation>Routing address. EAN</xs:documentation>
575 + </xs:annotation>
576 + </xs:element>
577 + <xs:element name="SellerId" type="xs:string" minOccurs="1" maxOccurs="1">
578 + <xs:annotation>
579 + <xs:documentation>NAD_SU/SellerParty. EAN/Corporate identity number</xs:documentation>
580 + </xs:annotation>
581 + </xs:element>
582 + <xs:element name="BuyerId" type="xs:string" minOccurs="1" maxOccurs="1">
583 + <xs:annotation>
584 + <xs:documentation>NAD_BY/BuyerParty. EAN/Corporate identity number</xs:documentation>
585 + </xs:annotation>
586 + </xs:element>
587 + <xs:element name="InvoiceAddressee" type="xs:string" minOccurs="0" maxOccurs="1">
588 + <xs:annotation>
589 + <xs:documentation>NAD_ITO/InvoiceNote. EAN/Corporate identity number</xs:documentation>
590 + </xs:annotation>
591 + </xs:element>
592 + <xs:element name="InvoiceRecipient" type="xs:string" minOccurs="0" maxOccurs="1">
593 + <xs:annotation>
594 + <xs:documentation>NAD_IV/InvoiceNote. EAN/Corporate identity number</xs:documentation>
595 + </xs:annotation>
596 + </xs:element>
597 + <xs:element name="DeliveryAddressee" type="xs:string" minOccurs="0" maxOccurs="1">
598 + <xs:annotation>
599 + <xs:documentation>NAD_DP/DeliveryAddress. EAN/Corporate identity number/Name</xs:documentation>
600 + </xs:annotation>
601 + </xs:element>
602 + <xs:element name="DeliveryRecipient" type="xs:string" minOccurs="0" maxOccurs="1">
603 + <xs:annotation>
604 + <xs:documentation>NAD_CN/InvoiceNote. EAN/Corporate identity number/Name</xs:documentation>
605 + </xs:annotation>
606 + </xs:element>
607 + <xs:element name="InvoiceReference" type="xs:string" minOccurs="0" maxOccurs="1">
608 + <xs:annotation>
609 + <xs:documentation>RFF_IV/InitialInvoiceDocumentReference. Reference to invoice</xs:documentation>
610 + </xs:annotation>
611 + </xs:element>
612 + <xs:element name="AgreementReference" type="xs:string" minOccurs="0" maxOccurs="1">
613 + <xs:annotation>
614 + <xs:documentation>RFF_CT/AdditionalDocumentReference. Reference to agreement</xs:documentation>
615 + </xs:annotation>
616 + </xs:element>
617 + <xs:element name="BuyerReference" type="xs:string" minOccurs="0" maxOccurs="2">
618 + <xs:annotation>
619 + <xs:documentation>RFF_CR/RequisitionistDocumentReference. Reference to buyer department and or individual</xs:documentation>
620 + </xs:annotation>
621 + </xs:element>
622 + <xs:element name="ExternalReferenceURL" type="xs:string" minOccurs="0" maxOccurs="1">
623 + <xs:annotation>
624 + <xs:documentation>URL for example to invoiceground</xs:documentation>
625 + </xs:annotation>
626 + </xs:element>
627 + <xs:element name="EDIOrderRows" maxOccurs="1" minOccurs="1">
628 + <xs:annotation>
629 + <xs:documentation>Containing invoice info specified in edi invoice</xs:documentation>
630 + </xs:annotation>
631 + <xs:complexType>
632 + <xs:sequence>
633 + <xs:element name="EDIVatGroup" minOccurs="1" maxOccurs="unbounded">
634 + <xs:annotation>
635 + <xs:documentation>Containing one VAT group and associated invoice rows</xs:documentation>
636 + </xs:annotation>
637 + <xs:complexType>
638 + <xs:sequence>
639 + <xs:element name="VatInfo" type="VatInfo" maxOccurs="1" minOccurs="1">
640 + </xs:element>
641 + <xs:element minOccurs="1" name="EDIOrderRow" maxOccurs="unbounded">
642 + <xs:annotation>
643 + <xs:documentation>Containing information about one edi invoice row</xs:documentation>
644 + </xs:annotation>
645 + <xs:complexType>
646 + <xs:sequence>
647 + <xs:element name="ArticleId" type="String35" minOccurs="0" maxOccurs="1">
648 + <xs:annotation>
649 + <xs:documentation>Optional article id associated to product/service</xs:documentation>
650 + </xs:annotation>
651 + </xs:element>
652 + <xs:element name="ProductGroup" type="String35" minOccurs="0" maxOccurs="1">
653 + <xs:annotation>
654 + <xs:documentation>Optional product group associated to product/service</xs:documentation>
655 + </xs:annotation>
656 + </xs:element>
657 + <xs:element name="ProductDate" type="xs:date" minOccurs="0" maxOccurs="1">
658 + <xs:annotation>
659 + <xs:documentation>Optional date of product/service</xs:documentation>
660 + </xs:annotation>
661 + </xs:element>
662 + <xs:element name="Text" type="String300" maxOccurs="1" minOccurs="1">
663 + <xs:annotation>
664 + <xs:documentation>Mandatory description of product/service</xs:documentation>
665 + </xs:annotation>
666 + </xs:element>
667 + <xs:element name="Quantity" type="Decimal5" maxOccurs="1" minOccurs="1">
668 + <xs:annotation>
669 + <xs:documentation>Mandatory quantity of the invoice product/service</xs:documentation>
670 + </xs:annotation>
671 + </xs:element>
672 + <xs:element name="Unit" type="String10" maxOccurs="1" minOccurs="1">
673 + <xs:annotation>
674 + <xs:documentation>Mandatory unit of quantity</xs:documentation>
675 + </xs:annotation>
676 + </xs:element>
677 + <xs:element name="UnitPriceExclVat" type="Money" maxOccurs="1" minOccurs="1">
678 + <xs:annotation>
679 + <xs:documentation>Mandatory unit price exclusive of VAT</xs:documentation>
680 + </xs:annotation>
681 + </xs:element>
682 + <xs:element name="AmountExclVat" type="Money" maxOccurs="1" minOccurs="1">
683 + <xs:annotation>
684 + <xs:documentation>Total order row amount exclusive of VAT</xs:documentation>
685 + </xs:annotation>
686 + </xs:element>
687 + <xs:element name="ContractDef" type="String35" minOccurs="0" maxOccurs="1">
688 + <xs:annotation>
689 + <xs:documentation>Optional definition of agreement</xs:documentation>
690 + </xs:annotation>
691 + </xs:element>
692 + <xs:element name="ContractType" type="String35" maxOccurs="1" minOccurs="1">
693 + <xs:annotation>
694 + <xs:documentation>Mandatory type of agreement</xs:documentation>
695 + </xs:annotation>
696 + </xs:element>
697 + </xs:sequence>
698 + </xs:complexType>
699 + </xs:element>
700 + </xs:sequence>
701 + </xs:complexType>
702 + </xs:element>
703 + </xs:sequence>
704 + </xs:complexType>
705 + </xs:element>
706 + </xs:sequence>
707 + </xs:complexType>
708 + </xs:element>
709 + <xs:element name="Notification" minOccurs="0" maxOccurs="1">
710 + <xs:annotation>
711 + <xs:documentation>Containing differing notification than customer setting or accounts receivable default</xs:documentation>
712 + </xs:annotation>
713 + <xs:complexType>
714 + <xs:sequence>
715 + <xs:element name="NotificationTextCode" type="xs:string" maxOccurs="1" minOccurs="1">
716 + <xs:annotation>
717 + <xs:documentation>Preconfigured notification text code in PayEx distribution system</xs:documentation>
718 + </xs:annotation>
719 + </xs:element>
720 + <xs:element name="NotificationDistributionType" type="eNotificationDistributionType" maxOccurs="1" minOccurs="1">
721 + <xs:annotation>
722 + <xs:documentation>Valid notification distribution type from enumeration eNotificationDistributionType</xs:documentation>
723 + </xs:annotation>
724 + </xs:element>
725 + </xs:sequence>
726 + </xs:complexType>
727 + </xs:element>
728 + </xs:sequence>
729 + </xs:complexType>
730 + </xs:element>
731 + <xs:element name="CreditInstructions" type="CreditInstructions" minOccurs="0" maxOccurs="1" >
732 + <xs:annotation>
733 + <xs:documentation>Containing instructions to settle the credit invoice against specific debit invoices</xs:documentation>
734 + </xs:annotation>
735 + </xs:element>
736 + </xs:sequence>
737 + </xs:complexType>
738 + </xs:element>
739 + <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceWithoutDistribution">
740 + <xs:annotation>
741 + <xs:documentation>Contains invoice information if your contracted service is with distribution of invoices</xs:documentation>
742 + </xs:annotation>
743 + <xs:complexType>
744 + <xs:sequence>
745 + <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="1" maxOccurs="1" >
746 + <xs:annotation>
747 + <xs:documentation>Your unique identifier/invoice number from the invoicing/billing system</xs:documentation>
748 + </xs:annotation>
749 + </xs:element>
750 + <xs:element name="ReferenceInfo" type="ReferenceInfo" minOccurs="0" maxOccurs="1" >
751 + <xs:annotation>
752 + <xs:documentation>Containing additional invoice reference information</xs:documentation>
753 + </xs:annotation>
754 + </xs:element>
755 + <xs:element name="InvoiceDate" type="xs:date" maxOccurs="1" minOccurs="1" >
756 + <xs:annotation>
757 + <xs:documentation>Invoice date from invoicing system</xs:documentation>
758 + </xs:annotation>
759 + </xs:element>
760 + <xs:element name="DueDate" type="xs:date" minOccurs="0" maxOccurs="1" >
761 + <xs:annotation>
762 + <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>
763 + </xs:annotation>
764 + </xs:element>
765 + <xs:element name="DistributionDate" type="xs:date" minOccurs="1" maxOccurs="1" >
766 + <xs:annotation>
767 + <xs:documentation>Date of distribution for the invoice</xs:documentation>
768 + </xs:annotation>
769 + </xs:element>
770 + <xs:element name="PaymentRefNo" type="String25" minOccurs="1" maxOccurs="1" >
771 + <xs:annotation>
772 + <xs:documentation>Unique payment reference (OCR) identifying invoice. Algorithm for creating payment references has to be approved by PayEx</xs:documentation>
773 + </xs:annotation>
774 + </xs:element>
775 + <xs:element name="Amount" type="Amount" minOccurs="1" maxOccurs="1" >
776 + <xs:annotation>
777 + <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>
778 + </xs:annotation>
779 + </xs:element>
780 + <xs:element name="CreditInstructions" type="CreditInstructions" minOccurs="0" maxOccurs="1">
781 + <xs:annotation>
782 + <xs:documentation>Containing instructions to settle the credit invoice against specific debit invoices. Only possible to use for credit invoice</xs:documentation>
783 + </xs:annotation>
784 + </xs:element>
785 + </xs:sequence>
786 + </xs:complexType>
787 + </xs:element>
788 + </xs:sequence>
789 + </xs:complexType>
790 + </xs:element>
791 + </xs:sequence>
792 + </xs:complexType>
793 + </xs:element>
794 + </xs:sequence>
795 + <xs:attribute name="Version" type="Version" use="required">
796 + <xs:annotation>
797 + <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>
798 + </xs:annotation>
799 + </xs:attribute>
800 + <xs:attribute name="CreatedDateTime" type="xs:dateTime" use="required" >
801 + <xs:annotation>
802 + <xs:documentation>Date and time when the file was created</xs:documentation>
803 + </xs:annotation>
804 + </xs:attribute>
805 + <xs:attribute name="CompanyNo" type="CompanyNumber" use="required" >
806 + <xs:annotation>
807 + <xs:documentation>Your accounts receivable number at PayEx</xs:documentation>
808 + </xs:annotation>
809 + </xs:attribute>
810 + <xs:attribute name="CompanyName" type="xs:string" use="required" >
811 + <xs:annotation>
812 + <xs:documentation>The name of your company/accounts receivable</xs:documentation>
813 + </xs:annotation>
814 + </xs:attribute>
815 + </xs:complexType>
816 + </xs:element>
817 + <xs:simpleType name="Money">
818 + <xs:restriction base="xs:decimal">
819 + <xs:fractionDigits value="2" />
820 + <xs:minInclusive value="-500000000" />
821 + <xs:maxInclusive value="500000000" />
822 + </xs:restriction>
823 + </xs:simpleType>
824 + <xs:simpleType name="CreditMoney">
825 + <xs:restriction base="xs:decimal">
826 + <xs:fractionDigits value="2" />
827 + <xs:minInclusive value="0.01" />
828 + <xs:maxInclusive value="100000000" />
829 + </xs:restriction>
830 + </xs:simpleType>
831 + <xs:simpleType name="Decimal5">
832 + <xs:restriction base="xs:decimal">
833 + <xs:fractionDigits value="5" />
834 + </xs:restriction>
835 + </xs:simpleType>
836 + <xs:simpleType name="Identifier15">
837 + <xs:restriction base="xs:string">
838 + <xs:pattern value="[a-zA-Z0-9äåöÄÅÖ&amp;/_ -.]*" />
839 + <xs:minLength value="1" />
840 + <xs:maxLength value="15" />
841 + </xs:restriction>
842 + </xs:simpleType>
843 + <xs:simpleType name="ISO3166">
844 + <xs:restriction base="xs:string">
845 + <xs:pattern value="[A-Z]*" />
846 + <xs:minLength value="2" />
847 + <xs:maxLength value="2" />
848 + </xs:restriction>
849 + </xs:simpleType>
850 + <xs:simpleType name="CompanyNumber">
851 + <xs:restriction base="xs:string">
852 + <xs:pattern value="[0-9]*" />
853 + <xs:minLength value="1" />
854 + <xs:maxLength value="15" />
855 + </xs:restriction>
856 + </xs:simpleType>
857 + <xs:simpleType name="ISO639">
858 + <xs:restriction base="PXString">
859 + <xs:enumeration value="SV" />
860 + <xs:enumeration value="NO" />
861 + <xs:enumeration value="DA" />
862 + <xs:enumeration value="FI" />
863 + <xs:enumeration value="EN" />
864 + </xs:restriction>
865 + </xs:simpleType>
866 + <xs:simpleType name="VatType">
867 + <xs:restriction base="PXString">
868 + <xs:enumeration value="Normal" >
869 + <xs:annotation>
870 + <xs:documentation>Customer is liable to pay taxes in the same country as the Company</xs:documentation>
871 + </xs:annotation>
872 + </xs:enumeration>
873 + <xs:enumeration value="ReverseVatLiability_Eu">
874 + <xs:annotation>
875 + <xs:documentation>Customer operates in another EU country and is obliged to pay VAT in that country</xs:documentation>
876 + </xs:annotation>
877 + </xs:enumeration>
878 + <xs:enumeration value="NotSubjectToVat_Eu">
879 + <xs:annotation>
880 + <xs:documentation>Customer operates in another EU country and is not subject to VAT</xs:documentation>
881 + </xs:annotation>
882 + </xs:enumeration>
883 + <xs:enumeration value="NotSubjectToVat_NonEu">
884 + <xs:annotation>
885 + <xs:documentation>Customer operates in another country outside the EU and is not subject to VAT</xs:documentation>
886 + </xs:annotation>
887 + </xs:enumeration>
888 + </xs:restriction>
889 + </xs:simpleType>
890 + <xs:simpleType name="String35">
891 + <xs:restriction base="PXString">
892 + <xs:maxLength value="35" />
893 + </xs:restriction>
894 + </xs:simpleType>
895 + <xs:simpleType name="Email">
896 + <xs:restriction base="PXString">
897 + <xs:maxLength value="254" />
898 + </xs:restriction>
899 + </xs:simpleType>
900 + <xs:simpleType name="String15">
901 + <xs:restriction base="PXString">
902 + <xs:maxLength value="15" />
903 + </xs:restriction>
904 + </xs:simpleType>
905 + <xs:simpleType name="ZipCode">
906 + <xs:restriction base="xs:string">
907 + <xs:pattern value="[A-Z0-9\-]+" />
908 + <xs:maxLength value="9" />
909 + </xs:restriction>
910 + </xs:simpleType>
911 + <xs:simpleType name="ePaymentType">
912 + <xs:restriction base="xs:string">
913 + <xs:enumeration value="PGSE">
914 + <xs:annotation>
915 + <xs:documentation>Refers to a Swedish Plusgiro account</xs:documentation>
916 + </xs:annotation>
917 + </xs:enumeration>
918 + <xs:enumeration value="BGSE">
919 + <xs:annotation>
920 + <xs:documentation>Refers to a Swedish Bankgiro account</xs:documentation>
921 + </xs:annotation>
922 + </xs:enumeration>
923 + <xs:enumeration value="BKNO">
924 + <xs:annotation>
925 + <xs:documentation>Refers to a Norwegian bank account</xs:documentation>
926 + </xs:annotation>
927 + </xs:enumeration>
928 + </xs:restriction>
929 + </xs:simpleType>
930 + <xs:simpleType name="VatNumber">
931 + <xs:restriction base="xs:string">
932 + <xs:pattern value="[A-Z]{2}.*" />
933 + <xs:minLength value="7" />
934 + <xs:maxLength value="14" />
935 + </xs:restriction>
936 + </xs:simpleType>
937 + <xs:simpleType name="eDistributionType">
938 + <xs:restriction base="xs:string">
939 + <xs:enumeration value="PostalService">
940 + <xs:annotation>
941 + <xs:documentation>Distribution is made by postal service</xs:documentation>
942 + </xs:annotation>
943 + </xs:enumeration>
944 + <xs:enumeration value="EMail">
945 + <xs:annotation>
946 + <xs:documentation>Distribution is made by E-mail</xs:documentation>
947 + </xs:annotation>
948 + </xs:enumeration>
949 + <xs:enumeration value="EInvoiceB2B">
950 + <xs:annotation>
951 + <xs:documentation>Distribution is made by B2B EDI</xs:documentation>
952 + </xs:annotation>
953 + </xs:enumeration>
954 + <xs:enumeration value="Archive">
955 + <xs:annotation>
956 + <xs:documentation>No distribution, only archiving</xs:documentation>
957 + </xs:annotation>
958 + </xs:enumeration>
959 + </xs:restriction>
960 + </xs:simpleType>
961 + <xs:simpleType name="String50">
962 + <xs:restriction base="xs:string">
963 + <xs:maxLength value="50" />
964 + </xs:restriction>
965 + </xs:simpleType>
966 + <xs:simpleType name="String100">
967 + <xs:restriction base="xs:string">
968 + <xs:maxLength value="100" />
969 + </xs:restriction>
970 + </xs:simpleType>
971 + <xs:simpleType name="String200">
972 + <xs:restriction base="xs:string">
973 + <xs:maxLength value="200" />
974 + </xs:restriction>
975 + </xs:simpleType>
976 + <xs:simpleType name="String300">
977 + <xs:restriction base="PXString">
978 + <xs:maxLength value="300" />
979 + </xs:restriction>
980 + </xs:simpleType>
981 + <xs:complexType name="Address">
982 + <xs:sequence>
983 + <xs:element minOccurs="1" maxOccurs="1" type="NameAddressString72" name="Addressee">
984 + <xs:annotation>
985 + <xs:documentation>Full name of addressee</xs:documentation>
986 + </xs:annotation>
987 + </xs:element>
988 + <xs:element name="StreetAddress" type="NameAddressString35" minOccurs="0" maxOccurs="1" nillable="false">
989 + <xs:annotation>
990 + <xs:documentation>Street address</xs:documentation>
991 + </xs:annotation>
992 + </xs:element>
993 + <xs:element name="ZipCode" type="ZipCode" maxOccurs="1" minOccurs="1" nillable="false">
994 + <xs:annotation>
995 + <xs:documentation>Zipcode conforming to country standard</xs:documentation>
996 + </xs:annotation>
997 + </xs:element>
998 + <xs:element name="City" type="NameAddressString27" minOccurs="1" maxOccurs="1" nillable="false">
999 + <xs:annotation>
1000 + <xs:documentation>City</xs:documentation>
1001 + </xs:annotation>
1002 + </xs:element>
1003 + <xs:element name="CoAddress" type="NameAddressString35" minOccurs="0" maxOccurs="1" nillable="false">
1004 + <xs:annotation>
1005 + <xs:documentation>Care of address</xs:documentation>
1006 + </xs:annotation>
1007 + </xs:element>
1008 + <xs:element name="CountryCode" type="ISO3166" minOccurs="1" maxOccurs="1">
1009 + <xs:annotation>
1010 + <xs:documentation>Country code according to ISO 3166</xs:documentation>
1011 + </xs:annotation>
1012 + </xs:element>
1013 + </xs:sequence>
1014 + <xs:attribute name="AddressType" type="AddressType" use="required">
1015 + <xs:annotation>
1016 + <xs:documentation>Valid address type from enumeration AddressType</xs:documentation>
1017 + </xs:annotation>
1018 + </xs:attribute>
1019 + </xs:complexType>
1020 + <xs:simpleType name="AddressType">
1021 + <xs:restriction base="xs:string">
1022 + <xs:enumeration value="LegalAddress">
1023 + <xs:annotation>
1024 + <xs:documentation>Legal address. Mandatory</xs:documentation>
1025 + </xs:annotation>
1026 + </xs:enumeration>
1027 + <xs:enumeration value="BillingAddress">
1028 + <xs:annotation>
1029 + <xs:documentation>Billing address. Should only be supplied if it differs from legal address</xs:documentation>
1030 + </xs:annotation>
1031 + </xs:enumeration>
1032 + </xs:restriction>
1033 + </xs:simpleType>
1034 + <xs:complexType name="Amount">
1035 + <xs:annotation>
1036 + <xs:documentation>Containing amount excl vat and vat amount</xs:documentation>
1037 + </xs:annotation>
1038 + <xs:sequence>
1039 + <xs:element minOccurs="1" maxOccurs="1" name="AmountExclVat" type="Money" nillable="false">
1040 + <xs:annotation>
1041 + <xs:documentation>Amount exclusive of VAT</xs:documentation>
1042 + </xs:annotation>
1043 + </xs:element>
1044 + <xs:element minOccurs="1" maxOccurs="1" name="VatAmount" type="Money" nillable="false">
1045 + <xs:annotation>
1046 + <xs:documentation>VAT amount</xs:documentation>
1047 + </xs:annotation>
1048 + </xs:element>
1049 + </xs:sequence>
1050 + <xs:attribute name="Currency" type="eCurrencyType" use="required">
1051 + <xs:annotation>
1052 + <xs:documentation>Valid currency from enumeration eCurrencyType</xs:documentation>
1053 + </xs:annotation>
1054 + </xs:attribute>
1055 + </xs:complexType>
1056 + <xs:simpleType name="PXFactoringServiceCode">
1057 + <xs:restriction base="xs:string">
1058 + <xs:enumeration value="K">
1059 + <xs:annotation>
1060 + <xs:documentation>Only valid for contracted factoring service. Indication to the contracted factoring company to buy the invoice</xs:documentation>
1061 + </xs:annotation>
1062 + </xs:enumeration>
1063 + </xs:restriction>
1064 + </xs:simpleType>
1065 + <xs:simpleType name="VatRate">
1066 + <xs:annotation>
1067 + <xs:documentation>Supported VAT rates</xs:documentation>
1068 + </xs:annotation>
1069 + <xs:restriction base="xs:decimal">
1070 + <xs:enumeration value="0.00" />
1071 + <xs:enumeration value="6.00" />
1072 + <xs:enumeration value="12.00" />
1073 + <xs:enumeration value="25.00" />
1074 + <xs:enumeration value="14.00" />
1075 + <xs:enumeration value="8.00" />
1076 + <xs:enumeration value="22.0" />
1077 + </xs:restriction>
1078 + </xs:simpleType>
1079 + <xs:simpleType name="String10">
1080 + <xs:restriction base="PXString">
1081 + <xs:maxLength value="10" />
1082 + </xs:restriction>
1083 + </xs:simpleType>
1084 + <xs:simpleType name="String30">
1085 + <xs:restriction base="PXString">
1086 + <xs:maxLength value="30" />
1087 + </xs:restriction>
1088 + </xs:simpleType>
1089 + <xs:simpleType name="String25">
1090 + <xs:restriction base="PXString">
1091 + <xs:maxLength value="25" />
1092 + </xs:restriction>
1093 + </xs:simpleType>
1094 + <xs:simpleType name="NameAddressString35">
1095 + <xs:restriction base="PXNameAddressString">
1096 + <xs:maxLength value="35" />
1097 + </xs:restriction>
1098 + </xs:simpleType>
1099 + <xs:simpleType name="NameAddressString72">
1100 + <xs:restriction base="PXNameAddressString">
1101 + <xs:minLength value="1" />
1102 + <xs:maxLength value="72" />
1103 + </xs:restriction>
1104 + </xs:simpleType>
1105 + <xs:simpleType name="NameAddressString27">
1106 + <xs:restriction base="PXNameAddressString">
1107 + <xs:minLength value="1" />
1108 + <xs:maxLength value="27" />
1109 + </xs:restriction>
1110 + </xs:simpleType>
1111 + <xs:simpleType name="PXString">
1112 + <xs:restriction base="xs:string">
1113 + <xs:pattern value="[a-zA-Z0-9_:!;&quot;#&lt;&gt;=?\[\]@{}´ %'-/À-ÖØ-öø-úü&amp;]*" />
1114 + <xs:minLength value="1" />
1115 + </xs:restriction>
1116 + </xs:simpleType>
1117 + <xs:simpleType name="PXNameAddressString">
1118 + <xs:restriction base="xs:string">
1119 + <xs:pattern value="[a-zA-Z0-9_:!;&quot;#&lt;&gt;=?\[\]@{}´ %'-/À-ÖØ-öø-úü&amp;]*" />
1120 + </xs:restriction>
1121 + </xs:simpleType>
1122 + <xs:simpleType name="TableType">
1123 + <xs:restriction base="xs:string">
1124 + <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" />
1125 + </xs:restriction>
1126 + </xs:simpleType>
1127 + <xs:complexType name="ReferenceInfo">
1128 + <xs:sequence>
1129 + <xs:element name="ExternalInvoiceId" type="String50" maxOccurs="1" minOccurs="0" nillable="false">
1130 + <xs:annotation>
1131 + <xs:documentation>Additional unique invoice identifier in accounts receivable</xs:documentation>
1132 + </xs:annotation>
1133 + </xs:element>
1134 + <xs:element name="ExternalReference" type="String50" maxOccurs="1" minOccurs="0" nillable="false">
1135 + <xs:annotation>
1136 + <xs:documentation>Optional reference text</xs:documentation>
1137 + </xs:annotation>
1138 + </xs:element>
1139 + <xs:element name="InvoiceReferenceText" type="String200" maxOccurs="1" minOccurs="0" nillable="false">
1140 + <xs:annotation>
1141 + <xs:documentation>General text describing the product/service invoiced</xs:documentation>
1142 + </xs:annotation>
1143 + </xs:element>
1144 + </xs:sequence>
1145 + </xs:complexType>
1146 + <xs:complexType name="RegNo">
1147 + <xs:annotation>
1148 + <xs:documentation>Social security number/Corporate identity number conforming to country standard</xs:documentation>
1149 + </xs:annotation>
1150 + <xs:simpleContent>
1151 + <xs:extension base="String15">
1152 + <xs:attribute name="CountryCode" type="ISO3166" use="required">
1153 + <xs:annotation>
1154 + <xs:documentation>Nationality of RegNo according to ISO3166</xs:documentation>
1155 + </xs:annotation>
1156 + </xs:attribute>
1157 + </xs:extension>
1158 + </xs:simpleContent>
1159 + </xs:complexType>
1160 + <xs:simpleType name="LegalEntity">
1161 + <xs:annotation>
1162 + <xs:documentation>Legal entity of the customer.</xs:documentation>
1163 + </xs:annotation>
1164 + <xs:restriction base="xs:string">
1165 + <xs:enumeration value="Private" />
1166 + <xs:enumeration value="Business" />
1167 + </xs:restriction>
1168 + </xs:simpleType>
1169 + <xs:simpleType name="eNotificationDistributionType">
1170 + <xs:restriction base="xs:string">
1171 + <xs:enumeration value="EMail">
1172 + <xs:annotation>
1173 + <xs:documentation>Notification is made by E-Mail</xs:documentation>
1174 + </xs:annotation>
1175 + </xs:enumeration>
1176 + </xs:restriction>
1177 + </xs:simpleType>
1178 + <xs:complexType name="VatInfo">
1179 + <xs:sequence>
1180 + <xs:element name="VatAmount" type="Money" maxOccurs="1" minOccurs="1">
1181 + <xs:annotation>
1182 + <xs:documentation>VAT amount</xs:documentation>
1183 + </xs:annotation>
1184 + </xs:element>
1185 + <xs:element name="VatRate" type="VatRate" maxOccurs="1" minOccurs="1">
1186 + <xs:annotation>
1187 + <xs:documentation>VAT rate associated with VatAmount</xs:documentation>
1188 + </xs:annotation>
1189 + </xs:element>
1190 + </xs:sequence>
1191 + </xs:complexType>
1192 + <xs:simpleType name="eDunningBillType">
1193 + <xs:restriction base="xs:string">
1194 + <xs:enumeration value="SE_10">
1195 + <xs:annotation>
1196 + <xs:documentation>Swedish reminder 1</xs:documentation>
1197 + </xs:annotation>
1198 + </xs:enumeration>
1199 + <xs:enumeration value="SE_20">
1200 + <xs:annotation>
1201 + <xs:documentation>Swedish reminder 2</xs:documentation>
1202 + </xs:annotation>
1203 + </xs:enumeration>
1204 + </xs:restriction>
1205 + </xs:simpleType>
1206 + <xs:simpleType name="fInvoiceNo">
1207 + <xs:restriction base="xs:string">
1208 + <xs:pattern value="[A-Za-z0-9\-]+" />
1209 + <xs:maxLength value="15" />
1210 + </xs:restriction>
1211 + </xs:simpleType>
1212 + <xs:simpleType name="eDistributionBillType">
1213 + <xs:restriction base="xs:string">
1214 + <xs:enumeration value="I_Invoice">
1215 + <xs:annotation>
1216 + <xs:documentation>Refers to invoice</xs:documentation>
1217 + </xs:annotation>
1218 + </xs:enumeration>
1219 + </xs:restriction>
1220 + </xs:simpleType>
1221 + <xs:simpleType name="eDunningRule">
1222 + <xs:restriction base="xs:string">
1223 + <xs:enumeration value="I_PenaltyIntrAndFeeLimit">
1224 + <xs:annotation>
1225 + <xs:documentation>Instruction to credit non payed penalty interest and fees below limit amount. Set value to a positive amount (integer) </xs:documentation>
1226 + </xs:annotation>
1227 + </xs:enumeration>
1228 + <xs:enumeration value="I_PaymentTerms">
1229 + <xs:annotation>
1230 + <xs:documentation>Payment terms for invoice. Set value to number of days (integer)</xs:documentation>
1231 + </xs:annotation>
1232 + </xs:enumeration>
1233 + </xs:restriction>
1234 + </xs:simpleType>
1235 + <xs:simpleType name="eNotificationBillType">
1236 + <xs:restriction base="xs:string">
1237 + <xs:enumeration value="I_Invoice">
1238 + <xs:annotation>
1239 + <xs:documentation>Refers to Invoice</xs:documentation>
1240 + </xs:annotation>
1241 + </xs:enumeration>
1242 + </xs:restriction>
1243 + </xs:simpleType>
1244 + <xs:simpleType name="eCurrencyType">
1245 + <xs:restriction base="xs:string">
1246 + <xs:enumeration value="SEK" />
1247 + <xs:enumeration value="NOK" />
1248 + <xs:enumeration value="DKK" />
1249 + <xs:enumeration value="EUR" />
1250 + </xs:restriction>
1251 + </xs:simpleType>
1252 + <xs:complexType name="CreditInstructions">
1253 + <xs:annotation>
1254 + <xs:documentation>Containing settle instructions for a credit invoice. Can only be used if specially contracted with PayEx</xs:documentation>
1255 + </xs:annotation>
1256 + <xs:sequence>
1257 + <xs:element name="CreditInstruction" minOccurs="1" maxOccurs="unbounded">
1258 + <xs:annotation>
1259 + <xs:documentation>Containing 1 settle instruction for a credit invoice</xs:documentation>
1260 + </xs:annotation>
1261 + <xs:complexType>
1262 + <xs:sequence>
1263 + <xs:element name="InvoiceIdentifier" minOccurs="1" maxOccurs="1">
1264 + <xs:annotation>
1265 + <xs:documentation>Containing either InvoiceNo or ExternalInvoiceId to identify a debit invoice</xs:documentation>
1266 + </xs:annotation>
1267 + <xs:complexType>
1268 + <xs:choice>
1269 + <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="1" maxOccurs="1">
1270 + <xs:annotation>
1271 + <xs:documentation>InvoiceNo identifying a debit invoice</xs:documentation>
1272 + </xs:annotation>
1273 + </xs:element>
1274 + <xs:element name="ExternalInvoiceId" type="String50" minOccurs="1" maxOccurs="1">
1275 + <xs:annotation>
1276 + <xs:documentation>ExternalInvoiceId identifying a debit invoice</xs:documentation>
1277 + </xs:annotation>
1278 + </xs:element>
1279 + </xs:choice>
1280 + </xs:complexType>
1281 + </xs:element>
1282 + <xs:element name="CreditAmount" type="CreditMoney">
1283 + <xs:annotation>
1284 + <xs:documentation>The amount to credit</xs:documentation>
1285 + </xs:annotation>
1286 + </xs:element>
1287 + </xs:sequence>
1288 + <xs:attribute name="SendCopy" type="xs:boolean" use="required" >
1289 + <xs:annotation>
1290 + <xs:documentation>Set to true if a adjusted "invoice copy" shall be sent to the customer after the credit has been made</xs:documentation>
1291 + </xs:annotation>
1292 + </xs:attribute>
1293 + </xs:complexType>
1294 + </xs:element>
1295 + </xs:sequence>
1296 + </xs:complexType>
1297 + <xs:complexType name="Columns">
1298 + <xs:annotation>
1299 + <xs:documentation>Containing 1-12 columns</xs:documentation>
1300 + </xs:annotation>
1301 + <xs:sequence>
1302 + <xs:element name="Column" type="Column" minOccurs="1" maxOccurs="12" />
1303 + </xs:sequence>
1304 + </xs:complexType>
1305 + <xs:simpleType name="ePaymentRule">
1306 + <xs:restriction base="xs:string">
1307 + <xs:enumeration value="UseBGAGSE">
1308 + <xs:annotation>
1309 + <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>
1310 + </xs:annotation>
1311 + </xs:enumeration>
1312 + <xs:enumeration value="UseBKAGNO">
1313 + <xs:annotation>
1314 + <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>
1315 + </xs:annotation>
1316 + </xs:enumeration>
1317 + </xs:restriction>
1318 + </xs:simpleType>
1319 + <xs:simpleType name="eDistributionRule">
1320 + <xs:restriction base="xs:string">
1321 + <xs:enumeration value="UseEInvoiceB2CSE">
1322 + <xs:annotation>
1323 + <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>
1324 + </xs:annotation>
1325 + </xs:enumeration>
1326 + <xs:enumeration value="UseEInvoiceB2CNO">
1327 + <xs:annotation>
1328 + <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>
1329 + </xs:annotation>
1330 + </xs:enumeration>
1331 + <xs:enumeration value="UseEInvoiceB2CFI">
1332 + <xs:annotation>
1333 + <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>
1334 + </xs:annotation>
1335 + </xs:enumeration>
1336 + </xs:restriction>
1337 + </xs:simpleType>
1338 + <xs:simpleType name="eColumnNo">
1339 + <xs:restriction base="xs:unsignedShort">
1340 + <xs:enumeration value="1">
1341 + <xs:annotation>
1342 + <xs:documentation>Refers to column 1</xs:documentation>
1343 + </xs:annotation>
1344 + </xs:enumeration>
1345 + <xs:enumeration value="2">
1346 + <xs:annotation>
1347 + <xs:documentation>Refers to column 2</xs:documentation>
1348 + </xs:annotation>
1349 + </xs:enumeration>
1350 + <xs:enumeration value="3">
1351 + <xs:annotation>
1352 + <xs:documentation>Refers to column 3</xs:documentation>
1353 + </xs:annotation>
1354 + </xs:enumeration>
1355 + <xs:enumeration value="4">
1356 + <xs:annotation>
1357 + <xs:documentation>Refers to column 4</xs:documentation>
1358 + </xs:annotation>
1359 + </xs:enumeration>
1360 + <xs:enumeration value="5">
1361 + <xs:annotation>
1362 + <xs:documentation>Refers to column 5</xs:documentation>
1363 + </xs:annotation>
1364 + </xs:enumeration>
1365 + <xs:enumeration value="6">
1366 + <xs:annotation>
1367 + <xs:documentation>Refers to column 6</xs:documentation>
1368 + </xs:annotation>
1369 + </xs:enumeration>
1370 + <xs:enumeration value="7">
1371 + <xs:annotation>
1372 + <xs:documentation>Refers to column 7</xs:documentation>
1373 + </xs:annotation>
1374 + </xs:enumeration>
1375 + <xs:enumeration value="8">
1376 + <xs:annotation>
1377 + <xs:documentation>Refers to column 8</xs:documentation>
1378 + </xs:annotation>
1379 + </xs:enumeration>
1380 + <xs:enumeration value="9">
1381 + <xs:annotation>
1382 + <xs:documentation>Refers to column 9</xs:documentation>
1383 + </xs:annotation>
1384 + </xs:enumeration>
1385 + <xs:enumeration value="10">
1386 + <xs:annotation>
1387 + <xs:documentation>Refers to column 10</xs:documentation>
1388 + </xs:annotation>
1389 + </xs:enumeration>
1390 + <xs:enumeration value="11">
1391 + <xs:annotation>
1392 + <xs:documentation>Refers to column 11</xs:documentation>
1393 + </xs:annotation>
1394 + </xs:enumeration>
1395 + <xs:enumeration value="12">
1396 + <xs:annotation>
1397 + <xs:documentation>Refers to column 12</xs:documentation>
1398 + </xs:annotation>
1399 + </xs:enumeration>
1400 + </xs:restriction>
1401 + </xs:simpleType>
1402 + <xs:complexType name="Column">
1403 + <xs:sequence>
1404 + <xs:element name="Text" type="xs:string" maxOccurs="1" minOccurs="1">
1405 + <xs:annotation>
1406 + <xs:documentation>Text printed in cell</xs:documentation>
1407 + </xs:annotation>
1408 + </xs:element>
1409 + </xs:sequence>
1410 + <xs:attribute name="ColumnNo" type="eColumnNo" use="required" />
1411 + </xs:complexType>
1412 + <xs:complexType name="BasePrintBlock">
1413 + <xs:annotation>
1414 + <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>
1415 + </xs:annotation>
1416 + <xs:sequence>
1417 + <xs:element name="HeadLine" type="xs:string" minOccurs="0" maxOccurs="1">
1418 + <xs:annotation>
1419 + <xs:documentation>Optional print block headline</xs:documentation>
1420 + </xs:annotation>
1421 + </xs:element>
1422 + <xs:element name="SubOrderBlocks" minOccurs="1" maxOccurs="1">
1423 + <xs:complexType>
1424 + <xs:sequence>
1425 + <xs:element name="SubOrderBlock" minOccurs="1" maxOccurs="unbounded">
1426 + <xs:complexType>
1427 + <xs:sequence>
1428 + <xs:element minOccurs="0" name="HeadLine" maxOccurs="1" type="xs:string">
1429 + <xs:annotation>
1430 + <xs:documentation>Optional suborder block headline</xs:documentation>
1431 + </xs:annotation>
1432 + </xs:element>
1433 + <xs:element minOccurs="0" maxOccurs="1" name="ColumnHeadLine">
1434 + <xs:annotation>
1435 + <xs:documentation>Optional column headline(s)</xs:documentation>
1436 + </xs:annotation>
1437 + <xs:complexType>
1438 + <xs:sequence>
1439 + <xs:element name="Columns" type="Columns" maxOccurs="1" minOccurs="1">
1440 + <xs:annotation>
1441 + <xs:documentation>Containing cells for column headline row of the referred table type</xs:documentation>
1442 + </xs:annotation>
1443 + </xs:element>
1444 + </xs:sequence>
1445 + </xs:complexType>
1446 + </xs:element>
1447 + <xs:element name="Rows" minOccurs="1" maxOccurs="1">
1448 + <xs:annotation>
1449 + <xs:documentation>Containing rows</xs:documentation>
1450 + </xs:annotation>
1451 + <xs:complexType>
1452 + <xs:sequence>
1453 + <xs:element minOccurs="0" name="Row" maxOccurs="unbounded">
1454 + <xs:annotation>
1455 + <xs:documentation>Containing one row</xs:documentation>
1456 + </xs:annotation>
1457 + <xs:complexType>
1458 + <xs:sequence>
1459 + <xs:element name="Columns" type="Columns" maxOccurs="1" minOccurs="1">
1460 + <xs:annotation>
1461 + <xs:documentation>Containing cells for one row of the referred table type</xs:documentation>
1462 + </xs:annotation>
1463 + </xs:element>
1464 + </xs:sequence>
1465 + </xs:complexType>
1466 + </xs:element>
1467 + </xs:sequence>
1468 + </xs:complexType>
1469 + </xs:element>
1470 + <xs:element name="SummaryRow" minOccurs="0" maxOccurs="1">
1471 + <xs:annotation>
1472 + <xs:documentation>Optional summary row of referred table type</xs:documentation>
1473 + </xs:annotation>
1474 + <xs:complexType>
1475 + <xs:sequence>
1476 + <xs:element name="Columns" type="Columns" minOccurs="1" maxOccurs="1">
1477 + <xs:annotation>
1478 + <xs:documentation>Containing cells for summary row of the referred table type</xs:documentation>
1479 + </xs:annotation>
1480 + </xs:element>
1481 + </xs:sequence>
1482 + </xs:complexType>
1483 + </xs:element>
1484 + </xs:sequence>
1485 + <xs:attribute name="TableType" type="TableType" use="required">
1486 + <xs:annotation>
1487 + <xs:documentation>The name of the predefined table type in PayEx print system.</xs:documentation>
1488 + </xs:annotation>
1489 + </xs:attribute>
1490 + </xs:complexType>
1491 + </xs:element>
1492 + </xs:sequence>
1493 + </xs:complexType>
1494 + </xs:element>
1495 + </xs:sequence>
1496 + </xs:complexType>
1497 + <xs:complexType name="PrintBlockConfig">
1498 + <xs:sequence>
1499 + </xs:sequence>
1500 + <xs:attribute name="PrecedingPageBreak" type="xs:boolean" use="optional">
1501 + <xs:annotation>
1502 + <xs:documentation>Instruction to start printing the print block on a new page</xs:documentation>
1503 + </xs:annotation>
1504 + </xs:attribute>
1505 + <xs:attribute name="PrecedingSheetBreak" type="xs:boolean" use="optional">
1506 + <xs:annotation>
1507 + <xs:documentation>Instruction to start printing the print block on a new sheet</xs:documentation>
1508 + </xs:annotation>
1509 + </xs:attribute>
1510 + </xs:complexType>
1511 + <xs:complexType name="PredefinedPrintBlocks">
1512 + <xs:sequence>
1513 + <xs:element name="PredefinedPrintBlock" minOccurs="1" maxOccurs="unbounded">
1514 + <xs:annotation>
1515 + <xs:documentation>Containing predefined print block printed in specified predefined area in layout</xs:documentation>
1516 + </xs:annotation>
1517 + <xs:complexType>
1518 + <xs:choice>
1519 + <xs:element name="Image" minOccurs="1" maxOccurs="1">
1520 + <xs:annotation>
1521 + <xs:documentation>Containing predefined image printed in specified predefined area in layout</xs:documentation>
1522 + </xs:annotation>
1523 + <xs:complexType>
1524 + <xs:sequence>
1525 + <xs:element name="ImageName" type="xs:string" minOccurs="1" maxOccurs="1">
1526 + <xs:annotation>
1527 + <xs:documentation>Name of predefined image in PayEx print system</xs:documentation>
1528 + </xs:annotation>
1529 + </xs:element>
1530 + </xs:sequence>
1531 + <xs:attribute name="ImageAreaName" type="xs:string" use="required">
1532 + <xs:annotation>
1533 + <xs:documentation>Name of predefined image area in layout</xs:documentation>
1534 + </xs:annotation>
1535 + </xs:attribute>
1536 + </xs:complexType>
1537 + </xs:element>
1538 + <xs:element name="Paragraph" minOccurs="1" maxOccurs="1">
1539 + <xs:annotation>
1540 + <xs:documentation>Containing predefined paragraph printed in specified predefined area in layout</xs:documentation>
1541 + </xs:annotation>
1542 + <xs:complexType>
1543 + <xs:sequence>
1544 + <xs:element name="ParagraphName" type="xs:string" minOccurs="1" maxOccurs="1">
1545 + <xs:annotation>
1546 + <xs:documentation>Name of predefined paragraph in PayEx print system</xs:documentation>
1547 + </xs:annotation>
1548 + </xs:element>
1549 + </xs:sequence>
1550 + <xs:attribute name="ParagraphAreaName" type="xs:string" use="required">
1551 + <xs:annotation>
1552 + <xs:documentation>Name of predefined paragraph area name in layout</xs:documentation>
1553 + </xs:annotation>
1554 + </xs:attribute>
1555 + </xs:complexType>
1556 + </xs:element>
1557 + </xs:choice>
1558 + </xs:complexType>
1559 + </xs:element>
1560 + </xs:sequence>
1561 + </xs:complexType>
1562 + <xs:complexType name="ExtraPrintBlocks">
1563 + <xs:sequence>
1564 + <xs:element name="ExtraPrintBlock" minOccurs="1" maxOccurs="unbounded">
1565 + <xs:annotation>
1566 + <xs:documentation>Containing print block printed in specified predefined area in layout</xs:documentation>
1567 + </xs:annotation>
1568 + <xs:complexType>
1569 + <xs:sequence>
1570 + <xs:element name="BasePrintBlock" type="BasePrintBlock" minOccurs="1" maxOccurs="1" />
1571 + </xs:sequence>
1572 + <xs:attribute name="PrintBlockAreaName" type="xs:string" use="required">
1573 + <xs:annotation>
1574 + <xs:documentation>Name of predefined area in layout</xs:documentation>
1575 + </xs:annotation>
1576 + </xs:attribute>
1577 + </xs:complexType>
1578 + </xs:element>
1579 + </xs:sequence>
1580 + </xs:complexType>
1581 + <xs:complexType name="StandardPrintBlocks">
1582 + <xs:sequence>
1583 + <xs:element name="StandardPrintBlock" minOccurs="1" maxOccurs="unbounded">
1584 + <xs:complexType>
1585 + <xs:sequence>
1586 + <xs:element name="BasePrintBlock" type="BasePrintBlock" maxOccurs="1" minOccurs="1" />
1587 + <xs:element name="PrintBlockConfig" type="PrintBlockConfig" minOccurs="0" maxOccurs="1" />
1588 + </xs:sequence>
1589 + </xs:complexType>
1590 + </xs:element>
1591 + </xs:sequence>
1592 + </xs:complexType>
1593 + <xs:complexType name="SpecificationPrintBlocks">
1594 + <xs:sequence>
1595 + <xs:element name="SpecificationPrintBlock" minOccurs="1" maxOccurs="unbounded">
1596 + <xs:complexType>
1597 + <xs:sequence>
1598 + <xs:element name="BasePrintBlock" type="BasePrintBlock" maxOccurs="1" minOccurs="1" />
1599 + <xs:element name="PrintBlockConfig" type="PrintBlockConfig" maxOccurs="1" minOccurs="1" />
1600 + </xs:sequence>
1601 + <xs:attribute name="PrintBlockIdentifier" type="xs:string" />
1602 + </xs:complexType>
1603 + </xs:element>
1604 + </xs:sequence>
1605 + </xs:complexType>
1606 + <xs:simpleType name="eSummaryType">
1607 + <xs:restriction base="xs:string">
1608 + <xs:enumeration value="SA">
1609 + <xs:annotation>
1610 + <xs:documentation>Summary</xs:documentation>
1611 + </xs:annotation>
1612 + </xs:enumeration>
1613 + <xs:enumeration value="SSA">
1614 + <xs:annotation>
1615 + <xs:documentation>Aggregated summary</xs:documentation>
1616 + </xs:annotation>
1617 + </xs:enumeration>
1618 + </xs:restriction>
1619 + </xs:simpleType>
1620 + <xs:simpleType name="Version">
1621 + <xs:restriction base="xs:string">
1622 + <xs:enumeration value="2.0"/>
1623 + <xs:enumeration value="2.1">
1624 + <xs:annotation>
1625 + <xs:documentation>Added new DistributionRule UseEInvoiceB2CFI, and two new properties for accounting InterCompanyCode and VatType. Increased Money type to 500 000 000</xs:documentation>
1626 + </xs:annotation>
1627 + </xs:enumeration>
1628 + <xs:enumeration value="2.2">
1629 + <xs:annotation>
1630 + <xs:documentation>EdiInfo.EDIOrderRows.Quantity decimal support,
1631 + EDIInfo.ExternalreferenceURL, added new field
1632 + Added support for more characters in EdiInfo.EDIOrderRow.ContractType
1633 + </xs:documentation>
1634 + </xs:annotation>
1635 + </xs:enumeration>
1636 + <xs:enumeration value="2.3">
1637 + <xs:annotation>
1638 + <xs:documentation>DistributionAddressInfo, added new field ProtectedIdentity</xs:documentation>
1639 + </xs:annotation>
1640 + </xs:enumeration>
1641 + </xs:restriction>
1642 + </xs:simpleType>
1643 +</xs:schema>
1644 +
CUSIN_[2.4].xsd
Author
... ... @@ -1,0 +1,1 @@
1 +xwiki:XWiki.ihm
Size
... ... @@ -1,0 +1,1 @@
1 +0 bytes
Content
... ... @@ -1,0 +1,1651 @@
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 + <xs:element name="CUSIN">
4 + <xs:complexType>
5 + <xs:sequence>
6 + <xs:element name="DistributionDate" minOccurs="0" maxOccurs="1">
7 + <xs:annotation>
8 + <xs:documentation>Mandatory for services with distribution.</xs:documentation>
9 + </xs:annotation>
10 + <xs:complexType>
11 + <xs:choice>
12 + <xs:element name="Date" type="xs:date">
13 + <xs:annotation>
14 + <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>
15 + </xs:annotation>
16 + </xs:element>
17 + <xs:element name="AsSoonAsPossible">
18 + <xs:annotation>
19 + <xs:documentation>Used to distribute invoices as soon as possible. The element supposed to be empty.</xs:documentation>
20 + </xs:annotation>
21 + <xs:complexType>
22 + <xs:complexContent>
23 + <xs:restriction base="xs:anyType" />
24 + </xs:complexContent>
25 + </xs:complexType>
26 + </xs:element>
27 + </xs:choice>
28 + </xs:complexType>
29 + </xs:element>
30 + <xs:element name="CUSINInfo" minOccurs="1" maxOccurs="unbounded">
31 + <xs:annotation>
32 + <xs:documentation>Containing one customer (payer) and that customers invoice(s)</xs:documentation>
33 + </xs:annotation>
34 + <xs:complexType>
35 + <xs:sequence>
36 + <xs:element name="CustomerNo" type="Identifier15" minOccurs="0" maxOccurs="1" nillable="false" >
37 + <xs:annotation>
38 + <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>
39 + </xs:annotation>
40 + </xs:element>
41 + <xs:element minOccurs="0" maxOccurs="1" name="CustomerInfo">
42 + <xs:annotation>
43 + <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>
44 + </xs:annotation>
45 + <xs:complexType>
46 + <xs:sequence>
47 + <xs:element name="Name" type="NameAddressString72" minOccurs="1" maxOccurs="1" >
48 + <xs:annotation>
49 + <xs:documentation>Full name for the customer in the accounts receivable system. Used as display name</xs:documentation>
50 + </xs:annotation>
51 + </xs:element>
52 + <xs:element name="RegNo" type="RegNo" minOccurs="0" maxOccurs="1" >
53 + <xs:annotation>
54 + <xs:documentation>Customer social security number/corporate identity number. Has to conform to country specific algorithms</xs:documentation>
55 + </xs:annotation>
56 + </xs:element>
57 + <xs:element name="Category" type="String10" minOccurs="0" maxOccurs="1" >
58 + <xs:annotation>
59 + <xs:documentation>Can only be used if contracted with PayEx. Category has to be preconfigured in the accounts receivable system</xs:documentation>
60 + </xs:annotation>
61 + </xs:element>
62 + <xs:element name="InterCompanyCode" type="String15" minOccurs="0" maxOccurs="1" >
63 + <xs:annotation>
64 + <xs:documentation>Relating to interactions between two or more internal companies</xs:documentation>
65 + </xs:annotation>
66 + </xs:element>
67 + <xs:element name="VatType" type="VatType" minOccurs="0" maxOccurs="1" >
68 + <xs:annotation>
69 + <xs:documentation>Specifies if/where the customer liable to pay VAT</xs:documentation>
70 + </xs:annotation>
71 + </xs:element>
72 + <xs:element name="LanguageCode" type="ISO639" minOccurs="0" maxOccurs="1" >
73 + <xs:annotation>
74 + <xs:documentation>Only used if preferred invoice language is other than accounts receivable default</xs:documentation>
75 + </xs:annotation>
76 + </xs:element>
77 + <xs:element name="VatNo" type="VatNumber" minOccurs="0" maxOccurs="1" >
78 + <xs:annotation>
79 + <xs:documentation>Customer VAT registration number. Mandatory if reverse tax is used. Must conform to country specific algorithm</xs:documentation>
80 + </xs:annotation>
81 + </xs:element>
82 + <xs:element name="DistributionAddressInfo" minOccurs="1" maxOccurs="1">
83 + <xs:annotation>
84 + <xs:documentation>Contains customer distribution address information</xs:documentation>
85 + </xs:annotation>
86 + <xs:complexType>
87 + <xs:sequence>
88 + <xs:element name="Addresses" minOccurs="1" maxOccurs="1">
89 + <xs:annotation>
90 + <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>
91 + </xs:annotation>
92 + <xs:complexType>
93 + <xs:sequence>
94 + <xs:element name="Address" type="Address" minOccurs="1" maxOccurs="2">
95 + <xs:annotation>
96 + <xs:documentation>Legal address is mandatory. Only supply billing address i different from legal address</xs:documentation>
97 + </xs:annotation>
98 + </xs:element>
99 + </xs:sequence>
100 + </xs:complexType>
101 + </xs:element>
102 + <xs:element name="E-MailAddress" type="Email" minOccurs="0" maxOccurs="1" >
103 + <xs:annotation>
104 + <xs:documentation>Customers E-mail address. Mandatory if delivery is set to EMail or E-notification is active.</xs:documentation>
105 + </xs:annotation>
106 + </xs:element>
107 + <xs:element name="Cellphone" type="String15" minOccurs="0" maxOccurs="1" >
108 + <xs:annotation>
109 + <xs:documentation>Customers mobile number msisdn</xs:documentation>
110 + </xs:annotation>
111 + </xs:element>
112 + <xs:element name="ProtectedIdentity" type="xs:boolean" minOccurs="0" maxOccurs="1" >
113 + <xs:annotation>
114 + <xs:documentation>Customer has ProtectedIdentity, postal distribution handled by Skatteverket</xs:documentation>
115 + </xs:annotation>
116 + </xs:element>
117 + </xs:sequence>
118 + </xs:complexType>
119 + </xs:element>
120 + <xs:element name="PaymentInfo" minOccurs="0" maxOccurs="1">
121 + <xs:annotation>
122 + <xs:documentation>Contains differing customer payment info from accounts receivable default</xs:documentation>
123 + </xs:annotation>
124 + <xs:complexType>
125 + <xs:choice>
126 + <xs:element name="Clear" minOccurs="1" maxOccurs="1" >
127 + <xs:annotation>
128 + <xs:documentation>Erases previously set payment info on customer</xs:documentation>
129 + </xs:annotation>
130 + </xs:element>
131 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
132 + <xs:annotation>
133 + <xs:documentation>Sets differing payment info on customer, fully replaces earlier settings</xs:documentation>
134 + </xs:annotation>
135 + <xs:complexType>
136 + <xs:sequence>
137 + <xs:element name="PaymentType" type="ePaymentType" minOccurs="0" maxOccurs="1" >
138 + <xs:annotation>
139 + <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>
140 + </xs:annotation>
141 + </xs:element>
142 + <xs:element name="PaymentRules" minOccurs="0" maxOccurs="1">
143 + <xs:annotation>
144 + <xs:documentation>Containing differing customer payment rules.</xs:documentation>
145 + </xs:annotation>
146 + <xs:complexType>
147 + <xs:sequence>
148 + <xs:element name="PaymentRule" minOccurs="1" maxOccurs="unbounded">
149 + <xs:annotation>
150 + <xs:documentation>Customer differing payment rule.</xs:documentation>
151 + </xs:annotation>
152 + <xs:complexType>
153 + <xs:sequence>
154 + <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
155 + <xs:annotation>
156 + <xs:documentation>Valid value of rule</xs:documentation>
157 + </xs:annotation>
158 + </xs:element>
159 + </xs:sequence>
160 + <xs:attribute name="Rule" type="ePaymentRule" >
161 + <xs:annotation>
162 + <xs:documentation>Valid payment rule from enumeration ePaymentRule</xs:documentation>
163 + </xs:annotation>
164 + </xs:attribute>
165 + </xs:complexType>
166 + </xs:element>
167 + </xs:sequence>
168 + </xs:complexType>
169 + </xs:element>
170 + </xs:sequence>
171 + </xs:complexType>
172 + </xs:element>
173 + </xs:choice>
174 + </xs:complexType>
175 + </xs:element>
176 + <xs:element name="DunningInfo" minOccurs="0" maxOccurs="1">
177 + <xs:annotation>
178 + <xs:documentation>Contains differing customer dunning info from accounts receivable default</xs:documentation>
179 + </xs:annotation>
180 + <xs:complexType>
181 + <xs:choice>
182 + <xs:element name="Clear" >
183 + <xs:annotation>
184 + <xs:documentation>Erases previously set dunning info on customer</xs:documentation>
185 + </xs:annotation>
186 + </xs:element>
187 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
188 + <xs:annotation>
189 + <xs:documentation>Sets differing dunning info on customer. Fully replaces previously set dunning info</xs:documentation>
190 + </xs:annotation>
191 + <xs:complexType>
192 + <xs:sequence minOccurs="1" maxOccurs="3">
193 + <xs:element name="DunningRules" minOccurs="0" maxOccurs="1">
194 + <xs:annotation>
195 + <xs:documentation>Containing differing dunning rules</xs:documentation>
196 + </xs:annotation>
197 + <xs:complexType>
198 + <xs:sequence>
199 + <xs:element name="DunningRule" minOccurs="1" maxOccurs="unbounded">
200 + <xs:annotation>
201 + <xs:documentation>Contains a dunning rule and its value</xs:documentation>
202 + </xs:annotation>
203 + <xs:complexType>
204 + <xs:sequence>
205 + <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
206 + <xs:annotation>
207 + <xs:documentation>Valid value of rule</xs:documentation>
208 + </xs:annotation>
209 + </xs:element>
210 + </xs:sequence>
211 + <xs:attribute name="Rule" type="eDunningRule">
212 + <xs:annotation>
213 + <xs:documentation>Valid dunning rule from enumeration eDunningRule</xs:documentation>
214 + </xs:annotation>
215 + </xs:attribute>
216 + </xs:complexType>
217 + </xs:element>
218 + </xs:sequence>
219 + </xs:complexType>
220 + </xs:element>
221 + <xs:element name="DunningEnclosures" minOccurs="0" maxOccurs="1">
222 + <xs:annotation>
223 + <xs:documentation>Contains dunning enclosures</xs:documentation>
224 + </xs:annotation>
225 + <xs:complexType>
226 + <xs:sequence>
227 + <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
228 + <xs:annotation>
229 + <xs:documentation>Contains a dunning bill type and a predefined enclosure</xs:documentation>
230 + </xs:annotation>
231 + <xs:complexType>
232 + <xs:sequence>
233 + <xs:element name="EnclosureName" type="xs:string" maxOccurs="1" minOccurs="1">
234 + <xs:annotation>
235 + <xs:documentation>Predefined enclosure name in PayEx distribution system</xs:documentation>
236 + </xs:annotation>
237 + </xs:element>
238 + </xs:sequence>
239 + <xs:attribute name="DunningBillType" type="eDunningBillType">
240 + <xs:annotation>
241 + <xs:documentation>The bill type from enumeration eDunningBillType which to enclose the predefined enclosure</xs:documentation>
242 + </xs:annotation>
243 + </xs:attribute>
244 + </xs:complexType>
245 + </xs:element>
246 + </xs:sequence>
247 + </xs:complexType>
248 + </xs:element>
249 + </xs:sequence>
250 + </xs:complexType>
251 + </xs:element>
252 + </xs:choice>
253 + </xs:complexType>
254 + </xs:element>
255 + <xs:element name="DistributionInfo" minOccurs="0" maxOccurs="1">
256 + <xs:annotation>
257 + <xs:documentation>Contains differing customer distribution info from accounts receivable default</xs:documentation>
258 + </xs:annotation>
259 + <xs:complexType>
260 + <xs:choice>
261 + <xs:element name="Clear" minOccurs="1" maxOccurs="1" >
262 + <xs:annotation>
263 + <xs:documentation>Erases earlier set values</xs:documentation>
264 + </xs:annotation>
265 + </xs:element>
266 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
267 + <xs:annotation>
268 + <xs:documentation>Sets differing distribution info on customer. Fully replaces previously set distribution info</xs:documentation>
269 + </xs:annotation>
270 + <xs:complexType>
271 + <xs:sequence>
272 + <xs:element name="BillTypes" minOccurs="1" maxOccurs="1">
273 + <xs:annotation>
274 + <xs:documentation>Containing bill types with differing distribution from accounts receivable default</xs:documentation>
275 + </xs:annotation>
276 + <xs:complexType>
277 + <xs:sequence>
278 + <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
279 + <xs:annotation>
280 + <xs:documentation>Containing bill type with differing distribution</xs:documentation>
281 + </xs:annotation>
282 + <xs:complexType>
283 + <xs:sequence>
284 + <xs:element name="DistributionType" type="eDistributionType" maxOccurs="1" minOccurs="0">
285 + <xs:annotation>
286 + <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>
287 + </xs:annotation>
288 + </xs:element>
289 + <xs:element name="DistributionRules" minOccurs="0" maxOccurs="1">
290 + <xs:annotation>
291 + <xs:documentation>Contains distribution rules for bill type</xs:documentation>
292 + </xs:annotation>
293 + <xs:complexType>
294 + <xs:sequence>
295 + <xs:element name="DistributionRule" minOccurs="1" maxOccurs="unbounded">
296 + <xs:annotation>
297 + <xs:documentation>Contains a distribution rule and its value</xs:documentation>
298 + </xs:annotation>
299 + <xs:complexType>
300 + <xs:sequence>
301 + <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
302 + <xs:annotation>
303 + <xs:documentation>Valid value of distribution rule</xs:documentation>
304 + </xs:annotation>
305 + </xs:element>
306 + </xs:sequence>
307 + <xs:attribute name="Rule" type="eDistributionRule">
308 + <xs:annotation>
309 + <xs:documentation>Valid rule from enumeration eDistributionRule</xs:documentation>
310 + </xs:annotation>
311 + </xs:attribute>
312 + </xs:complexType>
313 + </xs:element>
314 + </xs:sequence>
315 + </xs:complexType>
316 + </xs:element>
317 + </xs:sequence>
318 + <xs:attribute name="DistributionBillType" type="eDistributionBillType">
319 + <xs:annotation>
320 + <xs:documentation>The bill type from enumeration eDistributionBillType for which distribution settings apply</xs:documentation>
321 + </xs:annotation>
322 + </xs:attribute>
323 + </xs:complexType>
324 + </xs:element>
325 + </xs:sequence>
326 + </xs:complexType>
327 + </xs:element>
328 + </xs:sequence>
329 + </xs:complexType>
330 + </xs:element>
331 + </xs:choice>
332 + </xs:complexType>
333 + </xs:element>
334 + <xs:element name="NotificationInfo" minOccurs="0" maxOccurs="1">
335 + <xs:annotation>
336 + <xs:documentation>Contains differing notification settings from accounts receivable default</xs:documentation>
337 + </xs:annotation>
338 + <xs:complexType>
339 + <xs:choice>
340 + <xs:element name="Clear" minOccurs="1" maxOccurs="1" >
341 + <xs:annotation>
342 + <xs:documentation>Erases earlier set values</xs:documentation>
343 + </xs:annotation>
344 + </xs:element>
345 + <xs:element name="Set" minOccurs="1" maxOccurs="1">
346 + <xs:annotation>
347 + <xs:documentation>Sets differing notification info on customer. Fully replaces previously set notification info</xs:documentation>
348 + </xs:annotation>
349 + <xs:complexType>
350 + <xs:sequence>
351 + <xs:element name="BillTypes" minOccurs="1" maxOccurs="1">
352 + <xs:annotation>
353 + <xs:documentation>Contains bill types with differing notification settings from accounts receivable default</xs:documentation>
354 + </xs:annotation>
355 + <xs:complexType>
356 + <xs:sequence>
357 + <xs:element name="BillType" minOccurs="1" maxOccurs="unbounded">
358 + <xs:annotation>
359 + <xs:documentation>Contains bill type with differing notification settings</xs:documentation>
360 + </xs:annotation>
361 + <xs:complexType>
362 + <xs:sequence>
363 + <xs:element name="NotificationTextCode" type="xs:string" maxOccurs="1" minOccurs="1">
364 + <xs:annotation>
365 + <xs:documentation>Preconfigured notification text code in PayEx distribution system</xs:documentation>
366 + </xs:annotation>
367 + </xs:element>
368 + <xs:element name="NotificationDistributionType" type="eNotificationDistributionType" maxOccurs="1" minOccurs="1" >
369 + <xs:annotation>
370 + <xs:documentation>Valid notification distribution type from enumeration eNotificationDistributionType</xs:documentation>
371 + </xs:annotation>
372 + </xs:element>
373 + </xs:sequence>
374 + <xs:attribute name="NotificationBillType" type="eNotificationBillType">
375 + <xs:annotation>
376 + <xs:documentation>The bill type from enumeration eNotificationBillType for which notification setting apply</xs:documentation>
377 + </xs:annotation>
378 + </xs:attribute>
379 + </xs:complexType>
380 + </xs:element>
381 + </xs:sequence>
382 + </xs:complexType>
383 + </xs:element>
384 + </xs:sequence>
385 + </xs:complexType>
386 + </xs:element>
387 + </xs:choice>
388 + </xs:complexType>
389 + </xs:element>
390 + </xs:sequence>
391 + <xs:attribute name="LegalEntity" type="LegalEntity" use="optional" >
392 + <xs:annotation>
393 + <xs:documentation>States the legal entity of the customer</xs:documentation>
394 + </xs:annotation>
395 + </xs:attribute>
396 + </xs:complexType>
397 + </xs:element>
398 + <xs:element minOccurs="0" maxOccurs="1" name="Invoices">
399 + <xs:annotation>
400 + <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>
401 + </xs:annotation>
402 + <xs:complexType>
403 + <xs:sequence>
404 + <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceWithDistribution">
405 + <xs:annotation>
406 + <xs:documentation>Contains invoice information if your contracted service is with distribution of invoices</xs:documentation>
407 + </xs:annotation>
408 + <xs:complexType>
409 + <xs:sequence>
410 + <xs:element name="InvoiceNo" type="fInvoiceNo" minOccurs="0" maxOccurs="1" >
411 + <xs:annotation>
412 + <xs:documentation>Your unique identifier/invoice number of the invoice. Mandatory/Prohibited depending on contracted service with PayEx</xs:documentation>
413 + </xs:annotation>
414 + </xs:element>
415 + <xs:element name="ReferenceInfo" type="ReferenceInfo" minOccurs="0" maxOccurs="1" >
416 + <xs:annotation>
417 + <xs:documentation>Containing additional invoice reference information</xs:documentation>
418 + </xs:annotation>
419 + </xs:element>
420 + <xs:element name="InvoiceDate" type="xs:date" minOccurs="0" maxOccurs="1" >
421 + <xs:annotation>
422 + <xs:documentation>Invoice date from invoicing/billing system. Mandatory/Prohibited depending on contracted service with PayEx</xs:documentation>
423 + </xs:annotation>
424 + </xs:element>
425 + <xs:element name="PreferredDueDate" type="xs:date" minOccurs="0" maxOccurs="1" >
426 + <xs:annotation>
427 + <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>
428 + </xs:annotation>
429 + </xs:element>
430 + <xs:element name="Amount" type="Amount" maxOccurs="1" minOccurs="1" >
431 + <xs:annotation>
432 + <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>
433 + </xs:annotation>
434 + </xs:element>
435 + <xs:element name="DistributionInfo" minOccurs="1" maxOccurs="1">
436 + <xs:annotation>
437 + <xs:documentation>Contains distribution and printing details for invoice</xs:documentation>
438 + </xs:annotation>
439 + <xs:complexType>
440 + <xs:sequence>
441 + <xs:element name="DCCode" type="String15" minOccurs="0" maxOccurs="1" >
442 + <xs:annotation>
443 + <xs:documentation>Differing invoice layout from accounts receivable default. Possible layouts must be preconfigured an contracted with PayEx</xs:documentation>
444 + </xs:annotation>
445 + </xs:element>
446 + <xs:element name="DistributionType" type="eDistributionType" minOccurs="0" maxOccurs="1" >
447 + <xs:annotation>
448 + <xs:documentation>If desired distribution type is different from set distribution type on customer or accounts receivable default</xs:documentation>
449 + </xs:annotation>
450 + </xs:element>
451 + <xs:element name="InvoicePrintInfo" minOccurs="1" maxOccurs="1">
452 + <xs:annotation>
453 + <xs:documentation>Contains printing info for one invoice document</xs:documentation>
454 + </xs:annotation>
455 + <xs:complexType>
456 + <xs:sequence>
457 + <xs:element name="InvoicePrintBlocks" type="StandardPrintBlocks" maxOccurs="1" minOccurs="1">
458 + <xs:annotation>
459 + <xs:documentation>Containing print blocks printed in the main/standard area of the invoice layout</xs:documentation>
460 + </xs:annotation>
461 + </xs:element>
462 + <xs:element name="ExtraPrintBlocks" type="ExtraPrintBlocks" minOccurs="0" maxOccurs="1">
463 + <xs:annotation>
464 + <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>
465 + </xs:annotation>
466 + </xs:element>
467 + <xs:element name="PredefinedPrintBlocks" type="PredefinedPrintBlocks" minOccurs="0" maxOccurs="1">
468 + <xs:annotation>
469 + <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>
470 + </xs:annotation>
471 + </xs:element>
472 + </xs:sequence>
473 + </xs:complexType>
474 + </xs:element>
475 + <xs:element name="SummaryPrintInfos" minOccurs="0" maxOccurs="1">
476 + <xs:annotation>
477 + <xs:documentation>Can only be used if specially contracted with PayEx. Containing print info for summary documents</xs:documentation>
478 + </xs:annotation>
479 + <xs:complexType>
480 + <xs:sequence>
481 + <xs:element name="SummaryPrintInfo" minOccurs="0" maxOccurs="2">
482 + <xs:annotation>
483 + <xs:documentation>Contains print info for a summary document</xs:documentation>
484 + </xs:annotation>
485 + <xs:complexType>
486 + <xs:sequence>