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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 92250f7d87bdbcd409c8573bca5893bfec608cfb
4
- data.tar.gz: 7b0001896dc30f8c0c491f2ce256bfd375a27a6e
2
+ SHA256:
3
+ metadata.gz: e9e275e6a2c910bc85e278390fa1453065cefa077765c50d6f54b24937780f2a
4
+ data.tar.gz: d0eee47ed19e435ee5042e40dd66a79888caa0e322c68150043cee8fa21d8c38
5
5
  SHA512:
6
- metadata.gz: 6da040bd37b59bafb6fb4e743cc5ddf9df156600b9becb8a0a44c9c98cf7cefa908d75666a25b60cdf227f42ee34fe2694a667267420eb7aa75209bf150885b4
7
- data.tar.gz: dd0cd8c394cedde5ba178be76e6cb3be0a4705bcf27292b0ec5e9453ee988e8e16ecc6f6044f0403ff31c5702facbe5b9f4cc9b45bcc13ce06c6e8095e358b36
6
+ metadata.gz: c5430819f3f98bef2a282cbfee8cbeaeb1fd0cde628702706a015b3b7e05c046f1aae21d007a96b8635830a7542bb9a91a7dfa81cd766c2fdb968d00754e795b
7
+ data.tar.gz: 3f0c64ad56110a60c954edc09db5acdd20ae999c81e4ab77b604a401b20c59a4e11e0655a262e330f7a4096f3c72734bd971a0cafee44e20b5b9df0f26179866
@@ -11,7 +11,8 @@ module EnotasNfe
11
11
  "Accept": "application/json",
12
12
  "User-Agent": "Enotas ruby client"
13
13
  },
14
- url: endpoint
14
+ url: endpoint,
15
+ ssl: {verify: false}
15
16
  }
16
17
 
17
18
  Faraday.new(options) do |connection|
@@ -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)
@@ -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
@@ -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].tempfile, "application/x-pkcs12")
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
@@ -1,3 +1,3 @@
1
1
  module EnotasNfe
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.32"
3
3
  end
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.27
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: 2018-08-28 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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
- rubyforge_project:
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