BiCus

Notes

  <xs:element name="BiCus">
    <xs:annotation>
      <xs:appinfo>BiCus Note</xs:appinfo>
      <xs:documentation xml:lang="en">
        Filename description
        BICUS_CompanyNo_DateTime_sequencenumber.xml
        CompanyNo = The companynumber which you received from PayEx.
        DateTime = (YYMMDDhhmmss) is the time of creation of the file
        Sequencenumber = identify each file in sequence i.e 1, 2, 3 etc.
        Example:
        BICUS_9999_20110923124422_1.xml

        File limitations
        Maximum file size is 100 mb
        Maximum number of BiCusInfo element is 50 000 per file.

        Validation
        Validation of the file has to be done before the BiCus file will be send to Payex. Validation has to be done towards the latest BiCus.xsd.
        The reading of the xml file will be done in sequence from top to bottom.
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DeviationInfo" minOccurs="0" maxOccurs="1">
          <xs:annotation>
            <xs:appinfo>BiCus Note</xs:appinfo>
            <xs:documentation xml:lang="en">
              The DeviationInfo element handles deviation Products and should only be used if there are new Products to be inserted or existing Products should be updated.
              Previous file format:
              AVVPR01 - DeviationPricelistProducts
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Deviation" minOccurs="1" maxOccurs="1">
                <xs:complexType>
                  <xs:choice>
                    <xs:element name="clear">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                          Removes all deviation Products stored in Payex database.
                        </xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="set">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                          Even if there is a new deviation Product or if an existing deviation Product should be updated, all deviation Products that should be kept have to be send to Payex
                        </xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Product" type="DeviationProduct" minOccurs="1" maxOccurs="unbounded"/>
                        </xs:sequence>
                        <xs:attribute name="StartDate" use="required">
                          <xs:annotation>
                            <xs:appinfo>BiCus Note</xs:appinfo>
                            <xs:documentation xml:lang="en">
                              Valid from date. Used for version handling of the deviation Products.
                            </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="RestrictedDate">
                              <xs:pattern value="\d{4}-\d{2}-01.*"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:attribute>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="add">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                          Add new deviation Product. All previous deviation Products for the current version will be kept.
                          Usable when dealing with multiple deviation Products (more than 1 000 Products)
                        </xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Product" type="DeviationProduct" minOccurs="1" maxOccurs="unbounded"/>
                        </xs:sequence>
                        <xs:attribute name="StartDate" use="required">
                          <xs:annotation>
                            <xs:appinfo>BiCus Note</xs:appinfo>
                            <xs:documentation xml:lang="en">
                              Valid from date. Used for version handling of the deviation Products.
                            </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="RestrictedDate">
                              <xs:pattern value="\d{4}-\d{2}-01.*"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:attribute>
                      </xs:complexType>
                    </xs:element>
                  </xs:choice>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="BiCusInfo" minOccurs="0" maxOccurs="unbounded">
          <xs:annotation>
            <xs:appinfo>BiCus Note</xs:appinfo>
            <xs:documentation xml:lang="en">
              The BiCusInfo element handles customer and subscription information and should only be used if there are new customers or subscriptions to be inserted or if existing data should be updated.
              Previous file format:
              Previous file format:
              KU - Customer file
              SO - Customer transaction system
              CUSIN1 - Customer invoice file
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Customer" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:appinfo>BiCus Note</xs:appinfo>
                  <xs:documentation xml:lang="en">
                    When a new customer will be send or when an existing customer will be uppdated this element has to be send.
                    if an element that is not mandatory was previously sent to PayEx is omitted then the element will be removed from PayEx.
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="CustomerNumber" type="Identifier15" minOccurs="1" maxOccurs="1" nillable="false">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                          Unique identification of the customer.
                          Previous file format:
                          KU = K::2
                          SO = CustomerTransactionBase::CustomerNumber
                          CUSIN1 = Cusininfo::CustomerNo
                        </xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="CustomerStatus" type="CustomerStatus" minOccurs="1" maxOccurs="1" nillable="false">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                        </xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="CustomerInformation" minOccurs="1" maxOccurs="1">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="FirstName" type="FirstName" minOccurs="1" maxOccurs="1" nillable="false">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Customers first name or Company name. If both FirstName and LastName together exceeds 36 characters, only 36 characters will be shown on invoice.
                                Previous file format:
                                KU = K::3
                                SO = CustomerTransaction::FirstName
                                CUSIN1 = CustomerInfo::FirstName
                              </xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="LastName" type="NameAddressString36" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Customers last name. If both FirstName and LastName together exceeds 36 characters, only 36 characters will be shown on invoice.
                                Previous file format:
                                KU = K::3
                                SO = CustomerTransaction::LastName
                                CUSIN1 = CustomerInfo::LastName
                              </xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="RegNumber" type="RegNo" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Socail Security number (SSN) or legal organization number. Mandatory in case of e-invoicing to companies.
                                Previous file format:
                                KU = K::4
                                SO = CustomerTransaction::RegNumber
                                CUSIN1 = CustomerInfo::RegNo
                              </xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="LanguageCode" type="PXLanguageCodeISO639" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                The invoice language code.
                                Previous file format:
                                KU = K::6
                                SO = CustomerTransaction::Language
                                CUSIN1 = CustomerInfo::LanguageCode
                              </xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="DistributionAddressInfo" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>At least a Legal adress must be supplied</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Addresses" minOccurs="1" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>
                                      Logic control: a Legal address is mandatory.
                                      Logic control: if country code between legal and billing differs, a warning is created and the billingadress is not saved.
                                      Logic control: a control that the zipcode is equal to the requirements for the specific country, if not an ERROR is created and the customer will be rejected.
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="Address" type="Address" minOccurs="1" maxOccurs="2"/>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="E-MailAddress" type="Email" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>
                                      Mandatory if delivery is set to EMail or E-notification is active, logical control
                                      Logic control: if supplied it must meet the minimum requirements for an email address, otherwise an ERROR is created and the customer and its invoices will be rejected.
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="Cellphone" type="String15" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Mobile number used to deliver E-notification via SMS</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="DunningInfo" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Dunninginfo for the customer,If an element that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="PaymentTerms" type="Days" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Terms of payment, number of days.
                                      Previous file format:
                                      KU = E::2
                                      SO = CustomerAccountReceivableInformation::TermsOfPayment
                                      CUSIN1 = CustomerInfo:DunningInfo::PayMentTerms
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="PenaltyInterestLimit" type="PositiveAmount" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Penalty interest limit
                                      Previous file format:
                                      KU = E::3
                                      SO = CustomerAccountReceivableInformation::OverdueIntersLimit
                                      CUSIN1 = CustomerInfo:DunningInfo::PenaltyInterestLimit
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="Claim" type="Claim" minOccurs="0" maxOccurs="3">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Claim intervall, number of days after previous level.
                                      Previous file format:
                                      KU = E::10
                                      SO = CustomerAccountReceivableInformation::ClaimIntervall
                                      CUSIN1 = CustomerInfo:DunningInfo::Claim
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="ClaimEnclosure" type="ClaimEnclosure" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Name of claimenclosure and on which claimlevel it will be enclosed
                                      Previous file format:
                                      KU = E::9
                                      SO = N/A
                                      CUSIN1 = CustomerInfo:InvoiceDunningInfo::ClaimEnclosure
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Billing" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Billing information for the customer, If an element that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="InvoiceDiscountRate" type="DiscountRate" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Total discount on invoice in percentage.
                                      Previous file format:
                                      KU = C1::3
                                      SO = CustomerBillingTransaction::InvoiceDiscountRate
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="ProductGroupDiscountCode" type="DiscountCode" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Code that refers to discount structure at PayEx. Mandatory if ProductGroupDiscountRate is set.
                                      Previous file format:
                                      KU = C1::13
                                      SO = CustomerBillingTransaction::DiscountCode
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="ProductGroupDiscountRate" type="DiscountRate" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Discount on Product group in percentage. Mandatory if ProductGroupDiscountCode is set.
                                      Previous file format:
                                      KU = C1::14
                                      SO = CustomerBillingTransaction::DiscountRate
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="CommunityCode" type="String15" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      CommunityCode connects customers together on customer number level, is used for internal pricing function.
                                      Previous file format:
                                      KU = C1::11
                                      SO = CustomerBillingTransaction::CommunityCode
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="BillingCycle" type="BillingCycle" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Determines the interval in when an invoice will be sent. Configuration can be other than standard depending on company configuration at PayEx.
                                      Default:
                                      1,2,3,6 = every 1,2,3,6 month
                                      8 = every 12 months
                                      9 = Stop, no invoice.
                                      Previous file format:
                                      KU = C1::2
                                      SO = CustomerBillingTransaction::BillingCycle
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="ResellerCode" type="String35" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Reseller code is used for billing statistics.
                                      Previous file format:
                                      KU = C1::6
                                      SO = CustomerBillingTransaction::ResellerCode
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="PaymentInfo" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>
                                If the element that was previously sent to PayEx is omitted then the element will be removed from PayEx and company deafault will be used
                                Paymentinformation to be configured on the customer, overrides company defaults
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="PaymentType" type="ePaymentType" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>
                                      Payement type to be uesed
                                      Logic control: checks that the payment method is set upp in the our database, if not, a warning is returned and the payment method will not be stored in Payex database.
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="PaymentRules" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:documentation>Paymentrules affect the method of payments</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="PaymentRule" minOccurs="1" maxOccurs="unbounded">
                                        <xs:annotation>
                                          <xs:documentation>Allowed Paymentrules depends on company setup</xs:documentation>
                                        </xs:annotation>
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="Value" type="xs:string" maxOccurs="1" minOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Eg. true if the invoice is being paid by direct debet</xs:documentation>
                                              </xs:annotation>
                                            </xs:element>
                                          </xs:sequence>
                                          <xs:attribute name="Rule" type="ePaymentRule">
                                            <xs:annotation>
                                              <xs:documentation>Enumeration of rules</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="Card" type="Card" minOccurs="0" maxOccurs="1"/>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Invoice" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Invoice element is mandatory. If an element that is not mandatory was previously sent to PayEx is omitted then the element will be removed from PayEx.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="DistributionInfo" type="DistributionInfo" minOccurs="0" maxOccurs="1"/>
                                <xs:element name="PassWord" type="String30" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Password.
                                      Previous file format:
                                      KU = A::7
                                      SO = CustomerInvoiceTransaction::Password
                                      CUSIN1 = Billing::CustomerPassword
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="BillType" type="BillType" minOccurs="1" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Bill type, description degree on invoice.
                                      1 = Invoice
                                      2 = Invoice and summary
                                      3 = Invoice and specification
                                      4 = Invoice, summary and specification
                                      5 = Invoice and merged summary per customer
                                      6 = Invoice, merged summary per customer, summary per subscription and specification
                                      7 = Invoice, merged summary per customer and summary per subscription
                                      Previous file format:
                                      KU = C1::4
                                      SO = CustomerInvoiceTransaction::Billtype
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Reference" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Reference for the customer. If an element that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="CustomerCategory" type="CustomerCategory" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation>
                                      Enables to set a different claimprocess on different customer categories, the category must be setup before use Logic control:
                                      if the category is not configured in Payex database an ERROR is created and the customer will be rejected
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Tax" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                if an element that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="VatNumber" type="VatNumberType" minOccurs="1" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Vat number. Used for reversed tax charge.
                                      Previous file format:
                                      KU = MB::3
                                      SO = CustomerInvoiceTransaction::VatNr
                                      CUSIN1 = TaxInfo::VatNo
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="VatAuthorizationCode" type="String35" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Vat authorization code which in some countries has to be presented on the invoice.
                                      Previous file format:
                                      KU = MB::4
                                      SO = CustomerInvoiceTransaction::VatAuthorizationCode
                                      CUSIN1 = TaxInfo::VatAuthorizationCode
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="VatExemptionCode" type="PXVatExemptionCode" minOccurs="0" maxOccurs="1">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      Vat exemption code.
                                      Previous file format:
                                      KU = MB::2
                                      SO = CustomerInvoiceTransaction::VatType
                                      CUSIN1 = TaxInfo::PXVatExemptionCode
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="EDI" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                If an element that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="VAN" type="String255" minOccurs="0" maxOccurs="1"/>
                                <xs:element name="InterChangeRecipient" type="String255" minOccurs="0" maxOccurs="1"/>
                                <xs:element name="SellerId" type="String255" minOccurs="1" maxOccurs="1"/>
                                <xs:element name="BuyerId" type="String255" minOccurs="1" maxOccurs="1"/>
                                <xs:element name="InvoiceAddressee" type="String255" minOccurs="0" maxOccurs="1"/>
                                <xs:element name="InvoiceRecipient" type="String255" minOccurs="0" maxOccurs="1"/>
                                <xs:element name="DeliveryAddressee" type="String255" minOccurs="0" maxOccurs="1"/>
                                <xs:element name="DeliveryRecipient" type="String255" minOccurs="0" maxOccurs="1"/>
                                <xs:element name="InvoiceReference" type="String255" minOccurs="0" maxOccurs="1"/>
                                <xs:element name="AgreementReference" type="String255" minOccurs="0" maxOccurs="1"/>
                                <xs:element name="BuyerReference" type="String255" minOccurs="0" maxOccurs="2"/>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="CustomerProduct" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                If an element that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Product" type="Product" minOccurs="1" maxOccurs="unbounded">
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="LegalEntity" type="LegalEntity" use="optional">
                          <xs:annotation>
                            <xs:appinfo>BiCus Note</xs:appinfo>
                            <xs:documentation xml:lang="en">
                              Business or private customer.
                              Previous file format:
                              KU = N/A
                              SO = N/A
                              CUSIN1 = CustomerInfo::LegalEntity
                            </xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="UsageSubscription" minOccurs="0" maxOccurs="unbounded">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                          If an subscription that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                          If a block (Usage/Product/Presentation) that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                        </xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Usage" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Separate block focusing on usage for the actual subscription.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="UsagePeriod" type="UsagePeriod" minOccurs="1" maxOccurs="unbounded"/>
                                <xs:element name="FriendsAndFamily" type="FriendsAndFamily" minOccurs="0" maxOccurs="10">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      FriendsAndFamily
                                      Previous file format:
                                      KU = C7
                                      SO = N/A
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Product" type="Product" minOccurs="0" maxOccurs="unbounded">
                          </xs:element>
                          <xs:element name="Presentation" type="Presentation" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                        <xs:attribute name="SubscriberNumber" type="Identifier15" use="required">
                          <xs:annotation>
                            <xs:appinfo>BiCus Note</xs:appinfo>
                            <xs:documentation xml:lang="en">
                              Subscriber number
                              Previous file format:
                              KU = C2::2, MO::3, IF::2
                              SO = BroadbandSubscriptionTransaction::SubscriptionIdentifier, TVSubscriptionTransaction::SubscriptionIdentifier, VoIPSubscriptionTransaction::SubscriptionIdentifier
                              CUSIN1 = N/A
                            </xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="FixedSubscription" minOccurs="0" maxOccurs="unbounded">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                          If an subscription that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                          If a block (Usage/Product/Presentation) that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                        </xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Usage" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Separate block focusing on usage for the actual subscription.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="UsagePeriod" minOccurs="1" maxOccurs="unbounded">
                                  <xs:complexType>
                                    <xs:complexContent>
                                      <xs:extension base="UsagePeriod">
                                        <xs:sequence>
                                          <xs:element name="CLI" type="CLI" minOccurs="0" maxOccurs="unbounded"/>
                                        </xs:sequence>
                                      </xs:extension>
                                    </xs:complexContent>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="FriendsAndFamily" type="FriendsAndFamily" minOccurs="0" maxOccurs="10">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      FriendsAndFamily
                                      Previous file format:
                                      KU = C7
                                      SO = FixedSubscriptionFriendsAndFamilyListStransaction::FriendList
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Product" type="Product" minOccurs="0" maxOccurs="unbounded">
                          </xs:element>
                          <xs:element name="Presentation" type="Presentation" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                        <xs:attribute name="SubscriberNumber" type="Identifier15" use="required">
                          <xs:annotation>
                            <xs:appinfo>BiCus Note</xs:appinfo>
                            <xs:documentation xml:lang="en">
                              Subscriber number
                              Previous file format:
                              KU = C2::2, MO::3, IF::2
                              SO = FixedSubscriptionTransaction::SubscriptionIdentifier
                              CUSIN1 = N/A
                            </xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="GenericSubscription" minOccurs="0" maxOccurs="unbounded">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                          If an subscription that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                          If a block (Usage/Product/Presentation) that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                        </xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Product" type="Product" minOccurs="0" maxOccurs="unbounded">
                          </xs:element>
                          <xs:element name="Presentation" type="Presentation" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                        <xs:attribute name="SubscriberNumber" type="Identifier34" use="required">
                          <xs:annotation>
                            <xs:appinfo>BiCus Note</xs:appinfo>
                            <xs:documentation xml:lang="en">
                              Subscriber number
                              Previous file format:
                              KU = C2::2, MO::3, IF::2
                              SO = N/A
                              CUSIN1 = N/A
                            </xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="MobileSubscription" minOccurs="0" maxOccurs="unbounded">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                          If an subscription that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                          If a block (Usage/Product/Presentation) that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                        </xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Usage" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Separate block focusing on usage for the actual subscription.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="UsagePeriod" minOccurs="1" maxOccurs="unbounded">
                                  <xs:complexType>
                                    <xs:complexContent>
                                      <xs:extension base="UsagePeriod">
                                        <xs:sequence>
                                          <xs:element name="IMSI" type="IMSI" minOccurs="1" maxOccurs="unbounded"/>
                                        </xs:sequence>
                                      </xs:extension>
                                    </xs:complexContent>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="FriendsAndFamily" type="FriendsAndFamily" minOccurs="0" maxOccurs="10">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      FriendsAndFamily
                                      Previous file format:
                                      KU = C7
                                      SO = MobileSubscriptionFriendsAndFamilyListStransaction::FriendList
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Product" type="Product" minOccurs="0" maxOccurs="unbounded">
                          </xs:element>
                          <xs:element name="Presentation" type="Presentation" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                        <xs:attribute name="SubscriberNumber" type="Identifier15" use="required">
                          <xs:annotation>
                            <xs:appinfo>BiCus Note</xs:appinfo>
                            <xs:documentation xml:lang="en">
                              Subscriber number
                              Previous file format:
                              KU = MO::3, IM::3
                              SO = MobileSubscriptionTransaction::SubscriptionIdentifier
                              CUSIN1 = N/A
                            </xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="MobileSplitInvoiceSubscription" minOccurs="0" maxOccurs="unbounded">
                      <xs:annotation>
                        <xs:appinfo>BiCus Note</xs:appinfo>
                        <xs:documentation xml:lang="en">
                          Alternative mobilesubscription to be used only for splitinvoice. The subscribernumber defined must also be defined in MobileSubscription.
                          if a subscription that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                          If a block (Usage/Product/Presentation) that was previously sent to PayEx is omitted then the element will be removed from PayEx.
                        </xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Usage" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:appinfo>BiCus Note</xs:appinfo>
                              <xs:documentation xml:lang="en">
                                Separate block focusing on usage for the actual subscription.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="UsagePeriod" minOccurs="1" maxOccurs="unbounded">
                                  <xs:complexType>
                                    <xs:complexContent>
                                      <xs:extension base="UsagePeriod">
                                        <xs:sequence>
                                        </xs:sequence>
                                      </xs:extension>
                                    </xs:complexContent>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="FriendsAndFamily" type="FriendsAndFamily" minOccurs="0" maxOccurs="10">
                                  <xs:annotation>
                                    <xs:appinfo>BiCus Note</xs:appinfo>
                                    <xs:documentation xml:lang="en">
                                      FriendsAndFamily
                                      Previous file format:
                                      KU = C7
                                      SO = MobileSubscriptionFriendsAndFamilyListStransaction::FriendList
                                      CUSIN1 = N/A
                                    </xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Product" type="Product" minOccurs="0" maxOccurs="unbounded">
                          </xs:element>
                          <xs:element name="Presentation" type="Presentation" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                        <xs:attribute name="SubscriberNumber" type="String15" use="required">
                          <xs:annotation>
                            <xs:appinfo>BiCus Note</xs:appinfo>
                            <xs:documentation xml:lang="en">
                              Subscriber number
                              Previous file format:
                              KU = MO::3, IM::3
                              SO = MobileSubscriptionTransaction::SubscriptionIdentifier
                              CUSIN1 = N/A
                            </xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="SplitInvoice" type="xs:boolean" fixed="true" use="required"/>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="BiCusVersion" type="xs:string" fixed="2.0.0" use="required"/>
      <xs:attribute name="CreatedDate" type="xs:date" use="required"/>
      <xs:attribute name="CompanyNumber" type="CompanyNumber" use="required">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            The company number that you have recieved from PayEx.
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="CompanyName" type="xs:string" use="required"/>
      <xs:attribute name="CreatedTime" type="xs:time" use="required"/>
    </xs:complexType>
    <xs:key name="CustomerNumber">
      <xs:selector xpath="BiCusInfo/Customer"/>
      <xs:field xpath="CustomerNumber"/>
    </xs:key>
  </xs:element>

