br_danfe 0.15.1 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.tool-versions +1 -0
  3. data/Gemfile.lock +35 -22
  4. data/Guardfile +2 -2
  5. data/README.md +23 -0
  6. data/br_danfe.gemspec +3 -2
  7. data/lib/br_danfe.rb +1 -1
  8. data/lib/br_danfe/danfe_lib/nfce.rb +1 -1
  9. data/lib/br_danfe/danfe_lib/nfe_lib/dest.rb +1 -1
  10. data/lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb +1 -1
  11. data/lib/br_danfe/document_builder.rb +1 -1
  12. data/lib/br_danfe/helper.rb +7 -9
  13. data/lib/br_danfe/mdfe.rb +55 -0
  14. data/lib/br_danfe/mdfe_lib/authorization_protocol.rb +24 -0
  15. data/lib/br_danfe/mdfe_lib/document.rb +26 -0
  16. data/lib/br_danfe/mdfe_lib/drivers.rb +70 -0
  17. data/lib/br_danfe/mdfe_lib/fisco_control.rb +40 -0
  18. data/lib/br_danfe/mdfe_lib/header.rb +78 -0
  19. data/lib/br_danfe/mdfe_lib/mdfe_identification.rb +69 -0
  20. data/lib/br_danfe/mdfe_lib/notes.rb +94 -0
  21. data/lib/br_danfe/mdfe_lib/totalizer.rb +57 -0
  22. data/lib/br_danfe/mdfe_lib/vehicles.rb +80 -0
  23. data/lib/br_danfe/qr_code.rb +22 -0
  24. data/lib/br_danfe/version.rb +1 -1
  25. data/spec/br_danfe/danfe_lib/nfe_lib/infadic_spec.rb +3 -3
  26. data/spec/br_danfe/helper_spec.rb +12 -0
  27. data/spec/br_danfe/mdfe_lib/authorization_protocol_spec.rb +35 -0
  28. data/spec/br_danfe/mdfe_lib/document_spec.rb +20 -0
  29. data/spec/br_danfe/mdfe_lib/drivers_spec.rb +88 -0
  30. data/spec/br_danfe/mdfe_lib/fisco_control_spec.rb +55 -0
  31. data/spec/br_danfe/mdfe_lib/header_spec.rb +126 -0
  32. data/spec/br_danfe/mdfe_lib/mdfe_identification_spec.rb +104 -0
  33. data/spec/br_danfe/mdfe_lib/notes_spec.rb +97 -0
  34. data/spec/br_danfe/mdfe_lib/totalizer_spec.rb +63 -0
  35. data/spec/br_danfe/mdfe_lib/vehicles_spec.rb +66 -0
  36. data/spec/br_danfe/mdfe_spec.rb +46 -0
  37. data/spec/br_danfe/{danfe_lib/nfce_lib/qr_code_spec.rb → qr_code_spec.rb} +10 -5
  38. data/spec/fixtures/mdfe/lib/document#render.pdf +0 -0
  39. data/spec/fixtures/mdfe/lib/document#text.align.pdf +0 -0
  40. data/spec/fixtures/mdfe/lib/document#text.pad.pdf +0 -0
  41. data/spec/fixtures/mdfe/lib/document#text.simple.pdf +0 -0
  42. data/spec/fixtures/mdfe/lib/document#text.size.pdf +0 -0
  43. data/spec/fixtures/mdfe/lib/document#text.style.pdf +0 -0
  44. data/spec/fixtures/mdfe/lib/fisco_control#barcode.pdf +0 -0
  45. data/spec/fixtures/mdfe/lib/header#render-qr-code.pdf +0 -0
  46. data/spec/fixtures/mdfe/lib/header#render-with_logo.pdf +0 -0
  47. data/spec/fixtures/mdfe/lib/header#render-without_logo.pdf +0 -0
  48. data/spec/fixtures/mdfe/lib/mdfe-with-multiple-pages.pdf +1945 -0
  49. data/spec/fixtures/mdfe/lib/mdfe.fixture.pdf +1286 -0
  50. data/spec/fixtures/mdfe/lib/notes#render-big-aditional-information.pdf +1943 -0
  51. data/spec/fixtures/mdfe/lib/xml-mdfe-multiples-pages.xml +116 -0
  52. data/spec/fixtures/mdfe/lib/xml-mdfe.xml +250 -0
  53. data/spec/fixtures/qr_code/qr_code#render.pdf +0 -0
  54. metadata +83 -34
  55. data/lib/br_danfe/danfe_lib/nfce_lib/qr_code.rb +0 -25
  56. data/lib/br_danfe/danfe_lib/nfe_lib/cep.rb +0 -11
  57. data/spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb +0 -10
