zatca 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/lib/zatca/client.rb +26 -2
  4. data/lib/zatca/version.rb +1 -1
  5. data/zatca.gemspec +1 -1
  6. metadata +2 -155
  7. data/einvoicing-sdk/Apps/fatoora +0 -12
  8. data/einvoicing-sdk/Apps/fatoora.bat +0 -16
  9. data/einvoicing-sdk/Apps/global.json +0 -1
  10. data/einvoicing-sdk/Apps/jq.exe +0 -0
  11. data/einvoicing-sdk/Apps/zatca-einvoicing-sdk-238-R3.2.7.jar +0 -0
  12. data/einvoicing-sdk/Configuration/config.json +0 -11
  13. data/einvoicing-sdk/Configuration/defaults.json +0 -11
  14. data/einvoicing-sdk/Configuration/jq.exe +0 -0
  15. data/einvoicing-sdk/Configuration/usage.txt +0 -16
  16. data/einvoicing-sdk/Data/Certificates/cert.pem +0 -1
  17. data/einvoicing-sdk/Data/Certificates/ec-secp256k1-priv-key.pem +0 -1
  18. data/einvoicing-sdk/Data/Input/csr-config-example-AR-VAT-Group.properties +0 -9
  19. data/einvoicing-sdk/Data/Input/csr-config-example-AR.properties +0 -9
  20. data/einvoicing-sdk/Data/Input/csr-config-example-EN-VAT-group.properties +0 -9
  21. data/einvoicing-sdk/Data/Input/csr-config-example-EN.properties +0 -9
  22. data/einvoicing-sdk/Data/Input/csr-config-template.properties +0 -9
  23. data/einvoicing-sdk/Data/PIH/pih.txt +0 -1
  24. data/einvoicing-sdk/Data/Rules/schematrons/20210819_ZATCA_E-invoice_Validation_Rules.xsl +0 -2844
  25. data/einvoicing-sdk/Data/Rules/schematrons/CEN-EN16931-UBL.xsl +0 -1973
  26. data/einvoicing-sdk/Data/Samples/PDF-A3/Simplified Debit Note.pdf +0 -0
  27. data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Credit Note.pdf +0 -0
  28. data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Debit Note.pdf +0 -0
  29. data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Invoice.pdf +0 -0
  30. data/einvoicing-sdk/Data/Samples/PDF-A3/Tax_Invoice_USD.pdf +0 -0
  31. data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note.xml +0 -300
  32. data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note_Error.xml +0 -225
  33. data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note.xml +0 -211
  34. data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note_Error.xml +0 -226
  35. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Out_Of_Scope_Simplified_Invoice.xml +0 -207
  36. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Simplified_Invoice_USD.xml +0 -246
  37. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice.xml +0 -246
  38. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice_Error.xml +0 -228
  39. data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note.xml +0 -227
  40. data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note_Error.xml +0 -224
  41. data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note.xml +0 -227
  42. data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note_Error.xml +0 -226
  43. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Exempt_Standard_Invoice.xml +0 -227
  44. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Standard_Invoice_USD.xml +0 -227
  45. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Zero_Rate_Standard_Invoice.xml +0 -227
  46. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 1.xml +0 -294
  47. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 2.xml +0 -432
  48. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice.xml +0 -222
  49. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice_Error.xml +0 -228
  50. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/CCTS_CCT_SchemaModule-2.1.xsd +0 -731
  51. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonAggregateComponents-2.1.xsd +0 -44365
  52. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonBasicComponents-2.1.xsd +0 -5389
  53. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonExtensionComponents-2.1.xsd +0 -223
  54. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonSignatureComponents-2.1.xsd +0 -101
  55. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CoreComponentParameters-2.1.xsd +0 -63
  56. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-ExtensionContentDataType-2.1.xsd +0 -89
  57. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-QualifiedDataTypes-2.1.xsd +0 -69
  58. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureAggregateComponents-2.1.xsd +0 -138
  59. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureBasicComponents-2.1.xsd +0 -78
  60. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-UnqualifiedDataTypes-2.1.xsd +0 -553
  61. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv132-2.1.xsd +0 -476
  62. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv141-2.1.xsd +0 -25
  63. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-xmldsig-core-schema-2.1.xsd +0 -330
  64. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/maindoc/UBL-Invoice-2.1.xsd +0 -1002
  65. data/einvoicing-sdk/Dockerfile +0 -26
  66. data/einvoicing-sdk/LICENSE.txt +0 -56
  67. data/einvoicing-sdk/Lib/.Net/DLL/BouncyCastle.Crypto.dll +0 -0
  68. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Core.dll +0 -0
  69. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Text.dll +0 -0
  70. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Util.dll +0 -0
  71. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.XML.API.dll +0 -0
  72. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.Runtime.dll +0 -0
  73. data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll +0 -0
  74. data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll.config +0 -43
  75. data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.pdb +0 -0
  76. data/einvoicing-sdk/Lib/.Net/DLL/System.Net.Http.dll +0 -0
  77. data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-10.8.dll +0 -0
  78. data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.dll +0 -0
  79. data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.xml +0 -11759
  80. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/3f204b7a-faba-42d8-8288-8b6fe516555c.vsidx +0 -0
  81. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/f95b6f91-c110-4b7a-bb49-3fc6bde85b13.vsidx +0 -0
  82. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/read.lock +0 -0
  83. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/v17/.suo +0 -0
  84. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/App.config +0 -14
  85. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/BouncyCastle.Crypto.dll +0 -0
  86. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/CSRGeneratorOpenSSL.cs +0 -58
  87. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Core.dll +0 -0
  88. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Text.dll +0 -0
  89. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Util.dll +0 -0
  90. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.XML.API.dll +0 -0
  91. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.Runtime.dll +0 -0
  92. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Program.cs +0 -194
  93. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Properties/AssemblyInfo.cs +0 -36
  94. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Readme.txt +0 -8
  95. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll +0 -0
  96. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll.config +0 -43
  97. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.pdb +0 -0
  98. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.csproj +0 -120
  99. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe +0 -0
  100. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe.config +0 -20
  101. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.pdb +0 -0
  102. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.sln +0 -25
  103. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/BouncyCastle.Crypto.dll +0 -0
  104. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/certificate.txt +0 -1
  105. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/pih.txt +0 -1
  106. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/privateKey.txt +0 -1
  107. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Core.dll +0 -0
  108. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Text.dll +0 -0
  109. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Util.dll +0 -0
  110. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.XML.API.dll +0 -0
  111. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.Runtime.dll +0 -0
  112. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll +0 -0
  113. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll.config +0 -43
  114. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.pdb +0 -0
  115. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe +0 -0
  116. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe.config +0 -20
  117. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.pdb +0 -0
  118. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/System.Net.Http.dll +0 -0
  119. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-10.8.dll +0 -0
  120. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.dll +0 -0
  121. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.xml +0 -11759
  122. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs +0 -4
  123. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache +0 -0
  124. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
  125. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.AssemblyReference.cache +0 -0
  126. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CopyComplete +0 -0
  127. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CoreCompileInputs.cache +0 -1
  128. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.FileListAbsolute.txt +0 -22
  129. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.SuggestedBindingRedirects.cache +0 -0
  130. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.exe +0 -0
  131. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.pdb +0 -0
  132. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-10.8.dll +0 -0
  133. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.dll +0 -0
  134. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.xml +0 -11759
  135. data/einvoicing-sdk/Lib/.Net/Test/BouncyCastle.Crypto.dll +0 -0
  136. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Core.dll +0 -0
  137. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Text.dll +0 -0
  138. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Util.dll +0 -0
  139. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.XML.API.dll +0 -0
  140. data/einvoicing-sdk/Lib/.Net/Test/IKVM.Runtime.dll +0 -0
  141. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll +0 -0
  142. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll.config +0 -43
  143. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.pdb +0 -0
  144. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe +0 -0
  145. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe.config +0 -20
  146. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.pdb +0 -0
  147. data/einvoicing-sdk/Lib/.Net/Test/saxon-he-10.8.dll +0 -0
  148. data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.dll +0 -0
  149. data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.xml +0 -11759
  150. data/einvoicing-sdk/README.md +0 -15
  151. data/einvoicing-sdk/Readme/readme.docx +0 -0
  152. data/einvoicing-sdk/Readme/readme.md +0 -674
  153. data/einvoicing-sdk/Readme/readme.pdf +0 -0
  154. data/einvoicing-sdk/Readme/~$readme.docx +0 -0
  155. data/einvoicing-sdk/docker-compose.yml +0 -12
  156. data/einvoicing-sdk/install.bat +0 -74
  157. data/einvoicing-sdk/install.sh +0 -74
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d65cb57654ffcf290ba95965eff7e0c0ec6f5413a890b16cbce127e76a5356d8
4
- data.tar.gz: 7c3a4bbd85c5630d541e30bf4c8b510bbffbb0f4a67bc91e8969c5551cbeffe2
3
+ metadata.gz: 6174c4fead4e9527ffe5d81c848f928058cc49fe796637c89394b2984c0ab38f
4
+ data.tar.gz: a64d875110d6df7fd268e3d4ba25eaf08cf1020a427bb1192ea6387ebec2e306
5
5
  SHA512:
