enotas_nfe 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/lib/enotas_nfe/endpoints.rb +13 -1
- data/lib/enotas_nfe/model/ambiente_homologacao.rb +1 -0
- data/lib/enotas_nfe/model/ambiente_producao.rb +1 -0
- data/lib/enotas_nfe/model/forma_pagamento.rb +12 -0
- data/lib/enotas_nfe/model/nfe.rb +1 -0
- data/lib/enotas_nfe/model/pagamento.rb +12 -0
- data/lib/enotas_nfe/model/pedido.rb +12 -0
- data/lib/enotas_nfe/model/servico.rb +1 -0
- data/lib/enotas_nfe/version.rb +1 -1
- data/lib/enotas_nfe.rb +10 -7
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc95dedf5bb004a8ab27625122492052359345c7
|
4
|
+
data.tar.gz: e9b0fd7ca58aecafb2a33a91affc194f628978a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c18d07b48cb06270ecb7df0a47746f398134c93e35cf906f3e66e70b53fcf901043e7531dba05017ac2b7fdc0b94db237998c52a22d33391facd552310b59bc
|
7
|
+
data.tar.gz: 3449d18f01599a79c15a7ad2dbda587501afeb1d5e25014ef2f36e1c6ddd32e4195e7a9ec1dcb08929b7dd361c434eaa3c0b40a0c9228b404d01857d5b88ad48
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# eNotas Gateway - Ruby
|
2
2
|
|
3
|
-
|
3
|
+
GEM não OFICIAL Ruby da API do eNotas Gateway, plataforma de emissâo automática de nota fiscal eletrônica de serviço (NFS-e), Produto (NF-e) e Consumidor (NFC-e).
|
4
4
|
|
5
5
|
Esse projeto foi um fork de -> https://github.com/12min/enotas-client
|
6
6
|
|
@@ -206,8 +206,7 @@ Issues e comentários são sempre bem-vindos no repoistório oficial: https://gi
|
|
206
206
|
Quer contribuir e não sabe por onde começar? Veja nosso ROADMAP:
|
207
207
|
|
208
208
|
* Escrever testes;
|
209
|
-
*
|
210
|
-
* Cobrir os endpoints referentes ao resource "empresa".
|
209
|
+
* Finalizar chamada para troca de logotipo da empresa
|
211
210
|
|
212
211
|
## License
|
213
212
|
|
data/lib/enotas_nfe/endpoints.rb
CHANGED
@@ -19,7 +19,6 @@ module EnotasNfe
|
|
19
19
|
post("empresas/#{firm_id}/logo", body)
|
20
20
|
end
|
21
21
|
|
22
|
-
|
23
22
|
## rotas para nota fiscal eletronica
|
24
23
|
def nfe_create(firm_id, body)
|
25
24
|
post("empresas/#{firm_id}/nf-e", body)
|
@@ -33,6 +32,19 @@ module EnotasNfe
|
|
33
32
|
get("empresas/#{firm_id}/nf-e/#{id}")
|
34
33
|
end
|
35
34
|
|
35
|
+
## rotas para nota fiscal do consumidor eletronica
|
36
|
+
def nfce_create(firm_id, body)
|
37
|
+
post("empresas/#{firm_id}/nfc-e", body)
|
38
|
+
end
|
39
|
+
|
40
|
+
def nfce_delete(firm_id, nfe_id)
|
41
|
+
delete("empresas/#{firm_id}/nfc-e/#{nfe_id}")
|
42
|
+
end
|
43
|
+
|
44
|
+
def nfce_get(firm_id, id)
|
45
|
+
get("empresas/#{firm_id}/nfc-e/#{id}")
|
46
|
+
end
|
47
|
+
|
36
48
|
## rotas para nota fiscal de serviço
|
37
49
|
def nfse_list(firm_id, body = {})
|
38
50
|
get("empresas/#{firm_id}/nfes", body)
|
data/lib/enotas_nfe/model/nfe.rb
CHANGED
data/lib/enotas_nfe/version.rb
CHANGED
data/lib/enotas_nfe.rb
CHANGED
@@ -12,6 +12,16 @@ require "enotas_nfe/model/endereco"
|
|
12
12
|
require "enotas_nfe/model/servico"
|
13
13
|
require "enotas_nfe/model/produto"
|
14
14
|
require "enotas_nfe/model/cliente"
|
15
|
+
require "enotas_nfe/model/ambiente_homologacao"
|
16
|
+
require "enotas_nfe/model/ambiente_producao"
|
17
|
+
require "enotas_nfe/model/configuracoes_nfse_homologacao"
|
18
|
+
require "enotas_nfe/model/configuracoes_nfse_producao"
|
19
|
+
require "enotas_nfe/model/csc"
|
20
|
+
require "enotas_nfe/model/emissao_nfe_consumidor"
|
21
|
+
require "enotas_nfe/model/empresa"
|
22
|
+
require "enotas_nfe/model/pagamento"
|
23
|
+
require "enotas_nfe/model/forma_pagamento"
|
24
|
+
require "enotas_nfe/model/pedido"
|
15
25
|
require "enotas_nfe/model/nfe"
|
16
26
|
require "enotas_nfe/model/cofins"
|
17
27
|
require "enotas_nfe/model/icms"
|
@@ -20,13 +30,6 @@ require "enotas_nfe/model/issqn"
|
|
20
30
|
require "enotas_nfe/model/pis"
|
21
31
|
require "enotas_nfe/facades"
|
22
32
|
require "enotas_nfe/client"
|
23
|
-
require "enotas_nfe/model/ambiente_homologacao"
|
24
|
-
require "enotas_nfe/model/ambiente_producao"
|
25
|
-
require "enotas_nfe/model/configuracoes_nfse_homologacao"
|
26
|
-
require "enotas_nfe/model/configuracoes_nfse_producao"
|
27
|
-
require "enotas_nfe/model/csc"
|
28
|
-
require "enotas_nfe/model/emissao_nfe_consumidor"
|
29
|
-
require "enotas_nfe/model/empresa"
|
30
33
|
|
31
34
|
module EnotasNfe
|
32
35
|
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.
|
4
|
+
version: 0.0.4
|
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: 2017-
|
11
|
+
date: 2017-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -140,10 +140,13 @@ files:
|
|
140
140
|
- lib/enotas_nfe/model/emissao_nfe_consumidor.rb
|
141
141
|
- lib/enotas_nfe/model/empresa.rb
|
142
142
|
- lib/enotas_nfe/model/endereco.rb
|
143
|
+
- lib/enotas_nfe/model/forma_pagamento.rb
|
143
144
|
- lib/enotas_nfe/model/icms.rb
|
144
145
|
- lib/enotas_nfe/model/impostos.rb
|
145
146
|
- lib/enotas_nfe/model/issqn.rb
|
146
147
|
- lib/enotas_nfe/model/nfe.rb
|
148
|
+
- lib/enotas_nfe/model/pagamento.rb
|
149
|
+
- lib/enotas_nfe/model/pedido.rb
|
147
150
|
- lib/enotas_nfe/model/pis.rb
|
148
151
|
- lib/enotas_nfe/model/produto.rb
|
149
152
|
- lib/enotas_nfe/model/servico.rb
|