Class: BrNfe::Service::Response::NotaFiscal

Inherits:
ActiveModelBase show all
Includes:
Association::HaveCondicaoPagamento, Association::HaveDestinatario, Association::HaveEmitente, Association::HaveIntermediario
Defined in:
lib/br_nfe/service/response/nota_fiscal.rb

Instance Attribute Summary collapse

Attributes inherited from ActiveModelBase

#reference

Instance Method Summary collapse

Methods included from Association::HaveIntermediario

#intermediario, #intermediario=

Methods included from Association::HaveCondicaoPagamento

#condicao_pagamento, #condicao_pagamento=

Methods included from Association::HaveEmitente

#emitente, #emitente=

Methods included from Association::HaveDestinatario

#destinatario, #destinatario=

Methods inherited from ActiveModelBase

#assign_attributes, #default_values, #initialize

Constructor Details

This class inherits a constructor from BrNfe::ActiveModelBase

Instance Attribute Details

#base_calculoObject

Returns the value of attribute base_calculo.



51
52
53
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 51

def base_calculo
  @base_calculo
end

#cancelamento_cnpjObject

Returns the value of attribute cancelamento_cnpj.



68
69
70
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 68

def cancelamento_cnpj
  @cancelamento_cnpj
end

#cancelamento_codigoObject

Dados de cancelamento da NF



66
67
68
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 66

def cancelamento_codigo
  @cancelamento_codigo
end

#cancelamento_data_horaObject

Returns the value of attribute cancelamento_data_hora.



72
73
74
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 72

def cancelamento_data_hora
  @cancelamento_data_hora
end

#cancelamento_inscricao_municipalObject

Returns the value of attribute cancelamento_inscricao_municipal.



69
70
71
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 69

def cancelamento_inscricao_municipal
  @cancelamento_inscricao_municipal
end

#cancelamento_municipioObject

Returns the value of attribute cancelamento_municipio.



70
71
72
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 70

def cancelamento_municipio
  @cancelamento_municipio
end

#cancelamento_numero_nfObject

Returns the value of attribute cancelamento_numero_nf.



67
68
69
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 67

def cancelamento_numero_nf
  @cancelamento_numero_nf
end

#cancelamento_sucessoObject

Returns the value of attribute cancelamento_sucesso.



71
72
73
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 71

def cancelamento_sucesso
  @cancelamento_sucesso
end

#cnae_codeObject

Returns the value of attribute cnae_code.



36
37
38
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 36

def cnae_code
  @cnae_code
end

#codigo_artObject

Returns the value of attribute codigo_art.



86
87
88
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 86

def codigo_art
  @codigo_art
end

#codigo_municipioObject

Returns the value of attribute codigo_municipio.



38
39
40
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 38

def codigo_municipio
  @codigo_municipio
end

#codigo_obraObject

dados de construcao civil



85
86
87
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 85

def codigo_obra
  @codigo_obra
end

#codigo_verificacaoObject

Returns the value of attribute codigo_verificacao.



11
12
13
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 11

def codigo_verificacao
  @codigo_verificacao
end

#competenciaObject

DateTime



26
27
28
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 26

def competencia
  @competencia
end

#data_emissaoObject

Returns the value of attribute data_emissao.



12
13
14
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 12

def data_emissao
  @data_emissao
end

#data_emissao_rpsObject

Datetime



25
26
27
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 25

def data_emissao_rps
  @data_emissao_rps
end

#deducoesObject

Returns the value of attribute deducoes.



42
43
44
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 42

def deducoes
  @deducoes
end

#desconto_condicionadoObject

v2



54
55
56
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 54

def desconto_condicionado
  @desconto_condicionado
end

#desconto_incondicionadoObject

v2



55
56
57
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 55

def desconto_incondicionado
  @desconto_incondicionado
end

#descriptionObject

Returns the value of attribute description.



37
38
39
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 37

def description
  @description
end

#incentivador_culturalObject

Returns the value of attribute incentivador_cultural.



32
33
34
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 32

def incentivador_cultural
  @incentivador_cultural
end

#iss_aliquotaObject

Returns the value of attribute iss_aliquota.



52
53
54
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 52

def iss_aliquota
  @iss_aliquota
end

#iss_retidoObject

Returns the value of attribute iss_retido.



48
49
50
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 48

def iss_retido
  @iss_retido
end

#item_lista_servicoObject

dados dos serviços



35
36
37
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 35

def item_lista_servico
  @item_lista_servico
