zatca 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zatca/version.rb +1 -1
  3. data/zatca.gemspec +1 -1
  4. metadata +1 -154
  5. data/einvoicing-sdk/Apps/fatoora +0 -12
  6. data/einvoicing-sdk/Apps/fatoora.bat +0 -16
  7. data/einvoicing-sdk/Apps/global.json +0 -1
  8. data/einvoicing-sdk/Apps/jq.exe +0 -0
  9. data/einvoicing-sdk/Apps/zatca-einvoicing-sdk-238-R3.2.7.jar +0 -0
  10. data/einvoicing-sdk/Configuration/config.json +0 -11
  11. data/einvoicing-sdk/Configuration/defaults.json +0 -11
  12. data/einvoicing-sdk/Configuration/jq.exe +0 -0
  13. data/einvoicing-sdk/Configuration/usage.txt +0 -16
  14. data/einvoicing-sdk/Data/Certificates/cert.pem +0 -1
  15. data/einvoicing-sdk/Data/Certificates/ec-secp256k1-priv-key.pem +0 -1
  16. data/einvoicing-sdk/Data/Input/csr-config-example-AR-VAT-Group.properties +0 -9
  17. data/einvoicing-sdk/Data/Input/csr-config-example-AR.properties +0 -9
  18. data/einvoicing-sdk/Data/Input/csr-config-example-EN-VAT-group.properties +0 -9
  19. data/einvoicing-sdk/Data/Input/csr-config-example-EN.properties +0 -9
  20. data/einvoicing-sdk/Data/Input/csr-config-template.properties +0 -9
  21. data/einvoicing-sdk/Data/PIH/pih.txt +0 -1
  22. data/einvoicing-sdk/Data/Rules/schematrons/20210819_ZATCA_E-invoice_Validation_Rules.xsl +0 -2844
  23. data/einvoicing-sdk/Data/Rules/schematrons/CEN-EN16931-UBL.xsl +0 -1973
  24. data/einvoicing-sdk/Data/Samples/PDF-A3/Simplified Debit Note.pdf +0 -0
  25. data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Credit Note.pdf +0 -0
  26. data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Debit Note.pdf +0 -0
  27. data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Invoice.pdf +0 -0
  28. data/einvoicing-sdk/Data/Samples/PDF-A3/Tax_Invoice_USD.pdf +0 -0
  29. data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note.xml +0 -300
  30. data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note_Error.xml +0 -225
  31. data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note.xml +0 -211
  32. data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note_Error.xml +0 -226
  33. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Out_Of_Scope_Simplified_Invoice.xml +0 -207
  34. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Simplified_Invoice_USD.xml +0 -246
  35. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice.xml +0 -246
  36. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice_Error.xml +0 -228
  37. data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note.xml +0 -227
  38. data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note_Error.xml +0 -224
  39. data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note.xml +0 -227
  40. data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note_Error.xml +0 -226
  41. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Exempt_Standard_Invoice.xml +0 -227
  42. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Standard_Invoice_USD.xml +0 -227
  43. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Zero_Rate_Standard_Invoice.xml +0 -227
  44. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 1.xml +0 -294
  45. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 2.xml +0 -432
  46. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice.xml +0 -222
  47. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice_Error.xml +0 -228
  48. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/CCTS_CCT_SchemaModule-2.1.xsd +0 -731
  49. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonAggregateComponents-2.1.xsd +0 -44365
  50. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonBasicComponents-2.1.xsd +0 -5389
  51. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonExtensionComponents-2.1.xsd +0 -223
  52. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonSignatureComponents-2.1.xsd +0 -101
  53. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CoreComponentParameters-2.1.xsd +0 -63
  54. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-ExtensionContentDataType-2.1.xsd +0 -89
  55. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-QualifiedDataTypes-2.1.xsd +0 -69
  56. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureAggregateComponents-2.1.xsd +0 -138
  57. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureBasicComponents-2.1.xsd +0 -78
  58. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-UnqualifiedDataTypes-2.1.xsd +0 -553
  59. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv132-2.1.xsd +0 -476
  60. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv141-2.1.xsd +0 -25
  61. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-xmldsig-core-schema-2.1.xsd +0 -330
  62. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/maindoc/UBL-Invoice-2.1.xsd +0 -1002
  63. data/einvoicing-sdk/Dockerfile +0 -26
  64. data/einvoicing-sdk/LICENSE.txt +0 -56
  65. data/einvoicing-sdk/Lib/.Net/DLL/BouncyCastle.Crypto.dll +0 -0
  66. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Core.dll +0 -0
  67. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Text.dll +0 -0
  68. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Util.dll +0 -0
  69. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.XML.API.dll +0 -0
  70. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.Runtime.dll +0 -0
  71. data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll +0 -0
  72. data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll.config +0 -43
  73. data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.pdb +0 -0
  74. data/einvoicing-sdk/Lib/.Net/DLL/System.Net.Http.dll +0 -0
  75. data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-10.8.dll +0 -0
  76. data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.dll +0 -0
  77. data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.xml +0 -11759
  78. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/3f204b7a-faba-42d8-8288-8b6fe516555c.vsidx +0 -0
  79. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/f95b6f91-c110-4b7a-bb49-3fc6bde85b13.vsidx +0 -0
  80. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/read.lock +0 -0
  81. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/v17/.suo +0 -0
  82. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/App.config +0 -14
  83. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/BouncyCastle.Crypto.dll +0 -0
  84. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/CSRGeneratorOpenSSL.cs +0 -58
  85. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Core.dll +0 -0
  86. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Text.dll +0 -0
  87. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Util.dll +0 -0
  88. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.XML.API.dll +0 -0
  89. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.Runtime.dll +0 -0
  90. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Program.cs +0 -194
  91. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Properties/AssemblyInfo.cs +0 -36
  92. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Readme.txt +0 -8
  93. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll +0 -0
  94. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll.config +0 -43
  95. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.pdb +0 -0
  96. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.csproj +0 -120
  97. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe +0 -0
  98. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe.config +0 -20
  99. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.pdb +0 -0
  100. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.sln +0 -25
  101. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/BouncyCastle.Crypto.dll +0 -0
  102. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/certificate.txt +0 -1
  103. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/pih.txt +0 -1
  104. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/privateKey.txt +0 -1
  105. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Core.dll +0 -0
  106. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Text.dll +0 -0
  107. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Util.dll +0 -0
  108. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.XML.API.dll +0 -0
  109. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.Runtime.dll +0 -0
  110. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll +0 -0
  111. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll.config +0 -43
  112. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.pdb +0 -0
  113. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe +0 -0
  114. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe.config +0 -20
  115. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.pdb +0 -0
  116. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/System.Net.Http.dll +0 -0
  117. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-10.8.dll +0 -0
  118. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.dll +0 -0
  119. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.xml +0 -11759
  120. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs +0 -4
  121. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache +0 -0
  122. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
  123. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.AssemblyReference.cache +0 -0
  124. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CopyComplete +0 -0
  125. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CoreCompileInputs.cache +0 -1
  126. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.FileListAbsolute.txt +0 -22
  127. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.SuggestedBindingRedirects.cache +0 -0
  128. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.exe +0 -0
  129. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.pdb +0 -0
  130. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-10.8.dll +0 -0
  131. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.dll +0 -0
  132. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.xml +0 -11759
  133. data/einvoicing-sdk/Lib/.Net/Test/BouncyCastle.Crypto.dll +0 -0
  134. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Core.dll +0 -0
  135. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Text.dll +0 -0
  136. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Util.dll +0 -0
  137. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.XML.API.dll +0 -0
  138. data/einvoicing-sdk/Lib/.Net/Test/IKVM.Runtime.dll +0 -0
  139. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll +0 -0
  140. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll.config +0 -43
  141. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.pdb +0 -0
  142. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe +0 -0
  143. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe.config +0 -20
  144. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.pdb +0 -0
  145. data/einvoicing-sdk/Lib/.Net/Test/saxon-he-10.8.dll +0 -0
  146. data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.dll +0 -0
  147. data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.xml +0 -11759
  148. data/einvoicing-sdk/README.md +0 -15
  149. data/einvoicing-sdk/Readme/readme.docx +0 -0
  150. data/einvoicing-sdk/Readme/readme.md +0 -674
  151. data/einvoicing-sdk/Readme/readme.pdf +0 -0
  152. data/einvoicing-sdk/Readme/~$readme.docx +0 -0
  153. data/einvoicing-sdk/docker-compose.yml +0 -12
  154. data/einvoicing-sdk/install.bat +0 -74
  155. data/einvoicing-sdk/install.sh +0 -74
