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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a0f7a6e390bf0e133b094377559574d0daaca1e
4
- data.tar.gz: f7edeeadfaa3474a4709a32f0d86d3a671294c30
3
+ metadata.gz: bc95dedf5bb004a8ab27625122492052359345c7
4
+ data.tar.gz: e9b0fd7ca58aecafb2a33a91affc194f628978a5
5
5
  SHA512:
6
- metadata.gz: ab27c3d4164cd2fb7ecf640ca2cd03d75af24c2b4bc17fe169630f6652ec90bf70409cf99ec40ba7352eae82a7102ce095ab1fa0093f97db4cd50a51f9449e08
7
- data.tar.gz: 3c4b0b5e7dfc58750833aeeb8b42f58422b802e00638b1e791f49472fcf3ef1a309d43839a9547c5de594bd3f8ef50dffc16d0912259bedbfec356f481625613
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
- Wrapper 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).
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
- * Normalizar campos dos models para o padrão ruby;
210
- * Cobrir os endpoints referentes ao resource "empresa".
209
+ * Finalizar chamada para troca de logotipo da empresa
211
210
 
212
211
  ## License
213
212
 
@@ -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)
@@ -8,6 +8,7 @@ module EnotasNfe
8
8
 
9
9
  attribute :csc, Csc
10
10
  attribute :serieNFe, String
11
+ attribute :sequencialNFe, Integer
11
12
 
12
13
  end
13
14
  end
@@ -8,6 +8,7 @@ module EnotasNfe
8
8
 
9
9
  attribute :csc, Csc
10
10
  attribute :serieNFe, String
11
+ attribute :sequencialNFe, Integer
11
12
  end
12
13
  end
13
14
  end
@@ -0,0 +1,12 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class FormaPagamento
4
+
5
+ include Virtus.model
6
+
7
+ attribute :tipo, String
8
+ attribute :valor, Float
9
+
10
+ end
11
+ end
12
+ end
@@ -20,6 +20,7 @@ module EnotasNfe
20
20
  attribute :itens, Array
21
21
  attribute :servico, Servico
22
22
  attribute :cliente, Cliente
23
+ attribute :pedido, Pedido
23
24
 
24
25
  end
25
26
  end
@@ -0,0 +1,12 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class Pagamento
4
+
5
+ include Virtus.model
6
+
7
+ attribute :tipo, String
8
+ attribute :formas, Array
9
+
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class Pedido
4
+
5
+ include Virtus.model
6
+
7
+ attribute :presencaConsumidor, String
8
+ attribute :pagamento, Pagamento
9
+
10
+ end
11
+ end
12
+ end
@@ -17,6 +17,7 @@ module EnotasNfe
17
17
  attribute :valorInss, Decimal
18
18
  attribute :valorIr, Decimal
19
19
  attribute :valorPis, Decimal
20
+ attribute :valorCsll, Decimal
20
21
 
21
22
  end
22
23
  end
@@ -1,3 +1,3 @@
1
1
  module EnotasNfe
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
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.2
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-26 00:00:00.000000000 Z
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