enotas_nfe 0.0.27 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/enotas_nfe/connection.rb +2 -1
- data/lib/enotas_nfe/endpoints.rb +8 -0
- data/lib/enotas_nfe/model/nfe.rb +2 -0
- data/lib/enotas_nfe/request.rb +1 -1
- data/lib/enotas_nfe/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e9e275e6a2c910bc85e278390fa1453065cefa077765c50d6f54b24937780f2a
|
4
|
+
data.tar.gz: d0eee47ed19e435ee5042e40dd66a79888caa0e322c68150043cee8fa21d8c38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5430819f3f98bef2a282cbfee8cbeaeb1fd0cde628702706a015b3b7e05c046f1aae21d007a96b8635830a7542bb9a91a7dfa81cd766c2fdb968d00754e795b
|
7
|
+
data.tar.gz: 3f0c64ad56110a60c954edc09db5acdd20ae999c81e4ab77b604a401b20c59a4e11e0655a262e330f7a4096f3c72734bd971a0cafee44e20b5b9df0f26179866
|
data/lib/enotas_nfe/endpoints.rb
CHANGED
@@ -27,6 +27,14 @@ module EnotasNfe
|
|
27
27
|
get("estados/cidades/#{codigo_ibge_cidade}/provedor")
|
28
28
|
end
|
29
29
|
|
30
|
+
def desabilitar_empresa(firm_id)
|
31
|
+
post("empresas/#{firm_id}/desabilitar")
|
32
|
+
end
|
33
|
+
|
34
|
+
def habilitar_empresa(firm_id)
|
35
|
+
post("empresas/#{firm_id}/habilitar")
|
36
|
+
end
|
37
|
+
|
30
38
|
## rota para carta de correcao
|
31
39
|
def cc_create(firm_id, body)
|
32
40
|
post("empresas/#{firm_id}/nf-e/cartaCorrecao", body)
|
data/lib/enotas_nfe/model/nfe.rb
CHANGED
@@ -8,6 +8,8 @@ module EnotasNfe
|
|
8
8
|
attribute :numero, Integer
|
9
9
|
attribute :serie, String
|
10
10
|
attribute :enviarPorEmail, Boolean
|
11
|
+
attribute :numeroRps, Integer
|
12
|
+
attribute :serieRps, String
|
11
13
|
attribute :ambienteEmissao, String
|
12
14
|
attribute :dataCompetencia, String
|
13
15
|
attribute :dataEmissao, String
|
data/lib/enotas_nfe/request.rb
CHANGED
@@ -23,7 +23,7 @@ module EnotasNfe
|
|
23
23
|
def request_multipart(path, body)
|
24
24
|
response = connection.post do |request|
|
25
25
|
multipart_body = {}
|
26
|
-
multipart_body["arquivo"] = Faraday::UploadIO.new(body[:arquivo]
|
26
|
+
multipart_body["arquivo"] = Faraday::UploadIO.new(body[:arquivo], "application/x-pkcs12")
|
27
27
|
multipart_body["senha"] = body[:senha]
|
28
28
|
|
29
29
|
request.path = path
|
data/lib/enotas_nfe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enotas_nfe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis Fernando Pimenta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,8 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
|
-
|
192
|
-
rubygems_version: 2.5.2.3
|
191
|
+
rubygems_version: 3.0.3
|
193
192
|
signing_key:
|
194
193
|
specification_version: 4
|
195
194
|
summary: E-Notas nfe
|