sefaz 0.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +115 -0
- data/Gemfile.lock +31 -17
- data/README.md +449 -17
- data/Rakefile +1 -0
- data/docs/CFe-SAT/Especificacao_SAT_v_ER_2_30_03.pdf +0 -0
- data/docs/CFe-SAT/Manual_Orientacao_SAT_v_MO_2_19_04.pdf +0 -0
- data/docs/CFe-SAT/Manual_do_Emulador_SAT-CF-e_Offline_2015_09_10.pdf +0 -0
- data/docs/CFe-SAT/_CANCEL_dataset.md +14 -0
- data/docs/CFe-SAT/_SALE_dataset.md +171 -0
- data/docs/CFe-SAT/emulador_off_line_v2_9_4.zip +0 -0
- data/docs/NFe-NFCe/ANEXO I - Leiaute e Regra de Valida/303/247/303/243o - NF-e e NFC-e.pdf +0 -0
- data/docs/NFe-NFCe/ANEXO II -Manual Especifica/303/247/303/265esT/303/251cnicas - Danfe-C/303/263digo-Barras.pdf +0 -0
- data/docs/NFe-NFCe/Anexo III - Manual de Conting/303/252ncia - NF-e.pdf +0 -0
- data/docs/NFe-NFCe/Anexo IV - Manual de Conting/303/252ncia - NFC-e.pdf +0 -0
- data/docs/NFe-NFCe/Manual de Orienta/303/247/303/243o ao Contribuinte - MOC - vers/303/243o 7.0 - NF-e e NFC-e.pdf +0 -0
- data/docs/NFe-NFCe/_dataset.md +819 -0
- data/lib/sefaz/base.rb +11 -0
- data/lib/sefaz/configuration.rb +58 -0
- data/lib/sefaz/exception.rb +14 -0
- data/lib/sefaz/refinement.rb +91 -0
- data/lib/sefaz/utils/connection.rb +35 -0
- data/lib/sefaz/utils/prawn_helper.rb +47 -0
- data/lib/sefaz/utils/signer.rb +122 -0
- data/lib/sefaz/version.rb +1 -1
- data/lib/sefaz/webservice/base.rb +13 -0
- data/lib/sefaz/webservice/nfe/auditor.rb +35 -0
- data/lib/sefaz/webservice/nfe/client.rb +426 -0
- data/lib/sefaz/webservice/nfe/connection.rb +17 -0
- data/lib/sefaz/webservice/nfe/dataset.rb +451 -0
- data/lib/sefaz/webservice/nfe/validator.rb +63 -0
- data/lib/sefaz/webservice/nfe/wsdl.rb +117 -0
- data/lib/sefaz/webservice/sat/client.rb +44 -0
- data/lib/sefaz/webservice/sat/dataset/cancel.rb +34 -0
- data/lib/sefaz/webservice/sat/dataset/sale.rb +176 -0
- data/lib/sefaz/webservice/sat/templates/base.rb +54 -0
- data/lib/sefaz/webservice/sat/templates/cupom_fiscal_55mm.rb +307 -0
- data/lib/sefaz/webservice/sat/templates/cupom_fiscal_80mm.rb +307 -0
- data/lib/sefaz.rb +45 -3
- data/sefaz.gemspec +5 -3
- metadata +80 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67f5c31a1cf62a421bb037362fbd23aa0e55a306dd08bc60842c08aa6ded79b5
|
4
|
+
data.tar.gz: 81ebbf212d3e46e72ec801607b4656c2803b074c3c27942604da85e4648a39b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c8008fe1edc8a5df77326ec9914ce9faed01d2a533f4058974d2a415f4838ade9462b44ee669487becf51d2ca40becb5df1b97435a1d25351409c52acf596d4
|
7
|
+
data.tar.gz: d42f7adf36372b4c143c25378460d4eb2e8da4a3c5c08792f93cd8e59552591bce840e3fa4ac1682ff797004e904c621c074f138653f9612ac949c91eea00af2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,120 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
1
3
|
## [Unreleased]
|
2
4
|
|
5
|
+
- ConsultarGTIN service
|
6
|
+
- consultarDistribuicaoDFe service
|
7
|
+
- consultarDistribuicaoDFeChave service
|
8
|
+
- enviarManifestacao service
|
9
|
+
- exportarManifestacao service
|
10
|
+
|
11
|
+
## [1.3.0] - 2024-02-29
|
12
|
+
|
13
|
+
- Adding SEFAZ::Utils::PrawnHelper with utils methods for Prawn
|
14
|
+
- Adding layout CupomFiscal55mm/CupomFiscal80mm
|
15
|
+
- Adding base class to unify printing
|
16
|
+
- Adding SEFAZ::Webservice::SAT::Client with exportarCF method
|
17
|
+
- Adding new configuration field
|
18
|
+
- Adding new exception (ValidationError)
|
19
|
+
- Adding new refinement (mask!, to_number, numeric?, to_currency, with_delimiter and with_precision)
|
20
|
+
- Adding prawn gem
|
21
|
+
- Adding barby gem (with dependencies rqrcode)
|
22
|
+
- Organizing tests (CFe/NFe and fixtures with examples/results)
|
23
|
+
|
24
|
+
## [1.2.0] - 2024-02-24
|
25
|
+
|
26
|
+
- Adding SEFAZ::Webservice::SAT::Dataset::Cancel to cancel XML (CFe-SAT)
|
27
|
+
|
28
|
+
## [1.1.0] - 2024-02-23
|
29
|
+
|
30
|
+
- Adding SEFAZ::Webservice::SAT::Dataset::Sale to sale XML (CFe-SAT)
|
31
|
+
|
32
|
+
## [1.0.0] - 2024-02-23
|
33
|
+
|
34
|
+
- Major update: Redesign and improvements to the library
|
35
|
+
|
36
|
+
## [0.9.0] - 2023-03-22
|
37
|
+
|
38
|
+
- Adding SEFAZ::DataSet::NFE object
|
39
|
+
- Adding enviarNF service
|
40
|
+
- Adding enviarLoteNF service
|
41
|
+
- Adding calculaChaveNF service
|
42
|
+
- Changed: method 'gerarInfRespTec' accepting XML or HASH
|
43
|
+
|
44
|
+
## [0.8.0] - 2023-01-16
|
45
|
+
|
46
|
+
- Adding enviarCCe service
|
47
|
+
- Adding exportarCCe service
|
48
|
+
|
49
|
+
## [0.7.0] - 2023-01-16
|
50
|
+
|
51
|
+
- Adding enviarEvento service
|
52
|
+
- Adding enviarLoteDeEvento service
|
53
|
+
- Adding cancelarNF service
|
54
|
+
- Adding exportarCancelarNF service
|
55
|
+
- Adding gerarLeiauteEvento method
|
56
|
+
- Adding global issuer CNPJ
|
57
|
+
- Fix: method name 'exportarDados'/'enviarDados' to 'exportar'/'enviar'
|
58
|
+
|
59
|
+
## [0.6.2] - 2023-01-14
|
60
|
+
|
61
|
+
- Fix: turn off warnings when run test
|
62
|
+
- Fix: wrong comments
|
63
|
+
- Changed: require ruby version 2.6.0 to 2.5.1 (downgrade)
|
64
|
+
|
65
|
+
## [0.6.1] - 2023-01-14
|
66
|
+
|
67
|
+
- Fix: fixing wrong signature
|
68
|
+
|
69
|
+
## [0.6.0] - 2023-01-12
|
70
|
+
|
71
|
+
- Adding technical manager section
|
72
|
+
- Adding assinarNF service
|
73
|
+
- Adding inutilizarNF service
|
74
|
+
- Adding calculaChaveInutilizacao service
|
75
|
+
- Adding exportarInutilizarNF service
|
76
|
+
- Adding enviarInutilizarNF service
|
77
|
+
- Adding validarNF service (<https://www.sefaz.rs.gov.br/NFE/NFE-VAL.aspx>)
|
78
|
+
- Adding auditarNF service (<https://validador.nfe.tecnospeed.com.br/>)
|
79
|
+
- Adding gerarDANFE service (<https://www.freenfe.com.br/leitor-de-xml-online>)
|
80
|
+
- Changed: README.md
|
81
|
+
|
82
|
+
## [0.5.1] - 2023-01-12
|
83
|
+
|
84
|
+
- Adding helper method (SEFAZ.toXML(@hash), SEFAZ.toHASH(@xml))
|
85
|
+
- Allowing to services return XML and HASH
|
86
|
+
- Allowing to SEFAZ::Utils::Connection#call return response object
|
87
|
+
- Fix: Globals variables
|
88
|
+
- Fix: Response Savon :LowerCamelCase to :None
|
89
|
+
- Changed: README.md
|
90
|
+
|
91
|
+
## [0.5.0] - 2023-01-11
|
92
|
+
|
93
|
+
- consultarRecibo service
|
94
|
+
|
95
|
+
## [0.4.1] - 2023-01-11
|
96
|
+
|
97
|
+
- Adding README.md
|
98
|
+
- Allowing to set PFX transmission and signature
|
99
|
+
- Fix: Nomenclatures
|
100
|
+
- Fix: Organizations
|
101
|
+
- Fix: WSDL Service returning only URL
|
102
|
+
|
103
|
+
## [0.4.0] - 2023-01-11
|
104
|
+
|
105
|
+
- Adding consultarNF service
|
106
|
+
- Adding consultarCadastro service
|
107
|
+
|
108
|
+
## [0.3.1] - 2023-01-10
|
109
|
+
|
110
|
+
- Fix: Connection bug with xmlns attribute
|
111
|
+
|
112
|
+
## [0.3.0] - 2023-01-10
|
113
|
+
|
114
|
+
- Adding WSDL manager
|
115
|
+
- Adding Connection manager
|
116
|
+
- Adding module NFE with 'connected?' and 'statusDoServico' service
|
117
|
+
|
3
118
|
## [0.2.0] - 2023-01-10
|
4
119
|
|
5
120
|
- Adding savon gem
|
data/Gemfile.lock
CHANGED
@@ -1,48 +1,61 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sefaz (
|
4
|
+
sefaz (1.3.0)
|
5
|
+
barby (~> 0.6.9)
|
6
|
+
prawn (~> 2.4.0)
|
7
|
+
rqrcode (~> 0.10.1)
|
5
8
|
savon (~> 2.13.0)
|
6
9
|
|
7
10
|
GEM
|
8
11
|
remote: https://rubygems.org/
|
9
12
|
specs:
|
10
|
-
addressable (2.8.
|
13
|
+
addressable (2.8.6)
|
11
14
|
public_suffix (>= 2.0.2, < 6.0)
|
12
|
-
akami (1.3.
|
15
|
+
akami (1.3.2)
|
13
16
|
gyoku (>= 0.4.0)
|
14
17
|
nokogiri
|
18
|
+
barby (0.6.9)
|
15
19
|
builder (3.2.4)
|
16
|
-
|
20
|
+
chunky_png (1.4.0)
|
21
|
+
date (3.3.4)
|
17
22
|
gyoku (1.4.0)
|
18
23
|
builder (>= 2.1.2)
|
19
24
|
rexml (~> 3.0)
|
20
25
|
httpi (3.0.1)
|
21
26
|
rack
|
22
|
-
mail (2.8.
|
27
|
+
mail (2.8.1)
|
23
28
|
mini_mime (>= 0.1.1)
|
24
29
|
net-imap
|
25
30
|
net-pop
|
26
31
|
net-smtp
|
27
|
-
mini_mime (1.1.
|
32
|
+
mini_mime (1.1.5)
|
33
|
+
mini_portile2 (2.8.5)
|
28
34
|
minitest (5.15.0)
|
29
|
-
net-imap (0.
|
35
|
+
net-imap (0.4.10)
|
30
36
|
date
|
31
37
|
net-protocol
|
32
38
|
net-pop (0.1.2)
|
33
39
|
net-protocol
|
34
|
-
net-protocol (0.2.
|
40
|
+
net-protocol (0.2.2)
|
35
41
|
timeout
|
36
|
-
net-smtp (0.
|
42
|
+
net-smtp (0.4.0.1)
|
37
43
|
net-protocol
|
38
|
-
nokogiri (1.
|
44
|
+
nokogiri (1.15.5)
|
45
|
+
mini_portile2 (~> 2.8.2)
|
39
46
|
racc (~> 1.4)
|
40
47
|
nori (2.6.0)
|
41
|
-
|
42
|
-
|
43
|
-
|
48
|
+
pdf-core (0.9.0)
|
49
|
+
prawn (2.4.0)
|
50
|
+
pdf-core (~> 0.9.0)
|
51
|
+
ttfunk (~> 1.7)
|
52
|
+
public_suffix (5.0.4)
|
53
|
+
racc (1.7.3)
|
54
|
+
rack (3.0.9.1)
|
44
55
|
rake (13.0.6)
|
45
|
-
rexml (3.2.
|
56
|
+
rexml (3.2.6)
|
57
|
+
rqrcode (0.10.1)
|
58
|
+
chunky_png (~> 1.0)
|
46
59
|
savon (2.13.1)
|
47
60
|
akami (~> 1.2)
|
48
61
|
builder (>= 2.1.2)
|
@@ -52,14 +65,15 @@ GEM
|
|
52
65
|
nokogiri (>= 1.8.1)
|
53
66
|
nori (~> 2.4)
|
54
67
|
wasabi (~> 3.4)
|
55
|
-
timeout (0.
|
68
|
+
timeout (0.4.1)
|
69
|
+
ttfunk (1.7.0)
|
56
70
|
wasabi (3.8.0)
|
57
71
|
addressable
|
58
72
|
httpi (~> 3.0)
|
59
73
|
nokogiri (>= 1.4.2)
|
60
74
|
|
61
75
|
PLATFORMS
|
62
|
-
|
76
|
+
ruby
|
63
77
|
|
64
78
|
DEPENDENCIES
|
65
79
|
minitest (~> 5.0)
|
@@ -67,4 +81,4 @@ DEPENDENCIES
|
|
67
81
|
sefaz!
|
68
82
|
|
69
83
|
BUNDLED WITH
|
70
|
-
|
84
|
+
1.17.3
|