secretariat 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:rsm="urn:ferd:CrossIndustryDocument:invoice:1p0"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:12"
5
+ xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:12"
6
+ xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:15"
7
+ targetNamespace="urn:ferd:CrossIndustryDocument:invoice:1p0"
8
+ elementFormDefault="qualified">
9
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:12" schemaLocation="ZUGFeRD1p0_urn_un_unece_uncefact_data_standard_QualifiedDataType_12.xsd"/>
10
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:12" schemaLocation="ZUGFeRD1p0_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_12.xsd"/>
11
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:15" schemaLocation="ZUGFeRD1p0_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_15.xsd"/>
12
+ <xs:element name="CrossIndustryDocument" type="rsm:CrossIndustryDocumentType"/>
13
+ <xs:complexType name="CrossIndustryDocumentType">
14
+ <xs:sequence>
15
+ <xs:element name="SpecifiedExchangedDocumentContext" type="ram:ExchangedDocumentContextType"/>
16
+ <xs:element name="HeaderExchangedDocument" type="ram:ExchangedDocumentType"/>
17
+ <xs:element name="SpecifiedSupplyChainTradeTransaction" type="ram:SupplyChainTradeTransactionType"/>
18
+ </xs:sequence>
19
+ </xs:complexType>
20
+ </xs:schema>
@@ -0,0 +1,76 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:12"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:15"
5
+ targetNamespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:12"
6
+ elementFormDefault="qualified"
7
+ version="12.0">
8
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:15" schemaLocation="ZUGFeRD1p0_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_15.xsd"/>
9
+ <xs:simpleType name="AllowanceChargeReasonCodeContentType">
10
+ <xs:restriction base="xs:token"/>
11
+ </xs:simpleType>
12
+ <xs:complexType name="AllowanceChargeReasonCodeType">
13
+ <xs:simpleContent>
14
+ <xs:extension base="qdt:AllowanceChargeReasonCodeContentType"/>
15
+ </xs:simpleContent>
16
+ </xs:complexType>
17
+ <xs:simpleType name="CountryIDContentType">
18
+ <xs:restriction base="xs:token"/>
19
+ </xs:simpleType>
20
+ <xs:complexType name="CountryIDType">
21
+ <xs:simpleContent>
22
+ <xs:extension base="qdt:CountryIDContentType"/>
23
+ </xs:simpleContent>
24
+ </xs:complexType>
25
+ <xs:simpleType name="DateMandatoryDateTimeType">
26
+ <xs:union memberTypes="xs:dateTime xs:date"/>
27
+ </xs:simpleType>
28
+ <xs:simpleType name="DeliveryTermsCodeContentType">
29
+ <xs:restriction base="xs:token"/>
30
+ </xs:simpleType>
31
+ <xs:complexType name="DeliveryTermsCodeType">
32
+ <xs:simpleContent>
33
+ <xs:extension base="qdt:DeliveryTermsCodeContentType"/>
34
+ </xs:simpleContent>
35
+ </xs:complexType>
36
+ <xs:simpleType name="DocumentCodeContentType">
37
+ <xs:restriction base="xs:token"/>
38
+ </xs:simpleType>
39
+ <xs:complexType name="DocumentCodeType">
40
+ <xs:simpleContent>
41
+ <xs:extension base="qdt:DocumentCodeContentType"/>
42
+ </xs:simpleContent>
43
+ </xs:complexType>
44
+ <xs:simpleType name="PaymentMeansCodeContentType">
45
+ <xs:restriction base="xs:token"/>
46
+ </xs:simpleType>
47
+ <xs:complexType name="PaymentMeansCodeType">
48
+ <xs:simpleContent>
49
+ <xs:extension base="qdt:PaymentMeansCodeContentType"/>
50
+ </xs:simpleContent>
51
+ </xs:complexType>
52
+ <xs:simpleType name="ReferenceCodeContentType">
53
+ <xs:restriction base="xs:token"/>
54
+ </xs:simpleType>
55
+ <xs:complexType name="ReferenceCodeType">
56
+ <xs:simpleContent>
57
+ <xs:extension base="qdt:ReferenceCodeContentType"/>
58
+ </xs:simpleContent>
59
+ </xs:complexType>
60
+ <xs:simpleType name="TaxCategoryCodeContentType">
61
+ <xs:restriction base="xs:token"/>
62
+ </xs:simpleType>
63
+ <xs:complexType name="TaxCategoryCodeType">
64
+ <xs:simpleContent>
65
+ <xs:extension base="qdt:TaxCategoryCodeContentType"/>
66
+ </xs:simpleContent>
67
+ </xs:complexType>
68
+ <xs:simpleType name="TaxTypeCodeContentType">
69
+ <xs:restriction base="xs:token"/>
70
+ </xs:simpleType>
71
+ <xs:complexType name="TaxTypeCodeType">
72
+ <xs:simpleContent>
73
+ <xs:extension base="qdt:TaxTypeCodeContentType"/>
74
+ </xs:simpleContent>
75
+ </xs:complexType>
76
+ </xs:schema>
@@ -0,0 +1,352 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:12"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:12"
5
+ xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:15"
6
+ targetNamespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:12"
7
+ elementFormDefault="qualified"
8
+ version="12.0">
9
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:12" schemaLocation="ZUGFeRD1p0_urn_un_unece_uncefact_data_standard_QualifiedDataType_12.xsd"/>
10
+ <xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:15" schemaLocation="ZUGFeRD1p0_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_15.xsd"/>
11
+ <xs:complexType name="CreditorFinancialAccountType">
12
+ <xs:sequence>
13
+ <xs:element name="IBANID" type="udt:IDType" minOccurs="0"/>
14
+ <xs:element name="AccountName" type="udt:TextType" minOccurs="0"/>
15
+ <xs:element name="ProprietaryID" type="udt:IDType" minOccurs="0"/>
16
+ </xs:sequence>
17
+ </xs:complexType>
18
+ <xs:complexType name="CreditorFinancialInstitutionType">
19
+ <xs:sequence>
20
+ <xs:element name="BICID" type="udt:IDType" minOccurs="0"/>
21
+ <xs:element name="GermanBankleitzahlID" type="udt:IDType" minOccurs="0"/>
22
+ <xs:element name="Name" type="udt:TextType" minOccurs="0"/>
23
+ </xs:sequence>
24
+ </xs:complexType>
25
+ <xs:complexType name="DebtorFinancialAccountType">
26
+ <xs:sequence>
27
+ <xs:element name="IBANID" type="udt:IDType" minOccurs="0"/>
28
+ <xs:element name="ProprietaryID" type="udt:IDType" minOccurs="0"/>
29
+ </xs:sequence>
30
+ </xs:complexType>
31
+ <xs:complexType name="DebtorFinancialInstitutionType">
32
+ <xs:sequence>
33
+ <xs:element name="BICID" type="udt:IDType" minOccurs="0"/>
34
+ <xs:element name="GermanBankleitzahlID" type="udt:IDType" minOccurs="0"/>
35
+ <xs:element name="Name" type="udt:TextType" minOccurs="0"/>
36
+ </xs:sequence>
37
+ </xs:complexType>
38
+ <xs:complexType name="DocumentContextParameterType">
39
+ <xs:sequence>
40
+ <xs:element name="ID" type="udt:IDType" minOccurs="0"/>
41
+ </xs:sequence>
42
+ </xs:complexType>
43
+ <xs:complexType name="DocumentLineDocumentType">
44
+ <xs:sequence>
45
+ <xs:element name="LineID" type="udt:IDType" minOccurs="0"/>
46
+ <xs:element name="IncludedNote" type="ram:NoteType" minOccurs="0" maxOccurs="unbounded"/>
47
+ </xs:sequence>
48
+ </xs:complexType>
49
+ <xs:complexType name="ExchangedDocumentContextType">
50
+ <xs:sequence>
51
+ <xs:element name="TestIndicator" type="udt:IndicatorType" minOccurs="0"/>
52
+ <xs:element name="BusinessProcessSpecifiedDocumentContextParameter" type="ram:DocumentContextParameterType" minOccurs="0" maxOccurs="unbounded"/>
53
+ <xs:element name="GuidelineSpecifiedDocumentContextParameter" type="ram:DocumentContextParameterType" minOccurs="0" maxOccurs="unbounded"/>
54
+ </xs:sequence>
55
+ </xs:complexType>
56
+ <xs:complexType name="ExchangedDocumentType">
57
+ <xs:sequence>
58
+ <xs:element name="ID" type="udt:IDType" minOccurs="0"/>
59
+ <xs:element name="Name" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
60
+ <xs:element name="TypeCode" type="qdt:DocumentCodeType" minOccurs="0"/>
61
+ <xs:element name="IssueDateTime" type="udt:DateTimeType" minOccurs="0"/>
62
+ <xs:element name="CopyIndicator" type="udt:IndicatorType" minOccurs="0"/>
63
+ <xs:element name="LanguageID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
64
+ <xs:element name="IncludedNote" type="ram:NoteType" minOccurs="0" maxOccurs="unbounded"/>
65
+ <xs:element name="EffectiveSpecifiedPeriod" type="ram:SpecifiedPeriodType" minOccurs="0"/>
66
+ </xs:sequence>
67
+ </xs:complexType>
68
+ <xs:complexType name="LogisticsServiceChargeType">
69
+ <xs:sequence>
70
+ <xs:element name="Description" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
71
+ <xs:element name="AppliedAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
72
+ <xs:element name="AppliedTradeTax" type="ram:TradeTaxType" minOccurs="0" maxOccurs="unbounded"/>
73
+ </xs:sequence>
74
+ </xs:complexType>
75
+ <xs:complexType name="LogisticsTransportMovementType">
76
+ <xs:sequence>
77
+ <xs:element name="ModeCode" type="udt:CodeType" minOccurs="0"/>
78
+ <xs:element name="ID" type="udt:IDType" minOccurs="0"/>
79
+ </xs:sequence>
80
+ </xs:complexType>
81
+ <xs:complexType name="NoteType">
82
+ <xs:sequence>
83
+ <xs:element name="ContentCode" type="udt:CodeType" minOccurs="0" maxOccurs="unbounded"/>
84
+ <xs:element name="Content" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
85
+ <xs:element name="SubjectCode" type="udt:CodeType" minOccurs="0"/>
86
+ </xs:sequence>
87
+ </xs:complexType>
88
+ <xs:complexType name="ProductCharacteristicType">
89
+ <xs:sequence>
90
+ <xs:element name="TypeCode" type="udt:CodeType" minOccurs="0" maxOccurs="unbounded"/>
91
+ <xs:element name="Description" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
92
+ <xs:element name="ValueMeasure" type="udt:MeasureType" minOccurs="0" maxOccurs="unbounded"/>
93
+ <xs:element name="Value" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
94
+ </xs:sequence>
95
+ </xs:complexType>
96
+ <xs:complexType name="ProductClassificationType">
97
+ <xs:sequence>
98
+ <xs:element name="ClassCode" type="udt:CodeType" minOccurs="0"/>
99
+ <xs:element name="ClassName" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
100
+ </xs:sequence>
101
+ </xs:complexType>
102
+ <xs:complexType name="ReferencedDocumentType">
103
+ <xs:sequence>
104
+ <xs:element name="IssueDateTime" type="qdt:DateMandatoryDateTimeType" minOccurs="0"/>
105
+ <xs:element name="LineID" type="udt:IDType" minOccurs="0"/>
106
+ <xs:element name="TypeCode" type="qdt:DocumentCodeType" minOccurs="0"/>
107
+ <xs:element name="ID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
108
+ <xs:element name="ReferenceTypeCode" type="qdt:ReferenceCodeType" minOccurs="0"/>
109
+ </xs:sequence>
110
+ </xs:complexType>
111
+ <xs:complexType name="ReferencedProductType">
112
+ <xs:sequence>
113
+ <xs:element name="GlobalID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
114
+ <xs:element name="SellerAssignedID" type="udt:IDType" minOccurs="0"/>
115
+ <xs:element name="BuyerAssignedID" type="udt:IDType" minOccurs="0"/>
116
+ <xs:element name="Name" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
117
+ <xs:element name="Description" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
118
+ <xs:element name="UnitQuantity" type="udt:QuantityType" minOccurs="0" maxOccurs="unbounded"/>
119
+ </xs:sequence>
120
+ </xs:complexType>
121
+ <xs:complexType name="SpecifiedPeriodType">
122
+ <xs:sequence>
123
+ <xs:element name="StartDateTime" type="udt:DateTimeType" minOccurs="0"/>
124
+ <xs:element name="EndDateTime" type="udt:DateTimeType" minOccurs="0"/>
125
+ <xs:element name="CompleteDateTime" type="udt:DateTimeType" minOccurs="0"/>
126
+ </xs:sequence>
127
+ </xs:complexType>
128
+ <xs:complexType name="SupplyChainConsignmentType">
129
+ <xs:sequence>
130
+ <xs:element name="SpecifiedLogisticsTransportMovement" type="ram:LogisticsTransportMovementType" minOccurs="0" maxOccurs="unbounded"/>
131
+ </xs:sequence>
132
+ </xs:complexType>
133
+ <xs:complexType name="SupplyChainEventType">
134
+ <xs:sequence>
135
+ <xs:element name="OccurrenceDateTime" type="udt:DateTimeType" minOccurs="0" maxOccurs="unbounded"/>
136
+ </xs:sequence>
137
+ </xs:complexType>
138
+ <xs:complexType name="SupplyChainTradeAgreementType">
139
+ <xs:sequence>
140
+ <xs:element name="BuyerReference" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
141
+ <xs:element name="SellerTradeParty" type="ram:TradePartyType" minOccurs="0"/>
142
+ <xs:element name="BuyerTradeParty" type="ram:TradePartyType" minOccurs="0"/>
143
+ <xs:element name="ProductEndUserTradeParty" type="ram:TradePartyType" minOccurs="0"/>
144
+ <xs:element name="ApplicableTradeDeliveryTerms" type="ram:TradeDeliveryTermsType" minOccurs="0"/>
145
+ <xs:element name="BuyerOrderReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0" maxOccurs="unbounded"/>
146
+ <xs:element name="ContractReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0" maxOccurs="unbounded"/>
147
+ <xs:element name="AdditionalReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0" maxOccurs="unbounded"/>
148
+ <xs:element name="GrossPriceProductTradePrice" type="ram:TradePriceType" minOccurs="0" maxOccurs="unbounded"/>
149
+ <xs:element name="NetPriceProductTradePrice" type="ram:TradePriceType" minOccurs="0" maxOccurs="unbounded"/>
150
+ <xs:element name="CustomerOrderReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0" maxOccurs="unbounded"/>
151
+ </xs:sequence>
152
+ </xs:complexType>
153
+ <xs:complexType name="SupplyChainTradeDeliveryType">
154
+ <xs:sequence>
155
+ <xs:element name="BilledQuantity" type="udt:QuantityType" minOccurs="0"/>
156
+ <xs:element name="ChargeFreeQuantity" type="udt:QuantityType" minOccurs="0"/>
157
+ <xs:element name="PackageQuantity" type="udt:QuantityType" minOccurs="0"/>
158
+ <xs:element name="RelatedSupplyChainConsignment" type="ram:SupplyChainConsignmentType" minOccurs="0" maxOccurs="unbounded"/>
159
+ <xs:element name="ShipToTradeParty" type="ram:TradePartyType" minOccurs="0"/>
160
+ <xs:element name="UltimateShipToTradeParty" type="ram:TradePartyType" minOccurs="0"/>
161
+ <xs:element name="ShipFromTradeParty" type="ram:TradePartyType" minOccurs="0"/>
162
+ <xs:element name="ActualDeliverySupplyChainEvent" type="ram:SupplyChainEventType" minOccurs="0" maxOccurs="unbounded"/>
163
+ <xs:element name="DespatchAdviceReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
164
+ <xs:element name="ReceivingAdviceReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0" maxOccurs="unbounded"/>
165
+ <xs:element name="DeliveryNoteReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
166
+ </xs:sequence>
167
+ </xs:complexType>
168
+ <xs:complexType name="SupplyChainTradeLineItemType">
169
+ <xs:sequence>
170
+ <xs:element name="AssociatedDocumentLineDocument" type="ram:DocumentLineDocumentType" minOccurs="0"/>
171
+ <xs:element name="SpecifiedSupplyChainTradeAgreement" type="ram:SupplyChainTradeAgreementType" minOccurs="0"/>
172
+ <xs:element name="SpecifiedSupplyChainTradeDelivery" type="ram:SupplyChainTradeDeliveryType" minOccurs="0"/>
173
+ <xs:element name="SpecifiedSupplyChainTradeSettlement" type="ram:SupplyChainTradeSettlementType" minOccurs="0"/>
174
+ <xs:element name="SpecifiedTradeProduct" type="ram:TradeProductType" minOccurs="0"/>
175
+ </xs:sequence>
176
+ </xs:complexType>
177
+ <xs:complexType name="SupplyChainTradeSettlementType">
178
+ <xs:sequence>
179
+ <xs:element name="PaymentReference" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
180
+ <xs:element name="InvoiceCurrencyCode" type="udt:CodeType" minOccurs="0"/>
181
+ <xs:element name="InvoiceeTradeParty" type="ram:TradePartyType" minOccurs="0"/>
182
+ <xs:element name="PayeeTradeParty" type="ram:TradePartyType" minOccurs="0" maxOccurs="unbounded"/>
183
+ <xs:element name="SpecifiedTradeSettlementPaymentMeans" type="ram:TradeSettlementPaymentMeansType" minOccurs="0" maxOccurs="unbounded"/>
184
+ <xs:element name="ApplicableTradeTax" type="ram:TradeTaxType" minOccurs="0" maxOccurs="unbounded"/>
185
+ <xs:element name="BillingSpecifiedPeriod" type="ram:SpecifiedPeriodType" minOccurs="0" maxOccurs="unbounded"/>
186
+ <xs:element name="SpecifiedTradeAllowanceCharge" type="ram:TradeAllowanceChargeType" minOccurs="0" maxOccurs="unbounded"/>
187
+ <xs:element name="SpecifiedLogisticsServiceCharge" type="ram:LogisticsServiceChargeType" minOccurs="0" maxOccurs="unbounded"/>
188
+ <xs:element name="SpecifiedTradePaymentTerms" type="ram:TradePaymentTermsType" minOccurs="0" maxOccurs="unbounded"/>
189
+ <xs:element name="SpecifiedTradeAccountingAccount" type="ram:TradeAccountingAccountType" minOccurs="0" maxOccurs="unbounded"/>
190
+ <xs:element name="SpecifiedTradeSettlementMonetarySummation" type="ram:TradeSettlementMonetarySummationType" minOccurs="0"/>
191
+ <xs:element name="ReceivableSpecifiedTradeAccountingAccount" type="ram:TradeAccountingAccountType" minOccurs="0" maxOccurs="unbounded"/>
192
+ </xs:sequence>
193
+ </xs:complexType>
194
+ <xs:complexType name="SupplyChainTradeTransactionType">
195
+ <xs:sequence>
196
+ <xs:element name="ApplicableSupplyChainTradeAgreement" type="ram:SupplyChainTradeAgreementType" minOccurs="0" maxOccurs="unbounded"/>
197
+ <xs:element name="ApplicableSupplyChainTradeDelivery" type="ram:SupplyChainTradeDeliveryType" minOccurs="0"/>
198
+ <xs:element name="ApplicableSupplyChainTradeSettlement" type="ram:SupplyChainTradeSettlementType" minOccurs="0"/>
199
+ <xs:element name="IncludedSupplyChainTradeLineItem" type="ram:SupplyChainTradeLineItemType" minOccurs="0" maxOccurs="unbounded"/>
200
+ </xs:sequence>
201
+ </xs:complexType>
202
+ <xs:complexType name="TaxRegistrationType">
203
+ <xs:sequence>
204
+ <xs:element name="ID" type="udt:IDType" minOccurs="0"/>
205
+ </xs:sequence>
206
+ </xs:complexType>
207
+ <xs:complexType name="TradeAccountingAccountType">
208
+ <xs:sequence>
209
+ <xs:element name="ID" type="udt:IDType" minOccurs="0"/>
210
+ </xs:sequence>
211
+ </xs:complexType>
212
+ <xs:complexType name="TradeAddressType">
213
+ <xs:sequence>
214
+ <xs:element name="PostcodeCode" type="udt:CodeType" minOccurs="0" maxOccurs="unbounded"/>
215
+ <xs:element name="LineOne" type="udt:TextType" minOccurs="0"/>
216
+ <xs:element name="LineTwo" type="udt:TextType" minOccurs="0"/>
217
+ <xs:element name="CityName" type="udt:TextType" minOccurs="0"/>
218
+ <xs:element name="CountryID" type="qdt:CountryIDType" minOccurs="0"/>
219
+ </xs:sequence>
220
+ </xs:complexType>
221
+ <xs:complexType name="TradeAllowanceChargeType">
222
+ <xs:sequence>
223
+ <xs:element name="ChargeIndicator" type="udt:IndicatorType" minOccurs="0"/>
224
+ <xs:element name="SequenceNumeric" type="udt:NumericType" minOccurs="0"/>
225
+ <xs:element name="CalculationPercent" type="udt:PercentType" minOccurs="0"/>
226
+ <xs:element name="BasisAmount" type="udt:AmountType" minOccurs="0"/>
227
+ <xs:element name="BasisQuantity" type="udt:QuantityType" minOccurs="0"/>
228
+ <xs:element name="ActualAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
229
+ <xs:element name="ReasonCode" type="qdt:AllowanceChargeReasonCodeType" minOccurs="0"/>
230
+ <xs:element name="Reason" type="udt:TextType" minOccurs="0"/>
231
+ <xs:element name="CategoryTradeTax" type="ram:TradeTaxType" minOccurs="0" maxOccurs="unbounded"/>
232
+ </xs:sequence>
233
+ </xs:complexType>
234
+ <xs:complexType name="TradeContactType">
235
+ <xs:sequence>
236
+ <xs:element name="PersonName" type="udt:TextType" minOccurs="0"/>
237
+ <xs:element name="DepartmentName" type="udt:TextType" minOccurs="0"/>
238
+ <xs:element name="TelephoneUniversalCommunication" type="ram:UniversalCommunicationType" minOccurs="0" maxOccurs="unbounded"/>
239
+ <xs:element name="FaxUniversalCommunication" type="ram:UniversalCommunicationType" minOccurs="0" maxOccurs="unbounded"/>
240
+ <xs:element name="EmailURIUniversalCommunication" type="ram:UniversalCommunicationType" minOccurs="0"/>
241
+ </xs:sequence>
242
+ </xs:complexType>
243
+ <xs:complexType name="TradeCountryType">
244
+ <xs:sequence>
245
+ <xs:element name="ID" type="qdt:CountryIDType" minOccurs="0" maxOccurs="unbounded"/>
246
+ </xs:sequence>
247
+ </xs:complexType>
248
+ <xs:complexType name="TradeDeliveryTermsType">
249
+ <xs:sequence>
250
+ <xs:element name="DeliveryTypeCode" type="qdt:DeliveryTermsCodeType" minOccurs="0"/>
251
+ </xs:sequence>
252
+ </xs:complexType>
253
+ <xs:complexType name="TradePartyType">
254
+ <xs:sequence>
255
+ <xs:element name="ID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
256
+ <xs:element name="GlobalID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
257
+ <xs:element name="Name" type="udt:TextType" minOccurs="0"/>
258
+ <xs:element name="DefinedTradeContact" type="ram:TradeContactType" minOccurs="0" maxOccurs="unbounded"/>
259
+ <xs:element name="PostalTradeAddress" type="ram:TradeAddressType" minOccurs="0"/>
260
+ <xs:element name="SpecifiedTaxRegistration" type="ram:TaxRegistrationType" minOccurs="0" maxOccurs="unbounded"/>
261
+ </xs:sequence>
262
+ </xs:complexType>
263
+ <xs:complexType name="TradePaymentDiscountTermsType">
264
+ <xs:sequence>
265
+ <xs:element name="BasisDateTime" type="udt:DateTimeType" minOccurs="0"/>
266
+ <xs:element name="BasisPeriodMeasure" type="udt:MeasureType" minOccurs="0"/>
267
+ <xs:element name="BasisAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
268
+ <xs:element name="CalculationPercent" type="udt:PercentType" minOccurs="0"/>
269
+ <xs:element name="ActualDiscountAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
270
+ </xs:sequence>
271
+ </xs:complexType>
272
+ <xs:complexType name="TradePaymentPenaltyTermsType">
273
+ <xs:sequence>
274
+ <xs:element name="BasisDateTime" type="udt:DateTimeType" minOccurs="0"/>
275
+ <xs:element name="BasisPeriodMeasure" type="udt:MeasureType" minOccurs="0"/>
276
+ <xs:element name="BasisAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
277
+ <xs:element name="CalculationPercent" type="udt:PercentType" minOccurs="0"/>
278
+ <xs:element name="ActualPenaltyAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
279
+ </xs:sequence>
280
+ </xs:complexType>
281
+ <xs:complexType name="TradePaymentTermsType">
282
+ <xs:sequence>
283
+ <xs:element name="Description" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
284
+ <xs:element name="DueDateDateTime" type="udt:DateTimeType" minOccurs="0"/>
285
+ <xs:element name="PartialPaymentAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
286
+ <xs:element name="ApplicableTradePaymentPenaltyTerms" type="ram:TradePaymentPenaltyTermsType" minOccurs="0" maxOccurs="unbounded"/>
287
+ <xs:element name="ApplicableTradePaymentDiscountTerms" type="ram:TradePaymentDiscountTermsType" minOccurs="0" maxOccurs="unbounded"/>
288
+ </xs:sequence>
289
+ </xs:complexType>
290
+ <xs:complexType name="TradePriceType">
291
+ <xs:sequence>
292
+ <xs:element name="ChargeAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
293
+ <xs:element name="BasisQuantity" type="udt:QuantityType" minOccurs="0"/>
294
+ <xs:element name="AppliedTradeAllowanceCharge" type="ram:TradeAllowanceChargeType" minOccurs="0" maxOccurs="unbounded"/>
295
+ </xs:sequence>
296
+ </xs:complexType>
297
+ <xs:complexType name="TradeProductType">
298
+ <xs:sequence>
299
+ <xs:element name="GlobalID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
300
+ <xs:element name="SellerAssignedID" type="udt:IDType" minOccurs="0"/>
301
+ <xs:element name="BuyerAssignedID" type="udt:IDType" minOccurs="0"/>
302
+ <xs:element name="Name" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
303
+ <xs:element name="Description" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
304
+ <xs:element name="ApplicableProductCharacteristic" type="ram:ProductCharacteristicType" minOccurs="0" maxOccurs="unbounded"/>
305
+ <xs:element name="DesignatedProductClassification" type="ram:ProductClassificationType" minOccurs="0" maxOccurs="unbounded"/>
306
+ <xs:element name="OriginTradeCountry" type="ram:TradeCountryType" minOccurs="0" maxOccurs="unbounded"/>
307
+ <xs:element name="IncludedReferencedProduct" type="ram:ReferencedProductType" minOccurs="0" maxOccurs="unbounded"/>
308
+ </xs:sequence>
309
+ </xs:complexType>
310
+ <xs:complexType name="TradeSettlementMonetarySummationType">
311
+ <xs:sequence>
312
+ <xs:element name="LineTotalAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
313
+ <xs:element name="ChargeTotalAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
314
+ <xs:element name="AllowanceTotalAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
315
+ <xs:element name="TaxBasisTotalAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
316
+ <xs:element name="TaxTotalAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
317
+ <xs:element name="GrandTotalAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
318
+ <xs:element name="TotalPrepaidAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
319
+ <xs:element name="TotalAllowanceChargeAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
320
+ <xs:element name="DuePayableAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
321
+ </xs:sequence>
322
+ </xs:complexType>
323
+ <xs:complexType name="TradeSettlementPaymentMeansType">
324
+ <xs:sequence>
325
+ <xs:element name="TypeCode" type="qdt:PaymentMeansCodeType" minOccurs="0"/>
326
+ <xs:element name="Information" type="udt:TextType" minOccurs="0" maxOccurs="unbounded"/>
327
+ <xs:element name="ID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
328
+ <xs:element name="PayerPartyDebtorFinancialAccount" type="ram:DebtorFinancialAccountType" minOccurs="0"/>
329
+ <xs:element name="PayeePartyCreditorFinancialAccount" type="ram:CreditorFinancialAccountType" minOccurs="0"/>
330
+ <xs:element name="PayerSpecifiedDebtorFinancialInstitution" type="ram:DebtorFinancialInstitutionType" minOccurs="0"/>
331
+ <xs:element name="PayeeSpecifiedCreditorFinancialInstitution" type="ram:CreditorFinancialInstitutionType" minOccurs="0"/>
332
+ </xs:sequence>
333
+ </xs:complexType>
334
+ <xs:complexType name="TradeTaxType">
335
+ <xs:sequence>
336
+ <xs:element name="CalculatedAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
337
+ <xs:element name="TypeCode" type="qdt:TaxTypeCodeType" minOccurs="0"/>
338
+ <xs:element name="ExemptionReason" type="udt:TextType" minOccurs="0"/>
339
+ <xs:element name="BasisAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
340
+ <xs:element name="LineTotalBasisAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
341
+ <xs:element name="AllowanceChargeBasisAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded"/>
342
+ <xs:element name="CategoryCode" type="qdt:TaxCategoryCodeType" minOccurs="0"/>
343
+ <xs:element name="ApplicablePercent" type="udt:PercentType" minOccurs="0"/>
344
+ </xs:sequence>
345
+ </xs:complexType>
346
+ <xs:complexType name="UniversalCommunicationType">
347
+ <xs:sequence>
348
+ <xs:element name="URIID" type="udt:IDType" minOccurs="0"/>
349
+ <xs:element name="CompleteNumber" type="udt:TextType" minOccurs="0"/>
350
+ </xs:sequence>
351
+ </xs:complexType>
352
+ </xs:schema>
@@ -0,0 +1,95 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:15"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ targetNamespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:15"
5
+ elementFormDefault="qualified"
6
+ version="15.0">
7
+ <xs:complexType name="AmountType">
8
+ <xs:simpleContent>
9
+ <xs:extension base="xs:decimal">
10
+ <xs:attribute name="currencyID" type="udt:AmountTypeCurrencyIDContentType"/>
11
+ </xs:extension>
12
+ </xs:simpleContent>
13
+ </xs:complexType>
14
+ <xs:simpleType name="AmountTypeCurrencyIDContentType">
15
+ <xs:restriction base="xs:token"/>
16
+ </xs:simpleType>
17
+ <xs:complexType name="CodeType">
18
+ <xs:simpleContent>
19
+ <xs:extension base="xs:token">
20
+ <xs:attribute name="listID" type="xs:token"/>
21
+ <xs:attribute name="listVersionID" type="xs:token"/>
22
+ </xs:extension>
23
+ </xs:simpleContent>
24
+ </xs:complexType>
25
+ <xs:complexType name="DateTimeType">
26
+ <xs:choice>
27
+ <xs:element name="DateTimeString">
28
+ <xs:complexType>
29
+ <xs:simpleContent>
30
+ <xs:extension base="xs:string">
31
+ <xs:attribute name="format" type="xs:string"/>
32
+ </xs:extension>
33
+ </xs:simpleContent>
34
+ </xs:complexType>
35
+ </xs:element>
36
+ </xs:choice>
37
+ </xs:complexType>
38
+ <xs:complexType name="IDType">
39
+ <xs:simpleContent>
40
+ <xs:extension base="xs:token">
41
+ <xs:attribute name="schemeID" type="xs:token"/>
42
+ <xs:attribute name="schemeAgencyID" type="udt:IDTypeSchemeAgencyIDContentType"/>
43
+ </xs:extension>
44
+ </xs:simpleContent>
45
+ </xs:complexType>
46
+ <xs:simpleType name="IDTypeSchemeAgencyIDContentType">
47
+ <xs:restriction base="xs:token"/>
48
+ </xs:simpleType>
49
+ <xs:complexType name="IndicatorType">
50
+ <xs:choice>
51
+ <xs:element name="Indicator" type="xs:boolean"/>
52
+ </xs:choice>
53
+ </xs:complexType>
54
+ <xs:complexType name="MeasureType">
55
+ <xs:simpleContent>
56
+ <xs:extension base="xs:decimal">
57
+ <xs:attribute name="unitCode" type="udt:MeasureTypeUnitCodeContentType"/>
58
+ </xs:extension>
59
+ </xs:simpleContent>
60
+ </xs:complexType>
61
+ <xs:simpleType name="MeasureTypeUnitCodeContentType">
62
+ <xs:restriction base="xs:token">
63
+ <xs:minLength value="1"/>
64
+ <xs:maxLength value="3"/>
65
+ </xs:restriction>
66
+ </xs:simpleType>
67
+ <xs:complexType name="NumericType">
68
+ <xs:simpleContent>
69
+ <xs:extension base="xs:decimal"/>
70
+ </xs:simpleContent>
71
+ </xs:complexType>
72
+ <xs:complexType name="PercentType">
73
+ <xs:simpleContent>
74
+ <xs:extension base="xs:decimal"/>
75
+ </xs:simpleContent>
76
+ </xs:complexType>
77
+ <xs:complexType name="QuantityType">
78
+ <xs:simpleContent>
79
+ <xs:extension base="xs:decimal">
80
+ <xs:attribute name="unitCode" type="udt:QuantityTypeUnitCodeContentType"/>
81
+ </xs:extension>
82
+ </xs:simpleContent>
83
+ </xs:complexType>
84
+ <xs:simpleType name="QuantityTypeUnitCodeContentType">
85
+ <xs:restriction base="xs:token">
86
+ <xs:minLength value="1"/>
87
+ <xs:maxLength value="3"/>
88
+ </xs:restriction>
89
+ </xs:simpleType>
90
+ <xs:complexType name="TextType">
91
+ <xs:simpleContent>
92
+ <xs:extension base="xs:string"/>
93
+ </xs:simpleContent>
94
+ </xs:complexType>
95
+ </xs:schema>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secretariat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Krutisch
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2024-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -25,25 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.10'
27
27
  - !ruby/object:Gem::Dependency