Address

  <xs:complexType name="Address">
    <xs:sequence>
      <xs:element name="Addressee" minOccurs="1" maxOccurs="1" type="NameAddressString72">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Invoice recipient, use if other invoice recipient than customer.
            Previous file format:
            N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StreetAddress" type="NameAddressString35" minOccurs="0" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Street address
            Previous file format:
            KU = A::3
            SO = CustomerAdressTransaction::StreetAddress
            CUSIN1 = CustomerInfo:AddressInfo:StreetAddress
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ZipCode" type="ZipCode" minOccurs="1" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Zip code
            Previous file format:
            KU = A::4
            SO = CustomerAdressTransaction::ZipCode
            CUSIN1 = CustomerInfo:AddressInfo:ZipCode
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="City" type="NameAddressString27" minOccurs="1" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            City
            Previous file format:
            KU = A::5
            SO = CustomerAdressTransaction::City
            CUSIN1 = CustomerInfo:AddressInfo:City
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CoAddress" type="NameAddressString35" minOccurs="0" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Care of address
            Previous file format:
            KU = A::2
            SO = CustomerAdressTransaction::COAddress
            CUSIN1 = CustomerInfo:AddressInfo:CoAddress
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CountryCode" type="ISO3166CountryCode" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Country code
            Previous file format:
            KU = BS::2
            SO = CustomerAdressTransaction::CountryCode
            CUSIN1 = CustomerInfo:AddressInfo:CountryCode
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="AddressType" type="AddressType" use="required"/>
  </xs:complexType>

