zatca 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/einvoicing-sdk/Apps/fatoora +12 -0
- data/einvoicing-sdk/Apps/fatoora.bat +16 -0
- data/einvoicing-sdk/Apps/global.json +1 -0
- data/einvoicing-sdk/Apps/jq.exe +0 -0
- data/einvoicing-sdk/Apps/zatca-einvoicing-sdk-238-R3.2.7.jar +0 -0
- data/einvoicing-sdk/Configuration/config.json +11 -0
- data/einvoicing-sdk/Configuration/defaults.json +11 -0
- data/einvoicing-sdk/Configuration/jq.exe +0 -0
- data/einvoicing-sdk/Configuration/usage.txt +16 -0
- data/einvoicing-sdk/Data/Certificates/cert.pem +1 -0
- data/einvoicing-sdk/Data/Certificates/ec-secp256k1-priv-key.pem +1 -0
- data/einvoicing-sdk/Data/Input/csr-config-example-AR-VAT-Group.properties +9 -0
- data/einvoicing-sdk/Data/Input/csr-config-example-AR.properties +9 -0
- data/einvoicing-sdk/Data/Input/csr-config-example-EN-VAT-group.properties +9 -0
- data/einvoicing-sdk/Data/Input/csr-config-example-EN.properties +9 -0
- data/einvoicing-sdk/Data/Input/csr-config-template.properties +9 -0
- data/einvoicing-sdk/Data/PIH/pih.txt +1 -0
- data/einvoicing-sdk/Data/Rules/schematrons/20210819_ZATCA_E-invoice_Validation_Rules.xsl +2844 -0
- data/einvoicing-sdk/Data/Rules/schematrons/CEN-EN16931-UBL.xsl +1973 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Simplified Debit Note.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Credit Note.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Debit Note.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Invoice.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Tax_Invoice_USD.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note.xml +300 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note_Error.xml +225 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note.xml +211 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note_Error.xml +226 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Out_Of_Scope_Simplified_Invoice.xml +207 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Simplified_Invoice_USD.xml +246 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice.xml +246 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice_Error.xml +228 -0
- data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note_Error.xml +224 -0
- data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note_Error.xml +226 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Exempt_Standard_Invoice.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Standard_Invoice_USD.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Zero_Rate_Standard_Invoice.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 1.xml +294 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 2.xml +432 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice.xml +222 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice_Error.xml +228 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/CCTS_CCT_SchemaModule-2.1.xsd +731 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonAggregateComponents-2.1.xsd +44365 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonBasicComponents-2.1.xsd +5389 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonExtensionComponents-2.1.xsd +223 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonSignatureComponents-2.1.xsd +101 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CoreComponentParameters-2.1.xsd +63 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-ExtensionContentDataType-2.1.xsd +89 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-QualifiedDataTypes-2.1.xsd +69 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureAggregateComponents-2.1.xsd +138 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureBasicComponents-2.1.xsd +78 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-UnqualifiedDataTypes-2.1.xsd +553 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv132-2.1.xsd +476 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv141-2.1.xsd +25 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-xmldsig-core-schema-2.1.xsd +330 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/maindoc/UBL-Invoice-2.1.xsd +1002 -0
- data/einvoicing-sdk/Dockerfile +26 -0
- data/einvoicing-sdk/LICENSE.txt +56 -0
- data/einvoicing-sdk/Lib/.Net/DLL/BouncyCastle.Crypto.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Core.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Text.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Util.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.XML.API.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.Runtime.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll.config +43 -0
- data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/System.Net.Http.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.xml +11759 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/3f204b7a-faba-42d8-8288-8b6fe516555c.vsidx +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/f95b6f91-c110-4b7a-bb49-3fc6bde85b13.vsidx +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/read.lock +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/v17/.suo +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/App.config +14 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/BouncyCastle.Crypto.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/CSRGeneratorOpenSSL.cs +58 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Core.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Text.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Util.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.XML.API.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.Runtime.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Program.cs +194 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Properties/AssemblyInfo.cs +36 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Readme.txt +8 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll.config +43 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.csproj +120 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe.config +20 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.sln +25 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/BouncyCastle.Crypto.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/certificate.txt +1 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/pih.txt +1 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/privateKey.txt +1 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Core.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Text.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Util.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.XML.API.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.Runtime.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll.config +43 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe.config +20 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/System.Net.Http.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.xml +11759 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs +4 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.AssemblyReference.cache +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CopyComplete +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CoreCompileInputs.cache +1 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.FileListAbsolute.txt +22 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.SuggestedBindingRedirects.cache +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.exe +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.xml +11759 -0
- data/einvoicing-sdk/Lib/.Net/Test/BouncyCastle.Crypto.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Core.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Text.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Util.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.XML.API.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.Runtime.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll.config +43 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe.config +20 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/saxon-he-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.xml +11759 -0
- data/einvoicing-sdk/README.md +15 -0
- data/einvoicing-sdk/Readme/readme.docx +0 -0
- data/einvoicing-sdk/Readme/readme.md +674 -0
- data/einvoicing-sdk/Readme/readme.pdf +0 -0
- data/einvoicing-sdk/Readme/~$readme.docx +0 -0
- data/einvoicing-sdk/docker-compose.yml +12 -0
- data/einvoicing-sdk/install.bat +74 -0
- data/einvoicing-sdk/install.sh +74 -0
- data/lib/zatca/client.rb +173 -0
- data/lib/zatca/hacks.rb +45 -0
- data/lib/zatca/hashing.rb +18 -0
- data/lib/zatca/qr_code_extractor.rb +31 -0
- data/lib/zatca/qr_code_generator.rb +9 -2
- data/lib/zatca/signing/certificate.rb +78 -0
- data/lib/zatca/signing/csr.rb +220 -0
- data/lib/zatca/signing/ecdsa.rb +59 -0
- data/lib/zatca/tag.rb +18 -8
- data/lib/zatca/tags.rb +5 -1
- data/lib/zatca/tags_schema.rb +5 -5
- data/lib/zatca/types.rb +7 -0
- data/lib/zatca/ubl/base_component.rb +142 -0
- data/lib/zatca/ubl/builder.rb +166 -0
- data/lib/zatca/ubl/common_aggregate_components/allowance_charge.rb +64 -0
- data/lib/zatca/ubl/common_aggregate_components/classified_tax_category.rb +25 -0
- data/lib/zatca/ubl/common_aggregate_components/delivery.rb +27 -0
- data/lib/zatca/ubl/common_aggregate_components/invoice_line.rb +63 -0
- data/lib/zatca/ubl/common_aggregate_components/item.rb +21 -0
- data/lib/zatca/ubl/common_aggregate_components/legal_monetary_total.rb +59 -0
- data/lib/zatca/ubl/common_aggregate_components/party.rb +28 -0
- data/lib/zatca/ubl/common_aggregate_components/party_identification.rb +25 -0
- data/lib/zatca/ubl/common_aggregate_components/party_legal_entity.rb +19 -0
- data/lib/zatca/ubl/common_aggregate_components/party_tax_scheme.rb +30 -0
- data/lib/zatca/ubl/common_aggregate_components/postal_address.rb +59 -0
- data/lib/zatca/ubl/common_aggregate_components/price.rb +20 -0
- data/lib/zatca/ubl/common_aggregate_components/tax_category.rb +56 -0
- data/lib/zatca/ubl/common_aggregate_components/tax_total.rb +58 -0
- data/lib/zatca/ubl/common_aggregate_components.rb +2 -0
- data/lib/zatca/ubl/invoice.rb +481 -0
- data/lib/zatca/ubl/invoice_subtype_builder.rb +50 -0
- data/lib/zatca/ubl/signing/cert.rb +48 -0
- data/lib/zatca/ubl/signing/invoice_signed_data_reference.rb +44 -0
- data/lib/zatca/ubl/signing/key_info.rb +25 -0
- data/lib/zatca/ubl/signing/object.rb +20 -0
- data/lib/zatca/ubl/signing/qualifying_properties.rb +27 -0
- data/lib/zatca/ubl/signing/signature.rb +50 -0
- data/lib/zatca/ubl/signing/signature_information.rb +19 -0
- data/lib/zatca/ubl/signing/signature_properties_reference.rb +26 -0
- data/lib/zatca/ubl/signing/signed_info.rb +21 -0
- data/lib/zatca/ubl/signing/signed_properties.rb +81 -0
- data/lib/zatca/ubl/signing/signed_signature_properties.rb +23 -0
- data/lib/zatca/ubl/signing/ubl_document_signatures.rb +25 -0
- data/lib/zatca/ubl/signing/ubl_extension.rb +22 -0
- data/lib/zatca/ubl/signing/ubl_extensions.rb +17 -0
- data/lib/zatca/ubl/signing.rb +2 -0
- data/lib/zatca/ubl.rb +2 -0
- data/lib/zatca/version.rb +1 -1
- data/lib/zatca.rb +27 -3
- data/zatca.gemspec +52 -0
- metadata +318 -10
- data/Gemfile.lock +0 -100
data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureAggregateComponents-2.1.xsd
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Library: OASIS Universal Business Language (UBL) 2.1 OS
|
4
|
+
http://docs.oasis-open.org/ubl/os-UBL-2.1/
|
5
|
+
Release Date: 04 November 2013
|
6
|
+
Module: xsd/common/UBL-SignatureAggregateComponents-2.1.xsd
|
7
|
+
Generated on: 2013-10-31 17:18z
|
8
|
+
Copyright (c) OASIS Open 2013. All Rights Reserved.
|
9
|
+
-->
|
10
|
+
<xsd:schema xmlns="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
|
11
|
+
xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
|
12
|
+
xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
|
13
|
+
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
|
14
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
15
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
|
16
|
+
xmlns:ccts="urn:un:unece:uncefact:documentation:2"
|
17
|
+
targetNamespace="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
|
18
|
+
elementFormDefault="qualified"
|
19
|
+
attributeFormDefault="unqualified"
|
20
|
+
version="2.1">
|
21
|
+
<!-- ===== Imports ===== -->
|
22
|
+
<xsd:import namespace="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
|
23
|
+
schemaLocation="UBL-SignatureBasicComponents-2.1.xsd"/>
|
24
|
+
<xsd:import namespace="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
|
25
|
+
schemaLocation="UBL-CommonBasicComponents-2.1.xsd"/>
|
26
|
+
|
27
|
+
<!-- ===== Incorporate W3C signature specification-->
|
28
|
+
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#"
|
29
|
+
schemaLocation="UBL-xmldsig-core-schema-2.1.xsd"/>
|
30
|
+
|
31
|
+
<!-- ===== Incorporate ETSI signature specifications-->
|
32
|
+
<xsd:import namespace="http://uri.etsi.org/01903/v1.3.2#"
|
33
|
+
schemaLocation="UBL-XAdESv132-2.1.xsd"/>
|
34
|
+
<xsd:import namespace="http://uri.etsi.org/01903/v1.4.1#"
|
35
|
+
schemaLocation="UBL-XAdESv141-2.1.xsd"/>
|
36
|
+
|
37
|
+
<!-- ===== Element Declarations ===== -->
|
38
|
+
<xsd:element name="SignatureInformation" type="SignatureInformationType"/>
|
39
|
+
<!-- ===== Type Definitions ===== -->
|
40
|
+
<!-- ===== Aggregate Business Information Entity Type Definitions ===== -->
|
41
|
+
<xsd:complexType name="SignatureInformationType">
|
42
|
+
<xsd:annotation>
|
43
|
+
<xsd:documentation>
|
44
|
+
<ccts:Component>
|
45
|
+
<ccts:ComponentType>ABIE</ccts:ComponentType>
|
46
|
+
<ccts:DictionaryEntryName>Signature Information. Details</ccts:DictionaryEntryName>
|
47
|
+
<ccts:Definition>This class captures a single signature and optionally associates to a signature in the document with the corresponding identifier.</ccts:Definition>
|
48
|
+
<ccts:ObjectClass>Signature Information</ccts:ObjectClass>
|
49
|
+
</ccts:Component>
|
50
|
+
</xsd:documentation>
|
51
|
+
</xsd:annotation>
|
52
|
+
<xsd:sequence>
|
53
|
+
<xsd:element ref="cbc:ID" minOccurs="0" maxOccurs="1">
|
54
|
+
<xsd:annotation>
|
55
|
+
<xsd:documentation>
|
56
|
+
<ccts:Component>
|
57
|
+
<ccts:ComponentType>BBIE</ccts:ComponentType>
|
58
|
+
<ccts:DictionaryEntryName>Signature Information. Identifier</ccts:DictionaryEntryName>
|
59
|
+
<ccts:Definition>This specifies the identifier of the signature distinguishing it from other signatures.</ccts:Definition>
|
60
|
+
<ccts:Cardinality>0..1</ccts:Cardinality>
|
61
|
+
<ccts:ObjectClass>Signature Information</ccts:ObjectClass>
|
62
|
+
<ccts:PropertyTerm>Identifier</ccts:PropertyTerm>
|
63
|
+
<ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm>
|
64
|
+
<ccts:DataType>Identifier. Type</ccts:DataType>
|
65
|
+
</ccts:Component>
|
66
|
+
</xsd:documentation>
|
67
|
+
</xsd:annotation>
|
68
|
+
</xsd:element>
|
69
|
+
<xsd:element ref="sbc:ReferencedSignatureID" minOccurs="0" maxOccurs="1">
|
70
|
+
<xsd:annotation>
|
71
|
+
<xsd:documentation>
|
72
|
+
<ccts:Component>
|
73
|
+
<ccts:ComponentType>BBIE</ccts:ComponentType>
|
74
|
+
<ccts:DictionaryEntryName>Signature Information. Referenced Signature Identifier. Identifier</ccts:DictionaryEntryName>
|
75
|
+
<ccts:Definition>This associates this signature with the identifier of a signature business object in the document.</ccts:Definition>
|
76
|
+
<ccts:Cardinality>0..1</ccts:Cardinality>
|
77
|
+
<ccts:ObjectClass>Signature Information</ccts:ObjectClass>
|
78
|
+
<ccts:PropertyTerm>Referenced Signature Identifier</ccts:PropertyTerm>
|
79
|
+
<ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm>
|
80
|
+
<ccts:DataType>Identifier. Type</ccts:DataType>
|
81
|
+
</ccts:Component>
|
82
|
+
</xsd:documentation>
|
83
|
+
</xsd:annotation>
|
84
|
+
</xsd:element>
|
85
|
+
<xsd:element ref="ds:Signature" minOccurs="0" maxOccurs="1">
|
86
|
+
<xsd:annotation>
|
87
|
+
<xsd:documentation>This is a single digital signature as defined by the W3C specification.</xsd:documentation>
|
88
|
+
</xsd:annotation>
|
89
|
+
</xsd:element>
|
90
|
+
</xsd:sequence>
|
91
|
+
</xsd:complexType>
|
92
|
+
</xsd:schema>
|
93
|
+
<!-- ===== Copyright Notice ===== --><!--
|
94
|
+
OASIS takes no position regarding the validity or scope of any
|
95
|
+
intellectual property or other rights that might be claimed to pertain
|
96
|
+
to the implementation or use of the technology described in this
|
97
|
+
document or the extent to which any license under such rights
|
98
|
+
might or might not be available; neither does it represent that it has
|
99
|
+
made any effort to identify any such rights. Information on OASIS's
|
100
|
+
procedures with respect to rights in OASIS specifications can be
|
101
|
+
found at the OASIS website. Copies of claims of rights made
|
102
|
+
available for publication and any assurances of licenses to be made
|
103
|
+
available, or the result of an attempt made to obtain a general
|
104
|
+
license or permission for the use of such proprietary rights by
|
105
|
+
implementors or users of this specification, can be obtained from
|
106
|
+
the OASIS Executive Director.
|
107
|
+
|
108
|
+
OASIS invites any interested party to bring to its attention any
|
109
|
+
copyrights, patents or patent applications, or other proprietary
|
110
|
+
rights which may cover technology that may be required to
|
111
|
+
implement this specification. Please address the information to the
|
112
|
+
OASIS Executive Director.
|
113
|
+
|
114
|
+
This document and translations of it may be copied and furnished to
|
115
|
+
others, and derivative works that comment on or otherwise explain
|
116
|
+
it or assist in its implementation may be prepared, copied,
|
117
|
+
published and distributed, in whole or in part, without restriction of
|
118
|
+
any kind, provided that the above copyright notice and this
|
119
|
+
paragraph are included on all such copies and derivative works.
|
120
|
+
However, this document itself may not be modified in any way,
|
121
|
+
such as by removing the copyright notice or references to OASIS,
|
122
|
+
except as needed for the purpose of developing OASIS
|
123
|
+
specifications, in which case the procedures for copyrights defined
|
124
|
+
in the OASIS Intellectual Property Rights document must be
|
125
|
+
followed, or as required to translate it into languages other than
|
126
|
+
English.
|
127
|
+
|
128
|
+
The limited permissions granted above are perpetual and will not be
|
129
|
+
revoked by OASIS or its successors or assigns.
|
130
|
+
|
131
|
+
This document and the information contained herein is provided on
|
132
|
+
an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES,
|
133
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
|
134
|
+
WARRANTY THAT THE USE OF THE INFORMATION HEREIN
|
135
|
+
WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
|
136
|
+
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
|
137
|
+
PARTICULAR PURPOSE.
|
138
|
+
-->
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Library: OASIS Universal Business Language (UBL) 2.1 OS
|
4
|
+
http://docs.oasis-open.org/ubl/os-UBL-2.1/
|
5
|
+
Release Date: 04 November 2013
|
6
|
+
Module: xsd/common/UBL-SignatureBasicComponents-2.1.xsd
|
7
|
+
Generated on: 2013-10-31 17:18z
|
8
|
+
Copyright (c) OASIS Open 2013. All Rights Reserved.
|
9
|
+
-->
|
10
|
+
<xsd:schema xmlns="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
|
11
|
+
xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2"
|
12
|
+
xmlns:udt="urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2"
|
13
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
14
|
+
targetNamespace="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
|
15
|
+
elementFormDefault="qualified"
|
16
|
+
attributeFormDefault="unqualified"
|
17
|
+
version="2.1">
|
18
|
+
<!-- ===== Imports ===== -->
|
19
|
+
<xsd:import namespace="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2"
|
20
|
+
schemaLocation="UBL-QualifiedDataTypes-2.1.xsd"/>
|
21
|
+
<xsd:import namespace="urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2"
|
22
|
+
schemaLocation="UBL-UnqualifiedDataTypes-2.1.xsd"/>
|
23
|
+
<!-- ===== Element Declarations ===== -->
|
24
|
+
<xsd:element name="ReferencedSignatureID" type="ReferencedSignatureIDType"/>
|
25
|
+
<!-- ===== Type Definitions ===== -->
|
26
|
+
<!-- ===== Basic Business Information Entity Type Definitions ===== -->
|
27
|
+
<xsd:complexType name="ReferencedSignatureIDType">
|
28
|
+
<xsd:simpleContent>
|
29
|
+
<xsd:extension base="udt:IdentifierType"/>
|
30
|
+
</xsd:simpleContent>
|
31
|
+
</xsd:complexType>
|
32
|
+
</xsd:schema>
|
33
|
+
<!-- ===== Copyright Notice ===== --><!--
|
34
|
+
OASIS takes no position regarding the validity or scope of any
|
35
|
+
intellectual property or other rights that might be claimed to pertain
|
36
|
+
to the implementation or use of the technology described in this
|
37
|
+
document or the extent to which any license under such rights
|
38
|
+
might or might not be available; neither does it represent that it has
|
39
|
+
made any effort to identify any such rights. Information on OASIS's
|
40
|
+
procedures with respect to rights in OASIS specifications can be
|
41
|
+
found at the OASIS website. Copies of claims of rights made
|
42
|
+
available for publication and any assurances of licenses to be made
|
43
|
+
available, or the result of an attempt made to obtain a general
|
44
|
+
license or permission for the use of such proprietary rights by
|
45
|
+
implementors or users of this specification, can be obtained from
|
46
|
+
the OASIS Executive Director.
|
47
|
+
|
48
|
+
OASIS invites any interested party to bring to its attention any
|
49
|
+
copyrights, patents or patent applications, or other proprietary
|
50
|
+
rights which may cover technology that may be required to
|
51
|
+
implement this specification. Please address the information to the
|
52
|
+
OASIS Executive Director.
|
53
|
+
|
54
|
+
This document and translations of it may be copied and furnished to
|
55
|
+
others, and derivative works that comment on or otherwise explain
|
56
|
+
it or assist in its implementation may be prepared, copied,
|
57
|
+
published and distributed, in whole or in part, without restriction of
|
58
|
+
any kind, provided that the above copyright notice and this
|
59
|
+
paragraph are included on all such copies and derivative works.
|
60
|
+
However, this document itself may not be modified in any way,
|
61
|
+
such as by removing the copyright notice or references to OASIS,
|
62
|
+
except as needed for the purpose of developing OASIS
|
63
|
+
specifications, in which case the procedures for copyrights defined
|
64
|
+
in the OASIS Intellectual Property Rights document must be
|
65
|
+
followed, or as required to translate it into languages other than
|
66
|
+
English.
|
67
|
+
|
68
|
+
The limited permissions granted above are perpetual and will not be
|
69
|
+
revoked by OASIS or its successors or assigns.
|
70
|
+
|
71
|
+
This document and the information contained herein is provided on
|
72
|
+
an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES,
|
73
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
|
74
|
+
WARRANTY THAT THE USE OF THE INFORMATION HEREIN
|
75
|
+
WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
|
76
|
+
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
|
77
|
+
PARTICULAR PURPOSE.
|
78
|
+
-->
|