@stackforge-eu/factur-x 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/LICENSE +287 -0
  3. package/README.md +264 -0
  4. package/dist/index.cjs +1320 -0
  5. package/dist/index.d.cts +1336 -0
  6. package/dist/index.d.ts +1336 -0
  7. package/dist/index.js +1285 -0
  8. package/package.json +81 -0
  9. package/schema/README.md +39 -0
  10. package/schema/basic/FACTUR-X_BASIC.xsd +20 -0
  11. package/schema/basic/FACTUR-X_BASIC_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd +86 -0
  12. package/schema/basic/FACTUR-X_BASIC_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd +249 -0
  13. package/schema/basic/FACTUR-X_BASIC_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd +60 -0
  14. package/schema/basic-wl/FACTUR-X_BASIC-WL.xsd +20 -0
  15. package/schema/basic-wl/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd +86 -0
  16. package/schema/basic-wl/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd +196 -0
  17. package/schema/basic-wl/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd +53 -0
  18. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B.xsd +25 -0
  19. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_EDIFICAS-EU_AccountingAccountType_D11A.xsd +18 -0
  20. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_EDIFICAS-EU_AccountingAmountType_D11A.xsd +17 -0
  21. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_ISO_ISO3AlphaCurrencyCode_2012-08-31.xsd +191 -0
  22. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_ActionCode_D22A.xsd +130 -0
  23. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_AddressType_D22A.xsd +19 -0
  24. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_AdjustmentReasonDescriptionCode_D22A.xsd +116 -0
  25. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_AllowanceChargeIdentificationCode_D22A.xsd +116 -0
  26. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_AllowanceChargeReasonCode_D22A.xsd +116 -0
  27. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_AutomaticDataCaptureMethodCode_D22A.xsd +21 -0
  28. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_CargoOperationalCategoryCode_D22A.xsd +36 -0
  29. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_CargoTypeCode_1996Rev2Final.xsd +20 -0
  30. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_CommodityIdentificationCode_D22A.xsd +12 -0
  31. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_CommunicationMeansTypeCode_D22A.xsd +58 -0
  32. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_ContactFunctionCode_D22A.xsd +114 -0
  33. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DangerousGoodsPackingCode_D22A.xsd +15 -0
  34. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DangerousGoodsRegulationCode_D22A.xsd +35 -0
  35. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DateOnlyFormatCode_D21B.xsd +21 -0
  36. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DeliveryTermsCode_2020.xsd +24 -0
  37. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DeliveryTermsFunctionCode_D22A.xsd +19 -0
  38. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DimensionTypeCode_D22A.xsd +35 -0
  39. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DocumentNameCode_Accounting_D22A.xsd +35 -0
  40. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DocumentNameCode_D22A.xsd +819 -0
  41. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DocumentStatusCode_D22A.xsd +61 -0
  42. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DutyTaxFeeTypeCode_D22A.xsd +67 -0
  43. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_DutyorTaxorFeeCategoryCode_D22A.xsd +33 -0
  44. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_EventTimeReferenceCodePaymentTermsEvent_D22A.xsd +16 -0
  45. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_EventTimeReferenceCode_D22A.xsd +76 -0
  46. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_FreightChargeQuantityUnitBasisCode_D22A.xsd +12 -0
  47. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_FreightChargeTariffCode_D22A.xsd +25 -0
  48. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_GoodsTypeCode_D22A.xsd +12 -0
  49. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_GoodsTypeExtensionCode_D22A.xsd +12 -0
  50. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_LocationFunctionCode_D22A.xsd +326 -0
  51. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_MeasurementUnitCommonCodeLinear_4.xsd +17 -0
  52. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_MeasurementUnitCommonCodeVolume_4.xsd +18 -0
  53. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_MeasurementUnitCommonCodeWeight_4.xsd +15 -0
  54. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_MessageFunctionCode_D22A.xsd +84 -0
  55. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_PackageTypeCode_2006.xsd +416 -0
  56. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_PackagingMarkingCode_D22A.xsd +63 -0
  57. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_PartyRoleCode_ChargePaying_D22A.xsd +32 -0
  58. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_PartyRoleCode_D22A.xsd +635 -0
  59. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_PaymentGuaranteeMeansCode_D22A.xsd +23 -0
  60. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_PaymentMeansChannelCode_D22A.xsd +27 -0
  61. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_PaymentMeansCode_D22A.xsd +94 -0
  62. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_PaymentTermsTypeCode_D22A.xsd +90 -0
  63. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_PriceTypeCode_D22A.xsd +50 -0
  64. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_ReferenceTypeCode_D22A.xsd +828 -0
  65. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_SealConditionCode_D22A.xsd +16 -0
  66. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_SealingPartyRoleCode_D22A.xsd +18 -0
  67. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_StatusCode_D22A.xsd +527 -0
  68. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_StatusDescriptionCode_AccountingDebitCredit_D22A.xsd +18 -0
  69. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_TimeOnlyFormatCode_D21B.xsd +16 -0
  70. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_TimePointFormatCode_D21B.xsd +17 -0
  71. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_TransportEquipmentCategoryCode_D22A.xsd +107 -0
  72. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_TransportEquipmentFullnessCode_D22A.xsd +24 -0
  73. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_TransportMeansTypeCode_2007.xsd +145 -0
  74. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_TransportModeCode_2.xsd +21 -0
  75. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_TransportMovementStageCode_D22A.xsd +41 -0
  76. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_codelist_standard_UNECE_TransportPaymentArrangementCode_D22A.xsd +15 -0
  77. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd +818 -0
  78. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd +6176 -0
  79. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd +144 -0
  80. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_identifierlist_standard_ISO_ISOTwo-letterCountryCode_SecondEdition2006.xsd +260 -0
  81. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_identifierlist_standard_UNECE_FreightCostCode_4.xsd +1722 -0
  82. package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_urn_un_unece_uncefact_identifierlist_standard_UNECE_PaymentTermsDescriptionIdentifier_D22A.xsd +18 -0
  83. package/schema/en16931/FACTUR-X_EN16931.xsd +20 -0
  84. package/schema/en16931/FACTUR-X_EN16931_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd +94 -0
  85. package/schema/en16931/FACTUR-X_EN16931_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd +318 -0
  86. package/schema/en16931/FACTUR-X_EN16931_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd +84 -0
  87. package/schema/extended/FACTUR-X_EXTENDED.xsd +20 -0
  88. package/schema/extended/FACTUR-X_EXTENDED_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd +142 -0
  89. package/schema/extended/FACTUR-X_EXTENDED_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd +475 -0
  90. package/schema/extended/FACTUR-X_EXTENDED_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd +101 -0
  91. package/schema/minimum/FACTUR-X_MINIMUM.xsd +20 -0
  92. package/schema/minimum/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd +30 -0
  93. package/schema/minimum/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd +86 -0
  94. package/schema/minimum/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd +38 -0
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@stackforge-eu/factur-x",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Embed Factur-X, ZUGFeRD, and XRechnung structured invoice XML into PDF/A-3 documents",
6
+ "keywords": [
7
+ "factur-x",
8
+ "zugferd",
9
+ "xrechnung",
10
+ "en16931",
11
+ "cii",
12
+ "pdf",
13
+ "pdf-a3",
14
+ "invoice",
15
+ "e-invoice",
16
+ "e-invoicing",
17
+ "eu",
18
+ "xml"
19
+ ],
20
+ "license": "EUPL-1.2",
21
+ "author": "StackForge UG",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/StackForge-EU/factur-x.git"
25
+ },
26
+ "homepage": "https://www.stack-forge.eu",
27
+ "bugs": {
28
+ "url": "https://github.com/StackForge-EU/factur-x/issues"
29
+ },
30
+ "sideEffects": false,
31
+ "main": "dist/index.cjs",
32
+ "module": "dist/index.js",
33
+ "types": "dist/index.d.ts",
34
+ "exports": {
35
+ ".": {
36
+ "import": {
37
+ "types": "./dist/index.d.ts",
38
+ "default": "./dist/index.js"
39
+ },
40
+ "require": {
41
+ "types": "./dist/index.d.cts",
42
+ "default": "./dist/index.cjs"
43
+ }
44
+ }
45
+ },
46
+ "files": [
47
+ "dist",
48
+ "schema/**/*.xsd",
49
+ "schema/README.md",
50
+ "README.md",
51
+ "LICENSE",
52
+ "CHANGELOG.md"
53
+ ],
54
+ "scripts": {
55
+ "build": "tsup",
56
+ "dev": "tsup --watch",
57
+ "test": "vitest",
58
+ "lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
59
+ "format": "prettier --check .",
60
+ "format:fix": "prettier --write .",
61
+ "validate": "tsc --noEmit",
62
+ "prepublishOnly": "npm run validate && npm run lint && npm run test -- --run && npm run build"
63
+ },
64
+ "dependencies": {
65
+ "libxml2-wasm": "^0.6.0",
66
+ "pdf-lib": "^1.17.1"
67
+ },
68
+ "devDependencies": {
69
+ "@types/node": "^20.10.0",
70
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
71
+ "@typescript-eslint/parser": "^6.0.0",
72
+ "eslint": "^8.0.0",
73
+ "prettier": "^3.8.1",
74
+ "tsup": "^8.0.0",
75
+ "typescript": "^5.3.0",
76
+ "vitest": "^1.0.0"
77
+ },
78
+ "engines": {
79
+ "node": ">=18"
80
+ }
81
+ }
@@ -0,0 +1,39 @@
1
+ # Factur-X / ZUGFeRD Schema Files
2
+
3
+ > **Source:** Factur-X 1.08 / ZUGFeRD 2.4 official specifications
4
+ > **Reorganized from:** ZF24_EN/Schema
5
+
6
+ ---
7
+
8
+ ## Directory Layout
9
+
10
+ | Directory | Profile | Main XSD | Use Case |
11
+ | ----------- | -------- | ----------------------------------- | ------------------------------- |
12
+ | `minimum/` | MINIMUM | `FACTUR-X_MINIMUM.xsd` | OCR-level, minimal data |
13
+ | `basic-wl/` | BASIC WL | `FACTUR-X_BASIC-WL.xsd` | Document-level, no line items |
14
+ | `basic/` | BASIC | `FACTUR-X_BASIC.xsd` | With line items |
15
+ | `en16931/` | EN 16931 | `FACTUR-X_EN16931.xsd` | Full European semantic standard |
16
+ | `extended/` | EXTENDED | `FACTUR-X_EXTENDED.xsd` | EN 16931 + extended data |
17
+ | `cii-d22b/` | Base | `CrossIndustryInvoice_100pD22B.xsd` | UN/CEFACT CII D22B (shared) |
18
+
19
+ ---
20
+
21
+ ## Validation
22
+
23
+ The package validates generated XML **against the profile-specific XSD** before embedding. Each profile folder contains a self-contained schema (no cross-folder imports for profile validation).
24
+
25
+ ---
26
+
27
+ ## Version
28
+
29
+ - **Factur-X:** 1.08
30
+ - **ZUGFeRD:** 2.4
31
+ - **CII:** D22B
32
+ - **Effective:** 2026-01-15
33
+
34
+ ---
35
+
36
+ ## References
37
+
38
+ - [Factur-X official](https://fnfe-mpe.org/factur-x/)
39
+ - [Documentation sources](../documentation/README.md) — links to official specification downloads
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
5
+ xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
6
+ xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
7
+ targetNamespace="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
8
+ elementFormDefault="qualified">
9
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" schemaLocation="FACTUR-X_BASIC_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd"/>
10
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" schemaLocation="FACTUR-X_BASIC_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd"/>
11
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" schemaLocation="FACTUR-X_BASIC_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd"/>
12
+ <xs:element name="CrossIndustryInvoice" type="rsm:CrossIndustryInvoiceType"/>
13
+ <xs:complexType name="CrossIndustryInvoiceType">
14
+ <xs:sequence>
15
+ <xs:element name="ExchangedDocumentContext" type="ram:ExchangedDocumentContextType"/>
16
+ <xs:element name="ExchangedDocument" type="ram:ExchangedDocumentType"/>
17
+ <xs:element name="SupplyChainTradeTransaction" type="ram:SupplyChainTradeTransactionType"/>
18
+ </xs:sequence>
19
+ </xs:complexType>
20
+ </xs:schema>
@@ -0,0 +1,86 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ targetNamespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
5
+ elementFormDefault="qualified">
6
+ <xs:simpleType name="AllowanceChargeReasonCodeContentType">
7
+ <xs:restriction base="xs:token"/>
8
+ </xs:simpleType>
9
+ <xs:complexType name="AllowanceChargeReasonCodeType">
10
+ <xs:simpleContent>
11
+ <xs:extension base="qdt:AllowanceChargeReasonCodeContentType"/>
12
+ </xs:simpleContent>
13
+ </xs:complexType>
14
+ <xs:simpleType name="CountryIDContentType">
15
+ <xs:restriction base="xs:token"/>
16
+ </xs:simpleType>
17
+ <xs:complexType name="CountryIDType">
18
+ <xs:simpleContent>
19
+ <xs:extension base="qdt:CountryIDContentType"/>
20
+ </xs:simpleContent>
21
+ </xs:complexType>
22
+ <xs:simpleType name="CurrencyCodeContentType">
23
+ <xs:restriction base="xs:token"/>
24
+ </xs:simpleType>
25
+ <xs:complexType name="CurrencyCodeType">
26
+ <xs:simpleContent>
27
+ <xs:extension base="qdt:CurrencyCodeContentType"/>
28
+ </xs:simpleContent>
29
+ </xs:complexType>
30
+ <xs:simpleType name="DocumentCodeContentType">
31
+ <xs:restriction base="xs:token"/>
32
+ </xs:simpleType>
33
+ <xs:complexType name="DocumentCodeType">
34
+ <xs:simpleContent>
35
+ <xs:extension base="qdt:DocumentCodeContentType"/>
36
+ </xs:simpleContent>
37
+ </xs:complexType>
38
+ <xs:simpleType name="FormattedDateTimeFormatContentType">
39
+ <xs:restriction base="xs:string"/>
40
+ </xs:simpleType>
41
+ <xs:complexType name="FormattedDateTimeType">
42
+ <xs:sequence>
43
+ <xs:element name="DateTimeString">
44
+ <xs:complexType>
45
+ <xs:simpleContent>
46
+ <xs:extension base="xs:string">
47
+ <xs:attribute name="format" type="qdt:FormattedDateTimeFormatContentType" use="required"/>
48
+ </xs:extension>
49
+ </xs:simpleContent>
50
+ </xs:complexType>
51
+ </xs:element>
52
+ </xs:sequence>
53
+ </xs:complexType>
54
+ <xs:simpleType name="PaymentMeansCodeContentType">
55
+ <xs:restriction base="xs:token"/>
56
+ </xs:simpleType>
57
+ <xs:complexType name="PaymentMeansCodeType">
58
+ <xs:simpleContent>
59
+ <xs:extension base="qdt:PaymentMeansCodeContentType"/>
60
+ </xs:simpleContent>
61
+ </xs:complexType>
62
+ <xs:simpleType name="TaxCategoryCodeContentType">
63
+ <xs:restriction base="xs:token"/>
64
+ </xs:simpleType>
65
+ <xs:complexType name="TaxCategoryCodeType">
66
+ <xs:simpleContent>
67
+ <xs:extension base="qdt:TaxCategoryCodeContentType"/>
68
+ </xs:simpleContent>
69
+ </xs:complexType>
70
+ <xs:simpleType name="TaxTypeCodeContentType">
71
+ <xs:restriction base="xs:token"/>
72
+ </xs:simpleType>
73
+ <xs:complexType name="TaxTypeCodeType">
74
+ <xs:simpleContent>
75
+ <xs:extension base="qdt:TaxTypeCodeContentType"/>
76
+ </xs:simpleContent>
77
+ </xs:complexType>
78
+ <xs:simpleType name="TimeReferenceCodeContentType">
79
+ <xs:restriction base="xs:token"/>
80
+ </xs:simpleType>
81
+ <xs:complexType name="TimeReferenceCodeType">
82
+ <xs:simpleContent>
83
+ <xs:extension base="qdt:TimeReferenceCodeContentType"/>
84
+ </xs:simpleContent>
85
+ </xs:complexType>
86
+ </xs:schema>
@@ -0,0 +1,249 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
5
+ xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
6
+ targetNamespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
7
+ elementFormDefault="qualified">
8
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" schemaLocation="FACTUR-X_BASIC_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd"/>
9
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" schemaLocation="FACTUR-X_BASIC_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd"/>
10
+ <xs:complexType name="CreditorFinancialAccountType">
11
+ <xs:sequence>
12
+ <xs:element name="IBANID" type="udt:IDType" minOccurs="0"/>
13
+ <xs:element name="ProprietaryID" type="udt:IDType" minOccurs="0"/>
14
+ </xs:sequence>
15
+ </xs:complexType>
16
+ <xs:complexType name="DebtorFinancialAccountType">
17
+ <xs:sequence>
18
+ <xs:element name="IBANID" type="udt:IDType"/>
19
+ </xs:sequence>
20
+ </xs:complexType>
21
+ <xs:complexType name="DocumentContextParameterType">
22
+ <xs:sequence>
23
+ <xs:element name="ID" type="udt:IDType"/>
24
+ </xs:sequence>
25
+ </xs:complexType>
26
+ <xs:complexType name="DocumentLineDocumentType">
27
+ <xs:sequence>
28
+ <xs:element name="LineID" type="udt:IDType"/>
29
+ <xs:element name="IncludedNote" type="ram:NoteType" minOccurs="0"/>
30
+ </xs:sequence>
31
+ </xs:complexType>
32
+ <xs:complexType name="ExchangedDocumentContextType">
33
+ <xs:sequence>
34
+ <xs:element name="BusinessProcessSpecifiedDocumentContextParameter" type="ram:DocumentContextParameterType" minOccurs="0"/>
35
+ <xs:element name="GuidelineSpecifiedDocumentContextParameter" type="ram:DocumentContextParameterType"/>
36
+ </xs:sequence>
37
+ </xs:complexType>
38
+ <xs:complexType name="ExchangedDocumentType">
39
+ <xs:sequence>
40
+ <xs:element name="ID" type="udt:IDType"/>
41
+ <xs:element name="TypeCode" type="qdt:DocumentCodeType"/>
42
+ <xs:element name="IssueDateTime" type="udt:DateTimeType"/>
43
+ <xs:element name="IncludedNote" type="ram:NoteType" minOccurs="0" maxOccurs="unbounded"/>
44
+ </xs:sequence>
45
+ </xs:complexType>
46
+ <xs:complexType name="HeaderTradeAgreementType">
47
+ <xs:sequence>
48
+ <xs:element name="BuyerReference" type="udt:TextType" minOccurs="0"/>
49
+ <xs:element name="SellerTradeParty" type="ram:TradePartyType"/>
50
+ <xs:element name="BuyerTradeParty" type="ram:TradePartyType"/>
51
+ <xs:element name="SellerTaxRepresentativeTradeParty" type="ram:TradePartyType" minOccurs="0"/>
52
+ <xs:element name="BuyerOrderReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
53
+ <xs:element name="ContractReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
54
+ </xs:sequence>
55
+ </xs:complexType>
56
+ <xs:complexType name="HeaderTradeDeliveryType">
57
+ <xs:sequence>
58
+ <xs:element name="ShipToTradeParty" type="ram:TradePartyType" minOccurs="0"/>
59
+ <xs:element name="ActualDeliverySupplyChainEvent" type="ram:SupplyChainEventType" minOccurs="0"/>
60
+ <xs:element name="DespatchAdviceReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
61
+ </xs:sequence>
62
+ </xs:complexType>
63
+ <xs:complexType name="HeaderTradeSettlementType">
64
+ <xs:sequence>
65
+ <xs:element name="CreditorReferenceID" type="udt:IDType" minOccurs="0"/>
66
+ <xs:element name="PaymentReference" type="udt:TextType" minOccurs="0"/>
67
+ <xs:element name="TaxCurrencyCode" type="qdt:CurrencyCodeType" minOccurs="0"/>
68
+ <xs:element name="InvoiceCurrencyCode" type="qdt:CurrencyCodeType"/>
69
+ <xs:element name="PayeeTradeParty" type="ram:TradePartyType" minOccurs="0"/>
70
+ <xs:element name="SpecifiedTradeSettlementPaymentMeans" type="ram:TradeSettlementPaymentMeansType" minOccurs="0" maxOccurs="unbounded"/>
71
+ <xs:element name="ApplicableTradeTax" type="ram:TradeTaxType" maxOccurs="unbounded"/>
72
+ <xs:element name="BillingSpecifiedPeriod" type="ram:SpecifiedPeriodType" minOccurs="0"/>
73
+ <xs:element name="SpecifiedTradeAllowanceCharge" type="ram:TradeAllowanceChargeType" minOccurs="0" maxOccurs="unbounded"/>
74
+ <xs:element name="SpecifiedTradePaymentTerms" type="ram:TradePaymentTermsType" minOccurs="0"/>
75
+ <xs:element name="SpecifiedTradeSettlementHeaderMonetarySummation" type="ram:TradeSettlementHeaderMonetarySummationType"/>
76
+ <xs:element name="InvoiceReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0" maxOccurs="unbounded"/>
77
+ <xs:element name="ReceivableSpecifiedTradeAccountingAccount" type="ram:TradeAccountingAccountType" minOccurs="0"/>
78
+ </xs:sequence>
79
+ </xs:complexType>
80
+ <xs:complexType name="LegalOrganizationType">
81
+ <xs:sequence>
82
+ <xs:element name="ID" type="udt:IDType" minOccurs="0"/>
83
+ <xs:element name="TradingBusinessName" type="udt:TextType" minOccurs="0"/>
84
+ </xs:sequence>
85
+ </xs:complexType>
86
+ <xs:complexType name="LineTradeAgreementType">
87
+ <xs:sequence>
88
+ <xs:element name="GrossPriceProductTradePrice" type="ram:TradePriceType" minOccurs="0"/>
89
+ <xs:element name="NetPriceProductTradePrice" type="ram:TradePriceType"/>
90
+ </xs:sequence>
91
+ </xs:complexType>
92
+ <xs:complexType name="LineTradeDeliveryType">
93
+ <xs:sequence>
94
+ <xs:element name="BilledQuantity" type="udt:QuantityType"/>
95
+ </xs:sequence>
96
+ </xs:complexType>
97
+ <xs:complexType name="LineTradeSettlementType">
98
+ <xs:sequence>
99
+ <xs:element name="ApplicableTradeTax" type="ram:TradeTaxType"/>
100
+ <xs:element name="BillingSpecifiedPeriod" type="ram:SpecifiedPeriodType" minOccurs="0"/>
101
+ <xs:element name="SpecifiedTradeAllowanceCharge" type="ram:TradeAllowanceChargeType" minOccurs="0" maxOccurs="unbounded"/>
102
+ <xs:element name="SpecifiedTradeSettlementLineMonetarySummation" type="ram:TradeSettlementLineMonetarySummationType"/>
103
+ </xs:sequence>
104
+ </xs:complexType>
105
+ <xs:complexType name="NoteType">
106
+ <xs:sequence>
107
+ <xs:element name="Content" type="udt:TextType"/>
108
+ <xs:element name="SubjectCode" type="udt:CodeType" minOccurs="0"/>
109
+ </xs:sequence>
110
+ </xs:complexType>
111
+ <xs:complexType name="ReferencedDocumentType">
112
+ <xs:sequence>
113
+ <xs:element name="IssuerAssignedID" type="udt:IDType"/>
114
+ <xs:element name="FormattedIssueDateTime" type="qdt:FormattedDateTimeType" minOccurs="0"/>
115
+ </xs:sequence>
116
+ </xs:complexType>
117
+ <xs:complexType name="SpecifiedPeriodType">
118
+ <xs:sequence>
119
+ <xs:element name="StartDateTime" type="udt:DateTimeType" minOccurs="0"/>
120
+ <xs:element name="EndDateTime" type="udt:DateTimeType" minOccurs="0"/>
121
+ </xs:sequence>
122
+ </xs:complexType>
123
+ <xs:complexType name="SupplyChainEventType">
124
+ <xs:sequence>
125
+ <xs:element name="OccurrenceDateTime" type="udt:DateTimeType"/>
126
+ </xs:sequence>
127
+ </xs:complexType>
128
+ <xs:complexType name="SupplyChainTradeLineItemType">
129
+ <xs:sequence>
130
+ <xs:element name="AssociatedDocumentLineDocument" type="ram:DocumentLineDocumentType"/>
131
+ <xs:element name="SpecifiedTradeProduct" type="ram:TradeProductType"/>
132
+ <xs:element name="SpecifiedLineTradeAgreement" type="ram:LineTradeAgreementType"/>
133
+ <xs:element name="SpecifiedLineTradeDelivery" type="ram:LineTradeDeliveryType"/>
134
+ <xs:element name="SpecifiedLineTradeSettlement" type="ram:LineTradeSettlementType"/>
135
+ </xs:sequence>
136
+ </xs:complexType>
137
+ <xs:complexType name="SupplyChainTradeTransactionType">
138
+ <xs:sequence>
139
+ <xs:element name="IncludedSupplyChainTradeLineItem" type="ram:SupplyChainTradeLineItemType" maxOccurs="unbounded"/>
140
+ <xs:element name="ApplicableHeaderTradeAgreement" type="ram:HeaderTradeAgreementType"/>
141
+ <xs:element name="ApplicableHeaderTradeDelivery" type="ram:HeaderTradeDeliveryType"/>
142
+ <xs:element name="ApplicableHeaderTradeSettlement" type="ram:HeaderTradeSettlementType"/>
143
+ </xs:sequence>
144
+ </xs:complexType>
145
+ <xs:complexType name="TaxRegistrationType">
146
+ <xs:sequence>
147
+ <xs:element name="ID" type="udt:IDType"/>
148
+ </xs:sequence>
149
+ </xs:complexType>
150
+ <xs:complexType name="TradeAccountingAccountType">
151
+ <xs:sequence>
152
+ <xs:element name="ID" type="udt:IDType"/>
153
+ </xs:sequence>
154
+ </xs:complexType>
155
+ <xs:complexType name="TradeAddressType">
156
+ <xs:sequence>
157
+ <xs:element name="PostcodeCode" type="udt:CodeType" minOccurs="0"/>
158
+ <xs:element name="LineOne" type="udt:TextType" minOccurs="0"/>
159
+ <xs:element name="LineTwo" type="udt:TextType" minOccurs="0"/>
160
+ <xs:element name="LineThree" type="udt:TextType" minOccurs="0"/>
161
+ <xs:element name="CityName" type="udt:TextType" minOccurs="0"/>
162
+ <xs:element name="CountryID" type="qdt:CountryIDType"/>
163
+ <xs:element name="CountrySubDivisionName" type="udt:TextType" minOccurs="0"/>
164
+ </xs:sequence>
165
+ </xs:complexType>
166
+ <xs:complexType name="TradeAllowanceChargeType">
167
+ <xs:sequence>
168
+ <xs:element name="ChargeIndicator" type="udt:IndicatorType"/>
169
+ <xs:element name="CalculationPercent" type="udt:PercentType" minOccurs="0"/>
170
+ <xs:element name="BasisAmount" type="udt:AmountType" minOccurs="0"/>
171
+ <xs:element name="ActualAmount" type="udt:AmountType"/>
172
+ <xs:element name="ReasonCode" type="qdt:AllowanceChargeReasonCodeType" minOccurs="0"/>
173
+ <xs:element name="Reason" type="udt:TextType" minOccurs="0"/>
174
+ <xs:element name="CategoryTradeTax" type="ram:TradeTaxType" minOccurs="0"/>
175
+ </xs:sequence>
176
+ </xs:complexType>
177
+ <xs:complexType name="TradePartyType">
178
+ <xs:sequence>
179
+ <xs:element name="ID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
180
+ <xs:element name="GlobalID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
181
+ <xs:element name="Name" type="udt:TextType" minOccurs="0"/>
182
+ <xs:element name="SpecifiedLegalOrganization" type="ram:LegalOrganizationType" minOccurs="0"/>
183
+ <xs:element name="PostalTradeAddress" type="ram:TradeAddressType" minOccurs="0"/>
184
+ <xs:element name="URIUniversalCommunication" type="ram:UniversalCommunicationType" minOccurs="0"/>
185
+ <xs:element name="SpecifiedTaxRegistration" type="ram:TaxRegistrationType" minOccurs="0" maxOccurs="2"/>
186
+ </xs:sequence>
187
+ </xs:complexType>
188
+ <xs:complexType name="TradePaymentTermsType">
189
+ <xs:sequence>
190
+ <xs:element name="Description" type="udt:TextType" minOccurs="0"/>
191
+ <xs:element name="DueDateDateTime" type="udt:DateTimeType" minOccurs="0"/>
192
+ <xs:element name="DirectDebitMandateID" type="udt:IDType" minOccurs="0"/>
193
+ </xs:sequence>
194
+ </xs:complexType>
195
+ <xs:complexType name="TradePriceType">
196
+ <xs:sequence>
197
+ <xs:element name="ChargeAmount" type="udt:AmountType"/>
198
+ <xs:element name="BasisQuantity" type="udt:QuantityType" minOccurs="0"/>
199
+ <xs:element name="AppliedTradeAllowanceCharge" type="ram:TradeAllowanceChargeType" minOccurs="0"/>
200
+ </xs:sequence>
201
+ </xs:complexType>
202
+ <xs:complexType name="TradeProductType">
203
+ <xs:sequence>
204
+ <xs:element name="GlobalID" type="udt:IDType" minOccurs="0"/>
205
+ <xs:element name="Name" type="udt:TextType"/>
206
+ </xs:sequence>
207
+ </xs:complexType>
208
+ <xs:complexType name="TradeSettlementHeaderMonetarySummationType">
209
+ <xs:sequence>
210
+ <xs:element name="LineTotalAmount" type="udt:AmountType"/>
211
+ <xs:element name="ChargeTotalAmount" type="udt:AmountType" minOccurs="0"/>
212
+ <xs:element name="AllowanceTotalAmount" type="udt:AmountType" minOccurs="0"/>
213
+ <xs:element name="TaxBasisTotalAmount" type="udt:AmountType"/>
214
+ <xs:element name="TaxTotalAmount" type="udt:AmountType" minOccurs="0" maxOccurs="2"/>
215
+ <xs:element name="GrandTotalAmount" type="udt:AmountType"/>
216
+ <xs:element name="TotalPrepaidAmount" type="udt:AmountType" minOccurs="0"/>
217
+ <xs:element name="DuePayableAmount" type="udt:AmountType"/>
218
+ </xs:sequence>
219
+ </xs:complexType>
220
+ <xs:complexType name="TradeSettlementLineMonetarySummationType">
221
+ <xs:sequence>
222
+ <xs:element name="LineTotalAmount" type="udt:AmountType"/>
223
+ </xs:sequence>
224
+ </xs:complexType>
225
+ <xs:complexType name="TradeSettlementPaymentMeansType">
226
+ <xs:sequence>
227
+ <xs:element name="TypeCode" type="qdt:PaymentMeansCodeType"/>
228
+ <xs:element name="PayerPartyDebtorFinancialAccount" type="ram:DebtorFinancialAccountType" minOccurs="0"/>
229
+ <xs:element name="PayeePartyCreditorFinancialAccount" type="ram:CreditorFinancialAccountType" minOccurs="0"/>
230
+ </xs:sequence>
231
+ </xs:complexType>
232
+ <xs:complexType name="TradeTaxType">
233
+ <xs:sequence>
234
+ <xs:element name="CalculatedAmount" type="udt:AmountType" minOccurs="0"/>
235
+ <xs:element name="TypeCode" type="qdt:TaxTypeCodeType"/>
236
+ <xs:element name="ExemptionReason" type="udt:TextType" minOccurs="0"/>
237
+ <xs:element name="BasisAmount" type="udt:AmountType" minOccurs="0"/>
238
+ <xs:element name="CategoryCode" type="qdt:TaxCategoryCodeType"/>
239
+ <xs:element name="ExemptionReasonCode" type="udt:CodeType" minOccurs="0"/>
240
+ <xs:element name="DueDateTypeCode" type="qdt:TimeReferenceCodeType" minOccurs="0"/>
241
+ <xs:element name="RateApplicablePercent" type="udt:PercentType" minOccurs="0"/>
242
+ </xs:sequence>
243
+ </xs:complexType>
244
+ <xs:complexType name="UniversalCommunicationType">
245
+ <xs:sequence>
246
+ <xs:element name="URIID" type="udt:IDType"/>
247
+ </xs:sequence>
248
+ </xs:complexType>
249
+ </xs:schema>
@@ -0,0 +1,60 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ targetNamespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
5
+ elementFormDefault="qualified">
6
+ <xs:complexType name="AmountType">
7
+ <xs:simpleContent>
8
+ <xs:extension base="xs:decimal">
9
+ <xs:attribute name="currencyID" type="xs:token"/>
10
+ </xs:extension>
11
+ </xs:simpleContent>
12
+ </xs:complexType>
13
+ <xs:complexType name="CodeType">
14
+ <xs:simpleContent>
15
+ <xs:extension base="xs:token"/>
16
+ </xs:simpleContent>
17
+ </xs:complexType>
18
+ <xs:complexType name="DateTimeType">
19
+ <xs:choice>
20
+ <xs:element name="DateTimeString">
21
+ <xs:complexType>
22
+ <xs:simpleContent>
23
+ <xs:extension base="xs:string">
24
+ <xs:attribute name="format" type="xs:string" use="required"/>
25
+ </xs:extension>
26
+ </xs:simpleContent>
27
+ </xs:complexType>
28
+ </xs:element>
29
+ </xs:choice>
30
+ </xs:complexType>
31
+ <xs:complexType name="IDType">
32
+ <xs:simpleContent>
33
+ <xs:extension base="xs:token">
34
+ <xs:attribute name="schemeID" type="xs:token"/>
35
+ </xs:extension>
36
+ </xs:simpleContent>
37
+ </xs:complexType>
38
+ <xs:complexType name="IndicatorType">
39
+ <xs:choice>
40
+ <xs:element name="Indicator" type="xs:boolean"/>
41
+ </xs:choice>
42
+ </xs:complexType>
43
+ <xs:complexType name="PercentType">
44
+ <xs:simpleContent>
45
+ <xs:extension base="xs:decimal"/>
46
+ </xs:simpleContent>
47
+ </xs:complexType>
48
+ <xs:complexType name="QuantityType">
49
+ <xs:simpleContent>
50
+ <xs:extension base="xs:decimal">
51
+ <xs:attribute name="unitCode" type="xs:token"/>
52
+ </xs:extension>
53
+ </xs:simpleContent>
54
+ </xs:complexType>
55
+ <xs:complexType name="TextType">
56
+ <xs:simpleContent>
57
+ <xs:extension base="xs:string"/>
58
+ </xs:simpleContent>
59
+ </xs:complexType>
60
+ </xs:schema>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
5
+ xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
6
+ xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
7
+ targetNamespace="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
8
+ elementFormDefault="qualified">
9
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" schemaLocation="FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd"/>
10
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" schemaLocation="FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd"/>
11
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" schemaLocation="FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd"/>
12
+ <xs:element name="CrossIndustryInvoice" type="rsm:CrossIndustryInvoiceType"/>
13
+ <xs:complexType name="CrossIndustryInvoiceType">
14
+ <xs:sequence>
15
+ <xs:element name="ExchangedDocumentContext" type="ram:ExchangedDocumentContextType"/>
16
+ <xs:element name="ExchangedDocument" type="ram:ExchangedDocumentType"/>
17
+ <xs:element name="SupplyChainTradeTransaction" type="ram:SupplyChainTradeTransactionType"/>
18
+ </xs:sequence>
19
+ </xs:complexType>
20
+ </xs:schema>
@@ -0,0 +1,86 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ targetNamespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
5
+ elementFormDefault="qualified">
6
+ <xs:simpleType name="AllowanceChargeReasonCodeContentType">
7
+ <xs:restriction base="xs:token"/>
8
+ </xs:simpleType>
9
+ <xs:complexType name="AllowanceChargeReasonCodeType">
10
+ <xs:simpleContent>
11
+ <xs:extension base="qdt:AllowanceChargeReasonCodeContentType"/>
12
+ </xs:simpleContent>
13
+ </xs:complexType>
14
+ <xs:simpleType name="CountryIDContentType">
15
+ <xs:restriction base="xs:token"/>
16
+ </xs:simpleType>
17
+ <xs:complexType name="CountryIDType">
18
+ <xs:simpleContent>
19
+ <xs:extension base="qdt:CountryIDContentType"/>
20
+ </xs:simpleContent>
21
+ </xs:complexType>
22
+ <xs:simpleType name="CurrencyCodeContentType">
23
+ <xs:restriction base="xs:token"/>
24
+ </xs:simpleType>
25
+ <xs:complexType name="CurrencyCodeType">
26
+ <xs:simpleContent>
27
+ <xs:extension base="qdt:CurrencyCodeContentType"/>
28
+ </xs:simpleContent>
29
+ </xs:complexType>
30
+ <xs:simpleType name="DocumentCodeContentType">
31
+ <xs:restriction base="xs:token"/>
32
+ </xs:simpleType>
33
+ <xs:complexType name="DocumentCodeType">
34
+ <xs:simpleContent>
35
+ <xs:extension base="qdt:DocumentCodeContentType"/>
36
+ </xs:simpleContent>
37
+ </xs:complexType>
38
+ <xs:simpleType name="FormattedDateTimeFormatContentType">
39
+ <xs:restriction base="xs:string"/>
40
+ </xs:simpleType>
41
+ <xs:complexType name="FormattedDateTimeType">
42
+ <xs:sequence>
43
+ <xs:element name="DateTimeString">
44
+ <xs:complexType>
45
+ <xs:simpleContent>
46
+ <xs:extension base="xs:string">
47
+ <xs:attribute name="format" type="qdt:FormattedDateTimeFormatContentType" use="required"/>
48
+ </xs:extension>
49
+ </xs:simpleContent>
50
+ </xs:complexType>
51
+ </xs:element>
52
+ </xs:sequence>
53
+ </xs:complexType>
54
+ <xs:simpleType name="PaymentMeansCodeContentType">
55
+ <xs:restriction base="xs:token"/>
56
+ </xs:simpleType>
57
+ <xs:complexType name="PaymentMeansCodeType">
58
+ <xs:simpleContent>
59
+ <xs:extension base="qdt:PaymentMeansCodeContentType"/>
60
+ </xs:simpleContent>
61
+ </xs:complexType>
62
+ <xs:simpleType name="TaxCategoryCodeContentType">
63
+ <xs:restriction base="xs:token"/>
64
+ </xs:simpleType>
65
+ <xs:complexType name="TaxCategoryCodeType">
66
+ <xs:simpleContent>
67
+ <xs:extension base="qdt:TaxCategoryCodeContentType"/>
68
+ </xs:simpleContent>
69
+ </xs:complexType>
70
+ <xs:simpleType name="TaxTypeCodeContentType">
71
+ <xs:restriction base="xs:token"/>
72
+ </xs:simpleType>
73
+ <xs:complexType name="TaxTypeCodeType">
74
+ <xs:simpleContent>
75
+ <xs:extension base="qdt:TaxTypeCodeContentType"/>
76
+ </xs:simpleContent>
77
+ </xs:complexType>
78
+ <xs:simpleType name="TimeReferenceCodeContentType">
79
+ <xs:restriction base="xs:token"/>
80
+ </xs:simpleType>
81
+ <xs:complexType name="TimeReferenceCodeType">
82
+ <xs:simpleContent>
83
+ <xs:extension base="qdt:TimeReferenceCodeContentType"/>
84
+ </xs:simpleContent>
85
+ </xs:complexType>
86
+ </xs:schema>