enotas_nfe 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b0c3c56ff76e275a2e370eba0da12637bea0ce7
4
- data.tar.gz: 8d0597f2a82d43fc077bef860abe36950e943d50
3
+ metadata.gz: fe452e710bc522e27eed866129822b0cf982d47f
4
+ data.tar.gz: c88ed2ac620bb569d7023ece3d7313287567f5a6
5
5
  SHA512:
6
- metadata.gz: de96da9109841f60fbc62b348744457807a8400582a2cfccfe02ac737789d5822948a50268036b39844112d13ee51052a754d025e75dfed67a02cc8925765298
7
- data.tar.gz: a6bda2233810a8fb8cc7ee44cd922d052611d1001e142d8e7793e39de8190389e7ff0d0afb4ccde38e73ab868b8f20cb64c54648dcfa0c3a845378da2629578d
6
+ metadata.gz: dc64717d7d91d4c2496564a177990b063deff9c04f5759515cef8c59ffce0ad0994979a6e7402e9327784b33bad09bdc24cb0edf928f604f1d77024f598b99c4
7
+ data.tar.gz: 3c49260874816ed2ab1c268b536b7befd070314e3c52c3a02a37b8d3e53c9dfd1d15c37f8f3bb3167b5429243620c7699d5434079121a4fd025a108783d7e81e
@@ -19,6 +19,11 @@ module EnotasNfe
19
19
  post("empresas/#{firm_id}/logo", body)
20
20
  end
21
21
 
22
+ ## rota para carta de correcao
23
+ def cc_create(firm_id, body)
24
+ post("empresas/#{firm_id}/nf-e/cartaCorrecao", body)
25
+ end
26
+
22
27
  ## rotas para nota fiscal eletronica
23
28
  def nfe_create(firm_id, body)
24
29
  post("empresas/#{firm_id}/nf-e", body)
@@ -0,0 +1,15 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class CartaCorrecao
4
+
5
+ include Virtus.model
6
+
7
+ attribute :id, String
8
+ attribute :ambienteEmissao, String
9
+ attribute :numero, Integer
10
+ attribute :correcao, String
11
+ attribute :nfe, Nfe
12
+
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module EnotasNfe
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
data/lib/enotas_nfe.rb CHANGED
@@ -31,6 +31,7 @@ require "enotas_nfe/model/transportadora"
31
31
  require "enotas_nfe/model/frete"
32
32
  require "enotas_nfe/model/transporte"
33
33
  require "enotas_nfe/model/nfe"
34
+ require "enotas_nfe/model/carta_correcao"
34
35
  require "enotas_nfe/model/cofins"
35
36
  require "enotas_nfe/model/icms"
36
37
  require "enotas_nfe/model/impostos"
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.12
4
+ version: 0.0.13
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-12-12 00:00:00.000000000 Z
11
+ date: 2017-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -132,6 +132,7 @@ files:
132
132
  - lib/enotas_nfe/middleware.rb
133
133
  - lib/enotas_nfe/model/ambiente_homologacao.rb
134
134
  - lib/enotas_nfe/model/ambiente_producao.rb
135
+ - lib/enotas_nfe/model/carta_correcao.rb
135
136
  - lib/enotas_nfe/model/cliente.rb
136
137
  - lib/enotas_nfe/model/cofins.rb
137
138
  - lib/enotas_nfe/model/configuracoes_nfse_homologacao.rb