AddressType

  <xs:simpleType name="AddressType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="LegalAddress">
        <xs:annotation>
          <xs:documentation>This addresstype is mandatory</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BillingAddress"/>
    </xs:restriction>
  </xs:simpleType>

CustomerStatus

  <xs:simpleType name="CustomerStatus">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Active">
        <xs:annotation>
          <xs:documentation/>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Inactive"/>
    </xs:restriction>
  </xs:simpleType>

Alias

  <xs:complexType name="Alias">
    <xs:sequence>
      <xs:element name="AliasName" type="NameAddressString40" nillable="false">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Alias name.
            Previous file format:
            KU = AL::4
            SO = MobileSubscriptionTransaction::_Alias
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AliasType" type="AliasType">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Alias type.
            1 = Subscription number + Alias
            2 = Cost center grouping, Alias replacing subscription number
            3 = Alias replacing subscription number, including spec. files.
            Previous file format:
            KU = AL::2
            SO = MobileSubscriptionTransaction::AliasType
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Card

Notes

  <xs:complexType name="Card">
    <xs:annotation>
      <xs:appinfo>BiCus Note</xs:appinfo>
      <xs:documentation xml:lang="en">
        Card payment information.
        Use only in agreement with PayEx.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Reference" type="String50" minOccurs="1" maxOccurs="1"/>
      <xs:element name="ExpiryDate" type="PXExpiryDate" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Expiry date on card in the format mm/yy
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Claim

  <xs:complexType name="Claim">
    <xs:simpleContent>
      <xs:extension base="Days">
        <xs:attribute name="Level" type="ClaimLevel" use="required"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

