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.



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

def aliquota
  @aliquota
end

#base_calculoObject

Returns the value of attribute base_calculo.



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

def base_calculo
  @base_calculo
end

#codigo_artObject

Returns the value of attribute codigo_art.



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

def codigo_art
  @codigo_art
end

#codigo_cnaeObject

Returns the value of attribute codigo_cnae.



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

def codigo_cnae
  @codigo_cnae
end

#codigo_municipioObject

Returns the value of attribute codigo_municipio.



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

def codigo_municipio
  @codigo_municipio
end

#codigo_obraObject

Para construção civil



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

def codigo_obra
  @codigo_obra
end

#codigo_paisObject

Returns the value of attribute codigo_pais.



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

def codigo_pais
  @codigo_pais
end

#codigo_tributacao_municipioObject

Returns the value of attribute codigo_tributacao_municipio.



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

def codigo_tributacao_municipio
  @codigo_tributacao_municipio
end

#competenciaObject

Returns the value of attribute competencia.



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

def competencia
  @competencia
end

#data_emissaoObject

Returns the value of attribute data_emissao.



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

def data_emissao
  @data_emissao
end

#desconto_condicionadoObject

Returns the value of attribute desconto_condicionado.



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

def desconto_condicionado
  @desconto_condicionado
end

#desconto_incondicionadoObject

Returns the value of attribute desconto_incondicionado.



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

def desconto_incondicionado
  @desconto_incondicionado
end

#discriminacaoObject

Returns the value of attribute discriminacao.



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

def discriminacao
  @discriminacao
end

#exigibilidade_issObject

Returns the value of attribute exigibilidade_iss.



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

def exigibilidade_iss
  @exigibilidade_iss
end

#iss_retidoObject

Returns the value of attribute iss_retido.



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

def iss_retido
  @iss_retido
end

#item_lista_servicoObject

Returns the value of attribute item_lista_servico.



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

def item_lista_servico
  @item_lista_servico
end

#municipio_incidenciaObject

Returns the value of attribute municipio_incidencia.



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

def municipio_incidencia
  @municipio_incidencia
end

#numeroObject

Returns the value of attribute numero.



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

def numero
  @numero
end

#numero_processoObject

Returns the value of attribute numero_processo.



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

def numero_processo
  @numero_processo
end

#numero_substituicaoObject

Returns the value of attribute numero_substituicao.



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

def numero_substituicao
  @numero_substituicao
end

#outras_informacoesObject

Returns the value of attribute outras_informacoes.



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

def outras_informacoes
  @outras_informacoes
end

#outras_retencoesObject

Returns the value of attribute outras_retencoes.



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

def outras_retencoes
  @outras_retencoes
end

#responsavel_retencaoObject

Returns the value of attribute responsavel_retencao.



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

def responsavel_retencao
  @responsavel_retencao
end

#serieObject

Returns the value of attribute serie.



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

def serie
  @serie
end

#serie_substituicaoObject

Returns the value of attribute serie_substituicao.



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

def serie_substituicao
  @serie_substituicao
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#tipoObject

Returns the value of attribute tipo.



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

def tipo
  @tipo
end

#tipo_substituicaoObject

Returns the value of attribute tipo_substituicao.



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

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.



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

def valor_cofins
  @valor_cofins
end

#valor_csllObject

Returns the value of attribute valor_csll.



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

def valor_csll
  @valor_csll
end

#valor_deducoesObject

Returns the value of attribute valor_deducoes.



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

def valor_deducoes
  @valor_deducoes
end

#valor_inssObject

Returns the value of attribute valor_inss.



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

def valor_inss
  @valor_inss
end

#valor_irObject

Returns the value of attribute valor_ir.



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

def valor_ir
  @valor_ir
end

#valor_issObject

Returns the value of attribute valor_iss.



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

def valor_iss
  @valor_iss
end

#valor_pisObject

Returns the value of attribute valor_pis.



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

def valor_pis
  @valor_pis
end

#valor_servicosObject

Returns the value of attribute valor_servicos.



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

def valor_servicos
  @valor_servicos
end

Instance Method Details

#contem_substituicao?Boolean

Returns:

  • (Boolean)


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

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

#default_valuesObject



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

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

#iss_retido?Boolean

Returns:

  • (Boolean)


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

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