class LeccaClient::Proposal::BankAccount

Constants

PRODUTO_CREDITO_PESSOAL

Public Instance Methods

build() click to toggle source
# File lib/lecca_client/proposal/bank_account.rb, line 19
def build
  parts = ''

  parts << justify_string(digito_agencia, 1)
  parts << justify_string(digito_conta, 2)
  parts << justify_string(nome_agencia, 20)

  parts << justify_string(flag_titularidade, 1)
  parts << justify_string(nome_favorecido, 35)
  parts << justify_number(numero_telefone, 12)

  parts << justify_number(praca, 3)
  parts << justify_number(banco, 3)
  parts << justify_number(agencia, 4)
  parts << justify_number(conta, 8)
  parts << justify_number(tipo_conta, 3)
  parts << justify_number(tipo_documento_cpf, 3)
  parts << justify_number(data_abertura, 8)
  parts << justify_number(codigo_natureza_residencia, 1)
end

Private Instance Methods

codigo_natureza_residencia() click to toggle source
# File lib/lecca_client/proposal/bank_account.rb, line 54
def codigo_natureza_residencia
  0 # provided by Lecca
end
credito_pessoal?() click to toggle source
# File lib/lecca_client/proposal/bank_account.rb, line 58
def credito_pessoal?
  LeccaClient.config.proposal[:codigo_produto] == PRODUTO_CREDITO_PESSOAL
end
flag_titularidade() click to toggle source
# File lib/lecca_client/proposal/bank_account.rb, line 46
def flag_titularidade
  1 # provided by Lecca
end
praca() click to toggle source
# File lib/lecca_client/proposal/bank_account.rb, line 42
def praca
  1 # provided by Lecca
end
tipo_documento_cpf() click to toggle source
# File lib/lecca_client/proposal/bank_account.rb, line 50
def tipo_documento_cpf
  1 # provided by Lecca
end