6
- metadata.gz: 6341d6dcb453d1a50b98bb25326ea36f1a2569d856ad53515ae607b3b92f3937358aab733dbf509fd404685a54b5cbf171021a00304e411cc0b297da6d538b84
7
- data.tar.gz: b32f22b71a5ff6532bd7c9ca63b2bbca9eaa2c36d948d32cd7338cacfd5278dc3b2a83ab36929a9272a0280ee0183bcbdb89a2aa8682d7060006d41119eb645c
6
+ metadata.gz: 6d8d01aafed7d0969ea354cfdc8739383db7a79f762b8df766d60ccf27608fd4807f7e507107777a52c665226ef5a39be2e4c3f8dc4942a7b5ea4146bf3d0e8f
7
+ data.tar.gz: 8a96413a0f4a40142febc69a8050b987deabdf14a27b215a4f11d63eb2140eb03127bbaefdee8725c3976d23bf6f5f3cee806f1cf3ad4377d90ce484918f605a
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # zatca
2
- ![](https://img.shields.io/gem/v/zatca) ![](https://img.shields.io/github/workflow/status/mrsool/zatca/Ruby)
2
+ ![](https://img.shields.io/gem/v/zatca) ![](https://img.shields.io/github/actions/workflow/status/mrsool/zatca/test.yml?branch=main)
3
3
 
4
4
  A Ruby library for generating QR Codes and e-invoices according to the standard created by ZATCA in Saudi Arabia.
5
5
 
@@ -31,7 +31,7 @@ tags = {
31
31
  invoice_total: "115",
32
32
  }
33
33
 
34
- ZATCA.render_qr_code(tags)
34
+ ZATCA.render_qr_code(tags: tags)
35
35
  # => data:image/png;base64,...
36
36
  # Hint (Try pasting the above into your web browser's address bar)
37
37
  ```
@@ -49,7 +49,7 @@ tags = ZATCA::Tags.new({
49
49
  invoice_total: "115",
50
50
  })
51
51
 
52
- generator = ZATCA::QRCodeGenerator.new(tags)
52
+ generator = ZATCA::QRCodeGenerator.new(tags: tags)
53
53
  generator.render(size: 512)
54
54
  ```
55
55
 
data/lib/zatca/client.rb CHANGED
@@ -20,13 +20,14 @@ class ZATCA::Client
20
20
  DEFAULT_API_VERSION = "V2".freeze
21
21
  LANGUAGES = %w[ar en].freeze
22
22
 
23
- def initialize(username:, password:, language: "ar", version: DEFAULT_API_VERSION, environment: :production)
23
+ def initialize(username:, password:, language: "ar", version: DEFAULT_API_VERSION, environment: :production, verbose: false)
24
24
  raise "Invalid language: #{language}, Please use one of: #{LANGUAGES}" unless LANGUAGES.include?(language)
25
25
 
26
26
  @username = username
27
27
  @password = password
28
28
  @language = language
29
29
  @version = version
30
+ @verbose = verbose
30
31
 
31
32
  @base_url = ENVIRONMENTS_TO_URLS_MAP[environment.to_sym] || PRODUCTION_BASE_URL
32
33
  end
@@ -132,6 +133,8 @@ class ZATCA::Client
132
133
  url = "#{@base_url}/#{path}"
133
134
  headers = default_headers.merge(headers)
134
135
 
136
+ log("Requesting #{method} #{url} with\n\nbody: #{body}\n\nheaders: #{headers}\n")
137
+
135
138
  client = if authenticated
136
139
  authenticated_request_cilent
137
140
  else
@@ -139,14 +142,28 @@ class ZATCA::Client
139
142
  end
140
143
 
141
144
  response = client.send(method, url, json: body, headers: headers)
145
+ log("Raw response: #{response}")
146
+
147
+ if response.instance_of?(HTTPX::ErrorResponse)
148
+ return {
149
+ message: response.to_s,
150
+ response_headers: response.response&.headers&.to_s,
151
+ response_body: response.response&.body&.to_s,
152
+ status: response.response&.status
153
+ }
154
+ end
142
155
 
143
156
  response_body = response.body.to_s
144
157
 
145
- if response.headers["Content-Type"] == "application/json"
158
+ parsed_body = if response.headers["Content-Type"] == "application/json"
146
159
  parse_json_or_return_string(response_body)
147
160
  else
148
161
  response_body
149
162
  end
163
+
164
+ log("Response body: #{parsed_body}")
165
+
166
+ parsed_body
150
167
  end
151
168
 
152
169
  def authenticated_request_cilent
@@ -170,4 +187,11 @@ class ZATCA::Client
170
187
  rescue JSON::ParserError
171
188
  json
172
189
  end
190
+
191
+ def log(message)
192
+ return unless @verbose
193
+ message = "\n\n---------------------\n\n#{message}\n\n"
194
+
195
+ puts message
196
+ end
173
197
  end
data/lib/zatca/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZATCA
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.2"
5
5
  end
data/zatca.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
24
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
25
  `git ls-files -z`.split("\x0").reject do |f|
26
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features|einvoicing-sdk)/|\.(?:git|travis|circleci)|appveyor)})
27
27
  end