28
- name: schematron-nokogiri
28
+ name: bigdecimal
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.0'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 0.0.3
33
+ version: '3.1'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: '0.0'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 0.0.3
40
+ version: '3.1'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: minitest
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +73,7 @@ extensions: []
79
73
  extra_rdoc_files: []
80
74
  files:
81
75
  - README.md
76
+ - bin/schxslt-cli.jar
82
77
  - lib/secretariat.rb
83
78
  - lib/secretariat/constants.rb
84
79
  - lib/secretariat/helpers.rb
@@ -89,11 +84,22 @@ files:
89
84
  - lib/secretariat/validator.rb
90
85
  - lib/secretariat/version.rb
91
86
  - lib/secretariat/versioner.rb
92
- homepage: https://github.com/halfbyte/secretariat
87
+ - schemas/factur-x_1.0.0.7/Factur-X_1.0.07_EN16931.sch
88
+ - schemas/factur-x_1.0.0.7/Factur-X_1.0.07_EN16931.xsd
89
+ - schemas/factur-x_1.0.0.7/Factur-X_1.0.07_EN16931_codedb.xml
90
+ - schemas/factur-x_1.0.0.7/Factur-X_1.0.07_EN16931_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd
91
+ - schemas/factur-x_1.0.0.7/Factur-X_1.0.07_EN16931_urn_un_unece_uncefact_data_standard_RABIE_100.xsd
92
+ - schemas/factur-x_1.0.0.7/Factur-X_1.0.07_EN16931_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd
93
+ - schemas/zugferd_1/ZUGFeRD1p0.sch
94
+ - schemas/zugferd_1/ZUGFeRD1p0.xsd
95
+ - schemas/zugferd_1/ZUGFeRD1p0_urn_un_unece_uncefact_data_standard_QualifiedDataType_12.xsd
96
+ - schemas/zugferd_1/ZUGFeRD1p0_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_12.xsd
97
+ - schemas/zugferd_1/ZUGFeRD1p0_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_15.xsd
98
+ homepage: https://github.com/halfbyte/ruby-secretariat
93
99
  licenses:
94
100
  - Apache-2.0
95
101
  metadata: {}
96
- post_install_message:
102
+ post_install_message:
97
103
  rdoc_options: []
98
104
  require_paths:
99
105
  - lib
@@ -107,9 +113,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
113
  - - ">="
108
114
  - !ruby/object:Gem::Version
109
115
  version: '0'
110
- requirements: []
111
- rubygems_version: 3.0.3
112
- signing_key:
116
+ requirements:
117
+ - To run the validator, Java must be installed
118
+ rubygems_version: 3.5.16
119
+ signing_key:
113
120
  specification_version: 4
114
121
  summary: A ZUGFeRD xml generator
115
122
  test_files: []