@@ -0,0 +1,116 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <mdfeProc xmlns="http://www.portalfiscal.inf.br/mdfe" versao="3.00">
3
+ <MDFe xmlns="http://www.portalfiscal.inf.br/mdfe">
4
+ <infMDFe Id="MDFe32210717781119000141580010000001211000000003" versao="3.00">
5
+ <ide>
6
+ <mod>58</mod>
7
+ <serie>1</serie>
8
+ <nMDF>121</nMDF>
9
+ <cMDF>00000000</cMDF>
10
+ <modal>1</modal>
11
+ <dhEmi>2021-07-01T17:30:00-03:00</dhEmi>
12
+ <UFIni>ES</UFIni>
13
+ <UFFim>ES</UFFim>
14
+ </ide>
15
+ <emit>
16
+ <CNPJ>17781119000141</CNPJ>
17
+ <IE>082942625</IE>
18
+ <xNome>VENTURIM AGROCRIATIVA LTDA EPP</xNome>
19
+ <xFant>VENTURIM CONSERVAS</xFant>
20
+ <enderEmit>
21
+ <xLgr>RODOVIA ES 473 KM 13</xLgr>
22
+ <nro>0</nro>
23
+ <xMun>VENDA NOVA DO IMIGRANTE</xMun>
24
+ <CEP>29375000</CEP>
25
+ <UF>ES</UF>
26
+ </enderEmit>
27
+ </emit>
28
+ <infModal versaoModal="3.00">
29
+ <rodo>
30
+ <infANTT/>
31
+ <veicTracao>
32
+ <placa>RQM8B64</placa>
33
+ <RENAVAM>01259587867</RENAVAM>
34
+ <condutor>
35
+ <xNome>EDUARDO DANIEL</xNome>
36
+ <CPF>11585756709</CPF>
37
+ </condutor>
38
+ </veicTracao>
39
+ <veicReboque>
40
+ <placa>RVA1B90</placa>
41
+ <RENAVAM>123456789</RENAVAM>
42
+ <condutor>
43
+ <xNome>JOAO DA SILVA</xNome>
44
+ <CPF>9876654312</CPF>
45
+ </condutor>
46
+ </veicReboque>
47
+ <veicReboque>
48
+ <placa>DFE4U78</placa>
49
+ <RENAVAM>045784572</RENAVAM>
50
+ <condutor>
51
+ <xNome>PEDRO DE SOUZA</xNome>
52
+ <CPF>9876654312</CPF>
53
+ </condutor>
54
+ </veicReboque>
55
+ <veicReboque>
56
+ <placa>OPS4F78</placa>
57
+ <RENAVAM>045784572</RENAVAM>
58
+ <condutor>
59
+ <xNome>GABRIEL DE JESUS</xNome>
60
+ <CPF>9876654312</CPF>
61
+ </condutor>
62
+ </veicReboque>
63
+ </rodo>
64
+ </infModal>
65
+ <tot>
66
+ <qNFe>10</qNFe>
67
+ <vCarga>8222.10</vCarga>
68
+ <cUnid>01</cUnid>
69
+ <qCarga>615.1400</qCarga>
70
+ </tot>
71
+ <autXML>
72
+ <CNPJ>04898488000177</CNPJ>
73
+ </autXML>
74
+ <infAdic>
75
+ <infAdFisco>Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
76
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
77
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
78
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
79
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
80
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
81
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma c</infAdFisco>
82
+ <infCpl>Exemplo de observação para o Contribuinte alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
83
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
84
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
85
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
86
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
87
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
88
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
89
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
90
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
91
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
92
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
93
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
94
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
95
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
96
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa
97
+ Exemplo de observação para o Fisco alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa alguma coisa a</infCpl>
98
+ </infAdic>
99
+ </infMDFe>
100
+ <infMDFeSupl>
101
+ <qrCodMDFe>https://dfe-portal.svrs.rs.gov.br/mdfe/QRCode?chMDFe=32210717781119000141580010000001211000000003&amp;tpAmb=1</qrCodMDFe>
102
+ </infMDFeSupl>
103
+ </MDFe>
104
+ <protMDFe versao="3.00" xmlns="http://www.portalfiscal.inf.br/mdfe">
105
+ <infProt Id="MDFe932210002534081">
106
+ <tpAmb>1</tpAmb>
107
+ <verAplic>RS20210607092041</verAplic>
108
+ <chMDFe>32210717781119000141580010000001211000000003</chMDFe>
109
+ <dhRecbto>2021-07-01T17:39:16-03:00</dhRecbto>
110
+ <nProt>932210002534081</nProt>
111
+ <digVal>gLsHvKfPe3saxayj/JruXLmwRDM=</digVal>
112
+ <cStat>100</cStat>
113
+ <xMotivo>Autorizado o uso do MDF-e</xMotivo>
114
+ </infProt>
115
+ </protMDFe>
116
+ </mdfeProc>
@@ -0,0 +1,250 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <mdfeProc xmlns="http://www.portalfiscal.inf.br/mdfe" versao="3.00">
3
+ <MDFe xmlns="http://www.portalfiscal.inf.br/mdfe">
4
+ <infMDFe Id="MDFe32210717781119000141580010000001211000000003" versao="3.00">
5
+ <ide>
6
+ <cUF>32</cUF>
7
+ <tpAmb>1</tpAmb>
8
+ <tpEmit>2</tpEmit>
9
+ <mod>58</mod>
10
+ <serie>1</serie>
11
+ <nMDF>121</nMDF>
12
+ <cMDF>00000000</cMDF>
13
+ <cDV>3</cDV>
14
+ <modal>1</modal>
15
+ <dhEmi>2021-07-01T17:30:00-03:00</dhEmi>
16
+ <tpEmis>1</tpEmis>
17
+ <procEmi>0</procEmi>
18
+ <verProc>hivelog-mdfe-0.1.0</verProc>
19
+ <UFIni>ES</UFIni>
20
+ <UFFim>ES</UFFim>
21
+ <infMunCarrega>
22
+ <cMunCarrega>3205069</cMunCarrega>
23
+ <xMunCarrega>VENDA NOVA DO IMIGRANTE</xMunCarrega>
24
+ </infMunCarrega>
25
+ <dhIniViagem>2021-07-01T17:30:00-03:00</dhIniViagem>
26
+ </ide>
27
+ <emit>
28
+ <CNPJ>17781119000141</CNPJ>
29
+ <IE>082942625</IE>
30
+ <xNome>VENTURIM AGROCRIATIVA LTDA EPP</xNome>
31
+ <xFant>VENTURIM CONSERVAS</xFant>
32
+ <enderEmit>
33
+ <xLgr>RODOVIA ES 473 KM 13</xLgr>
34
+ <nro>0</nro>
35
+ <xCpl>ZONA RURAL</xCpl>
36
+ <xBairro>SAO JOAO DE VICOSA</xBairro>
37
+ <cMun>3205069</cMun>
38
+ <xMun>VENDA NOVA DO IMIGRANTE</xMun>
39
+ <CEP>29375000</CEP>
40
+ <UF>ES</UF>
41
+ <fone>2835466272</fone>
42
+ <email>VENTURIMCONSERVAS@GMAIL.COM</email>
43
+ </enderEmit>
44
+ </emit>
45
+ <infModal versaoModal="3.00">
46
+ <rodo>
47
+ <infANTT/>
48
+ <veicTracao>
49
+ <placa>RQM8B64</placa>
50
+ <RENAVAM>01259587867</RENAVAM>
51
+ <tara>0</tara>
52
+ <capKG>1500</capKG>
53
+ <capM3>0</capM3>
54
+ <condutor>
55
+ <xNome>EDUARDO DANIEL</xNome>
56
+ <CPF>11585756709</CPF>
57
+ </condutor>
58
+ <tpRod>04</tpRod>
59
+ <tpCar>02</tpCar>
60
+ <UF>ES</UF>
61
+ </veicTracao>
62
+ <veicReboque>
63
+ <placa>RVA1B90</placa>
64
+ <RENAVAM>123456789</RENAVAM>
65
+ <tara>0</tara>
66
+ <capKG>1500</capKG>
67
+ <capM3>0</capM3>
68
+ <condutor>
69
+ <xNome>JOAO DA SILVA</xNome>
70
+ <CPF>9876654312</CPF>
71
+ </condutor>
72
+ <tpRod>04</tpRod>
73
+ <tpCar>02</tpCar>
74
+ <UF>SC</UF>
75
+ </veicReboque>
76
+ <veicReboque>
77
+ <placa>DFE4U78</placa>
78
+ <RENAVAM>045784572</RENAVAM>
79
+ <tara>0</tara>
80
+ <capKG>1500</capKG>
81
+ <capM3>0</capM3>
82
+ <condutor>
83
+ <xNome>PEDRO DE SOUZA</xNome>
84
+ <CPF>9876654312</CPF>
85
+ </condutor>
86
+ <tpRod>04</tpRod>
87
+ <tpCar>02</tpCar>
88
+ <UF>SC</UF>
89
+ </veicReboque>
90
+ <veicReboque>
91
+ <placa>OPS4F78</placa>
92
+ <RENAVAM>045784572</RENAVAM>
93
+ <tara>0</tara>
94
+ <capKG>1500</capKG>
95
+ <capM3>0</capM3>
96
+ <condutor>
97
+ <xNome>GABRIEL DE JESUS</xNome>
98
+ <CPF>9876654312</CPF>
99
+ </condutor>
100
+ <tpRod>04</tpRod>
101
+ <tpCar>02</tpCar>
102
+ <UF>SC</UF>
103
+ </veicReboque>
104
+ </rodo>
105
+ </infModal>
106
+ <infDoc>
107
+ <infMunDescarga>
108
+ <cMunDescarga>3205069</cMunDescarga>
109
+ <xMunDescarga>VENDA NOVA DO IMIGRANTE</xMunDescarga>
110
+ <infNFe>
111
+ <chNFe>32210717781119000141550010000119601182910239</chNFe>
112
+ </infNFe>
113
+ </infMunDescarga>
114
+ <infMunDescarga>
115
+ <cMunDescarga>3201209</cMunDescarga>
116
+ <xMunDescarga>CACHOEIRO DE ITAPEMIRIM</xMunDescarga>
117
+ <infNFe>
118
+ <chNFe>32210717781119000141550010000119611182910236</chNFe>
119
+ </infNFe>
120
+ <infNFe>
121
+ <chNFe>32210717781119000141550010000119631182910230</chNFe>
122
+ </infNFe>
123
+ <infNFe>
124
+ <chNFe>32210717781119000141550010000119641182910238</chNFe>
125
+ </infNFe>
126
+ <infNFe>
127
+ <chNFe>32210717781119000141550010000119671182910230</chNFe>
128
+ </infNFe>
129
+ <infNFe>
130
+ <chNFe>32210717781119000141550010000119681182910237</chNFe>
131
+ </infNFe>
132
+ </infMunDescarga>
133
+ <infMunDescarga>
134
+ <cMunDescarga>3203403</cMunDescarga>
135
+ <xMunDescarga>MIMOSO DO SUL</xMunDescarga>
136
+ <infNFe>
137
+ <chNFe>32210717781119000141550010000119621182910233</chNFe>
138
+ </infNFe>
139
+ </infMunDescarga>
140
+ <infMunDescarga>
141
+ <cMunDescarga>3201407</cMunDescarga>
142
+ <xMunDescarga>CASTELO</xMunDescarga>
143
+ <infNFe>
144
+ <chNFe>32210717781119000141550010000119651182910235</chNFe>
145
+ </infNFe>
146
+ <infNFe>
147
+ <chNFe>32210717781119000141550010000119691182910234</chNFe>
148
+ </infNFe>
149
+ </infMunDescarga>
150
+ <infMunDescarga>
151
+ <cMunDescarga>3204302</cMunDescarga>
152
+ <xMunDescarga>PRESIDENTE KENNEDY</xMunDescarga>
153
+ <infNFe>
154
+ <chNFe>32210717781119000141550010000119701182910235</chNFe>
155
+ </infNFe>
156
+ </infMunDescarga>
157
+ </infDoc>
158
+ <tot>
159
+ <qNFe>10</qNFe>
160
+ <vCarga>8222.10</vCarga>
161
+ <cUnid>01</cUnid>
162
+ <qCarga>615.1400</qCarga>
163
+ </tot>
164
+ <autXML>
165
+ <CNPJ>04898488000177</CNPJ>
166
+ </autXML>
167
+ <infAdic>
168
+ <infAdFisco>Exemplo de observação para o Fisco</infAdFisco>
169
+ <infCpl>Exemplo de observação para o Contribuinte</infCpl>
170
+ </infAdic>
171
+ <infRespTec>
172
+ <CNPJ>07960929000101</CNPJ>
173
+ <xContato>Hivelog Soluções em Tecnologia da Informação.</xContato>
174
+ <email>desenvolvimento@hivecloud.com.br</email>
175
+ <fone>8140628262</fone>
176
+ </infRespTec>
177
+ </infMDFe>
178
+ <infMDFeSupl>
179
+ <qrCodMDFe>https://dfe-portal.svrs.rs.gov.br/mdfe/QRCode?chMDFe=32210717781119000141580010000001211000000003&amp;tpAmb=1</qrCodMDFe>
180
+ </infMDFeSupl>
181
+ <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
182
+ <SignedInfo>
183
+ <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
184
+ <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
185
+ <Reference URI="#MDFe32210717781119000141580010000001211000000003">
186
+ <Transforms>
187
+ <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
188
+ <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
189
+ </Transforms>
190
+ <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
191
+ <DigestValue>gLsHvKfPe3saxayj/JruXLmwRDM=</DigestValue>
192
+ </Reference>
193
+ </SignedInfo>
194
+ <SignatureValue>pG5XoCc3nbhfVMk1G91ptTkX69nXGiKgL0NrhYRHfbnisS0KL9JP3/cKza+SxCiNCxGicP97cZoW
195
+ /shglzGBnW81fhy9IeZ5H4KCTJbV0IEbc5Z2Orj2fX7+SBfX/E4OAw4puQk7TOAAFRrMsjXFnOjP
196
+ DBpcM11i0XzixizrnBVL5JtmWDePx5PBCbjbeamCM+jNa5QjbNw8RKQGxZC5K4FnwmX8wW0HPujk
197
+ 0pYkbSRR7UIFjJSXnjgYbRyH/Ojm5wTGDv8JxzV4HN5XtIeggrJuh0enQIAEhMd/WW/0Ne5jj3VS
198
+ X3LPy3cLWQPINdLfIAm7v1sQAtifgGcfINmsjw==</SignatureValue>
199
+ <KeyInfo>
200
+ <X509Data>
201
+ <X509Certificate>MIIHUDCCBTigAwIBAgIIQXshAShT68AwDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCQlIxEzAR
202
+ BgNVBAoTCklDUC1CcmFzaWwxFTATBgNVBAsTDEFDIFNPTFVUSSB2NTEeMBwGA1UEAxMVQUMgU09M
203
+ VVRJIE11bHRpcGxhIHY1MB4XDTIxMDEyOTE4MTgwMFoXDTIyMDEyOTE4MTgwMFowge8xCzAJBgNV
204
+ BAYTAkJSMRMwEQYDVQQKEwpJQ1AtQnJhc2lsMQswCQYDVQQIEwJFUzEgMB4GA1UEBxMXVmVuZGEg
205
+ Tm92YSBkbyBJbWlncmFudGUxHjAcBgNVBAsTFUFDIFNPTFVUSSBNdWx0aXBsYSB2NTEXMBUGA1UE
206
+ CxMOMjkxMDgwOTEwMDAxNjUxEzARBgNVBAsTClByZXNlbmNpYWwxGjAYBgNVBAsTEUNlcnRpZmlj
207
+ YWRvIFBKIEExMTIwMAYDVQQDEylWRU5UVVJJTSBBR1JPQ1JJQVRJVkEgTFREQToxNzc4MTExOTAw
208
+ MDE0MTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMPI1XoIJEbr2Xi+4uVc6jLrTeKV
209
+ jnho2f0f0Kx+z+n+kkcQx0BXdN/ZnR/BXtqgixoBOnnSUx1VIlNOsxaXHY0t77ZNax34US7elpjf
210
+ P8FXlQuYYiI3C7mso7o29x17dFp0+D0888DCoOMGcItWQPwi/5/9W1m44CWgTrhOLZ2eY15Lk563
211
+ V1LJ4g4FoPS/xx3mFVstBHX5emsuHSzmf9vMuvW1bCV4AqdNFCwadVjOYxYqWzM17q2zxyfQggTB
212
+ goNjWFo32i6ko2oOiPWP3nPSNBoUWimp5hMPPCg02vgzWuFYk9BiKz1RxSkLDpKwC80wO+S827Ou
213
+ 0M3YvRmPZQ8CAwEAAaOCAoMwggJ/MAkGA1UdEwQCMAAwHwYDVR0jBBgwFoAUxVLtJYAJ35yCyJ9H
214
+ xt20XzHdubEwVAYIKwYBBQUHAQEESDBGMEQGCCsGAQUFBzAChjhodHRwOi8vY2NkLmFjc29sdXRp
215
+ LmNvbS5ici9sY3IvYWMtc29sdXRpLW11bHRpcGxhLXY1LnA3YjCBvgYDVR0RBIG2MIGzgRxjb25z
216
+ ZXJ2YXN2ZW5kYW5vdmFAZ21haWwuY29toCUGBWBMAQMCoBwTGkxPUkVOWkEgRkFMQ0hFVFRPIFZF
217
+ TlRVUklNoBkGBWBMAQMDoBATDjE3NzgxMTE5MDAwMTQxoDgGBWBMAQMEoC8TLTA2MDgxOTg5MTMw
218
+ NDU1NjQ3NjMwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMKAXBgVgTAEDB6AOEwwwMDAwMDAwMDAw
219
+ MDAwXQYDVR0gBFYwVDBSBgZgTAECASYwSDBGBggrBgEFBQcCARY6aHR0cDovL2NjZC5hY3NvbHV0
220
+ aS5jb20uYnIvZG9jcy9kcGMtYWMtc29sdXRpLW11bHRpcGxhLnBkZjAdBgNVHSUEFjAUBggrBgEF
221
+ BQcDAgYIKwYBBQUHAwQwgYwGA1UdHwSBhDCBgTA+oDygOoY4aHR0cDovL2NjZC5hY3NvbHV0aS5j
222
+ b20uYnIvbGNyL2FjLXNvbHV0aS1tdWx0aXBsYS12NS5jcmwwP6A9oDuGOWh0dHA6Ly9jY2QyLmFj
223
+ c29sdXRpLmNvbS5ici9sY3IvYWMtc29sdXRpLW11bHRpcGxhLXY1LmNybDAdBgNVHQ4EFgQUrp4N
224
+ Lavrr3l4CWS5uA1vCEdazF4wDgYDVR0PAQH/BAQDAgXgMA0GCSqGSIb3DQEBCwUAA4ICAQCNZY0z
225
+ sIgFoFvqh41wabo9CVzwYtftczCCTo3xuk3NSx7MHOpd+mhN9Y+HWJCdcXLaLk4+ds3PhX9ZwOzD
226
+ K8DXPiI//tcYgf+aEhJxfZKIGkrOUVNNCtD1986Ih09pWLdkkmfISYE6Jypm7UyuV0P7F9N9DweT
227
+ 9Qp5n3K1GobCIcEdBiSppIabTWTHEmjI8hpf9CE8djYACwI/Dh686t1DL33kfiw+0vHS6fDIttP6
228
+ XRpOXoBClF1y+lP91YCV/+p767jfKjdD6glRuSNrF8zxjO6b52YlwO0mm6wqChBkUuBxoCybxdE0
229
+ 2bDjAybOdAcVihnUTu7DibIQQJu18bF9f/XYbmOHvxUErSAvyW72/ZRolzr21z2RS0vrqse2RtpL
230
+ +pkfnowU3PA6SJpHjkd6Qc887E7jveKwHdq3tCqk4XCfl7sKa1rF/h7dSZpJ/m/gSMZy00jtX5TU
231
+ dTxXcYSrLfpWtJAvFMePQZ3BNADHT/hd5SOanS1gN9qf213iQVMu9+wHCRg24UoZJmhXHsHrx2h7
232
+ AEy5mOweDLL3VsO9NdWmce58VjOrvMsP3MlE8WSSEcLbm7XerYtOgTDYHYhVPo7xNvKpI0jsiGH9
233
+ mGq0jwS+S+/STyaaAVQ0UOZQ9/MzDIwo9GRuTlZCTyh99KtSej3BF3oPfBajnY32Oc71WA==</X509Certificate>
234
+ </X509Data>
235
+ </KeyInfo>
236
+ </Signature>
237
+ </MDFe>
238
+ <protMDFe versao="3.00" xmlns="http://www.portalfiscal.inf.br/mdfe">
239
+ <infProt Id="MDFe932210002534081">
240
+ <tpAmb>1</tpAmb>
241
+ <verAplic>RS20210607092041</verAplic>
242
+ <chMDFe>32210717781119000141580010000001211000000003</chMDFe>
243
+ <dhRecbto>2021-07-01T17:39:16-03:00</dhRecbto>
244
+ <nProt>932210002534081</nProt>
245
+ <digVal>gLsHvKfPe3saxayj/JruXLmwRDM=</digVal>
246
+ <cStat>100</cStat>
247
+ <xMotivo>Autorizado o uso do MDF-e</xMotivo>
248
+ </infProt>
249
+ </protMDFe>
250
+ </mdfeProc>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_danfe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ASSEINFO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-19 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: barby
@@ -122,6 +122,48 @@ dependencies:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
124
  version: 11.1.3
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 2.16.2
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 2.16.2
139
+ - !ruby/object:Gem::Dependency
140
+ name: guard-rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pdf-inspector
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.3.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.3.0
125
167
  - !ruby/object:Gem::Dependency