28
28
  end
29
29
  spec.bindir = "exe"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zatca
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Omar Bahareth
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-06 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk
@@ -221,159 +221,6 @@ files:
221
221
  - Rakefile
222
222
  - bin/console
223
223
  - bin/setup
224
- - einvoicing-sdk/Apps/fatoora
225
- - einvoicing-sdk/Apps/fatoora.bat
226
- - einvoicing-sdk/Apps/global.json
227
- - einvoicing-sdk/Apps/jq.exe
228
- - einvoicing-sdk/Apps/zatca-einvoicing-sdk-238-R3.2.7.jar
229
- - einvoicing-sdk/Configuration/config.json
230
- - einvoicing-sdk/Configuration/defaults.json
231
- - einvoicing-sdk/Configuration/jq.exe
232
- - einvoicing-sdk/Configuration/usage.txt
233
- - einvoicing-sdk/Data/Certificates/cert.pem
234
- - einvoicing-sdk/Data/Certificates/ec-secp256k1-priv-key.pem
235
- - einvoicing-sdk/Data/Input/csr-config-example-AR-VAT-Group.properties
236
- - einvoicing-sdk/Data/Input/csr-config-example-AR.properties
237
- - einvoicing-sdk/Data/Input/csr-config-example-EN-VAT-group.properties
238
- - einvoicing-sdk/Data/Input/csr-config-example-EN.properties
239
- - einvoicing-sdk/Data/Input/csr-config-template.properties
240
- - einvoicing-sdk/Data/PIH/pih.txt
241
- - einvoicing-sdk/Data/Rules/schematrons/20210819_ZATCA_E-invoice_Validation_Rules.xsl
242
- - einvoicing-sdk/Data/Rules/schematrons/CEN-EN16931-UBL.xsl
243
- - einvoicing-sdk/Data/Samples/PDF-A3/Simplified Debit Note.pdf
244
- - einvoicing-sdk/Data/Samples/PDF-A3/Standard Credit Note.pdf
245
- - einvoicing-sdk/Data/Samples/PDF-A3/Standard Debit Note.pdf
246
- - einvoicing-sdk/Data/Samples/PDF-A3/Standard Invoice.pdf
247
- - einvoicing-sdk/Data/Samples/PDF-A3/Tax_Invoice_USD.pdf
248
- - einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note.xml
249
- - einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note_Error.xml
250
- - einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note.xml
251
- - einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note_Error.xml
252
- - einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Out_Of_Scope_Simplified_Invoice.xml
253
- - einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Simplified_Invoice_USD.xml
254
- - einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice.xml
255
- - einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice_Error.xml
256
- - einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note.xml
257
- - einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note_Error.xml
258
- - einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note.xml
259
- - einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note_Error.xml
260
- - einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Exempt_Standard_Invoice.xml
261
- - einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Standard_Invoice_USD.xml
262
- - einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Zero_Rate_Standard_Invoice.xml
263
- - einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] -
264
- 1.xml
265
- - einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] -
266
- 2.xml
267
- - einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice.xml
268
- - einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice_Error.xml
269
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/CCTS_CCT_SchemaModule-2.1.xsd
270
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonAggregateComponents-2.1.xsd
271
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonBasicComponents-2.1.xsd
272
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonExtensionComponents-2.1.xsd
273
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonSignatureComponents-2.1.xsd
274
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CoreComponentParameters-2.1.xsd
275
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-ExtensionContentDataType-2.1.xsd
276
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-QualifiedDataTypes-2.1.xsd
277
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureAggregateComponents-2.1.xsd
278
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureBasicComponents-2.1.xsd
279
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-UnqualifiedDataTypes-2.1.xsd
280
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv132-2.1.xsd
281
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv141-2.1.xsd
282
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-xmldsig-core-schema-2.1.xsd
283
- - einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/maindoc/UBL-Invoice-2.1.xsd
284
- - einvoicing-sdk/Dockerfile
285
- - einvoicing-sdk/LICENSE.txt
286
- - einvoicing-sdk/Lib/.Net/DLL/BouncyCastle.Crypto.dll
287
- - einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Core.dll
288
- - einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Text.dll
289
- - einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Util.dll
290
- - einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.XML.API.dll
291
- - einvoicing-sdk/Lib/.Net/DLL/IKVM.Runtime.dll
292
- - einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll
293
- - einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll.config
294
- - einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.pdb
295
- - einvoicing-sdk/Lib/.Net/DLL/System.Net.Http.dll
296
- - einvoicing-sdk/Lib/.Net/DLL/saxon-he-10.8.dll
297
- - einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.dll
298
- - einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.xml
299
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/3f204b7a-faba-42d8-8288-8b6fe516555c.vsidx
300
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/f95b6f91-c110-4b7a-bb49-3fc6bde85b13.vsidx
301
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/read.lock
302
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/v17/.suo
303
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/App.config
304
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/BouncyCastle.Crypto.dll
305
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/CSRGeneratorOpenSSL.cs
306
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Core.dll
307
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Text.dll
308
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Util.dll
309
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.XML.API.dll
310
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.Runtime.dll
311
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Program.cs
312
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Properties/AssemblyInfo.cs
313
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Readme.txt
314
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll
315
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll.config
316
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.pdb
317
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.csproj
318
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe
319
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe.config
320
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.pdb
321
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.sln
322
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/BouncyCastle.Crypto.dll
323
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/certificate.txt
324
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/pih.txt
325
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/privateKey.txt
326
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Core.dll
327
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Text.dll
328
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Util.dll
329
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.XML.API.dll
330
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.Runtime.dll
331
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll
332
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll.config
333
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.pdb
334
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe
335
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe.config
336
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.pdb
337
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/System.Net.Http.dll
338
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-10.8.dll
339
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.dll
340
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.xml
341
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
342
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache
343
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
344
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.AssemblyReference.cache
345
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CopyComplete
346
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CoreCompileInputs.cache
347
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.FileListAbsolute.txt
348
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.SuggestedBindingRedirects.cache
349
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.exe
350
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.pdb
351
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-10.8.dll
352
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.dll
353
- - einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.xml
354
- - einvoicing-sdk/Lib/.Net/Test/BouncyCastle.Crypto.dll
355
- - einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Core.dll
356
- - einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Text.dll
357
- - einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Util.dll
358
- - einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.XML.API.dll
359
- - einvoicing-sdk/Lib/.Net/Test/IKVM.Runtime.dll
360
- - einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll
361
- - einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll.config
362
- - einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.pdb
363
- - einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe
364
- - einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe.config
365
- - einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.pdb
366
- - einvoicing-sdk/Lib/.Net/Test/saxon-he-10.8.dll
367
- - einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.dll
368
- - einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.xml
369
- - einvoicing-sdk/README.md
370
- - einvoicing-sdk/Readme/readme.docx
371
- - einvoicing-sdk/Readme/readme.md
372
- - einvoicing-sdk/Readme/readme.pdf
373
- - einvoicing-sdk/Readme/~$readme.docx
374
- - einvoicing-sdk/docker-compose.yml
375
- - einvoicing-sdk/install.bat
376
- - einvoicing-sdk/install.sh
377
224
  - lib/zatca.rb
