Class: BrNfe::Servico::Rps

Inherits:
ActiveModelBase show all
Includes:
Helper::HaveCondicaoPagamento, Helper::HaveDestinatario, Helper::HaveIntermediario
Defined in:
lib/br_nfe/servico/rps.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper::HaveCondicaoPagamento

#condicao_pagamento, #condicao_pagamento=

Methods included from Helper::HaveIntermediario

#intermediario, #intermediario=

Methods included from Helper::HaveDestinatario

#destinatario, #destinatario=

Methods inherited from ActiveModelBase

#assign_attributes, #initialize

Constructor Details

This class inherits a constructor from BrNfe::ActiveModelBase

Instance Attribute Details

#aliquotaObject

Returns the value of attribute aliquota.



53
54
55
# File 'lib/br_nfe/servico/rps.rb', line 53

def aliquota
  @aliquota
end

#base_calculoObject

Returns the value of attribute base_calculo.



54
55
56
# File 'lib/br_nfe/servico/rps.rb', line 54

def base_calculo
  @base_calculo
end

#codigo_artObject

Returns the value of attribute codigo_art.



41
42
43
# File 'lib/br_nfe/servico/rps.rb', line 41

def codigo_art
  @codigo_art
end

#codigo_cnaeObject

Returns the value of attribute codigo_cnae.



67
68
69
# File 'lib/br_nfe/servico/rps.rb', line 67

def codigo_cnae
  @codigo_cnae
end

#codigo_municipioObject

Returns the value of attribute codigo_municipio.



63
64
65
# File 'lib/br_nfe/servico/rps.rb', line 63

def codigo_municipio
  @codigo_municipio
end

#codigo_obraObject

Para construção civil



40
41
42
# File 'lib/br_nfe/servico/rps.rb', line 40

def codigo_obra
  @codigo_obra
end

#codigo_paisObject

Returns the value of attribute codigo_pais.



65
66
67
# File 'lib/br_nfe/servico/rps.rb', line 65

def codigo_pais
  @codigo_pais
end

#codigo_tributacao_municipioObject

Returns the value of attribute codigo_tributacao_municipio.



60
61
62
# File 'lib/br_nfe/servico/rps.rb', line 60

def codigo_tributacao_municipio
  @codigo_tributacao_municipio
end

#competenciaObject

Returns the value of attribute competencia.



33
34
35
# File 'lib/br_nfe/servico/rps.rb', line 33

def competencia
  @competencia
end

#data_emissaoObject

Returns the value of attribute data_emissao.



31
32
33
# File 'lib/br_nfe/servico/rps.rb', line 31

def data_emissao
  @data_emissao
end

#desconto_condicionadoObject

Returns the value of attribute desconto_condicionado.



56
57
58
# File 'lib/br_nfe/servico/rps.rb', line 56

def desconto_condicionado
  @desconto_condicionado
end

#desconto_incondicionadoObject

Returns the value of attribute desconto_incondicionado.



55
56
57
# File 'lib/br_nfe/servico/rps.rb', line 55

def desconto_incondicionado
  @desconto_incondicionado
end

#discriminacaoObject

Returns the value of attribute discriminacao.



61
62
63
# File 'lib/br_nfe/servico/rps.rb', line 61

def discriminacao
  @discriminacao
end

#exigibilidade_issObject

Returns the value of attribute exigibilidade_iss.



62
63
64
# File 'lib/br_nfe/servico/rps.rb', line 62

def exigibilidade_iss
  @exigibilidade_iss
end

#iss_retidoObject

Returns the value of attribute iss_retido.



51
52
53
# File 'lib/br_nfe/servico/rps.rb', line 51

def iss_retido
  @iss_retido
end

#item_lista_servicoObject

Returns the value of attribute item_lista_servico.



59
60
61
# File 'lib/br_nfe/servico/rps.rb', line 59

def item_lista_servico
  @item_lista_servico
end

#municipio_incidenciaObject

Returns the value of attribute municipio_incidencia.



64
65
66
# File 'lib/br_nfe/servico/rps.rb', line 64

def municipio_incidencia
  @municipio_incidencia
end

#numeroObject

Returns the value of attribute numero.



27
28
29
# File 'lib/br_nfe/servico/rps.rb', line 27

def numero
  @numero
end

#numero_processoObject