ClaimEnclosure

  <xs:complexType name="ClaimEnclosure">
    <xs:simpleContent>
      <xs:extension base="String30">
        <xs:attribute name="Level" type="ClaimEnclosureLevel" use="required"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

DeviationCharge

  <xs:complexType name="DeviationCharge">
    <xs:sequence>
      <xs:choice>
        <xs:element name="Discount" type="DeviationDiscount" minOccurs="1" maxOccurs="1"/>
        <xs:element name="Price" type="DeviationPrice" minOccurs="1" maxOccurs="1"/>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>

DeviationProduct

  <xs:complexType name="DeviationProduct">
    <xs:sequence>
      <xs:element name="ProductCode" type="Identifier5" minOccurs="1" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            ProductCode for deviation Product.
            Previous file format mapping:
            AVVPR01 = D1::2, D2::2
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProductGroup" type="ProductGroup" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Deviant Product group for deviation Product. Only used if other Productgroup than master Products Product group should be used.  Not version handled, latest processed and correct data will be used.
            Previous file format mapping:
            N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MasterProductCode" type="Identifier5" minOccurs="1" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Connection towards master Product. The master Product must be configured in PayEx system before being referenced. Not version handled, latest processed and correct data will be used.
            Previous file format mapping:
            AVVPR01 = D1::3, D2::3
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdentificationNo" type="IdentificationNo" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Deviant identification number. Only used if other identification number than master Product identification number should be used. Not version handled, latest processed and correct data will be used
            Previous file format mapping:
            AVVPR01 = D1::4, D2::4
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DeviantAdvancement" type="DeviantAdvancement" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Deviant number of advancement. Is only being used if other deviant advancement than master Product deviant advancement should be used. Not version handled, latest processed and correct data will be used.
            Previous file format mapping:
            AVVPR01 = D1::5, D2::5
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Description" type="NameAddressString" minOccurs="1" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Deviant description. Not version handled, latest processed data will be used.
            Previous file format mapping:
            AVVPR01 = D1::6, D2::6
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Charge" type="DeviationCharge" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Deviant charge can be either discount percentage on master Product price per unit or deviant price per unit. Version handled. Unit can be related to various measurement depending on master Product configuration.
            Previous file format mapping:
            AVVPR01 = D1::7, D2::7
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

DistributionInfo

  <xs:complexType name="DistributionInfo">
    <xs:sequence>
      <xs:element name="Invoice" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Invoice distribution. Only to be used if media distribution code is activated at PayEx.
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" maxOccurs="1" name="InvoiceDistributionMethod" type="InvoiceDistributionCode">
              <xs:annotation>
                <xs:appinfo>BiCus Note</xs:appinfo>
                <xs:documentation xml:lang="en">
                  Media distribution codes
                  1 = Paper
                  11 = E-mail
                  52 = E-invoice B2B
                  54 = E-invoice B2B
                  74 = Archiving only. Example of use: company with a customer portal and/or company who provides my pages to its customers.
                  94 = E-invoice private. Can only be updated through bank
                  Code concerning electronic invoicing can only be obtained by PayEx.
                  Previous file format:
                  KU = C1::9
                  SO = N/A
                  CUSIN1 = DistributionInfo::Invoice::PXMediaDistributionCode
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ENote" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            ENote distribution. Only to be used if enote distribution code is activated at PayEx.
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ENoteDistributionMethod" type="ENoteDistributionCode" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:appinfo>BiCus Note</xs:appinfo>
                <xs:documentation xml:lang="en">
                  Media distribution codes
                  81 = ENote
                  Previous file format:
                  KU = N::2
                  SO = N/A
                  CUSIN1 = DistributionInfo::Enote::PXMediaDistributionCode
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ENoteTextCode" type="xs:short" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:appinfo>BiCus Note</xs:appinfo>
                <xs:documentation xml:lang="en">
                  ENote textcode
                  Previous file format:
                  KU = N::3
                  SO = N/A
                  CUSIN1 = DistributionInfo::Enote::PXEnoteTextCode
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