end

#municipio_incidenciaObject

Returns the value of attribute municipio_incidencia.



59
60
61
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 59

def municipio_incidencia
  @municipio_incidencia
end

#natureza_operacaoObject

Returns the value of attribute natureza_operacao.



29
30
31
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 29

def natureza_operacao
  @natureza_operacao
end

#nfe_substituidoraObject

Se a NF foi substituida



79
80
81
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 79

def nfe_substituidora
  @nfe_substituidora
end

#numero_nfObject

Returns the value of attribute numero_nf.



10
11
12
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 10

def numero_nf
  @numero_nf
end

#numero_processoObject

Returns the value of attribute numero_processo.



58
59
60
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 58

def numero_processo
  @numero_processo
end

#optante_simples_nacionalObject

Returns the value of attribute optante_simples_nacional.



31
32
33
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 31

def optante_simples_nacional
  @optante_simples_nacional
end

#orgao_gerador_municipioObject

Orgão gerador



62
63
64
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 62

def orgao_gerador_municipio
  @orgao_gerador_municipio
end

#orgao_gerador_ufObject

Returns the value of attribute orgao_gerador_uf.



63
64
65
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 63

def orgao_gerador_uf
  @orgao_gerador_uf
end

#outras_informacoesObject

Returns the value of attribute outras_informacoes.



27
28
29
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 27

def outras_informacoes
  @outras_informacoes
end

#outras_retencoesObject

Returns the value of attribute outras_retencoes.



49
50
51
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 49

def outras_retencoes
  @outras_retencoes
end

#regime_especial_tributacaoObject

Returns the value of attribute regime_especial_tributacao.



30
31
32
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 30

def regime_especial_tributacao
  @regime_especial_tributacao
end

#responsavel_retencaoObject

Returns the value of attribute responsavel_retencao.



57
58
59
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 57

def responsavel_retencao
  @responsavel_retencao
end

#rps_numeroObject

identificacao do rps



17
18
19
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 17

def rps_numero
  @rps_numero
end

#rps_serieObject

Returns the value of attribute rps_serie.



18
19
20
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 18

def rps_serie
  @rps_serie
end

#rps_situacaoObject

Returns the value of attribute rps_situacao.



20
21
22
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 20

def rps_situacao
  @rps_situacao
end

#rps_substituido_numeroObject

Returns the value of attribute rps_substituido_numero.



21
22
23
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 21

def rps_substituido_numero
  @rps_substituido_numero
end

#rps_substituido_serieObject

Returns the value of attribute rps_substituido_serie.



22
23
24
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 22

def rps_substituido_serie
  @rps_substituido_serie
end

#rps_substituido_tipoObject

Returns the value of attribute rps_substituido_tipo.



23
24
25
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 23

def rps_substituido_tipo
  @rps_substituido_tipo
end

#rps_tipoObject

Returns the value of attribute rps_tipo.



19
20
21
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 19

def rps_tipo
  @rps_tipo
end

#total_issObject

Returns the value of attribute total_iss.



50
51
52
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 50

def total_iss
  @total_iss
end

#url_nfObject

Returns the value of attribute url_nf.



13
14
15
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 13

def url_nf
  @url_nf
end

#valor_cofinsObject

Returns the value of attribute valor_cofins.



44
45
46
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 44

def valor_cofins
  @valor_cofins
end

#valor_csllObject

Returns the value of attribute valor_csll.



47
48
49
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 47

def valor_csll
  @valor_csll
end

#valor_inssObject

Returns the value of attribute valor_inss.



45
46
47
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 45

def valor_inss
  @valor_inss
end

#valor_irObject

Returns the value of attribute valor_ir.



46
47
48
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 46

def valor_ir
  @valor_ir
end

#valor_liquidoObject

v2



53
54
55
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 53

def valor_liquido
  @valor_liquido
end

#valor_pisObject

Returns the value of attribute valor_pis.



43
44
45
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 43

def valor_pis
  @valor_pis
end

#valor_total_servicosObject

Valores dos serviços



41
42
43
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 41

def valor_total_servicos
  @valor_total_servicos
end

#xml_nfObject

Returns the value of attribute xml_nf.



14
15
16
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 14

def xml_nf
  @xml_nf
end

Instance Method Details

#substituida?Boolean

Returns:

  • (Boolean)


80
81
82
# File 'lib/br_nfe/service/response/nota_fiscal.rb', line 80

def substituida?
	!nfe_substituidora.blank?
end