secretariat 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +22 -0
- data/lib/secretariat.rb +23 -0
- data/lib/secretariat/constants.rb +56 -0
- data/lib/secretariat/invoice.rb +168 -0
- data/lib/secretariat/line_item.rb +115 -0
- data/lib/secretariat/trade_party.rb +44 -0
- data/lib/secretariat/validation_error.rb +25 -0
- data/lib/secretariat/validator.rb +50 -0
- data/lib/secretariat/version.rb +19 -0
- data/schemas/zf_en16931.sch +9581 -0
- data/schemas/zf_en16931.xsd +20 -0
- data/schemas/zf_en16931_codedb.xml +4971 -0
- data/schemas/zf_en16931_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd +1649 -0
- data/schemas/zf_en16931_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd +318 -0
- data/schemas/zf_en16931_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd +85 -0
- metadata +119 -0
@@ -0,0 +1,318 @@
|
|
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="zugferd2p0_en16931_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd"/>
|
9
|
+
<xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" schemaLocation="zugferd2p0_en16931_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="AccountName" type="udt:TextType" minOccurs="0"/>
|
14
|
+
<xs:element name="ProprietaryID" type="udt:IDType" minOccurs="0"/>
|
15
|
+
</xs:sequence>
|
16
|
+
</xs:complexType>
|
17
|
+
<xs:complexType name="CreditorFinancialInstitutionType">
|
18
|
+
<xs:sequence>
|
19
|
+
<xs:element name="BICID" type="udt:IDType"/>
|
20
|
+
</xs:sequence>
|
21
|
+
</xs:complexType>
|
22
|
+
<xs:complexType name="DebtorFinancialAccountType">
|
23
|
+
<xs:sequence>
|
24
|
+
<xs:element name="IBANID" type="udt:IDType"/>
|
25
|
+
</xs:sequence>
|
26
|
+
</xs:complexType>
|
27
|
+
<xs:complexType name="DocumentContextParameterType">
|
28
|
+
<xs:sequence>
|
29
|
+
<xs:element name="ID" type="udt:IDType" minOccurs="0"/>
|
30
|
+
</xs:sequence>
|
31
|
+
</xs:complexType>
|
32
|
+
<xs:complexType name="DocumentLineDocumentType">
|
33
|
+
<xs:sequence>
|
34
|
+
<xs:element name="LineID" type="udt:IDType"/>
|
35
|
+
<xs:element name="IncludedNote" type="ram:NoteType" minOccurs="0"/>
|
36
|
+
</xs:sequence>
|
37
|
+
</xs:complexType>
|
38
|
+
<xs:complexType name="ExchangedDocumentContextType">
|
39
|
+
<xs:sequence>
|
40
|
+
<xs:element name="BusinessProcessSpecifiedDocumentContextParameter" type="ram:DocumentContextParameterType" minOccurs="0"/>
|
41
|
+
<xs:element name="GuidelineSpecifiedDocumentContextParameter" type="ram:DocumentContextParameterType"/>
|
42
|
+
</xs:sequence>
|
43
|
+
</xs:complexType>
|
44
|
+
<xs:complexType name="ExchangedDocumentType">
|
45
|
+
<xs:sequence>
|
46
|
+
<xs:element name="ID" type="udt:IDType"/>
|
47
|
+
<xs:element name="TypeCode" type="qdt:DocumentCodeType"/>
|
48
|
+
<xs:element name="IssueDateTime" type="udt:DateTimeType"/>
|
49
|
+
<xs:element name="IncludedNote" type="ram:NoteType" minOccurs="0" maxOccurs="unbounded"/>
|
50
|
+
</xs:sequence>
|
51
|
+
</xs:complexType>
|
52
|
+
<xs:complexType name="HeaderTradeAgreementType">
|
53
|
+
<xs:sequence>
|
54
|
+
<xs:element name="BuyerReference" type="udt:TextType" minOccurs="0"/>
|
55
|
+
<xs:element name="SellerTradeParty" type="ram:TradePartyType"/>
|
56
|
+
<xs:element name="BuyerTradeParty" type="ram:TradePartyType"/>
|
57
|
+
<xs:element name="SellerTaxRepresentativeTradeParty" type="ram:TradePartyType" minOccurs="0"/>
|
58
|
+
<xs:element name="SellerOrderReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
|
59
|
+
<xs:element name="BuyerOrderReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
|
60
|
+
<xs:element name="ContractReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
|
61
|
+
<xs:element name="AdditionalReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0" maxOccurs="unbounded"/>
|
62
|
+
<xs:element name="SpecifiedProcuringProject" type="ram:ProcuringProjectType" minOccurs="0"/>
|
63
|
+
</xs:sequence>
|
64
|
+
</xs:complexType>
|
65
|
+
<xs:complexType name="HeaderTradeDeliveryType">
|
66
|
+
<xs:sequence>
|
67
|
+
<xs:element name="ShipToTradeParty" type="ram:TradePartyType" minOccurs="0"/>
|
68
|
+
<xs:element name="ActualDeliverySupplyChainEvent" type="ram:SupplyChainEventType" minOccurs="0"/>
|
69
|
+
<xs:element name="DespatchAdviceReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
|
70
|
+
<xs:element name="ReceivingAdviceReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
|
71
|
+
</xs:sequence>
|
72
|
+
</xs:complexType>
|
73
|
+
<xs:complexType name="HeaderTradeSettlementType">
|
74
|
+
<xs:sequence>
|
75
|
+
<xs:element name="CreditorReferenceID" type="udt:IDType" minOccurs="0"/>
|
76
|
+
<xs:element name="PaymentReference" type="udt:TextType" minOccurs="0"/>
|
77
|
+
<xs:element name="TaxCurrencyCode" type="qdt:CurrencyCodeType" minOccurs="0"/>
|
78
|
+
<xs:element name="InvoiceCurrencyCode" type="qdt:CurrencyCodeType"/>
|
79
|
+
<xs:element name="PayeeTradeParty" type="ram:TradePartyType" minOccurs="0"/>
|
80
|
+
<xs:element name="SpecifiedTradeSettlementPaymentMeans" type="ram:TradeSettlementPaymentMeansType" minOccurs="0" maxOccurs="unbounded"/>
|
81
|
+
<xs:element name="ApplicableTradeTax" type="ram:TradeTaxType" maxOccurs="unbounded"/>
|
82
|
+
<xs:element name="BillingSpecifiedPeriod" type="ram:SpecifiedPeriodType" minOccurs="0"/>
|
83
|
+
<xs:element name="SpecifiedTradeAllowanceCharge" type="ram:TradeAllowanceChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
84
|
+
<xs:element name="SpecifiedTradePaymentTerms" type="ram:TradePaymentTermsType" minOccurs="0"/>
|
85
|
+
<xs:element name="SpecifiedTradeSettlementHeaderMonetarySummation" type="ram:TradeSettlementHeaderMonetarySummationType"/>
|
86
|
+
<xs:element name="InvoiceReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
|
87
|
+
<xs:element name="ReceivableSpecifiedTradeAccountingAccount" type="ram:TradeAccountingAccountType" minOccurs="0"/>
|
88
|
+
</xs:sequence>
|
89
|
+
</xs:complexType>
|
90
|
+
<xs:complexType name="LegalOrganizationType">
|
91
|
+
<xs:sequence>
|
92
|
+
<xs:element name="ID" type="udt:IDType" minOccurs="0"/>
|
93
|
+
<xs:element name="TradingBusinessName" type="udt:TextType" minOccurs="0"/>
|
94
|
+
</xs:sequence>
|
95
|
+
</xs:complexType>
|
96
|
+
<xs:complexType name="LineTradeAgreementType">
|
97
|
+
<xs:sequence>
|
98
|
+
<xs:element name="BuyerOrderReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
|
99
|
+
<xs:element name="GrossPriceProductTradePrice" type="ram:TradePriceType" minOccurs="0"/>
|
100
|
+
<xs:element name="NetPriceProductTradePrice" type="ram:TradePriceType"/>
|
101
|
+
</xs:sequence>
|
102
|
+
</xs:complexType>
|
103
|
+
<xs:complexType name="LineTradeDeliveryType">
|
104
|
+
<xs:sequence>
|
105
|
+
<xs:element name="BilledQuantity" type="udt:QuantityType"/>
|
106
|
+
</xs:sequence>
|
107
|
+
</xs:complexType>
|
108
|
+
<xs:complexType name="LineTradeSettlementType">
|
109
|
+
<xs:sequence>
|
110
|
+
<xs:element name="ApplicableTradeTax" type="ram:TradeTaxType"/>
|
111
|
+
<xs:element name="BillingSpecifiedPeriod" type="ram:SpecifiedPeriodType" minOccurs="0"/>
|
112
|
+
<xs:element name="SpecifiedTradeAllowanceCharge" type="ram:TradeAllowanceChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
113
|
+
<xs:element name="SpecifiedTradeSettlementLineMonetarySummation" type="ram:TradeSettlementLineMonetarySummationType"/>
|
114
|
+
<xs:element name="AdditionalReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
|
115
|
+
<xs:element name="ReceivableSpecifiedTradeAccountingAccount" type="ram:TradeAccountingAccountType" minOccurs="0"/>
|
116
|
+
</xs:sequence>
|
117
|
+
</xs:complexType>
|
118
|
+
<xs:complexType name="NoteType">
|
119
|
+
<xs:sequence>
|
120
|
+
<xs:element name="Content" type="udt:TextType"/>
|
121
|
+
<xs:element name="SubjectCode" type="udt:CodeType" minOccurs="0"/>
|
122
|
+
</xs:sequence>
|
123
|
+
</xs:complexType>
|
124
|
+
<xs:complexType name="ProcuringProjectType">
|
125
|
+
<xs:sequence>
|
126
|
+
<xs:element name="ID" type="udt:IDType"/>
|
127
|
+
<xs:element name="Name" type="udt:TextType"/>
|
128
|
+
</xs:sequence>
|
129
|
+
</xs:complexType>
|
130
|
+
<xs:complexType name="ProductCharacteristicType">
|
131
|
+
<xs:sequence>
|
132
|
+
<xs:element name="Description" type="udt:TextType"/>
|
133
|
+
<xs:element name="Value" type="udt:TextType"/>
|
134
|
+
</xs:sequence>
|
135
|
+
</xs:complexType>
|
136
|
+
<xs:complexType name="ProductClassificationType">
|
137
|
+
<xs:sequence>
|
138
|
+
<xs:element name="ClassCode" type="udt:CodeType"/>
|
139
|
+
</xs:sequence>
|
140
|
+
</xs:complexType>
|
141
|
+
<xs:complexType name="ReferencedDocumentType">
|
142
|
+
<xs:sequence>
|
143
|
+
<xs:element name="IssuerAssignedID" type="udt:IDType" minOccurs="0"/>
|
144
|
+
<xs:element name="URIID" type="udt:IDType" minOccurs="0"/>
|
145
|
+
<xs:element name="LineID" type="udt:IDType" minOccurs="0"/>
|
146
|
+
<xs:element name="TypeCode" type="qdt:DocumentCodeType" minOccurs="0"/>
|
147
|
+
<xs:element name="Name" type="udt:TextType" minOccurs="0"/>
|
148
|
+
<xs:element name="AttachmentBinaryObject" type="udt:BinaryObjectType" minOccurs="0"/>
|
149
|
+
<xs:element name="ReferenceTypeCode" type="qdt:ReferenceCodeType" minOccurs="0"/>
|
150
|
+
<xs:element name="FormattedIssueDateTime" type="qdt:FormattedDateTimeType" minOccurs="0"/>
|
151
|
+
</xs:sequence>
|
152
|
+
</xs:complexType>
|
153
|
+
<xs:complexType name="SpecifiedPeriodType">
|
154
|
+
<xs:sequence>
|
155
|
+
<xs:element name="StartDateTime" type="udt:DateTimeType" minOccurs="0"/>
|
156
|
+
<xs:element name="EndDateTime" type="udt:DateTimeType" minOccurs="0"/>
|
157
|
+
</xs:sequence>
|
158
|
+
</xs:complexType>
|
159
|
+
<xs:complexType name="SupplyChainEventType">
|
160
|
+
<xs:sequence>
|
161
|
+
<xs:element name="OccurrenceDateTime" type="udt:DateTimeType" minOccurs="0"/>
|
162
|
+
</xs:sequence>
|
163
|
+
</xs:complexType>
|
164
|
+
<xs:complexType name="SupplyChainTradeLineItemType">
|
165
|
+
<xs:sequence>
|
166
|
+
<xs:element name="AssociatedDocumentLineDocument" type="ram:DocumentLineDocumentType"/>
|
167
|
+
<xs:element name="SpecifiedTradeProduct" type="ram:TradeProductType"/>
|
168
|
+
<xs:element name="SpecifiedLineTradeAgreement" type="ram:LineTradeAgreementType"/>
|
169
|
+
<xs:element name="SpecifiedLineTradeDelivery" type="ram:LineTradeDeliveryType" minOccurs="0"/>
|
170
|
+
<xs:element name="SpecifiedLineTradeSettlement" type="ram:LineTradeSettlementType"/>
|
171
|
+
</xs:sequence>
|
172
|
+
</xs:complexType>
|
173
|
+
<xs:complexType name="SupplyChainTradeTransactionType">
|
174
|
+
<xs:sequence>
|
175
|
+
<xs:element name="IncludedSupplyChainTradeLineItem" type="ram:SupplyChainTradeLineItemType" maxOccurs="unbounded"/>
|
176
|
+
<xs:element name="ApplicableHeaderTradeAgreement" type="ram:HeaderTradeAgreementType"/>
|
177
|
+
<xs:element name="ApplicableHeaderTradeDelivery" type="ram:HeaderTradeDeliveryType"/>
|
178
|
+
<xs:element name="ApplicableHeaderTradeSettlement" type="ram:HeaderTradeSettlementType"/>
|
179
|
+
</xs:sequence>
|
180
|
+
</xs:complexType>
|
181
|
+
<xs:complexType name="TaxRegistrationType">
|
182
|
+
<xs:sequence>
|
183
|
+
<xs:element name="ID" type="udt:IDType"/>
|
184
|
+
</xs:sequence>
|
185
|
+
</xs:complexType>
|
186
|
+
<xs:complexType name="TradeAccountingAccountType">
|
187
|
+
<xs:sequence>
|
188
|
+
<xs:element name="ID" type="udt:IDType"/>
|
189
|
+
</xs:sequence>
|
190
|
+
</xs:complexType>
|
191
|
+
<xs:complexType name="TradeAddressType">
|
192
|
+
<xs:sequence>
|
193
|
+
<xs:element name="PostcodeCode" type="udt:CodeType" minOccurs="0"/>
|
194
|
+
<xs:element name="LineOne" type="udt:TextType" minOccurs="0"/>
|
195
|
+
<xs:element name="LineTwo" type="udt:TextType" minOccurs="0"/>
|
196
|
+
<xs:element name="LineThree" type="udt:TextType" minOccurs="0"/>
|
197
|
+
<xs:element name="CityName" type="udt:TextType" minOccurs="0"/>
|
198
|
+
<xs:element name="CountryID" type="qdt:CountryIDType"/>
|
199
|
+
<xs:element name="CountrySubDivisionName" type="udt:TextType" minOccurs="0"/>
|
200
|
+
</xs:sequence>
|
201
|
+
</xs:complexType>
|
202
|
+
<xs:complexType name="TradeAllowanceChargeType">
|
203
|
+
<xs:sequence>
|
204
|
+
<xs:element name="ChargeIndicator" type="udt:IndicatorType" minOccurs="0"/>
|
205
|
+
<xs:element name="CalculationPercent" type="udt:PercentType" minOccurs="0"/>
|
206
|
+
<xs:element name="BasisAmount" type="udt:AmountType" minOccurs="0"/>
|
207
|
+
<xs:element name="ActualAmount" type="udt:AmountType"/>
|
208
|
+
<xs:element name="ReasonCode" type="qdt:AllowanceChargeReasonCodeType" minOccurs="0"/>
|
209
|
+
<xs:element name="Reason" type="udt:TextType" minOccurs="0"/>
|
210
|
+
<xs:element name="CategoryTradeTax" type="ram:TradeTaxType" minOccurs="0"/>
|
211
|
+
</xs:sequence>
|
212
|
+
</xs:complexType>
|
213
|
+
<xs:complexType name="TradeContactType">
|
214
|
+
<xs:sequence>
|
215
|
+
<xs:element name="PersonName" type="udt:TextType" minOccurs="0"/>
|
216
|
+
<xs:element name="DepartmentName" type="udt:TextType" minOccurs="0"/>
|
217
|
+
<xs:element name="TelephoneUniversalCommunication" type="ram:UniversalCommunicationType" minOccurs="0"/>
|
218
|
+
<xs:element name="EmailURIUniversalCommunication" type="ram:UniversalCommunicationType" minOccurs="0"/>
|
219
|
+
</xs:sequence>
|
220
|
+
</xs:complexType>
|
221
|
+
<xs:complexType name="TradeCountryType">
|
222
|
+
<xs:sequence>
|
223
|
+
<xs:element name="ID" type="qdt:CountryIDType"/>
|
224
|
+
</xs:sequence>
|
225
|
+
</xs:complexType>
|
226
|
+
<xs:complexType name="TradePartyType">
|
227
|
+
<xs:sequence>
|
228
|
+
<xs:element name="ID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
|
229
|
+
<xs:element name="GlobalID" type="udt:IDType" minOccurs="0" maxOccurs="unbounded"/>
|
230
|
+
<xs:element name="Name" type="udt:TextType" minOccurs="0"/>
|
231
|
+
<xs:element name="Description" type="udt:TextType" minOccurs="0"/>
|
232
|
+
<xs:element name="SpecifiedLegalOrganization" type="ram:LegalOrganizationType" minOccurs="0"/>
|
233
|
+
<xs:element name="DefinedTradeContact" type="ram:TradeContactType" minOccurs="0"/>
|
234
|
+
<xs:element name="PostalTradeAddress" type="ram:TradeAddressType" minOccurs="0"/>
|
235
|
+
<xs:element name="URIUniversalCommunication" type="ram:UniversalCommunicationType" minOccurs="0"/>
|
236
|
+
<xs:element name="SpecifiedTaxRegistration" type="ram:TaxRegistrationType" minOccurs="0" maxOccurs="unbounded"/>
|
237
|
+
</xs:sequence>
|
238
|
+
</xs:complexType>
|
239
|
+
<xs:complexType name="TradePaymentTermsType">
|
240
|
+
<xs:sequence>
|
241
|
+
<xs:element name="Description" type="udt:TextType" minOccurs="0"/>
|
242
|
+
<xs:element name="DueDateDateTime" type="udt:DateTimeType" minOccurs="0"/>
|
243
|
+
<xs:element name="DirectDebitMandateID" type="udt:IDType" minOccurs="0"/>
|
244
|
+
</xs:sequence>
|
245
|
+
</xs:complexType>
|
246
|
+
<xs:complexType name="TradePriceType">
|
247
|
+
<xs:sequence>
|
248
|
+
<xs:element name="ChargeAmount" type="udt:AmountType"/>
|
249
|
+
<xs:element name="BasisQuantity" type="udt:QuantityType" minOccurs="0"/>
|
250
|
+
<xs:element name="AppliedTradeAllowanceCharge" type="ram:TradeAllowanceChargeType" minOccurs="0"/>
|
251
|
+
</xs:sequence>
|
252
|
+
</xs:complexType>
|
253
|
+
<xs:complexType name="TradeProductType">
|
254
|
+
<xs:sequence>
|
255
|
+
<xs:element name="GlobalID" type="udt:IDType" minOccurs="0"/>
|
256
|
+
<xs:element name="SellerAssignedID" type="udt:IDType" minOccurs="0"/>
|
257
|
+
<xs:element name="BuyerAssignedID" type="udt:IDType" minOccurs="0"/>
|
258
|
+
<xs:element name="Name" type="udt:TextType"/>
|
259
|
+
<xs:element name="Description" type="udt:TextType" minOccurs="0"/>
|
260
|
+
<xs:element name="ApplicableProductCharacteristic" type="ram:ProductCharacteristicType" minOccurs="0" maxOccurs="unbounded"/>
|
261
|
+
<xs:element name="DesignatedProductClassification" type="ram:ProductClassificationType" minOccurs="0" maxOccurs="unbounded"/>
|
262
|
+
<xs:element name="OriginTradeCountry" type="ram:TradeCountryType" minOccurs="0"/>
|
263
|
+
</xs:sequence>
|
264
|
+
</xs:complexType>
|
265
|
+
<xs:complexType name="TradeSettlementFinancialCardType">
|
266
|
+
<xs:sequence>
|
267
|
+
<xs:element name="ID" type="udt:IDType"/>
|
268
|
+
<xs:element name="CardholderName" type="udt:TextType" minOccurs="0"/>
|
269
|
+
</xs:sequence>
|
270
|
+
</xs:complexType>
|
271
|
+
<xs:complexType name="TradeSettlementHeaderMonetarySummationType">
|
272
|
+
<xs:sequence>
|
273
|
+
<xs:element name="LineTotalAmount" type="udt:AmountType"/>
|
274
|
+
<xs:element name="ChargeTotalAmount" type="udt:AmountType" minOccurs="0"/>
|
275
|
+
<xs:element name="AllowanceTotalAmount" type="udt:AmountType" minOccurs="0"/>
|
276
|
+
<xs:element name="TaxBasisTotalAmount" type="udt:AmountType"/>
|
277
|
+
<xs:element name="TaxTotalAmount" type="udt:AmountType"/>
|
278
|
+
<xs:element name="RoundingAmount" type="udt:AmountType" minOccurs="0"/>
|
279
|
+
<xs:element name="GrandTotalAmount" type="udt:AmountType"/>
|
280
|
+
<xs:element name="TotalPrepaidAmount" type="udt:AmountType" minOccurs="0"/>
|
281
|
+
<xs:element name="DuePayableAmount" type="udt:AmountType"/>
|
282
|
+
</xs:sequence>
|
283
|
+
</xs:complexType>
|
284
|
+
<xs:complexType name="TradeSettlementLineMonetarySummationType">
|
285
|
+
<xs:sequence>
|
286
|
+
<xs:element name="LineTotalAmount" type="udt:AmountType"/>
|
287
|
+
</xs:sequence>
|
288
|
+
</xs:complexType>
|
289
|
+
<xs:complexType name="TradeSettlementPaymentMeansType">
|
290
|
+
<xs:sequence>
|
291
|
+
<xs:element name="TypeCode" type="qdt:PaymentMeansCodeType"/>
|
292
|
+
<xs:element name="Information" type="udt:TextType" minOccurs="0"/>
|
293
|
+
<xs:element name="ApplicableTradeSettlementFinancialCard" type="ram:TradeSettlementFinancialCardType" minOccurs="0"/>
|
294
|
+
<xs:element name="PayerPartyDebtorFinancialAccount" type="ram:DebtorFinancialAccountType" minOccurs="0"/>
|
295
|
+
<xs:element name="PayeePartyCreditorFinancialAccount" type="ram:CreditorFinancialAccountType" minOccurs="0"/>
|
296
|
+
<xs:element name="PayeeSpecifiedCreditorFinancialInstitution" type="ram:CreditorFinancialInstitutionType" minOccurs="0"/>
|
297
|
+
</xs:sequence>
|
298
|
+
</xs:complexType>
|
299
|
+
<xs:complexType name="TradeTaxType">
|
300
|
+
<xs:sequence>
|
301
|
+
<xs:element name="CalculatedAmount" type="udt:AmountType" minOccurs="0"/>
|
302
|
+
<xs:element name="TypeCode" type="qdt:TaxTypeCodeType"/>
|
303
|
+
<xs:element name="ExemptionReason" type="udt:TextType" minOccurs="0"/>
|
304
|
+
<xs:element name="BasisAmount" type="udt:AmountType" minOccurs="0"/>
|
305
|
+
<xs:element name="CategoryCode" type="qdt:TaxCategoryCodeType"/>
|
306
|
+
<xs:element name="ExemptionReasonCode" type="udt:CodeType" minOccurs="0"/>
|
307
|
+
<xs:element name="TaxPointDate" type="udt:DateType" minOccurs="0"/>
|
308
|
+
<xs:element name="DueDateTypeCode" type="qdt:TimeReferenceCodeType" minOccurs="0"/>
|
309
|
+
<xs:element name="RateApplicablePercent" type="udt:PercentType" minOccurs="0"/>
|
310
|
+
</xs:sequence>
|
311
|
+
</xs:complexType>
|
312
|
+
<xs:complexType name="UniversalCommunicationType">
|
313
|
+
<xs:sequence>
|
314
|
+
<xs:element name="URIID" type="udt:IDType" minOccurs="0"/>
|
315
|
+
<xs:element name="CompleteNumber" type="udt:TextType" minOccurs="0"/>
|
316
|
+
</xs:sequence>
|
317
|
+
</xs:complexType>
|
318
|
+
</xs:schema>
|
@@ -0,0 +1,85 @@
|
|
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
|
+
version="100.D16B">
|
7
|
+
<xs:complexType name="AmountType">
|
8
|
+
<xs:simpleContent>
|
9
|
+
<xs:extension base="xs:decimal">
|
10
|
+
<xs:attribute name="currencyID" type="xs:token"/>
|
11
|
+
</xs:extension>
|
12
|
+
</xs:simpleContent>
|
13
|
+
</xs:complexType>
|
14
|
+
<xs:complexType name="BinaryObjectType">
|
15
|
+
<xs:simpleContent>
|
16
|
+
<xs:extension base="xs:base64Binary">
|
17
|
+
<xs:attribute name="mimeCode" type="xs:token"/>
|
18
|
+
<xs:attribute name="filename" type="xs:string"/>
|
19
|
+
</xs:extension>
|
20
|
+
</xs:simpleContent>
|
21
|
+
</xs:complexType>
|
22
|
+
<xs:complexType name="CodeType">
|
23
|
+
<xs:simpleContent>
|
24
|
+
<xs:extension base="xs:token">
|
25
|
+
<xs:attribute name="listID" type="xs:token"/>
|
26
|
+
<xs:attribute name="listVersionID" type="xs:token"/>
|
27
|
+
</xs:extension>
|
28
|
+
</xs:simpleContent>
|
29
|
+
</xs:complexType>
|
30
|
+
<xs:complexType name="DateTimeType">
|
31
|
+
<xs:choice>
|
32
|
+
<xs:element name="DateTimeString">
|
33
|
+
<xs:complexType>
|
34
|
+
<xs:simpleContent>
|
35
|
+
<xs:extension base="xs:string">
|
36
|
+
<xs:attribute name="format" type="xs:string"/>
|
37
|
+
</xs:extension>
|
38
|
+
</xs:simpleContent>
|
39
|
+
</xs:complexType>
|
40
|
+
</xs:element>
|
41
|
+
</xs:choice>
|
42
|
+
</xs:complexType>
|
43
|
+
<xs:complexType name="DateType">
|
44
|
+
<xs:choice>
|
45
|
+
<xs:element name="DateString">
|
46
|
+
<xs:complexType>
|
47
|
+
<xs:simpleContent>
|
48
|
+
<xs:extension base="xs:string">
|
49
|
+
<xs:attribute name="format" type="xs:string"/>
|
50
|
+
</xs:extension>
|
51
|
+
</xs:simpleContent>
|
52
|
+
</xs:complexType>
|
53
|
+
</xs:element>
|
54
|
+
</xs:choice>
|
55
|
+
</xs:complexType>
|
56
|
+
<xs:complexType name="IDType">
|
57
|
+
<xs:simpleContent>
|
58
|
+
<xs:extension base="xs:token">
|
59
|
+
<xs:attribute name="schemeID" type="xs:token"/>
|
60
|
+
</xs:extension>
|
61
|
+
</xs:simpleContent>
|
62
|
+
</xs:complexType>
|
63
|
+
<xs:complexType name="IndicatorType">
|
64
|
+
<xs:choice>
|
65
|
+
<xs:element name="Indicator" type="xs:boolean"/>
|
66
|
+
</xs:choice>
|
67
|
+
</xs:complexType>
|
68
|
+
<xs:complexType name="PercentType">
|
69
|
+
<xs:simpleContent>
|
70
|
+
<xs:extension base="xs:decimal"/>
|
71
|
+
</xs:simpleContent>
|
72
|
+
</xs:complexType>
|
73
|
+
<xs:complexType name="QuantityType">
|
74
|
+
<xs:simpleContent>
|
75
|
+
<xs:extension base="xs:decimal">
|
76
|
+
<xs:attribute name="unitCode" type="xs:token"/>
|
77
|
+
</xs:extension>
|
78
|
+
</xs:simpleContent>
|
79
|
+
</xs:complexType>
|
80
|
+
<xs:complexType name="TextType">
|
81
|
+
<xs:simpleContent>
|
82
|
+
<xs:extension base="xs:string"/>
|
83
|
+
</xs:simpleContent>
|
84
|
+
</xs:complexType>
|
85
|
+
</xs:schema>
|
metadata
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: secretariat
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jan Krutisch
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-12-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: schematron-nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.0'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 0.0.3
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.0'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.0.3
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: minitest
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '5.13'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '5.13'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '13.0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '13.0'
|
75
|
+
description: a tool to help generate and validate ZUGFeRD invoice xml files
|
76
|
+
email: jan@krutisch.de
|
77
|
+
executables: []
|
78
|
+
extensions: []
|
79
|
+
extra_rdoc_files: []
|
80
|
+
files:
|
81
|
+
- README.md
|
82
|
+
- lib/secretariat.rb
|
83
|
+
- lib/secretariat/constants.rb
|
84
|
+
- lib/secretariat/invoice.rb
|
85
|
+
- lib/secretariat/line_item.rb
|
86
|
+
- lib/secretariat/trade_party.rb
|
87
|
+
- lib/secretariat/validation_error.rb
|
88
|
+
- lib/secretariat/validator.rb
|
89
|
+
- lib/secretariat/version.rb
|
90
|
+
- schemas/zf_en16931.sch
|
91
|
+
- schemas/zf_en16931.xsd
|
92
|
+
- schemas/zf_en16931_codedb.xml
|
93
|
+
- schemas/zf_en16931_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd
|
94
|
+
- schemas/zf_en16931_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd
|
95
|
+
- schemas/zf_en16931_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd
|
96
|
+
homepage: https://github.com/halfbyte/secretariat
|
97
|
+
licenses:
|
98
|
+
- Apache-2.0
|
99
|
+
metadata: {}
|
100
|
+
post_install_message:
|
101
|
+
rdoc_options: []
|
102
|
+
require_paths:
|
103
|
+
- lib
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
requirements: []
|
115
|
+
rubygems_version: 3.0.3
|
116
|
+
signing_key:
|
117
|
+
specification_version: 4
|
118
|
+
summary: A ZUGFeRD xml generator
|
119
|
+
test_files: []
|