CLI

  <xs:complexType name="CLI">
    <xs:sequence>
      <xs:element name="CliCode" type="Identifier15" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            CLI
            Previous file format:
            KU = C2::3, IF::3
            SO = N/A
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="RestrictedDate" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Date when CLI start
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" type="RestrictedDate" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Date when CLI end
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

IMSI

  <xs:complexType name="IMSI">
    <xs:sequence>
      <xs:element name="IMSI" type="Identifier15" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            IMSI
            Previous file format:
            KU = MO::2,IM::2
            SO = MobileSubscriptionTransaction::IMSI
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="RestrictedDate" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Date when IMSI start
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" type="RestrictedDate" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Date when IMSI end
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

Presentation

  <xs:complexType name="Presentation">
    <xs:sequence>
      <xs:element name="Alias" type="Alias" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>

Pricelist

  <xs:complexType name="Pricelist">
    <xs:sequence>
      <xs:element name="Pricelist" type="String10" minOccurs="1" maxOccurs="1" nillable="false"/>
      <xs:element name="StartDate" type="RestrictedDate" minOccurs="1" maxOccurs="1"/>
      <xs:element name="EndDate" type="RestrictedDate" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>

Product

  <xs:complexType name="Product">
    <xs:sequence>
      <xs:element name="StartDate" type="RestrictedDate" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Start date.
            Previous file format:
            KU = PR::3
            SO = CustomerProductTransaction::StartDate
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" type="RestrictedDate" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            End date.
            Previous file format:
            KU = PR::4
            SO = CustomerProductTransaction::EndDate
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProductCode" type="Identifier5" minOccurs="1" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Product code.
            Previous file format:
            KU = PR::2
            SO = CustomerProductTransaction::ProductCode
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProductIndex" type="Productindex" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Product index. For future implementation, permitted value = 0
            Previous file format:
            KU = N/A
            SO = CustomerProductTransaction::Key
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

RegNo

  <xs:complexType name="RegNo">
    <xs:simpleContent>
      <xs:extension base="String15">
        <xs:attribute name="CountryCode" type="ISO3166CountryCode" use="required">
          <xs:annotation>
            <xs:appinfo>BiCus Note</xs:appinfo>
            <xs:documentation xml:lang="en">
              Use CountryCode if the regnumber (SSN) should be validated.
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

UsagePeriod

Notes

  <xs:complexType name="UsagePeriod">
    <xs:annotation>
      <xs:appinfo>BiCus Note</xs:appinfo>
      <xs:documentation xml:lang="en">
        One subscription can contain multiple usage periods.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StartDate" type="RestrictedDate" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Usage period start.
            Previous file format:
            KU = C2::6, IF::5
            SO = Dynamic, date of transaction
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" type="RestrictedDate" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            Usage period start.
            Previous file format:
            KU = C2::7, IF::6
            SO = Dynamic, date of transaction
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PriceList" type="Pricelist" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:appinfo>BiCus Note</xs:appinfo>
          <xs:documentation xml:lang="en">
            One Usage period can contain multiple pricelists.
            Previous file format:
            KU = C2::4, MO::7
            SO = Subscripitiontype::PriceListTransaction
            CUSIN1 = N/A
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

ePaymentType

  <xs:simpleType name="ePaymentType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="PGSE"/>
      <xs:enumeration value="BGSE"/>
      <xs:enumeration value="BKNO"/>
      <xs:enumeration value="AK"/>
    </xs:restriction>
  </xs:simpleType>

ePaymentRule

  <xs:simpleType name="ePaymentRule">
    <xs:restriction base="xs:string">
      <xs:enumeration value="UseBGAGSE"/>
      <xs:enumeration value="UseBKAGNO"/>
    </xs:restriction>
  </xs:simpleType>

AliasType

  <xs:simpleType name="AliasType">
    <xs:restriction base="xs:int">
      <xs:enumeration value="1"/>
      <xs:enumeration value="2"/>
      <xs:enumeration value="3"/>
    </xs:restriction>
  </xs:simpleType>

AuthorizationLevel

  <xs:simpleType name="AuthorizationLevel">
    <xs:restriction base="PXString">
      <xs:maxLength value="2"/>
    </xs:restriction>
  </xs:simpleType>

BillingCycle

Notes

  <xs:simpleType name="BillingCycle">
    <xs:annotation>
      <xs:appinfo>BiCus Note</xs:appinfo>
      <xs:documentation xml:lang="en">
        Default:
        1,2,3,6 = every 1,2,3,6 month
        8 = every 12 months
        9 = Stop, no invoice.
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:int">
      <xs:minInclusive value="1"/>
      <xs:maxInclusive value="9"/>
    </xs:restriction>
  </xs:simpleType>

DeviantAdvancement

  <xs:simpleType name="DeviantAdvancement">
    <xs:restriction base="xs:int">
      <xs:minInclusive value="1"/>
      <xs:maxInclusive
           value="24"/>
    </xs:restriction>
  </xs:simpleType>

RestrictedDate

  <xs:simpleType name="RestrictedDate">
    <xs:restriction base="xs:date">
      <xs:minInclusive value="1970-01-01"/>
      <xs:maxInclusive value="2037-12-31"/>
    </xs:restriction>
  </xs:simpleType>

BillType

Notes

  <xs:simpleType name="BillType">
    <xs:annotation>
      <xs:appinfo>BiCus Note</xs:appinfo>
      <xs:documentation xml:lang="en">
        1 = Invoice
        2 = Invoice and summary
        3 = Invoice and specification
        4 = Invoice, summary and specification
        5 = Invoice and merged summary per customer
        6 = Invoice, merged summary per customer, summary per subscription and specification
        7 = Invoice, merged summary per customer and summary per subscription
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:int">
      <xs:enumeration value="1"/>
      <xs:enumeration value="2"/>
      <xs:enumeration value="3"/>
      <xs:enumeration value="4"/>
      <xs:enumeration value="5"/>
      <xs:enumeration value="6"/>
      <xs:enumeration value="7"/>
    </xs:restriction>
  </xs:simpleType>

ClaimEnclosureLevel

  <xs:simpleType name="ClaimEnclosureLevel">
    <xs:restriction base="xs:short">
      <xs:enumeration value="10"/>
      <xs:enumeration
           value="20"/>
      <xs:enumeration
           value="30"/>
    </xs:restriction>
  </xs:simpleType>

ClaimLevel

  <xs:simpleType name="ClaimLevel">
    <xs:restriction base="xs:short">
      <xs:enumeration value="10"/>
      <xs:enumeration
           value="20"/>
      <xs:enumeration
           value="30"/>
    </xs:restriction>
  </xs:simpleType>