@@ -1,74 +0,0 @@
1
-
2
- @echo off
3
-
4
- SET MY_PATH=%~dp0
5
-
6
- setx /U %USERDOMAIN%/%USERNAME% /S %COMPUTERNAME% SDK_CONFIG %MY_PATH%Configuration/config.json
7
- setx /U %USERDOMAIN%/%USERNAME% /S %COMPUTERNAME% FATOORA_HOME %MY_PATH%Apps\
8
- SETX PATH ""
9
- SETX PATH "%MY_PATH%Apps\;%PATH%"
10
-
11
- cd Configuration
12
-
13
- set "CURRENT=%~dp0"
14
- set "_path=%CURRENT%Configuration"
15
-
16
- for %%a in (%_path:~0,-1%) do set "p2_dir=%%~dpa"\
17
-
18
- set p2_dir=%p2_dir:\=\\%
19
-
20
- SET XSD=
21
- FOR /F %%I IN ('jq .xsdPath defaults.json ') DO set "XSD=%%I"
22
-
23
- SET XSD_filename=
24
- for %%F in (%XSD%) do set "XSD_filename=%%~nxF"
25
-
26
- SET EN_SCHEMA=
27
- FOR /F %%I IN ('jq .enSchematron defaults.json ') DO set "EN_SCHEMA=%%I"
28
- SET EN_SCHEMA_filename=
29
- for %%F in (%EN_SCHEMA%) do set "EN_SCHEMA_filename=%%~nxF"
30
-
31
-
32
- SET ZATCA_SCHEMA=
33
- FOR /F %%I IN ('jq .zatcaSchematron defaults.json ') DO set "ZATCA_SCHEMA=%%I"
34
- SET ZATCA_SCHEMA_filename=
35
- for %%F in (%ZATCA_SCHEMA%) do set "ZATCA_SCHEMA_filename=%%~nxF"
36
-
37
- SET CERT=
38
- FOR /F %%I IN ('jq .certPath defaults.json ') DO set "CERT=%%I"
39
- SET CERT_filename=
40
- for %%F in (%CERT%) do set "CERT_filename=%%~nxF"
41
-
42
- SET PK=
43
- FOR /F %%I IN ('jq .privateKeyPath defaults.json ') DO set "PK=%%I"
44
- SET PK_filename=
45
- for %%F in (%PK%) do set "PK_filename=%%~nxF"
46
-
47
- SET PIH=
48
- FOR /F %%I IN ('jq .pihPath defaults.json ') DO set "PIH=%%I"
49
- SET PIH_filename=
50
- for %%F in (%PIH%) do set "PIH_filename=%%~nxF"
51
-
52
- SET CERT_PASSWORD=
53
- FOR /F %%I IN ('jq .certPassword defaults.json ') DO set "CERT_PASSWORD=%%I"
54
- SET CERT_PASSWORD_VALUE=
55
- for %%F in (%CERT_PASSWORD%) do set "CERT_PASSWORD_VALUE=%%~nxF"
56
-
57
- SET usage=
58
- FOR /F %%I IN ('jq .usagePathFile defaults.json ') DO set "usage=%%I"
59
- SET usage_filename=
60
- for %%F in (%usage%) do set "usage_filename=%%~nxF"
61
-
62
-
63
- echo { "xsdPath" : "%p2_dir%Data\\Schemas\\xsds\\UBL2.1\\xsd\\maindoc\\%XSD_filename%", ^
64
- "enSchematron":"%p2_dir%Data\\Rules\\schematrons\\%EN_SCHEMA_filename%", ^
65
- "zatcaSchematron":"%p2_dir%Data\\Rules\\schematrons\\%ZATCA_SCHEMA_filename%", ^
66
- "certPath":"%p2_dir%Data\\Certificates\\%CERT_filename%",^
67
- "privateKeyPath":"%p2_dir%Data\\Certificates\\%PK_filename%",^
68
- "pihPath" : "%p2_dir%Data\\PIH\\%PIH_filename%",^
69
- "certPassword" : "%CERT_PASSWORD_VALUE%",^
70
- "inputPath" : "%p2_dir%Data\\Input",^
71
- "usagePathFile":"%p2_dir%Configuration\\%usage_filename%"^
72
- } > config.json
73
-
74
- cd ../
@@ -1,74 +0,0 @@
1
-
2
- export FATOORA_HOME="${PWD}"
3
-
4
- export PATH=$PATH:$FATOORA_HOME/Apps/
5
- #export PATH
6
- #export FATOORA_HOME
7
-
8
-
9
-
10
- touch ~/.zshrc
11
- touch ~/.bash-profile
12
-
13
-
14
-
15
-
16
- SDK_CONFIG="${PWD}/Configuration/config.json"
17
-
18
-
19
- echo "export PATH=$PATH:$FATOORA_HOME/Apps/" >> ~/.bash-profile
20
- echo "export FATOORA_HOME=${PWD}/Apps" >> ~/.bash-profile
21
- echo "export SDK_CONFIG=$SDK_CONFIG" >> ~/.bash-profile
22
-
23
- echo "export PATH=$PATH:$FATOORA_HOME/Apps/" >> ~/.zshrc
24
- echo "export FATOORA_HOME=${PWD}/Apps" >> ~/.zshrc
25
- echo "export SDK_CONFIG=$SDK_CONFIG" >> ~/.zshrc
26
-
27
-
28
-
29
-
30
-
31
- source ~/.bash-profile
32
- source ~/.zshrc
33
-
34
- cd Configuration
35
-
36
- parentDir="$(dirname "$PWD")"
37
-
38
- xsdPath=$(jq -r '.xsdPath' defaults.json)
39
- xsdPathFileName="$(basename $xsdPath)"
40
-
41
- enSchematron=$(jq -r '.enSchematron' defaults.json)
42
- enSchematronFileName="$(basename $enSchematron)"
43
-
44
- zatcaSchematron=$(jq -r '.zatcaSchematron' defaults.json)
45
- zatcaSchematronFileName="$(basename $zatcaSchematron)"
46
-
47
- certPath=$(jq -r '.certPath' defaults.json)
48
- certPathFileName="$(basename $certPath)"
49
-
50
- pkPath=$(jq -r '.privateKeyPath' defaults.json)
51
- pkPathFileName="$(basename $pkPath)"
52
-
53
- pihPath=$(jq -r '.pihPath' defaults.json)
54
- pihPathFileName="$(basename $pihPath)"
55
-
56
- certPassword=$(jq -r '.certPassword' defaults.json)
57
- certPasswordValue="$(basename $certPassword)"
58
-
59
- usagePath=$(jq -r '.usagePathFile' defaults.json)
60
- usagePathFileName="$(basename $usagePath)"
61
-
62
-
63
- jq -n '{"xsdPath":$one, "enSchematron":$two, "zatcaSchematron":$thr,"certPath":$fou, "privateKeyPath":$fiv ,"pihPath":$six ,"certPassword":$sev ,"inputPath":$eight,"usagePathFile":$nine}' \
64
- --arg one "${parentDir}/Data/Schemas/xsds/UBL2.1/xsd/maindoc/$xsdPathFileName" \
65
- --arg two "${parentDir}/Data/Rules/schematrons/$enSchematronFileName" \
66
- --arg thr "${parentDir}/Data/Rules/schematrons/$zatcaSchematronFileName" \
67
- --arg fou "${parentDir}/Data/Certificates/$certPathFileName" \
68
- --arg fiv "${parentDir}/Data/Certificates/$pkPathFileName" \
69
- --arg six "${parentDir}/Data/PIH/$pihPathFileName" \
70
- --arg sev "$certPasswordValue" \
71
- --arg eight "${parentDir}/Data/Input" \
72
- --arg nine "${parentDir}/Configuration/$usagePathFileName" >config.json
73
-
74
- cd ../