126
168
  name: rake
127
169
  requirement: !ruby/object:Gem::Requirement
@@ -206,34 +248,6 @@ dependencies:
206
248
  - - '='
207
249
  - !ruby/object:Gem::Version
208
250
  version: 0.10.2
209
- - !ruby/object:Gem::Dependency
210
- name: guard
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - "~>"
214
- - !ruby/object:Gem::Version
215
- version: 2.16.2
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - "~>"
221
- - !ruby/object:Gem::Version
222
- version: 2.16.2
223
- - !ruby/object:Gem::Dependency
224
- name: guard-rspec
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - ">="
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- version: '0'
237
251
  description:
238
252
  email: asseinfo@asseinfo.com.br
239
253
  executables: []
@@ -245,6 +259,7 @@ files:
245
259
  - ".gitignore"
246
260
  - ".rspec"
247
261
  - ".rubocop.yml"
262
+ - ".tool-versions"
248
263
  - Dockerfile
249
264
  - Gemfile
250
265
  - Gemfile.lock
@@ -278,11 +293,9 @@ files:
278
293
  - lib/br_danfe/danfe_lib/nfce_lib/key.rb
279
294
  - lib/br_danfe/danfe_lib/nfce_lib/nfce_identification.rb
280
295
  - lib/br_danfe/danfe_lib/nfce_lib/product_list.rb
