facturx 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/NOTICE.md +2 -0
- data/README.md +27 -1
- data/lib/facturx/coerce.rb +74 -0
- data/lib/facturx/diagnostic.rb +20 -0
- data/lib/facturx/document.rb +45 -0
- data/lib/facturx/group.rb +5 -0
- data/lib/facturx/model/common.rb +8 -0
- data/lib/facturx/model/immutable.rb +75 -0
- data/lib/facturx/model/line.rb +14 -0
- data/lib/facturx/model/party.rb +10 -0
- data/lib/facturx/model/payment.rb +9 -0
- data/lib/facturx/model/reference.rb +7 -0
- data/lib/facturx/model/trade.rb +9 -0
- data/lib/facturx/model.rb +9 -0
- data/lib/facturx/pdf/extractor.rb +7 -4
- data/lib/facturx/reader/semantic_mapper/delivery_mapping.rb +43 -0
- data/lib/facturx/reader/semantic_mapper/document_mapping.rb +109 -0
- data/lib/facturx/reader/semantic_mapper/helpers.rb +114 -0
- data/lib/facturx/reader/semantic_mapper/line_mapping.rb +120 -0
- data/lib/facturx/reader/semantic_mapper/party_mapping.rb +90 -0
- data/lib/facturx/reader/semantic_mapper/payment_mapping.rb +71 -0
- data/lib/facturx/reader/semantic_mapper/trade_mapping.rb +83 -0
- data/lib/facturx/reader/semantic_mapper.rb +67 -0
- data/lib/facturx/reader/term_reader/coercion.rb +69 -0
- data/lib/facturx/reader/term_reader/unmapped.rb +37 -0
- data/lib/facturx/reader/term_reader.rb +124 -0
- data/lib/facturx/reader.rb +101 -0
- data/lib/facturx/reading.rb +23 -0
- data/lib/facturx/source_reader.rb +30 -0
- data/lib/facturx/term.rb +5 -0
- data/lib/facturx/terms/declaration.rb +20 -0
- data/lib/facturx/terms/declarations/adjustments.rb +230 -0
- data/lib/facturx/terms/declarations/delivery.rb +83 -0
- data/lib/facturx/terms/declarations/document.rb +223 -0
- data/lib/facturx/terms/declarations/groups.rb +356 -0
- data/lib/facturx/terms/declarations/lines.rb +166 -0
- data/lib/facturx/terms/declarations/parties.rb +609 -0
- data/lib/facturx/terms/declarations/payment.rb +106 -0
- data/lib/facturx/terms/declarations/products.rb +103 -0
- data/lib/facturx/terms/declarations/references.rb +72 -0
- data/lib/facturx/terms/declarations/taxes.rb +92 -0
- data/lib/facturx/terms/declarations/totals.rb +107 -0
- data/lib/facturx/terms/reference.rb +21 -0
- data/lib/facturx/terms.rb +109 -0
- data/lib/facturx/version.rb +1 -1
- data/lib/facturx.rb +14 -0
- metadata +45 -4
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: facturx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- AdVitam
|
|
@@ -43,8 +43,8 @@ dependencies:
|
|
|
43
43
|
- - "<"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '3'
|
|
46
|
-
description: Ruby toolkit for validating Factur-X XML and composing or
|
|
47
|
-
PDF/A-3 invoices.
|
|
46
|
+
description: Ruby toolkit for reading and validating Factur-X XML and composing or
|
|
47
|
+
extracting PDF/A-3 invoices.
|
|
48
48
|
email:
|
|
49
49
|
- tech@advitam.fr
|
|
50
50
|
executables: []
|
|
@@ -57,14 +57,26 @@ files:
|
|
|
57
57
|
- README.md
|
|
58
58
|
- lib/facturx.rb
|
|
59
59
|
- lib/facturx/attach.rb
|
|
60
|
+
- lib/facturx/coerce.rb
|
|
60
61
|
- lib/facturx/composers/ghostscript.rb
|
|
61
62
|
- lib/facturx/composers/ghostscript/defaults.rb
|
|
62
63
|
- lib/facturx/composers/ghostscript/locator.rb
|
|
63
64
|
- lib/facturx/composers/ghostscript/output_capture.rb
|
|
64
65
|
- lib/facturx/composers/ghostscript/runner.rb
|
|
65
66
|
- lib/facturx/composers/ghostscript/version_probe.rb
|
|
67
|
+
- lib/facturx/diagnostic.rb
|
|
68
|
+
- lib/facturx/document.rb
|
|
66
69
|
- lib/facturx/embedding.rb
|
|
67
70
|
- lib/facturx/error.rb
|
|
71
|
+
- lib/facturx/group.rb
|
|
72
|
+
- lib/facturx/model.rb
|
|
73
|
+
- lib/facturx/model/common.rb
|
|
74
|
+
- lib/facturx/model/immutable.rb
|
|
75
|
+
- lib/facturx/model/line.rb
|
|
76
|
+
- lib/facturx/model/party.rb
|
|
77
|
+
- lib/facturx/model/payment.rb
|
|
78
|
+
- lib/facturx/model/reference.rb
|
|
79
|
+
- lib/facturx/model/trade.rb
|
|
68
80
|
- lib/facturx/pdf/document.rb
|
|
69
81
|
- lib/facturx/pdf/extractor.rb
|
|
70
82
|
- lib/facturx/pdf/inspector.rb
|
|
@@ -72,6 +84,19 @@ files:
|
|
|
72
84
|
- lib/facturx/pdf/verifier.rb
|
|
73
85
|
- lib/facturx/profile.rb
|
|
74
86
|
- lib/facturx/profiles.rb
|
|
87
|
+
- lib/facturx/reader.rb
|
|
88
|
+
- lib/facturx/reader/semantic_mapper.rb
|
|
89
|
+
- lib/facturx/reader/semantic_mapper/delivery_mapping.rb
|
|
90
|
+
- lib/facturx/reader/semantic_mapper/document_mapping.rb
|
|
91
|
+
- lib/facturx/reader/semantic_mapper/helpers.rb
|
|
92
|
+
- lib/facturx/reader/semantic_mapper/line_mapping.rb
|
|
93
|
+
- lib/facturx/reader/semantic_mapper/party_mapping.rb
|
|
94
|
+
- lib/facturx/reader/semantic_mapper/payment_mapping.rb
|
|
95
|
+
- lib/facturx/reader/semantic_mapper/trade_mapping.rb
|
|
96
|
+
- lib/facturx/reader/term_reader.rb
|
|
97
|
+
- lib/facturx/reader/term_reader/coercion.rb
|
|
98
|
+
- lib/facturx/reader/term_reader/unmapped.rb
|
|
99
|
+
- lib/facturx/reading.rb
|
|
75
100
|
- lib/facturx/schema/1.09.2/basic-wl/Factur-X_1.09.2_BASICWL.xsd
|
|
76
101
|
- lib/facturx/schema/1.09.2/basic-wl/Factur-X_1.09.2_BASICWL_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd
|
|
77
102
|
- lib/facturx/schema/1.09.2/basic-wl/Factur-X_1.09.2_BASICWL_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd
|
|
@@ -95,6 +120,22 @@ files:
|
|
|
95
120
|
- lib/facturx/schema/LICENSE-APACHE-2.0.txt
|
|
96
121
|
- lib/facturx/schema/NOTICE.md
|
|
97
122
|
- lib/facturx/schema/SHA256SUMS
|
|
123
|
+
- lib/facturx/source_reader.rb
|
|
124
|
+
- lib/facturx/term.rb
|
|
125
|
+
- lib/facturx/terms.rb
|
|
126
|
+
- lib/facturx/terms/declaration.rb
|
|
127
|
+
- lib/facturx/terms/declarations/adjustments.rb
|
|
128
|
+
- lib/facturx/terms/declarations/delivery.rb
|
|
129
|
+
- lib/facturx/terms/declarations/document.rb
|
|
130
|
+
- lib/facturx/terms/declarations/groups.rb
|
|
131
|
+
- lib/facturx/terms/declarations/lines.rb
|
|
132
|
+
- lib/facturx/terms/declarations/parties.rb
|
|
133
|
+
- lib/facturx/terms/declarations/payment.rb
|
|
134
|
+
- lib/facturx/terms/declarations/products.rb
|
|
135
|
+
- lib/facturx/terms/declarations/references.rb
|
|
136
|
+
- lib/facturx/terms/declarations/taxes.rb
|
|
137
|
+
- lib/facturx/terms/declarations/totals.rb
|
|
138
|
+
- lib/facturx/terms/reference.rb
|
|
98
139
|
- lib/facturx/version.rb
|
|
99
140
|
- lib/facturx/xml/parser.rb
|
|
100
141
|
- lib/facturx/xml/profile_detector.rb
|
|
@@ -126,5 +167,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
126
167
|
requirements: []
|
|
127
168
|
rubygems_version: 4.0.16
|
|
128
169
|
specification_version: 4
|
|
129
|
-
summary:
|
|
170
|
+
summary: Read, validate, compose, and extract Factur-X invoices
|
|
130
171
|
test_files: []
|