CompanyNumber

  <xs:simpleType name="CompanyNumber">
    <xs:restriction base="xs:int">
      <xs:totalDigits value="4"/>
    </xs:restriction>
  </xs:simpleType>

CustomerCategory

  <xs:simpleType name="CustomerCategory">
    <xs:restriction base="PXString">
      <xs:length value="1"/>
    </xs:restriction>
  </xs:simpleType>

Days

  <xs:simpleType name="Days">
    <xs:restriction base="xs:int">
      <xs:minExclusive value="0"/>
      <xs:maxInclusive
           value="99"/>
    </xs:restriction>
  </xs:simpleType>

DeviationDiscount

  <xs:simpleType name="DeviationDiscount">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="[0-9]{1,3}[\.][0-9]{2}"/>
      <xs:maxInclusive
           value="100.00"/>
    </xs:restriction>
  </xs:simpleType>

DeviationPrice

  <xs:simpleType name="DeviationPrice">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="-{0,1}[0-9]{1,9}[\.][0-9]{2,6}"/>
    </xs:restriction>
  </xs:simpleType>

DiscountCode

  <xs:simpleType name="DiscountCode">
    <xs:restriction base="xs:int">
      <xs:minInclusive value="0"/>
      <xs:maxInclusive
           value="99"/>
    </xs:restriction>
  </xs:simpleType>

DiscountRate

  <xs:simpleType name="DiscountRate">
    <xs:restriction base="xs:decimal">
      <xs:fractionDigits value="2"/>
      <xs:minInclusive value="0"/>
      <xs:maxInclusive
           value="100"/>
    </xs:restriction>
  </xs:simpleType>

Email

  <xs:simpleType name="Email">
    <xs:restriction base="PXString">
      <xs:maxLength
           value="60"/>
      <xs:pattern value="[^@]+@[^\.]+\..+"/>
    </xs:restriction>
  </xs:simpleType>

FirstName

  <xs:simpleType name="FirstName">
    <xs:restriction base="NameAddressString36">
      <xs:minLength value="1"/>
    </xs:restriction>
  </xs:simpleType>

FriendsAndFamily

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

Identifier5

  <xs:simpleType name="Identifier5">
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z0-9]*"/>
      <xs:minLength value="1"/>
      <xs:maxLength value="5"/>
    </xs:restriction>
  </xs:simpleType>

Identifier15

  <xs:simpleType name="Identifier15">
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z0-9]*"/>
      <xs:minLength value="1"/>
      <xs:maxLength value="15"/>
    </xs:restriction>
  </xs:simpleType>

Identifier34

  <xs:simpleType name="Identifier34">
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z0-9-]*"/>
      <xs:minLength value="1"/>
      <xs:maxLength
           value="34"/>
    </xs:restriction>
  </xs:simpleType>

IdentificationNo

  <xs:simpleType name="IdentificationNo">
    <xs:restriction base="xs:int">
      <xs:minExclusive value="0"/>
      <xs:maxInclusive
           value="99999"/>
    </xs:restriction>
  </xs:simpleType>

LegalEntity

  <xs:simpleType name="LegalEntity">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Private"/>
      <xs:enumeration value="Business"/>
    </xs:restriction>
  </xs:simpleType>

ProductGroup

  <xs:simpleType name="ProductGroup">
    <xs:restriction base="xs:int">
      <xs:minExclusive value="0"/>
      <xs:maxInclusive
           value="999"/>
    </xs:restriction>
  </xs:simpleType>

PXLanguageCodeISO639

Notes

  <xs:simpleType name="PXLanguageCodeISO639">
    <xs:annotation>
      <xs:appinfo>BiCus Note</xs:appinfo>
      <xs:documentation xml:lang="en">
        Supported language codes at PayEx.
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="PXString">
      <xs:enumeration value="SV"/>
      <xs:enumeration value="NO"/>
      <xs:enumeration value="DA"/>
      <xs:enumeration value="FI"/>
      <xs:enumeration value="EN"/>
      <xs:enumeration value="FR"/>
    </xs:restriction>
  </xs:simpleType>

ISO3166CountryCode