281
- - lib/br_danfe/danfe_lib/nfce_lib/qr_code.rb
282
296
  - lib/br_danfe/danfe_lib/nfce_lib/recipient.rb
283
297
  - lib/br_danfe/danfe_lib/nfce_lib/total_list.rb
284
298
  - lib/br_danfe/danfe_lib/nfe.rb
285
- - lib/br_danfe/danfe_lib/nfe_lib/cep.rb
286
299
  - lib/br_danfe/danfe_lib/nfe_lib/consts.rb
287
300
  - lib/br_danfe/danfe_lib/nfe_lib/cst.rb
288
301
  - lib/br_danfe/danfe_lib/nfe_lib/dest.rb
@@ -305,6 +318,17 @@ files:
305
318
  - lib/br_danfe/helper.rb
306
319
  - lib/br_danfe/logo_config.rb
307
320
  - lib/br_danfe/logo_options.rb
321
+ - lib/br_danfe/mdfe.rb
322
+ - lib/br_danfe/mdfe_lib/authorization_protocol.rb
323
+ - lib/br_danfe/mdfe_lib/document.rb
324
+ - lib/br_danfe/mdfe_lib/drivers.rb
325
+ - lib/br_danfe/mdfe_lib/fisco_control.rb
326
+ - lib/br_danfe/mdfe_lib/header.rb
327
+ - lib/br_danfe/mdfe_lib/mdfe_identification.rb
328
+ - lib/br_danfe/mdfe_lib/notes.rb
329
+ - lib/br_danfe/mdfe_lib/totalizer.rb
330
+ - lib/br_danfe/mdfe_lib/vehicles.rb
331
+ - lib/br_danfe/qr_code.rb
308
332
  - lib/br_danfe/uf.rb
