lib/omniauth/strategies/boletosimples.rb in omniauth-boletosimples-0.0.5 vs lib/omniauth/strategies/boletosimples.rb in omniauth-boletosimples-0.0.6
- old
+ new
@@ -22,17 +22,20 @@
uid { raw_info['id'] }
info do
{
person_type: raw_info['person_type'],
- first_name: raw_info[':first_name'],
- middle_name: raw_info[':middle_name'],
- last_name: raw_info[':last_name'],
- full_name: raw_info[':full_name'],
- date_of_birth: raw_info[':date_of_birth'],
+ first_name: raw_info['first_name'],
+ middle_name: raw_info['middle_name'],
+ last_name: raw_info['last_name'],
+ full_name: raw_info['full_name'],
+ date_of_birth: raw_info['date_of_birth'],
email: raw_info['email'],
- cpf: raw_info['cpf']
+ cpf: raw_info['cpf'],
+ mother_name: raw_info['mother_name'],
+ father_name: raw_info['father_name'],
+ sex: raw_info['sex'],
}
end
extra do
{
@@ -50,12 +53,14 @@
banking_account_number: raw_info['banking_account_number'],
banking_account_digit: raw_info['banking_account_digit'],
banking_person_type: raw_info['banking_person_type'],
banking_person_name: raw_info['banking_person_name'],
banking_cnpj_cpf: raw_info['banking_cnpj_cpf'],
+ business_legal_name: raw_info['business_legal_name'],
business_name: raw_info['business_name'],
- business_cnpj: raw_info['business_cnpj']
+ business_cnpj: raw_info['business_cnpj'],
+ send_email_on_creation: raw_info['send_email_on_creation']
}
end
def setup_phase
environment = options.environment || :production
@@ -87,6 +92,6 @@
end
end
end
end
-OmniAuth.config.add_camelization 'boletosimples', 'BoletoSimples'
\ No newline at end of file
+OmniAuth.config.add_camelization 'boletosimples', 'BoletoSimples'