Notes

  <xs:simpleType name="ISO3166CountryCode">
    <xs:annotation>
      <xs:documentation>Two-letter (alpha-2) ISO 3166-1 code for one of the 243 countries.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="AF"/>
      
      <xs:enumeration value="AX"/>
      
      <xs:enumeration value="AL"/>
      
      <xs:enumeration value="DZ"/>
      
      <xs:enumeration value="AS"/>
      
      <xs:enumeration value="AD"/>
      
      <xs:enumeration value="AO"/>
      
      <xs:enumeration value="AI"/>
      
      <xs:enumeration value="AQ"/>
      
      <xs:enumeration value="AG"/>
      
      <xs:enumeration value="AR"/>
      
      <xs:enumeration value="AM"/>
      
      <xs:enumeration value="AW"/>
      
      <xs:enumeration value="AU"/>
      
      <xs:enumeration value="AT"/>
      
      <xs:enumeration value="AZ"/>
      
      <xs:enumeration value="BS"/>
      
      <xs:enumeration value="BH"/>
      
      <xs:enumeration value="BD"/>
      
      <xs:enumeration value="BB"/>
      
      <xs:enumeration value="BY"/>
      
      <xs:enumeration value="BE"/>
      
      <xs:enumeration value="BZ"/>
      
      <xs:enumeration value="BJ"/>
      
      <xs:enumeration value="BM"/>
      
      <xs:enumeration value="BT"/>
      
      <xs:enumeration value="BO"/>
      
      <xs:enumeration value="BA"/>
      
      <xs:enumeration value="BW"/>
      
      <xs:enumeration value="BV"/>
      
      <xs:enumeration value="BR"/>
      
      <xs:enumeration value="IO"/>
      
      <xs:enumeration value="BN"/>
      
      <xs:enumeration value="BG"/>
      
      <xs:enumeration value="BF"/>
      
      <xs:enumeration value="BI"/>
      
      <xs:enumeration value="KH"/>
      
      <xs:enumeration value="CM"/>
      
      <xs:enumeration value="CA"/>
      
      <xs:enumeration value="CV"/>
      
      <xs:enumeration value="KY"/>
      
      <xs:enumeration value="CF"/>
      
      <xs:enumeration value="TD"/>
      
      <xs:enumeration value="CL"/>
      
      <xs:enumeration value="CN"/>
      
      <xs:enumeration value="CX"/>
      
      <xs:enumeration value="CC"/>
      
      <xs:enumeration value="CO"/>
      
      <xs:enumeration value="KM"/>
      
      <xs:enumeration value="CG"/>
      
      <xs:enumeration value="CD"/>
      
      <xs:enumeration value="CK"/>
      
      <xs:enumeration value="CR"/>
      
      <xs:enumeration value="CI"/>
      
      <xs:enumeration value="HR"/>
      
      <xs:enumeration value="CU"/>
      
      <xs:enumeration value="CY"/>
      
      <xs:enumeration value="CZ"/>
      
      <xs:enumeration value="DK"/>
      
      <xs:enumeration value="DJ"/>
      
      <xs:enumeration value="DM"/>
      
      <xs:enumeration value="DO"/>
      
      <xs:enumeration value="EC"/>
      
      <xs:enumeration value="EG"/>
      
      <xs:enumeration value="SV"/>
      
      <xs:enumeration value="GQ"/>
      
      <xs:enumeration value="ER"/>
      
      <xs:enumeration value="EE"/>
      
      <xs:enumeration value="ET"/>
      
      <xs:enumeration value="FK"/>
      
      <xs:enumeration value="FO"/>
      
      <xs:enumeration value="FJ"/>
      
      <xs:enumeration value="FI"/>
      
      <xs:enumeration value="FR"/>
      
      <xs:enumeration value="GF"/>
      
      <xs:enumeration value="PF"/>
      
      <xs:enumeration value="TF"/>
      
      <xs:enumeration value="GA"/>
      
      <xs:enumeration value="GM"/>
      
      <xs:enumeration value="GE"/>
      
      <xs:enumeration value="DE"/>
      
      <xs:enumeration value="GH"/>
      
      <xs:enumeration value="GI"/>
      
      <xs:enumeration value="GR"/>
      
      <xs:enumeration value="GL"/>
      
      <xs:enumeration value="GD"/>
      
      <xs:enumeration value="GP"/>
      
      <xs:enumeration value="GU"/>
      
      <xs:enumeration value="GT"/>
      
      <xs:enumeration value="GG"/>
      
      <xs:enumeration value="GN"/>
      
      <xs:enumeration value="GW"/>
      
      <xs:enumeration value="GY"/>
      
      <xs:enumeration value="HT"/>
      
      <xs:enumeration value="HM"/>
      
      <xs:enumeration value="VA"/>
      
      <xs:enumeration value="HN"/>
      
      <xs:enumeration value="HK"/>
      
      <xs:enumeration value="HU"/>
      
      <xs:enumeration value="IS"/>
      
      <xs:enumeration value="IN"/>
      
      <xs:enumeration value="ID"/>
      
      <xs:enumeration value="IR"/>
      
      <xs:enumeration value="IQ"/>
      
      <xs:enumeration value="IE"/>
      
      <xs:enumeration value="IM"/>
      
      <xs:enumeration value="IL"/>
      
      <xs:enumeration value="IT"/>
      
      <xs:enumeration value="JM"/>
      
      <xs:enumeration value="JP"/>
      
      <xs:enumeration value="JE"/>
      
      <xs:enumeration value="JO"/>
      
      <xs:enumeration value="KZ"/>
      
      <xs:enumeration value="KE"/>
      
      <xs:enumeration value="KI"/>
      
      <xs:enumeration value="KP"/>
      
      <xs:enumeration value="KR"/>
      
      <xs:enumeration value="KW"/>
      
      <xs:enumeration value="KG"/>
      
      <xs:enumeration value="LA"/>
      
      <xs:enumeration value="LV"/>
      
      <xs:enumeration value="LB"/>
      
      <xs:enumeration value="LS"/>
      
      <xs:enumeration value="LR"/>
      
      <xs:enumeration value="LY"/>
      
      <xs:enumeration value="LI"/>
      
      <xs:enumeration value="LT"/>
      
      <xs:enumeration value="LU"/>
      
      <xs:enumeration value="MO"/>
      
      <xs:enumeration value="MK"/>
      
      <xs:enumeration value="MG"/>
      
      <xs:enumeration value="MW"/>
      
      <xs:enumeration value="MY"/>
      
      <xs:enumeration value="MV"/>
      
      <xs:enumeration value="ML"/>
      
      <xs:enumeration value="MT"/>
      
      <xs:enumeration value="MH"/>
      
      <xs:enumeration value="MQ"/>
      
      <xs:enumeration value="MR"/>
      
      <xs:enumeration value="MU"/>
      
      <xs:enumeration value="YT"/>
      
      <xs:enumeration value="MX"/>
      
      <xs:enumeration value="FM"/>
      
      <xs:enumeration value="MD"/>
      
      <xs:enumeration value="MC"/>
      
      <xs:enumeration value="MN"/>
      
      <xs:enumeration value="MS"/>
      
      <xs:enumeration value="MA"/>
      
      <xs:enumeration value="MZ"/>
      
      <xs:enumeration value="MM"/>
      
      <xs:enumeration value="NA"/>
      
      <xs:enumeration value="NR"/>
      
      <xs:enumeration value="NP"/>
      
      <xs:enumeration value="NL"/>
      
      <xs:enumeration value="AN"/>
      
      <xs:enumeration value="NC"/>
      
      <xs:enumeration value="NZ"/>
      
      <xs:enumeration value="NI"/>
      
      <xs:enumeration value="NE"/>
      
      <xs:enumeration value="NG"/>
      
      <xs:enumeration value="NU"/>
      
      <xs:enumeration value="NF"/>
      
      <xs:enumeration value="MP"/>
      
      <xs:enumeration value="NO"/>
      
      <xs:enumeration value="OM"/>
      
      <xs:enumeration value="PK"/>
      
      <xs:enumeration value="PW"/>
      
      <xs:enumeration value="PS"/>
      
      <xs:enumeration value="PA"/>
      
      <xs:enumeration value="PG"/>
      
      <xs:enumeration value="PY"/>
      
      <xs:enumeration value="PE"/>
      
      <xs:enumeration value="PH"/>
      
      <xs:enumeration value="PN"/>
      
      <xs:enumeration value="PL"/>
      
      <xs:enumeration value="PT"/>
      
      <xs:enumeration value="PR"/>
      
      <xs:enumeration value="QA"/>
      
      <xs:enumeration value="RE"/>
      
      <xs:enumeration value="RO"/>
      
      <xs:enumeration value="RU"/>
      
      <xs:enumeration value="RW"/>
      
      <xs:enumeration value="SH"/>
      
      <xs:enumeration value="KN"/>
      
      <xs:enumeration value="LC"/>
      
      <xs:enumeration value="PM"/>
      
      <xs:enumeration value="VC"/>
      
      <xs:enumeration value="WS"/>
      
      <xs:enumeration value="SM"/>
      
      <xs:enumeration value="ST"/>
      
      <xs:enumeration value="SA"/>
      
      <xs:enumeration value="SN"/>
      
      <xs:enumeration value="CS"/>
      
      <xs:enumeration value="SC"/>
      
      <xs:enumeration value="SL"/>
      
      <xs:enumeration value="SG"/>
      
      <xs:enumeration value="SK"/>
      
      <xs:enumeration value="SI"/>
      
      <xs:enumeration value="SB"/>
      
      <xs:enumeration value="SO"/>
      
      <xs:enumeration value="ZA"/>
      
      <xs:enumeration value="GS"/>
      
      <xs:enumeration value="ES"/>
      
      <xs:enumeration value="LK"/>
      
      <xs:enumeration value="SD"/>
      
      <xs:enumeration value="SR"/>
      
      <xs:enumeration value="SJ"/>
      
      <xs:enumeration value="SZ"/>
      
      <xs:enumeration value="SE"/>
      
      <xs:enumeration value="CH"/>
      
      <xs:enumeration value="SY"/>
      
      <xs:enumeration value="TW"/>
      
      <xs:enumeration value="TJ"/>
      
      <xs:enumeration value="TZ"/>
      
      <xs:enumeration value="TH"/>
      
      <xs:enumeration value="TL"/>
      
      <xs:enumeration value="TG"/>
      
      <xs:enumeration value="TK"/>
      
      <xs:enumeration value="TO"/>
      
      <xs:enumeration value="TT"/>
      
      <xs:enumeration value="TN"/>
      
      <xs:enumeration value="TR"/>
      
      <xs:enumeration value="TM"/>
      
      <xs:enumeration value="TC"/>
      
      <xs:enumeration value="TV"/>
      
      <xs:enumeration value="UG"/>
      
      <xs:enumeration value="UA"/>
      
      <xs:enumeration value="AE"/>
      
      <xs:enumeration value="GB"/>
      
      <xs:enumeration value="US"/>
      
      <xs:enumeration value="UM"/>
      
      <xs:enumeration value="UY"/>
      
      <xs:enumeration value="UZ"/>
      
      <xs:enumeration value="VU"/>
      
      <xs:enumeration value="VE"/>
      
      <xs:enumeration value="VN"/>
      
      <xs:enumeration value="VG"/>
      
      <xs:enumeration value="VI"/>
      
      <xs:enumeration value="WF"/>
      
      <xs:enumeration value="EH"/>
      
      <xs:enumeration value="YE"/>
      
      <xs:enumeration value="ZM"/>
      
      <xs:enumeration value="ZW"/>
      
    </xs:restriction>
  </xs:simpleType>