378
225
  - lib/zatca/client.rb
379
226
  - lib/zatca/hacks.rb
@@ -1,12 +0,0 @@
1
- #!/bin/bash
2
-
3
- EXTVER=$(jq -r '.version' ${FATOORA_HOME}/global.json)
4
-
5
- CERTPASSWORD=$(jq -r '.certPassword' ${FATOORA_HOME}/global.json)
6
-
7
-
8
- java -Djdk.module.illegalAccess=deny -Djdk.sunec.disableNative=false -jar ${FATOORA_HOME}/zatca-einvoicing-sdk-${EXTVER}.jar --globalVersion $EXTVER -certpassword $CERTPASSWORD $1 $2 $3 $4 $5 $6
9
-
10
-
11
-
12
-
@@ -1,16 +0,0 @@
1
-
2
- @echo off
3
-
4
- SET VAR=
5
- FOR /F %%I IN ('jq .version %FATOORA_HOME%/global.json') DO set "VAR=%%I"
6
-
7
- SET CERT_PASS=
8
- FOR /F %%N IN ('jq .certPassword %FATOORA_HOME%/global.json') DO set "CERT_PASS=%%N"
9
-
10
-
11
- set "VAR=%VAR:~1,-1%"
12
-
13
- set "CERT_PASS=%CERT_PASS:~1,-1%"
14
-
15
-
16
- if exist "%FATOORA_HOME%/zatca-einvoicing-sdk-%VAR%.jar" call java -Djdk.module.illegalAccess=deny -Dfile.encoding=UTF-8 -jar %FATOORA_HOME%/zatca-einvoicing-sdk-%VAR%.jar --globalVersion %VAR% -certpassword %CERT_PASS% %*
@@ -1 +0,0 @@
1
- {"version":"238-R3.2.7" , "certPassword": "123456789" }
Binary file
@@ -1,11 +0,0 @@
1
- {
2
- "xsdPath": "/zatca/Data/Schemas/xsds/UBL2.1/xsd/maindoc/UBL-Invoice-2.1.xsd",
3
- "enSchematron": "/zatca/Data/Rules/schematrons/CEN-EN16931-UBL.xsl",
4
- "zatcaSchematron": "/zatca/Data/Rules/schematrons/20210819_ZATCA_E-invoice_Validation_Rules.xsl",
5
- "certPath": "/zatca/Data/Certificates/cert.pem",
6
- "privateKeyPath": "/zatca/Data/Certificates/ec-secp256k1-priv-key.pem",
7
- "pihPath": "/zatca/Data/PIH/pih.txt",
8
- "certPassword": "123456789",
9
- "inputPath": "/zatca/Data/Input",
10
- "usagePathFile": "/zatca/Configuration/usage.txt"
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "xsdPath": "../Data/Schemas/xsds/UBL2.1/xsd/maindoc/UBL-Invoice-2.1.xsd",
3
- "enSchematron": "../Data/Rules/schematrons/CEN-EN16931-UBL.xsl",
4
- "zatcaSchematron": "../Data/Rules/schematrons/20210819_ZATCA_E-invoice_Validation_Rules.xsl",
5
- "certPath": "../Data/Certificates/cert.pem",
6
- "privateKeyPath": "../Data/Certificates/ec-secp256k1-priv-key.pem",
7
- "pihPath": "../Data/PIH/pih.txt",
8
- "certPassword": "123456789",
9
- "inputPath": "../Data/Input",
10
- "usagePathFile": "../Configuration/usage.txt"
11
- }
Binary file
@@ -1,16 +0,0 @@
1
- [-csr]: flag used to generate csr and private key.
2
- [-pem]: flag used to generate csr and private key in pem format.
3
- [-privateKey <fileName>]: The name of the private key output file.
4
- [-generatedCsr <fileName>]: The name of the csr output file.
5
- [-csrConfig] <fileName> : The name of the csr configuration file.
6
- [-invoice] <filename> : The name of the invoice file.
7
- [-qr]: flag used to generate qr.
8
- [-sign]: flag used to sign invoice.
9
- [-signedInvoice <fileName>]: The name of the signed invoice output file.
10
- [-invoiceRequest]: flag used to generate invoice request.
11
- [-apiRequest <fileName>]: The name of the invoice json request output file
12
- [-generateHash]: flag used to generate new hash for the provided invoice.
13
- [-validate]: flag used to validate invoice.
14
- [-nonprod]: flag pointing to use the csr and private key on non production server.
15
- [-sim]: flag pointing to use the csr and private key on simulation server.
16
- [-help]: flag used to display this help menu and exit.
@@ -1 +0,0 @@
1
- MIID6jCCA5CgAwIBAgITbwAAgbuRbo5tpQ+QjgABAACBuzAKBggqhkjOPQQDAjBjMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRwwGgYDVQQDExNUU1pFSU5WT0lDRS1TdWJDQS0xMB4XDTIyMTEwOTA4MDcyMloXDTI0MTEwODA4MDcyMlowTjELMAkGA1UEBhMCU0ExEzARBgNVBAoTCjM5OTk5OTk5OTkxDDAKBgNVBAsTA1RTVDEcMBoGA1UEAxMTVFNULTM5OTk5OTk5OTkwMDAwMzBWMBAGByqGSM49AgEGBSuBBAAKA0IABGGDDKDmhWAITDv7LXqLX2cmr6+qddUkpcLCvWs5rC2O29W/hS4ajAK4Qdnahym6MaijX75Cg3j4aao7ouYXJ9GjggI5MIICNTCBmgYDVR0RBIGSMIGPpIGMMIGJMTswOQYDVQQEDDIxLVRTVHwyLVRTVHwzLTlmMDkyMjM4LTFkOTctNDcxOC1iNDQxLWNiYzMwMTMyMWIwYTEfMB0GCgmSJomT8ixkAQEMDzM5OTk5OTk5OTkwMDAwMzENMAsGA1UEDAwEMTEwMDEMMAoGA1UEGgwDVFNUMQwwCgYDVQQPDANUU1QwHQYDVR0OBBYEFDuWYlOzWpFN3no1WtyNktQdrA8JMB8GA1UdIwQYMBaAFHZgjPsGoKxnVzWdz5qspyuZNbUvME4GA1UdHwRHMEUwQ6BBoD+GPWh0dHA6Ly90c3RjcmwuemF0Y2EuZ292LnNhL0NlcnRFbnJvbGwvVFNaRUlOVk9JQ0UtU3ViQ0EtMS5jcmwwga0GCCsGAQUFBwEBBIGgMIGdMG4GCCsGAQUFBzABhmJodHRwOi8vdHN0Y3JsLnphdGNhLmdvdi5zYS9DZXJ0RW5yb2xsL1RTWkVpbnZvaWNlU0NBMS5leHRnYXp0Lmdvdi5sb2NhbF9UU1pFSU5WT0lDRS1TdWJDQS0xKDEpLmNydDArBggrBgEFBQcwAYYfaHR0cDovL3RzdGNybC56YXRjYS5nb3Yuc2Evb2NzcDAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMDMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwMwCgYIKoZIzj0EAwIDSAAwRQIgeWUEjxXaW4s8XilH/abzbDJhHHjO3uLaD87YqioA89YCIQDNltfAU98b8FnTD7M8NYIk8cqi7OnPu7h85v5V1Bt3Hg==
@@ -1 +0,0 @@
1
- MHQCAQEEIDyLDaWIn/1/g3PGLrwupV4nTiiLKM59UEqUch1vDfhpoAcGBSuBBAAKoUQDQgAEYYMMoOaFYAhMO/steotfZyavr6p11SSlwsK9azmsLY7b1b+FLhqMArhB2dqHKboxqKNfvkKDePhpqjui5hcn0Q==
@@ -1,9 +0,0 @@
1
- csr.common.name=TST-886431145-311111111101113
2
- csr.serial.number=1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f
3
- csr.organization.identifier=311111111111113
4
- csr.organization.unit.name=3111111111
5
- csr.organization.name=ABCD المحدودة
6
- csr.country.name=SA
7
- csr.invoice.type=1111
8
- csr.location.address=RRRD2929
9
- csr.industry.business.category=الأنشطة العقارية
@@ -1,9 +0,0 @@
1
- csr.common.name=TST-886431145-311111111101113
2
- csr.serial.number=1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f
3
- csr.organization.identifier=311111111101113
4
- csr.organization.unit.name=فرع الرياض
5
- csr.organization.name=ABCD المحدودة
6
- csr.country.name=SA
7
- csr.invoice.type=1111
8
- csr.location.address=RRRD2929
9
- csr.industry.business.category=الأنشطة العقارية
@@ -1,9 +0,0 @@
1
- csr.common.name=TST-886431145-311111111101113
2
- csr.serial.number=1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f
3
- csr.organization.identifier=311111111111113
4
- csr.organization.unit.name=3111111111
5
- csr.organization.name=ABCD Limited
6
- csr.country.name=SA
7
- csr.invoice.type=1111
8
- csr.location.address=RRRD2929
9
- csr.industry.business.category=Real estate activities
@@ -1,9 +0,0 @@
1
- csr.common.name=TST-886431145-311111111101113
2
- csr.serial.number=1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f
3
- csr.organization.identifier=311111111101113
4
- csr.organization.unit.name=Riyadh Branch
5
- csr.organization.name=ABCD Limited
6
- csr.country.name=SA
7
- csr.invoice.type=1111
8
- csr.location.address=RRRD2929
9
- csr.industry.business.category=Real estate activities
@@ -1,9 +0,0 @@
1
- csr.common.name=
2
- csr.serial.number=
3
- csr.organization.identifier=
4
- csr.organization.unit.name=
5
- csr.organization.name=
6
- csr.country.name=
7
- csr.invoice.type=
8
- csr.location.address=
9
- csr.industry.business.category=
@@ -1 +0,0 @@
1
- NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==