Returns the value of attribute numero_processo.



66
67
68
# File 'lib/br_nfe/servico/rps.rb', line 66

def numero_processo
  @numero_processo
end

#numero_substituicaoObject

Returns the value of attribute numero_substituicao.



35
36
37
# File 'lib/br_nfe/servico/rps.rb', line 35

def numero_substituicao
  @numero_substituicao
end

#outras_informacoesObject

Returns the value of attribute outras_informacoes.



68
69
70
# File 'lib/br_nfe/servico/rps.rb', line 68

def outras_informacoes
  @outras_informacoes
end

#outras_retencoesObject

Returns the value of attribute outras_retencoes.



50
51
52
# File 'lib/br_nfe/servico/rps.rb', line 50

def outras_retencoes
  @outras_retencoes
end

#responsavel_retencaoObject

Returns the value of attribute responsavel_retencao.



58
59
60
# File 'lib/br_nfe/servico/rps.rb', line 58

def responsavel_retencao
  @responsavel_retencao
end

#serieObject

Returns the value of attribute serie.



28
29
30
# File 'lib/br_nfe/servico/rps.rb', line 28

def serie
  @serie
end

#serie_substituicaoObject

Returns the value of attribute serie_substituicao.



36
37
38
# File 'lib/br_nfe/servico/rps.rb', line 36

def serie_substituicao
  @serie_substituicao
end

#statusObject

Returns the value of attribute status.



32
33
34
# File 'lib/br_nfe/servico/rps.rb', line 32

def status
  @status
end

#tipoObject

Returns the value of attribute tipo.



29
30
31
# File 'lib/br_nfe/servico/rps.rb', line 29

def tipo
  @tipo
end

#tipo_substituicaoObject

Returns the value of attribute tipo_substituicao.



37
38
39
# File 'lib/br_nfe/servico/rps.rb', line 37

def tipo_substituicao
  @tipo_substituicao
end

#validar_recepcao_rpsObject

Returns the value of attribute validar_recepcao_rps.



8
9
10
# File 'lib/br_nfe/servico/rps.rb', line 8

def validar_recepcao_rps
  @validar_recepcao_rps
end

#valor_cofinsObject

Returns the value of attribute valor_cofins.



46
47
48
# File 'lib/br_nfe/servico/rps.rb', line 46

def valor_cofins
  @valor_cofins
end

#valor_csllObject

Returns the value of attribute valor_csll.



49
50
51
# File 'lib/br_nfe/servico/rps.rb', line 49

def valor_csll
  @valor_csll
end

#valor_deducoesObject

Returns the value of attribute valor_deducoes.



44
45
46
# File 'lib/br_nfe/servico/rps.rb', line 44

def valor_deducoes
  @valor_deducoes
end

#valor_inssObject

Returns the value of attribute valor_inss.



47
48
49
# File 'lib/br_nfe/servico/rps.rb', line 47

def valor_inss
  @valor_inss
end

#valor_irObject

Returns the value of attribute valor_ir.



48
49
50
# File 'lib/br_nfe/servico/rps.rb', line 48

def valor_ir
  @valor_ir
end

#valor_issObject

Returns the value of attribute valor_iss.



52
53
54
# File 'lib/br_nfe/servico/rps.rb', line 52

def valor_iss
  @valor_iss
end

#valor_pisObject

Returns the value of attribute valor_pis.



45
46
47
# File 'lib/br_nfe/servico/rps.rb', line 45

def valor_pis
  @valor_pis
end

#valor_servicosObject

Returns the value of attribute valor_servicos.



43
44
45
# File 'lib/br_nfe/servico/rps.rb', line 43

def valor_servicos
  @valor_servicos
end

Instance Method Details

#contem_substituicao?Boolean



70
71
72
# File 'lib/br_nfe/servico/rps.rb', line 70

def contem_substituicao?
	numero_substituicao.present? && serie_substituicao.present? && tipo_substituicao.present?
end

#default_valuesObject



82
83
84
85
86
87
# File 'lib/br_nfe/servico/rps.rb', line 82

def default_values
	{
		codigo_pais: '1058',
		validar_recepcao_rps: false
	}
end

#iss_retido?Boolean



74
75
76
# File 'lib/br_nfe/servico/rps.rb', line 74

def iss_retido?
	BrNfe.true_values.include?(iss_retido)
end