NameAddressString

  <xs:simpleType name="NameAddressString">
    <xs:restriction base="PXNameAddressString">
      <xs:minLength value="1"/>
    </xs:restriction>
  </xs:simpleType>

NameAddressString27

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

NameAddressString35

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

NameAddressString36

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

NameAddressString40

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

NameAddressString72

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

PositiveAmount

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

Productindex

  <xs:simpleType name="Productindex">
    <xs:restriction base="xs:int">
      <xs:minInclusive value="0"/>
      <xs:maxInclusive value="0"/>
    </xs:restriction>
  </xs:simpleType>

ENoteDistributionCode

Notes

  <xs:simpleType name="ENoteDistributionCode">
    <xs:annotation>
      <xs:appinfo>BiCus Note</xs:appinfo>
      <xs:documentation xml:lang="en">
        Enote distribution code
        81 = Enote
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:int">
      <xs:enumeration
           value="81"/>
    </xs:restriction>
  </xs:simpleType>

InvoiceDistributionCode

Notes

  <xs:simpleType name="InvoiceDistributionCode">
    <xs:annotation>
      <xs:appinfo>BiCus Note</xs:appinfo>
      <xs:documentation xml:lang="en">
        Mediadistribution codes
        1 = Paper = 1
        11 = E-mail = 11
        52 = E-invoice B2B
        54 = E-invoice B2B
        74 = Archiving only. Example of use: company with a customer portal and/or company who provides my pages to its customers.
        90 = Digital mailbox (general)
        91 = Digipost
        92 = Kivra
        93 = reserved for future use
        94 = E-invoice private. Can only be updated through bank
        95 = reserved for future use
        96 = reserved for future use
        97 = reserved for future use
        98 = reserved for future use
        99 = reserved for future use
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:int">
      <xs:enumeration value="1"/>
      <xs:enumeration value="11"/>
      <xs:enumeration
           value="52"/>
      <xs:enumeration
           value="54"/>
      <xs:enumeration
           value="74"/>
      <xs:enumeration
           value="90"/>
      <xs:enumeration
           value="91"/>
      <xs:enumeration
           value="92"/>
      <xs:enumeration
           value="93"/>
      <xs:enumeration
           value="94"/>
      <xs:enumeration
           value="95"/>
      <xs:enumeration
           value="96"/>
      <xs:enumeration
           value="97"/>
      <xs:enumeration
           value="98"/>
      <xs:enumeration
           value="99"/>
    </xs:restriction>
  </xs:simpleType>

PXExpiryDate

  <xs:simpleType name="PXExpiryDate">
    <xs:restriction base="xs:string">
      <xs:pattern value="(0[1-9]|1[012])/(\d{2})"/>
      <xs:length value="5"/>
    </xs:restriction>
  </xs:simpleType>

PXNameAddressString

  <xs:simpleType name="PXNameAddressString">
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z0-9_:!"#<>=?\[\]@{}´ %-/À-ÖØ-öø-úü]*"/>
    </xs:restriction>
  </xs:simpleType>

PXString

  <xs:simpleType name="PXString">
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z0-9_:!"#<>=?\[\]@{}´ %-/À-ÖØ-öø-ú]*"/>
    </xs:restriction>
  </xs:simpleType>

PXVatExemptionCode

  <xs:simpleType name="PXVatExemptionCode">
    <xs:restriction base="xs:int">
      <xs:enumeration value="0"/>
      <xs:enumeration value="1"/>
      <xs:enumeration value="2"/>
      <xs:enumeration value="3"/>
    </xs:restriction>
  </xs:simpleType>

String2

  <xs:simpleType name="String2">
    <xs:restriction base="PXString">
      <xs:minLength value="1"/>
      <xs:maxLength value="2"/>
    </xs:restriction>
  </xs:simpleType>

String5

  <xs:simpleType name="String5">
    <xs:restriction base="PXString">
      <xs:minLength value="1"/>
      <xs:maxLength value="5"/>
    </xs:restriction>
  </xs:simpleType>

String10

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

String15

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

String17

  <xs:simpleType name="String17">
    <xs:restriction base="PXString">
      <xs:minLength value="1"/>
      <xs:maxLength value="17"/>
    </xs:restriction>
  </xs:simpleType>

String20

  <xs:simpleType name="String20">
    <xs:restriction base="PXString">
      <xs:minLength value="1"/>
      <xs:maxLength
           value="20"/>
    </xs:restriction>
  </xs:simpleType>

String25

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

String30

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

String35

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

String40

  <xs:simpleType name="String40">
    <xs:restriction base="PXString">
      <xs:minLength value="1"/>
      <xs:maxLength
           value="40"/>
    </xs:restriction>
  </xs:simpleType>

String50

  <xs:simpleType name="String50">
    <xs:restriction base="PXString">
      <xs:minLength value="1"/>
      <xs:maxLength
           value="50"/>
    </xs:restriction>
  </xs:simpleType>

String255

  <xs:simpleType name="String255">
    <xs:restriction base="PXString">
      <xs:minLength value="1"/>
      <xs:maxLength
           value="255"/>
    </xs:restriction>
  </xs:simpleType>

VatNumberType

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

ZipCode

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

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