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
@@ -0,0 +1,222 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"><ext:UBLExtensions>
|
3
|
+
<ext:UBLExtension>
|
4
|
+
<ext:ExtensionURI>urn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>
|
5
|
+
<ext:ExtensionContent>
|
6
|
+
<!-- Please note that the signature values are sample values only -->
|
7
|
+
<sig:UBLDocumentSignatures xmlns:sig="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2" xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2" xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2">
|
8
|
+
<sac:SignatureInformation>
|
9
|
+
<cbc:ID>urn:oasis:names:specification:ubl:signature:1</cbc:ID>
|
10
|
+
<sbc:ReferencedSignatureID>urn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
|
11
|
+
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="signature">
|
12
|
+
<ds:SignedInfo>
|
13
|
+
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
|
14
|
+
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"/>
|
15
|
+
<ds:Reference Id="invoiceSignedData" URI="">
|
16
|
+
<ds:Transforms>
|
17
|
+
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
|
18
|
+
<ds:XPath>not(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>
|
19
|
+
</ds:Transform>
|
20
|
+
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
|
21
|
+
<ds:XPath>not(//ancestor-or-self::cac:Signature)</ds:XPath>
|
22
|
+
</ds:Transform>
|
23
|
+
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
|
24
|
+
<ds:XPath>not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID='QR'])</ds:XPath>
|
25
|
+
</ds:Transform>
|
26
|
+
<ds:Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
|
27
|
+
</ds:Transforms>
|
28
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
|
29
|
+
<ds:DigestValue>O/vEnAxjLAlw8kQUy8nq/5n8IEZ0YeIyBFvdQA8+iFM=</ds:DigestValue>
|
30
|
+
</ds:Reference>
|
31
|
+
<ds:Reference Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties" URI="#xadesSignedProperties">
|
32
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
|
33
|
+
<ds:DigestValue>YjQwZmEyMjM2NDU1YjQwNjM5MTFmYmVkODc4NjM2NTc0N2E3OGFmZjVlMzA1ODAwYWE5Y2ZmYmFjZjRiNjQxNg==</ds:DigestValue>
|
34
|
+
</ds:Reference>
|
35
|
+
</ds:SignedInfo>
|
36
|
+
<ds:SignatureValue>MEQCIDGBRHiPo6yhXIQ9df6pMEkufcGnoqYaS+O8Jn0xagBiAiBtoxpbrwfEJHhUGQHTqzD1ORX5+Z/tumM0wLfZ4cuYRg==</ds:SignatureValue>
|
37
|
+
<ds:KeyInfo>
|
38
|
+
<ds:X509Data>
|
39
|
+
<ds:X509Certificate>MIID6TCCA5CgAwIBAgITbwAAf8tem6jngr16DwABAAB/yzAKBggqhkjOPQQDAjBjMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRwwGgYDVQQDExNUU1pFSU5WT0lDRS1TdWJDQS0xMB4XDTIyMDkxNDEzMjYwNFoXDTI0MDkxMzEzMjYwNFowTjELMAkGA1UEBhMCU0ExEzARBgNVBAoTCjMxMTExMTExMTExDDAKBgNVBAsTA1RTVDEcMBoGA1UEAxMTVFNULTMxMTExMTExMTEwMTExMzBWMBAGByqGSM49AgEGBSuBBAAKA0IABGGDDKDmhWAITDv7LXqLX2cmr6+qddUkpcLCvWs5rC2O29W/hS4ajAK4Qdnahym6MaijX75Cg3j4aao7ouYXJ9GjggI5MIICNTCBmgYDVR0RBIGSMIGPpIGMMIGJMTswOQYDVQQEDDIxLVRTVHwyLVRTVHwzLWE4NjZiMTQyLWFjOWMtNDI0MS1iZjhlLTdmNzg3YTI2MmNlMjEfMB0GCgmSJomT8ixkAQEMDzMxMTExMTExMTEwMTExMzENMAsGA1UEDAwEMTEwMDEMMAoGA1UEGgwDVFNUMQwwCgYDVQQPDANUU1QwHQYDVR0OBBYEFDuWYlOzWpFN3no1WtyNktQdrA8JMB8GA1UdIwQYMBaAFHZgjPsGoKxnVzWdz5qspyuZNbUvME4GA1UdHwRHMEUwQ6BBoD+GPWh0dHA6Ly90c3RjcmwuemF0Y2EuZ292LnNhL0NlcnRFbnJvbGwvVFNaRUlOVk9JQ0UtU3ViQ0EtMS5jcmwwga0GCCsGAQUFBwEBBIGgMIGdMG4GCCsGAQUFBzABhmJodHRwOi8vdHN0Y3JsLnphdGNhLmdvdi5zYS9DZXJ0RW5yb2xsL1RTWkVpbnZvaWNlU0NBMS5leHRnYXp0Lmdvdi5sb2NhbF9UU1pFSU5WT0lDRS1TdWJDQS0xKDEpLmNydDArBggrBgEFBQcwAYYfaHR0cDovL3RzdGNybC56YXRjYS5nb3Yuc2Evb2NzcDAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMDMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwMwCgYIKoZIzj0EAwIDRwAwRAIgOgjNPJW017lsIijmVQVkP7GzFO2KQKd9GHaukLgIWFsCIFJF9uwKhTMxDjWbN+1awsnFI7RLBRxA/6hZ+F1wtaqU</ds:X509Certificate>
|
40
|
+
</ds:X509Data>
|
41
|
+
</ds:KeyInfo>
|
42
|
+
<ds:Object>
|
43
|
+
<xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="signature">
|
44
|
+
<xades:SignedProperties Id="xadesSignedProperties">
|
45
|
+
<xades:SignedSignatureProperties>
|
46
|
+
<xades:SigningTime>2023-01-24T11:36:34Z</xades:SigningTime>
|
47
|
+
<xades:SigningCertificate>
|
48
|
+
<xades:Cert>
|
49
|
+
<xades:CertDigest>
|
50
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
|
51
|
+
<ds:DigestValue>YTJkM2JhYTcwZTBhZTAxOGYwODMyNzY3NTdkZDM3YzhjY2IxOTIyZDZhM2RlZGJiMGY0NDUzZWJhYWI4MDhmYg==</ds:DigestValue>
|
52
|
+
</xades:CertDigest>
|
53
|
+
<xades:IssuerSerial>
|
54
|
+
<ds:X509IssuerName>CN=TSZEINVOICE-SubCA-1, DC=extgazt, DC=gov, DC=local</ds:X509IssuerName>
|
55
|
+
<ds:X509SerialNumber>2475382886904809774818644480820936050208702411</ds:X509SerialNumber>
|
56
|
+
</xades:IssuerSerial>
|
57
|
+
</xades:Cert>
|
58
|
+
</xades:SigningCertificate>
|
59
|
+
</xades:SignedSignatureProperties>
|
60
|
+
</xades:SignedProperties>
|
61
|
+
</xades:QualifyingProperties>
|
62
|
+
</ds:Object>
|
63
|
+
</ds:Signature>
|
64
|
+
</sac:SignatureInformation>
|
65
|
+
</sig:UBLDocumentSignatures>
|
66
|
+
</ext:ExtensionContent>
|
67
|
+
</ext:UBLExtension>
|
68
|
+
</ext:UBLExtensions>
|
69
|
+
|
70
|
+
<cbc:ProfileID>reporting:1.0</cbc:ProfileID>
|
71
|
+
<cbc:ID>SME00023</cbc:ID>
|
72
|
+
<cbc:UUID>8d487816-70b8-4ade-a618-9d620b73814a</cbc:UUID>
|
73
|
+
<cbc:IssueDate>2022-09-07</cbc:IssueDate>
|
74
|
+
<cbc:IssueTime>12:21:28</cbc:IssueTime>
|
75
|
+
<cbc:InvoiceTypeCode name="0100000">388</cbc:InvoiceTypeCode>
|
76
|
+
<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
|
77
|
+
<cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
|
78
|
+
<cac:AdditionalDocumentReference>
|
79
|
+
<cbc:ID>ICV</cbc:ID>
|
80
|
+
<cbc:UUID>23</cbc:UUID>
|
81
|
+
</cac:AdditionalDocumentReference>
|
82
|
+
<cac:AdditionalDocumentReference>
|
83
|
+
<cbc:ID>PIH</cbc:ID>
|
84
|
+
<cac:Attachment>
|
85
|
+
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
|
86
|
+
</cac:Attachment>
|
87
|
+
</cac:AdditionalDocumentReference>
|
88
|
+
|
89
|
+
|
90
|
+
<cac:AdditionalDocumentReference>
|
91
|
+
<cbc:ID>QR</cbc:ID>
|
92
|
+
<cac:Attachment>
|
93
|
+
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">ARNBY21lIFdpZGdldOKAmXMgTFREAg8zMTExMTExMTExMDExMTMDFDIwMjItMDktMDdUMTI6MjE6MjhaBAQ0LjYwBQMwLjYGLFZkNUtNYXQyWkp0WnFyRHlvZ2hibFNsdGVvdUlTL3IzL09STnc3T1ovMnM9B2BNRVFDSURHQlJIaVBvNnloWElROWRmNnBNRWt1ZmNHbm9xWWFTK084Sm4weGFnQmlBaUJ0b3hwYnJ3ZkVKSGhVR1FIVHF6RDFPUlg1K1ovdHVtTTB3TGZaNGN1WVJnPT0IWDBWMBAGByqGSM49AgEGBSuBBAAKA0IABGGDDKDmhWAITDv7LXqLX2cmr6+qddUkpcLCvWs5rC2O29W/hS4ajAK4Qdnahym6MaijX75Cg3j4aao7ouYXJ9E=</cbc:EmbeddedDocumentBinaryObject>
|
94
|
+
</cac:Attachment>
|
95
|
+
</cac:AdditionalDocumentReference><cac:Signature>
|
96
|
+
<cbc:ID>urn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>
|
97
|
+
<cbc:SignatureMethod>urn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>
|
98
|
+
</cac:Signature><cac:AccountingSupplierParty>
|
99
|
+
<cac:Party>
|
100
|
+
<cac:PartyIdentification>
|
101
|
+
<cbc:ID schemeID="CRN">311111111111113</cbc:ID>
|
102
|
+
</cac:PartyIdentification>
|
103
|
+
<cac:PostalAddress>
|
104
|
+
<cbc:StreetName>الامير سلطان</cbc:StreetName>
|
105
|
+
<cbc:BuildingNumber>2322</cbc:BuildingNumber>
|
106
|
+
<cbc:PlotIdentification>2223</cbc:PlotIdentification>
|
107
|
+
<cbc:CitySubdivisionName>الرياض</cbc:CitySubdivisionName>
|
108
|
+
<cbc:CityName>الرياض | Riyadh</cbc:CityName>
|
109
|
+
<cbc:PostalZone>23333</cbc:PostalZone>
|
110
|
+
<cac:Country>
|
111
|
+
<cbc:IdentificationCode>SA</cbc:IdentificationCode>
|
112
|
+
</cac:Country>
|
113
|
+
</cac:PostalAddress>
|
114
|
+
<cac:PartyTaxScheme>
|
115
|
+
<cbc:CompanyID>311111111101113</cbc:CompanyID>
|
116
|
+
<cac:TaxScheme>
|
117
|
+
<cbc:ID>VAT</cbc:ID>
|
118
|
+
</cac:TaxScheme>
|
119
|
+
</cac:PartyTaxScheme>
|
120
|
+
<cac:PartyLegalEntity>
|
121
|
+
<cbc:RegistrationName>Acme Widget’s LTD</cbc:RegistrationName>
|
122
|
+
</cac:PartyLegalEntity>
|
123
|
+
</cac:Party>
|
124
|
+
</cac:AccountingSupplierParty>
|
125
|
+
<cac:AccountingCustomerParty>
|
126
|
+
<cac:Party>
|
127
|
+
<cac:PartyIdentification>
|
128
|
+
<cbc:ID schemeID="NAT">311111111111113</cbc:ID>
|
129
|
+
</cac:PartyIdentification>
|
130
|
+
<cac:PostalAddress>
|
131
|
+
<cbc:StreetName>الرياض</cbc:StreetName>
|
132
|
+
<cbc:BuildingNumber>1111</cbc:BuildingNumber>
|
133
|
+
<cbc:PlotIdentification>2223</cbc:PlotIdentification>
|
134
|
+
<cbc:CitySubdivisionName>الرياض</cbc:CitySubdivisionName>
|
135
|
+
<cbc:CityName>الدمام | Dammam</cbc:CityName>
|
136
|
+
<cbc:PostalZone>12222</cbc:PostalZone>
|
137
|
+
|
138
|
+
<cac:Country>
|
139
|
+
<cbc:IdentificationCode>SA</cbc:IdentificationCode>
|
140
|
+
</cac:Country>
|
141
|
+
</cac:PostalAddress>
|
142
|
+
<cac:PartyTaxScheme>
|
143
|
+
<cac:TaxScheme>
|
144
|
+
<cbc:ID>VAT</cbc:ID>
|
145
|
+
</cac:TaxScheme>
|
146
|
+
</cac:PartyTaxScheme>
|
147
|
+
<cac:PartyLegalEntity>
|
148
|
+
<cbc:RegistrationName>Acme Widget’s LTD 2</cbc:RegistrationName>
|
149
|
+
</cac:PartyLegalEntity>
|
150
|
+
</cac:Party>
|
151
|
+
</cac:AccountingCustomerParty>
|
152
|
+
<cac:Delivery>
|
153
|
+
<cbc:ActualDeliveryDate>2022-09-07</cbc:ActualDeliveryDate>
|
154
|
+
</cac:Delivery>
|
155
|
+
<cac:PaymentMeans>
|
156
|
+
<cbc:PaymentMeansCode>10</cbc:PaymentMeansCode>
|
157
|
+
</cac:PaymentMeans>
|
158
|
+
<cac:AllowanceCharge>
|
159
|
+
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
160
|
+
<cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
|
161
|
+
<cbc:Amount currencyID="SAR">0.00</cbc:Amount>
|
162
|
+
<cac:TaxCategory>
|
163
|
+
<cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
|
164
|
+
<cbc:Percent>15</cbc:Percent>
|
165
|
+
<cac:TaxScheme>
|
166
|
+
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
167
|
+
</cac:TaxScheme>
|
168
|
+
</cac:TaxCategory>
|
169
|
+
</cac:AllowanceCharge>
|
170
|
+
<cac:TaxTotal>
|
171
|
+
<cbc:TaxAmount currencyID="SAR">0.6</cbc:TaxAmount>
|
172
|
+
</cac:TaxTotal>
|
173
|
+
<cac:TaxTotal>
|
174
|
+
<cbc:TaxAmount currencyID="SAR">0.6</cbc:TaxAmount>
|
175
|
+
<cac:TaxSubtotal>
|
176
|
+
<cbc:TaxableAmount currencyID="SAR">4.00</cbc:TaxableAmount>
|
177
|
+
<cbc:TaxAmount currencyID="SAR">0.60</cbc:TaxAmount>
|
178
|
+
<cac:TaxCategory>
|
179
|
+
<cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
|
180
|
+
<cbc:Percent>15.00</cbc:Percent>
|
181
|
+
<cac:TaxScheme>
|
182
|
+
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
183
|
+
</cac:TaxScheme>
|
184
|
+
</cac:TaxCategory>
|
185
|
+
</cac:TaxSubtotal>
|
186
|
+
</cac:TaxTotal>
|
187
|
+
<cac:LegalMonetaryTotal>
|
188
|
+
<cbc:LineExtensionAmount currencyID="SAR">4.00</cbc:LineExtensionAmount>
|
189
|
+
<cbc:TaxExclusiveAmount currencyID="SAR">4.00</cbc:TaxExclusiveAmount>
|
190
|
+
<cbc:TaxInclusiveAmount currencyID="SAR">4.60</cbc:TaxInclusiveAmount>
|
191
|
+
<cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
|
192
|
+
<cbc:PrepaidAmount currencyID="SAR">0.00</cbc:PrepaidAmount>
|
193
|
+
<cbc:PayableAmount currencyID="SAR">4.60</cbc:PayableAmount>
|
194
|
+
</cac:LegalMonetaryTotal>
|
195
|
+
<cac:InvoiceLine>
|
196
|
+
<cbc:ID>1</cbc:ID>
|
197
|
+
<cbc:InvoicedQuantity unitCode="PCE">2.000000</cbc:InvoicedQuantity>
|
198
|
+
<cbc:LineExtensionAmount currencyID="SAR">4.00</cbc:LineExtensionAmount>
|
199
|
+
<cac:TaxTotal>
|
200
|
+
<cbc:TaxAmount currencyID="SAR">0.60</cbc:TaxAmount>
|
201
|
+
<cbc:RoundingAmount currencyID="SAR">4.60</cbc:RoundingAmount>
|
202
|
+
</cac:TaxTotal>
|
203
|
+
<cac:Item>
|
204
|
+
<cbc:Name>قلم رصاص</cbc:Name>
|
205
|
+
<cac:ClassifiedTaxCategory>
|
206
|
+
<cbc:ID>S</cbc:ID>
|
207
|
+
<cbc:Percent>15.00</cbc:Percent>
|
208
|
+
<cac:TaxScheme>
|
209
|
+
<cbc:ID>VAT</cbc:ID>
|
210
|
+
</cac:TaxScheme>
|
211
|
+
</cac:ClassifiedTaxCategory>
|
212
|
+
</cac:Item>
|
213
|
+
<cac:Price>
|
214
|
+
<cbc:PriceAmount currencyID="SAR">2.00</cbc:PriceAmount>
|
215
|
+
<cac:AllowanceCharge>
|
216
|
+
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
217
|
+
<cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
|
218
|
+
<cbc:Amount currencyID="SAR">0.00</cbc:Amount>
|
219
|
+
</cac:AllowanceCharge>
|
220
|
+
</cac:Price>
|
221
|
+
</cac:InvoiceLine>
|
222
|
+
</Invoice>
|
@@ -0,0 +1,228 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"><ext:UBLExtensions>
|
3
|
+
<ext:UBLExtension>
|
4
|
+
<ext:ExtensionURI>urn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>
|
5
|
+
<ext:ExtensionContent>
|
6
|
+
<!-- Please note that the signature values are sample values only -->
|
7
|
+
<sig:UBLDocumentSignatures xmlns:sig="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2" xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2" xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2">
|
8
|
+
<sac:SignatureInformation>
|
9
|
+
<cbc:ID>urn:oasis:names:specification:ubl:signature:1</cbc:ID>
|
10
|
+
<sbc:ReferencedSignatureID>urn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
|
11
|
+
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="signature">
|
12
|
+
<ds:SignedInfo>
|
13
|
+
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
|
14
|
+
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"/>
|
15
|
+
<ds:Reference Id="invoiceSignedData" URI="">
|
16
|
+
<ds:Transforms>
|
17
|
+
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
|
18
|
+
<ds:XPath>not(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>
|
19
|
+
</ds:Transform>
|
20
|
+
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
|
21
|
+
<ds:XPath>not(//ancestor-or-self::cac:Signature)</ds:XPath>
|
22
|
+
</ds:Transform>
|
23
|
+
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
|
24
|
+
<ds:XPath>not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID='QR'])</ds:XPath>
|
25
|
+
</ds:Transform>
|
26
|
+
<ds:Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
|
27
|
+
</ds:Transforms>
|
28
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
|
29
|
+
<ds:DigestValue>PkcOVQ60fnD95oMf7gX6+BQvm5xn9ERQL2G0cdz8rCM=</ds:DigestValue>
|
30
|
+
</ds:Reference>
|
31
|
+
<ds:Reference Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties" URI="#xadesSignedProperties">
|
32
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
|
33
|
+
<ds:DigestValue>YTcyZWU3NThlNWY3ZDlkY2NlZTI1M2YxZTBiMjg0YTU0ZWYyNTBjNjRjYWM3OGUwYTAzOWFiM2QxMDRkNzA3YQ==</ds:DigestValue>
|
34
|
+
</ds:Reference>
|
35
|
+
</ds:SignedInfo>
|
36
|
+
<ds:SignatureValue>MEYCIQDp1+Ysq3fmDkDYZEF5CpBv16c+8cYvShuP1DgqXZq1lwIhAKoxqNn7eXAIHCJDAkUOpW561m2W4ANrQsuLT/OucEYj</ds:SignatureValue>
|
37
|
+
<ds:KeyInfo>
|
38
|
+
<ds:X509Data>
|
39
|
+
<ds:X509Certificate>MIID6TCCA5CgAwIBAgITbwAAf8tem6jngr16DwABAAB/yzAKBggqhkjOPQQDAjBjMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRwwGgYDVQQDExNUU1pFSU5WT0lDRS1TdWJDQS0xMB4XDTIyMDkxNDEzMjYwNFoXDTI0MDkxMzEzMjYwNFowTjELMAkGA1UEBhMCU0ExEzARBgNVBAoTCjMxMTExMTExMTExDDAKBgNVBAsTA1RTVDEcMBoGA1UEAxMTVFNULTMxMTExMTExMTEwMTExMzBWMBAGByqGSM49AgEGBSuBBAAKA0IABGGDDKDmhWAITDv7LXqLX2cmr6+qddUkpcLCvWs5rC2O29W/hS4ajAK4Qdnahym6MaijX75Cg3j4aao7ouYXJ9GjggI5MIICNTCBmgYDVR0RBIGSMIGPpIGMMIGJMTswOQYDVQQEDDIxLVRTVHwyLVRTVHwzLWE4NjZiMTQyLWFjOWMtNDI0MS1iZjhlLTdmNzg3YTI2MmNlMjEfMB0GCgmSJomT8ixkAQEMDzMxMTExMTExMTEwMTExMzENMAsGA1UEDAwEMTEwMDEMMAoGA1UEGgwDVFNUMQwwCgYDVQQPDANUU1QwHQYDVR0OBBYEFDuWYlOzWpFN3no1WtyNktQdrA8JMB8GA1UdIwQYMBaAFHZgjPsGoKxnVzWdz5qspyuZNbUvME4GA1UdHwRHMEUwQ6BBoD+GPWh0dHA6Ly90c3RjcmwuemF0Y2EuZ292LnNhL0NlcnRFbnJvbGwvVFNaRUlOVk9JQ0UtU3ViQ0EtMS5jcmwwga0GCCsGAQUFBwEBBIGgMIGdMG4GCCsGAQUFBzABhmJodHRwOi8vdHN0Y3JsLnphdGNhLmdvdi5zYS9DZXJ0RW5yb2xsL1RTWkVpbnZvaWNlU0NBMS5leHRnYXp0Lmdvdi5sb2NhbF9UU1pFSU5WT0lDRS1TdWJDQS0xKDEpLmNydDArBggrBgEFBQcwAYYfaHR0cDovL3RzdGNybC56YXRjYS5nb3Yuc2Evb2NzcDAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMDMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwMwCgYIKoZIzj0EAwIDRwAwRAIgOgjNPJW017lsIijmVQVkP7GzFO2KQKd9GHaukLgIWFsCIFJF9uwKhTMxDjWbN+1awsnFI7RLBRxA/6hZ+F1wtaqU</ds:X509Certificate>
|
40
|
+
</ds:X509Data>
|
41
|
+
</ds:KeyInfo>
|
42
|
+
<ds:Object>
|
43
|
+
<xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="signature">
|
44
|
+
<xades:SignedProperties Id="xadesSignedProperties">
|
45
|
+
<xades:SignedSignatureProperties>
|
46
|
+
<xades:SigningTime>2022-09-15T01:46:38Z</xades:SigningTime>
|
47
|
+
<xades:SigningCertificate>
|
48
|
+
<xades:Cert>
|
49
|
+
<xades:CertDigest>
|
50
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
|
51
|
+
<ds:DigestValue>YTJkM2JhYTcwZTBhZTAxOGYwODMyNzY3NTdkZDM3YzhjY2IxOTIyZDZhM2RlZGJiMGY0NDUzZWJhYWI4MDhmYg==</ds:DigestValue>
|
52
|
+
</xades:CertDigest>
|
53
|
+
<xades:IssuerSerial>
|
54
|
+
<ds:X509IssuerName>CN=TSZEINVOICE-SubCA-1, DC=extgazt, DC=gov, DC=local</ds:X509IssuerName>
|
55
|
+
<ds:X509SerialNumber>2475382886904809774818644480820936050208702411</ds:X509SerialNumber>
|
56
|
+
</xades:IssuerSerial>
|
57
|
+
</xades:Cert>
|
58
|
+
</xades:SigningCertificate>
|
59
|
+
</xades:SignedSignatureProperties>
|
60
|
+
</xades:SignedProperties>
|
61
|
+
</xades:QualifyingProperties>
|
62
|
+
</ds:Object>
|
63
|
+
</ds:Signature>
|
64
|
+
</sac:SignatureInformation>
|
65
|
+
</sig:UBLDocumentSignatures>
|
66
|
+
</ext:ExtensionContent>
|
67
|
+
</ext:UBLExtension>
|
68
|
+
</ext:UBLExtensions>
|
69
|
+
|
70
|
+
<cbc:ProfileID>reporting:1.0</cbc:ProfileID>
|
71
|
+
<cbc:ID>100</cbc:ID>
|
72
|
+
<cbc:UUID>3cf5ee18-ee25-44ea-a444-2c37ba7f28be</cbc:UUID>
|
73
|
+
<cbc:IssueDate>2021-04-25</cbc:IssueDate>
|
74
|
+
<cbc:IssueTime>15:30:00</cbc:IssueTime>
|
75
|
+
<cbc:InvoiceTypeCode name="0100000">388</cbc:InvoiceTypeCode>
|
76
|
+
<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
|
77
|
+
<cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
|
78
|
+
<cbc:LineCountNumeric>2</cbc:LineCountNumeric>
|
79
|
+
<cac:AdditionalDocumentReference>
|
80
|
+
<cbc:ID>ICV</cbc:ID>
|
81
|
+
<cbc:UUID>46531</cbc:UUID>
|
82
|
+
</cac:AdditionalDocumentReference>
|
83
|
+
<cac:AdditionalDocumentReference>
|
84
|
+
<cbc:ID>PIH</cbc:ID>
|
85
|
+
<cac:Attachment>
|
86
|
+
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
|
87
|
+
</cac:Attachment>
|
88
|
+
</cac:AdditionalDocumentReference>
|
89
|
+
|
90
|
+
|
91
|
+
<cac:AdditionalDocumentReference>
|
92
|
+
<cbc:ID>QR</cbc:ID>
|
93
|
+
<cac:Attachment>
|
94
|
+
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">ARNBY21lIFdpZGdldOKAmXMgTFREAg8zMTExMTExMTExMDExMTMDFDIwMjEtMDQtMjVUMTU6MzA6MDBaBAcxMDM1LjAwBQYxMzUuMDAGLFBrY09WUTYwZm5EOTVvTWY3Z1g2K0JRdm01eG45RVJRTDJHMGNkejhyQ009B2BNRVlDSVFEcDErWXNxM2ZtRGtEWVpFRjVDcEJ2MTZjKzhjWXZTaHVQMURncVhacTFsd0loQUtveHFObjdlWEFJSENKREFrVU9wVzU2MW0yVzRBTnJRc3VMVC9PdWNFWWoIWDBWMBAGByqGSM49AgEGBSuBBAAKA0IABGGDDKDmhWAITDv7LXqLX2cmr6+qddUkpcLCvWs5rC2O29W/hS4ajAK4Qdnahym6MaijX75Cg3j4aao7ouYXJ9E=</cbc:EmbeddedDocumentBinaryObject>
|
95
|
+
</cac:Attachment>
|
96
|
+
</cac:AdditionalDocumentReference><cac:Signature>
|
97
|
+
<cbc:ID>urn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>
|
98
|
+
<cbc:SignatureMethod>urn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>
|
99
|
+
</cac:Signature><cac:AccountingSupplierParty>
|
100
|
+
<cac:Party>
|
101
|
+
<cac:PartyIdentification>
|
102
|
+
<cbc:ID schemeID="MLS">123457890</cbc:ID>
|
103
|
+
</cac:PartyIdentification>
|
104
|
+
<cac:PostalAddress>
|
105
|
+
<cbc:StreetName>King Abdulaziz Road</cbc:StreetName>
|
106
|
+
<cbc:BuildingNumber>8228</cbc:BuildingNumber>
|
107
|
+
<cbc:PlotIdentification>2121</cbc:PlotIdentification>
|
108
|
+
<cbc:CitySubdivisionName>Al Amal</cbc:CitySubdivisionName>
|
109
|
+
<cbc:CityName>Riyadh</cbc:CityName>
|
110
|
+
<cbc:PostalZone>12643</cbc:PostalZone>
|
111
|
+
<cbc:CountrySubentity>Riyadh Region</cbc:CountrySubentity>
|
112
|
+
<cac:Country>
|
113
|
+
<cbc:IdentificationCode>SA</cbc:IdentificationCode>
|
114
|
+
</cac:Country>
|
115
|
+
</cac:PostalAddress>
|
116
|
+
<cac:PartyTaxScheme>
|
117
|
+
<cbc:CompanyID>311111111101113</cbc:CompanyID>
|
118
|
+
<cac:TaxScheme>
|
119
|
+
<cbc:ID>VAT</cbc:ID>
|
120
|
+
</cac:TaxScheme>
|
121
|
+
</cac:PartyTaxScheme>
|
122
|
+
<cac:PartyLegalEntity>
|
123
|
+
<cbc:RegistrationName>Acme Widget’s LTD</cbc:RegistrationName>
|
124
|
+
</cac:PartyLegalEntity>
|
125
|
+
</cac:Party>
|
126
|
+
</cac:AccountingSupplierParty>
|
127
|
+
<cac:AccountingCustomerParty>
|
128
|
+
<cac:Party>
|
129
|
+
<cac:PartyIdentification>
|
130
|
+
<cbc:ID schemeID="SAG">123C12345678</cbc:ID>
|
131
|
+
</cac:PartyIdentification>
|
132
|
+
<cac:PostalAddress>
|
133
|
+
|
134
|
+
<cbc:BuildingNumber>3709</cbc:BuildingNumber>
|
135
|
+
<cbc:PlotIdentification>1004</cbc:PlotIdentification>
|
136
|
+
<cbc:CitySubdivisionName>Al Mursalat</cbc:CitySubdivisionName>
|
137
|
+
<cbc:CityName>Riyadh</cbc:CityName>
|
138
|
+
<cbc:PostalZone>11564</cbc:PostalZone>
|
139
|
+
<cbc:CountrySubentity>Riyadh Region</cbc:CountrySubentity>
|
140
|
+
<cac:Country>
|
141
|
+
<cbc:IdentificationCode>SA</cbc:IdentificationCode>
|
142
|
+
</cac:Country>
|
143
|
+
</cac:PostalAddress>
|
144
|
+
<cac:PartyTaxScheme>
|
145
|
+
<cac:TaxScheme>
|
146
|
+
<cbc:ID>VAT</cbc:ID>
|
147
|
+
</cac:TaxScheme>
|
148
|
+
</cac:PartyTaxScheme>
|
149
|
+
<cac:PartyLegalEntity>
|
150
|
+
<cbc:RegistrationName>Acme Widget’s LTD 2</cbc:RegistrationName>
|
151
|
+
</cac:PartyLegalEntity>
|
152
|
+
</cac:Party>
|
153
|
+
</cac:AccountingCustomerParty>
|
154
|
+
<cac:Delivery>
|
155
|
+
<cbc:ActualDeliveryDate>2022-04-25</cbc:ActualDeliveryDate>
|
156
|
+
</cac:Delivery>
|
157
|
+
<cac:PaymentMeans>
|
158
|
+
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode>
|
159
|
+
</cac:PaymentMeans>
|
160
|
+
<cac:TaxTotal>
|
161
|
+
<cbc:TaxAmount currencyID="SAR">135.00</cbc:TaxAmount>
|
162
|
+
<cac:TaxSubtotal>
|
163
|
+
<cbc:TaxableAmount currencyID="SAR">900.00</cbc:TaxableAmount>
|
164
|
+
<cbc:TaxAmount currencyID="SAR">135.00</cbc:TaxAmount>
|
165
|
+
<cac:TaxCategory>
|
166
|
+
<cbc:ID>S</cbc:ID>
|
167
|
+
<cbc:Percent>15</cbc:Percent>
|
168
|
+
<cac:TaxScheme>
|
169
|
+
<cbc:ID>VAT</cbc:ID>
|
170
|
+
</cac:TaxScheme>
|
171
|
+
</cac:TaxCategory>
|
172
|
+
</cac:TaxSubtotal>
|
173
|
+
</cac:TaxTotal>
|
174
|
+
<cac:TaxTotal>
|
175
|
+
<cbc:TaxAmount currencyID="SAR">135.00</cbc:TaxAmount>
|
176
|
+
</cac:TaxTotal>
|
177
|
+
<cac:LegalMonetaryTotal>
|
178
|
+
<cbc:LineExtensionAmount currencyID="SAR">900.00</cbc:LineExtensionAmount>
|
179
|
+
<cbc:TaxExclusiveAmount currencyID="SAR">900.00</cbc:TaxExclusiveAmount>
|
180
|
+
<cbc:TaxInclusiveAmount currencyID="SAR">1035.00</cbc:TaxInclusiveAmount>
|
181
|
+
<cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
|
182
|
+
<cbc:PayableAmount currencyID="SAR">1035.00</cbc:PayableAmount>
|
183
|
+
</cac:LegalMonetaryTotal>
|
184
|
+
<cac:InvoiceLine>
|
185
|
+
<cbc:ID>1</cbc:ID>
|
186
|
+
<cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity>
|
187
|
+
<cbc:LineExtensionAmount currencyID="SAR">200.00</cbc:LineExtensionAmount>
|
188
|
+
<cac:TaxTotal>
|
189
|
+
<cbc:TaxAmount currencyID="SAR">30.00</cbc:TaxAmount>
|
190
|
+
<cbc:RoundingAmount currencyID="SAR">230.00</cbc:RoundingAmount>
|
191
|
+
</cac:TaxTotal>
|
192
|
+
<cac:Item>
|
193
|
+
<cbc:Name>Item A</cbc:Name>
|
194
|
+
<cac:ClassifiedTaxCategory>
|
195
|
+
<cbc:ID>S</cbc:ID>
|
196
|
+
<cbc:Percent>15</cbc:Percent>
|
197
|
+
<cac:TaxScheme>
|
198
|
+
<cbc:ID>VAT</cbc:ID>
|
199
|
+
</cac:TaxScheme>
|
200
|
+
</cac:ClassifiedTaxCategory>
|
201
|
+
</cac:Item>
|
202
|
+
<cac:Price>
|
203
|
+
<cbc:PriceAmount currencyID="SAR">200.00</cbc:PriceAmount>
|
204
|
+
</cac:Price>
|
205
|
+
</cac:InvoiceLine>
|
206
|
+
<cac:InvoiceLine>
|
207
|
+
<cbc:ID>2</cbc:ID>
|
208
|
+
<cbc:InvoicedQuantity unitCode="PCE">2</cbc:InvoicedQuantity>
|
209
|
+
<cbc:LineExtensionAmount currencyID="SAR">700.00</cbc:LineExtensionAmount>
|
210
|
+
<cac:TaxTotal>
|
211
|
+
<cbc:TaxAmount currencyID="SAR">105.00</cbc:TaxAmount>
|
212
|
+
<cbc:RoundingAmount currencyID="SAR">805.00</cbc:RoundingAmount>
|
213
|
+
</cac:TaxTotal>
|
214
|
+
<cac:Item>
|
215
|
+
<cbc:Name>Item B</cbc:Name>
|
216
|
+
<cac:ClassifiedTaxCategory>
|
217
|
+
<cbc:ID>S</cbc:ID>
|
218
|
+
<cbc:Percent>15</cbc:Percent>
|
219
|
+
<cac:TaxScheme>
|
220
|
+
<cbc:ID>VAT</cbc:ID>
|
221
|
+
</cac:TaxScheme>
|
222
|
+
</cac:ClassifiedTaxCategory>
|
223
|
+
</cac:Item>
|
224
|
+
<cac:Price>
|
225
|
+
<cbc:PriceAmount currencyID="SAR">350.00</cbc:PriceAmount>
|
226
|
+
</cac:Price>
|
227
|
+
</cac:InvoiceLine>
|
228
|
+
</Invoice>
|