309
333
  - lib/br_danfe/version.rb
310
334
  - lib/br_danfe/xml.rb
@@ -325,11 +349,9 @@ files:
325
349
  - spec/br_danfe/danfe_lib/nfce_lib/key_spec.rb
326
350
  - spec/br_danfe/danfe_lib/nfce_lib/nfce_identification_spec.rb
327
351
  - spec/br_danfe/danfe_lib/nfce_lib/product_list_spec.rb
328
- - spec/br_danfe/danfe_lib/nfce_lib/qr_code_spec.rb
329
352
  - spec/br_danfe/danfe_lib/nfce_lib/recipient_spec.rb
330
353
  - spec/br_danfe/danfe_lib/nfce_lib/total_list_spec.rb
331
354
  - spec/br_danfe/danfe_lib/nfce_spec.rb
332
- - spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
333
355
  - spec/br_danfe/danfe_lib/nfe_lib/cst_spec.rb
334
356
  - spec/br_danfe/danfe_lib/nfe_lib/dest_spec.rb
335
357
  - spec/br_danfe/danfe_lib/nfe_lib/det_body_spec.rb
@@ -352,6 +374,17 @@ files:
352
374
  - spec/br_danfe/helper_spec.rb
353
375
  - spec/br_danfe/logo_config_spec.rb
