enotas_nfe 0.0.6 → 0.0.7

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: cb4c20ac6ac830d02d040b8adc0340fb636ba7e0
4
- data.tar.gz: c955e4ccc2b937c8686a8f8f214a333edf3ce106
3
+ metadata.gz: 1e5d52a7567345c4d663e17c8598efdf465dd421
4
+ data.tar.gz: 2e7ab867f94edc66f4b13a1bfe853b5eb392849f
5
5
  SHA512:
6
- metadata.gz: cb15b50a615d7c77b9b9b5d91aaf5239ecce45d78e12507e6ce722fc5ac78193042531666f6db7d6e64528fcf5f39815766e4063fc16a79861ae68f60f6c30c2
7
- data.tar.gz: 52dd2a0de639b366456ebbd3f473ac62c84aa00c55299604c873bf0e5dc3872641703bbdc9152ee9e01ba121d70867672e74ea11a5c8a1eaecc03969574d8b41
6
+ metadata.gz: 416f3ff9fa953217ff3b4d33cc1ff3df7ee1bc49b3b47c634b5204c431b6478a4c8d12475b0cb82ba15df19052c9c7c3cd6d807346674acd3bef6478db07f5f1
7
+ data.tar.gz: 98e99300f0981b7235e0347d1a3735b94b15d9bcd50970db54d64fd5b064de23e2e4c2cfdcb45324125f29cac508f15761c0d53a352e4cbcf1637534f8e6ec16
@@ -0,0 +1,20 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class EnderecoEntrega
4
+
5
+ include Virtus.model
6
+
7
+ attribute :tipoPessoaDestinatario, String
8
+ attribute :cpfCnpjDestinatario, String
9
+ attribute :pais, String
10
+ attribute :uf, String
11
+ attribute :cidade, String
12
+ attribute :logradouro, String
13
+ attribute :numero, String
14
+ attribute :complemento, String
15
+ attribute :bairro, String
16
+ attribute :cep, String
17
+
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,12 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class Frete
4
+
5
+ include Virtus.model
6
+
7
+ attribute :modalidade, String
8
+ attribute :valor, Float
9
+
10
+ end
11
+ end
12
+ end
@@ -23,6 +23,8 @@ module EnotasNfe
23
23
  attribute :servico, Servico
24
24
  attribute :cliente, Cliente
25
25
  attribute :pedido, Pedido
26
+ attribute :nfeReferenciada, Array
27
+ attribute :transporte, Transporte
26
28
 
27
29
  end
28
30
  end
@@ -0,0 +1,11 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class NfeReferenciada
4
+
5
+ include Virtus.model
6
+
7
+ attribute :chaveAcesso, String
8
+
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class Transportadora
4
+
5
+ include Virtus.model
6
+
7
+ attribute :usarDadosEmitente, Boolean
8
+ attribute :tipoPessoa, String
9
+ attribute :CpfCnpj, String
10
+ attribute :nome, String
11
+ attribute :inscricaoEstadual, String
12
+ attribute :endereco, String
13
+ attribute :cidade, String
14
+ attribute :uf, String
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class Transporte
4
+
5
+ include Virtus.model
6
+
7
+ attribute :frete, Frete
8
+ attribute :enderecoEntrega, EnderecoEntrega
9
+ attribute :transportadora, Transportadora
10
+ attribute :veiculo, Veiculo
11
+ attribute :volume, Volume
12
+
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class Veiculo
4
+
5
+ include Virtus.model
6
+
7
+ attribute :placa, String
8
+ attribute :uf, String
9
+ attribute :rntc, String
10
+
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ module EnotasNfe
2
+ module Model
3
+ class Volume
4
+
5
+ include Virtus.model
6
+
7
+ attribute :quantidade, Float
8
+ attribute :especie, String
9
+ attribute :marca, String
10
+ attribute :numeracao, Integer
11
+ attribute :pesoLiquido, Float
12
+ attribute :pesoBruto, Float
13
+
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module EnotasNfe
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/enotas_nfe.rb CHANGED
@@ -22,6 +22,13 @@ require "enotas_nfe/model/empresa"
22
22
  require "enotas_nfe/model/pagamento"
23
23
  require "enotas_nfe/model/forma_pagamento"
24
24
  require "enotas_nfe/model/pedido"
25
+ require "enotas_nfe/model/nfe_referenciada"
26
+ require "enotas_nfe/model/veiculo"
27
+ require "enotas_nfe/model/volume"
28
+ require "enotas_nfe/model/endereco_entrega"
29
+ require "enotas_nfe/model/transportadora"
30
+ require "enotas_nfe/model/frete"
31
+ require "enotas_nfe/model/transporte"
25
32
  require "enotas_nfe/model/nfe"
26
33
  require "enotas_nfe/model/cofins"
27
34
  require "enotas_nfe/model/icms"
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.6
4
+ version: 0.0.7
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-05 00:00:00.000000000 Z
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,16 +140,23 @@ 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/endereco_entrega.rb
143
144
  - lib/enotas_nfe/model/forma_pagamento.rb
145
+ - lib/enotas_nfe/model/frete.rb
144
146
  - lib/enotas_nfe/model/icms.rb
145
147
  - lib/enotas_nfe/model/impostos.rb
146
148
  - lib/enotas_nfe/model/issqn.rb
147
149
  - lib/enotas_nfe/model/nfe.rb
150
+ - lib/enotas_nfe/model/nfe_referenciada.rb
148
151
  - lib/enotas_nfe/model/pagamento.rb
149
152
  - lib/enotas_nfe/model/pedido.rb
150
153
  - lib/enotas_nfe/model/pis.rb
151
154
  - lib/enotas_nfe/model/produto.rb
152
155
  - lib/enotas_nfe/model/servico.rb
156
+ - lib/enotas_nfe/model/transportadora.rb
157
+ - lib/enotas_nfe/model/transporte.rb
158
+ - lib/enotas_nfe/model/veiculo.rb
159
+ - lib/enotas_nfe/model/volume.rb
153
160
  - lib/enotas_nfe/request.rb
154
161
  - lib/enotas_nfe/version.rb
155
162
  - lib/tasks/enotas_nfe_tasks.rake