Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factur-X Version updated #10

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/secretariat/validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ class ValidatorError < StandardError; end
class Validator
SCHEMATRON = [
'../../schemas/zugferd_1/ZUGFeRD1p0.sch',
'../../schemas/factur-x_1.0.0.7/Factur-X_1.0.07_EN16931.sch'
'../../schemas/factur-x_1/Factur-X_1.07.2_EN16931.sch'
]

SCHEMA = [
'../../schemas/zugferd_1/ZUGFeRD1p0.xsd',
'../../schemas/factur-x_1.0.0.7/Factur-X_1.0.07_EN16931.xsd'
'../../schemas/factur-x_1/Factur-X_1.07.2_EN16931.xsd'
]

SCHEMA_DIR = [
'../../schemas/zugferd_1',
'../../schemas/factur-x_1.0.0.7/'
'../../schemas/factur-x_1/'
]

attr_accessor :doc, :version
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
targetNamespace="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
elementFormDefault="qualified">
<xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" schemaLocation="Factur-X_1.0.07_EN16931_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd"/>
<xs:import namespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" schemaLocation="Factur-X_1.0.07_EN16931_urn_un_unece_uncefact_data_standard_RABIE_100.xsd"/>
<xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" schemaLocation="Factur-X_1.0.07_EN16931_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd"/>
<xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" schemaLocation="Factur-X_1.07.2_EN16931_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd"/>
<xs:import namespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" schemaLocation="Factur-X_1.07.2_EN16931_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd"/>
<xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" schemaLocation="Factur-X_1.07.2_EN16931_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd"/>
<xs:element name="CrossIndustryInvoice" type="rsm:CrossIndustryInvoiceType"/>
<xs:complexType name="CrossIndustryInvoiceType">
<xs:sequence>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,14 @@
<enumeration value="0228"/>
<enumeration value="0229"/>
<enumeration value="0230"/>
<enumeration value="0231"/>
<enumeration value="0232"/>
<enumeration value="0233"/>
<enumeration value="0234"/>
<enumeration value="0235"/>
<enumeration value="0236"/>
<enumeration value="0237"/>
<enumeration value="0238"/>
</cl>
<cl id="6">
<enumeration value="AA"/>
Expand Down Expand Up @@ -4561,6 +4569,14 @@
<enumeration value="0228"/>
<enumeration value="0229"/>
<enumeration value="0230"/>
<enumeration value="0231"/>
<enumeration value="0232"/>
<enumeration value="0233"/>
<enumeration value="0234"/>
<enumeration value="0235"/>
<enumeration value="0236"/>
<enumeration value="0237"/>
<enumeration value="0238"/>
</cl>
<cl id="16">
<enumeration value="0002"/>
Expand Down Expand Up @@ -4788,6 +4804,14 @@
<enumeration value="0228"/>
<enumeration value="0229"/>
<enumeration value="0230"/>
<enumeration value="0231"/>
<enumeration value="0232"/>
<enumeration value="0233"/>
<enumeration value="0234"/>
<enumeration value="0235"/>
<enumeration value="0236"/>
<enumeration value="0237"/>
<enumeration value="0238"/>
</cl>
<cl id="17">
<enumeration value="0002"/>
Expand All @@ -4805,6 +4829,7 @@
<enumeration value="0147"/>
<enumeration value="0151"/>
<enumeration value="0170"/>
<enumeration value="0177"/>
<enumeration value="0183"/>
<enumeration value="0184"/>
<enumeration value="0188"/>
Expand Down Expand Up @@ -4836,6 +4861,7 @@
<enumeration value="0221"/>
<enumeration value="0225"/>
<enumeration value="0230"/>
<enumeration value="0235"/>
<enumeration value="9901"/>
<enumeration value="9910"/>
<enumeration value="9913"/>
Expand Down Expand Up @@ -4969,7 +4995,6 @@
<enumeration value="GYD"/>
<enumeration value="HKD"/>
<enumeration value="HNL"/>
<enumeration value="HRK"/>
<enumeration value="HTG"/>
<enumeration value="HUF"/>
<enumeration value="IDR"/>
Expand Down Expand Up @@ -5062,6 +5087,7 @@
<enumeration value="UYU"/>
<enumeration value="UYW"/>
<enumeration value="UZS"/>
<enumeration value="VED"/>
<enumeration value="VES"/>
<enumeration value="VND"/>
<enumeration value="VUV"/>
Expand All @@ -5086,6 +5112,7 @@
<enumeration value="YER"/>
<enumeration value="ZAR"/>
<enumeration value="ZMW"/>
<enumeration value="ZWG"/>
<enumeration value="ZWL"/>
</cl>
<cl id="25">
Expand Down Expand Up @@ -5207,6 +5234,8 @@
<enumeration value="VATEX-EU-143-1J"/>
<enumeration value="VATEX-EU-143-1K"/>
<enumeration value="VATEX-EU-143-1L"/>
<enumeration value="VATEX-EU-144"/>
<enumeration value="VATEX-EU-146-1E"/>
<enumeration value="VATEX-EU-148"/>
<enumeration value="VATEX-EU-148-A"/>
<enumeration value="VATEX-EU-148-B"/>
Expand All @@ -5222,6 +5251,7 @@
<enumeration value="VATEX-EU-151-1C"/>
<enumeration value="VATEX-EU-151-1D"/>
<enumeration value="VATEX-EU-151-1E"/>
<enumeration value="VATEX-EU-159"/>
<enumeration value="VATEX-EU-309"/>
<enumeration value="VATEX-EU-79-C"/>
<enumeration value="VATEX-EU-AE"/>
Expand Down Expand Up @@ -5506,7 +5536,6 @@
<enumeration value="GYD"/>
<enumeration value="HKD"/>
<enumeration value="HNL"/>
<enumeration value="HRK"/>
<enumeration value="HTG"/>
<enumeration value="HUF"/>
<enumeration value="IDR"/>
Expand Down Expand Up @@ -5599,6 +5628,7 @@
<enumeration value="UYU"/>
<enumeration value="UYW"/>
<enumeration value="UZS"/>
<enumeration value="VED"/>
<enumeration value="VES"/>
<enumeration value="VND"/>
<enumeration value="VUV"/>
Expand All @@ -5623,6 +5653,7 @@
<enumeration value="YER"/>
<enumeration value="ZAR"/>
<enumeration value="ZMW"/>
<enumeration value="ZWG"/>
<enumeration value="ZWL"/>
</cl>
<cl id="32">
Expand Down Expand Up @@ -5687,7 +5718,6 @@
<enumeration value="GYD"/>
<enumeration value="HKD"/>
<enumeration value="HNL"/>
<enumeration value="HRK"/>
<enumeration value="HTG"/>
<enumeration value="HUF"/>
<enumeration value="IDR"/>
Expand Down Expand Up @@ -5780,6 +5810,7 @@
<enumeration value="UYU"/>
<enumeration value="UYW"/>
<enumeration value="UZS"/>
<enumeration value="VED"/>
<enumeration value="VES"/>
<enumeration value="VND"/>
<enumeration value="VUV"/>
Expand All @@ -5804,6 +5835,7 @@
<enumeration value="YER"/>
<enumeration value="ZAR"/>
<enumeration value="ZMW"/>
<enumeration value="ZWG"/>
<enumeration value="ZWL"/>
</cl>
<cl id="33">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
targetNamespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
elementFormDefault="qualified">
<xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" schemaLocation="Factur-X_1.0.07_EN16931_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd"/>
<xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" schemaLocation="Factur-X_1.0.07_EN16931_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd"/>
<xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" schemaLocation="Factur-X_1.07.2_EN16931_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd"/>
<xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" schemaLocation="Factur-X_1.07.2_EN16931_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd"/>
<xs:complexType name="CreditorFinancialAccountType">
<xs:sequence>
<xs:element name="IBANID" type="udt:IDType" minOccurs="0"/>
Expand Down