354
376
  - spec/br_danfe/logo_options_spec.rb
377
+ - spec/br_danfe/mdfe_lib/authorization_protocol_spec.rb
378
+ - spec/br_danfe/mdfe_lib/document_spec.rb
379
+ - spec/br_danfe/mdfe_lib/drivers_spec.rb
380
+ - spec/br_danfe/mdfe_lib/fisco_control_spec.rb
381
+ - spec/br_danfe/mdfe_lib/header_spec.rb
382
+ - spec/br_danfe/mdfe_lib/mdfe_identification_spec.rb
383
+ - spec/br_danfe/mdfe_lib/notes_spec.rb
384
+ - spec/br_danfe/mdfe_lib/totalizer_spec.rb
385
+ - spec/br_danfe/mdfe_lib/vehicles_spec.rb
386
+ - spec/br_danfe/mdfe_spec.rb
387
+ - spec/br_danfe/qr_code_spec.rb
355
388
  - spec/br_danfe/uf_spec.rb
356
389
  - spec/br_danfe/xml_spec.rb
357
390
  - spec/fixtures/cce/lib/barcode#render.pdf
@@ -370,6 +403,21 @@ files:
370
403
  - spec/fixtures/cce/v1.00/cce.fixture.pdf
371
404
  - spec/fixtures/cce/v1.00/cce.xml
372
405
  - spec/fixtures/logo.png
406
+ - spec/fixtures/mdfe/lib/document#render.pdf
407
+ - spec/fixtures/mdfe/lib/document#text.align.pdf
408
+ - spec/fixtures/mdfe/lib/document#text.pad.pdf
409
+ - spec/fixtures/mdfe/lib/document#text.simple.pdf
410
+ - spec/fixtures/mdfe/lib/document#text.size.pdf
411
+ - spec/fixtures/mdfe/lib/document#text.style.pdf
412
+ - spec/fixtures/mdfe/lib/fisco_control#barcode.pdf
413
+ - spec/fixtures/mdfe/lib/header#render-qr-code.pdf
414
+ - spec/fixtures/mdfe/lib/header#render-with_logo.pdf
415
+ - spec/fixtures/mdfe/lib/header#render-without_logo.pdf
416
+ - spec/fixtures/mdfe/lib/mdfe-with-multiple-pages.pdf
417
+ - spec/fixtures/mdfe/lib/mdfe.fixture.pdf
418
+ - spec/fixtures/mdfe/lib/notes#render-big-aditional-information.pdf
419
+ - spec/fixtures/mdfe/lib/xml-mdfe-multiples-pages.xml
420
+ - spec/fixtures/mdfe/lib/xml-mdfe.xml
373
421
  - spec/fixtures/nfce/lib/document#render.pdf
374
422
  - spec/fixtures/nfce/lib/footer#render-with_additional_information.pdf
375
423
  - spec/fixtures/nfce/lib/footer#render.pdf
@@ -484,6 +532,7 @@ files:
484
532
  - spec/fixtures/nfe/v3.10/with_three_pages.xml
485
533
  - spec/fixtures/nfe/v3.10/without_issqn.fixture.pdf
486
534
  - spec/fixtures/nfe/v3.10/without_issqn.xml
535
+ - spec/fixtures/qr_code/qr_code#render.pdf
487
536
  - spec/spec_helper.rb
488
537
  - spec/support/have_same_content_of.rb
489
538
  homepage: http://github.com/asseinfo/br_danfe