lib/omniauth/strategies/boletosimples.rb in omniauth-boletosimples-0.0.2 vs lib/omniauth/strategies/boletosimples.rb in omniauth-boletosimples-0.0.4

- old
+ new

@@ -22,13 +22,17 @@ uid { raw_info['id'] } info do { person_type: raw_info['person_type'], - person_name: raw_info['person_name'], + 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'], - cnpj_cpf: raw_info['cnpj_cpf'] + cpf: raw_info['cpf'] } end extra do { @@ -40,15 +44,17 @@ address_neighborhood: raw_info['address_neighborhood'], address_postal_code: raw_info['address_postal_code'], phone_number: raw_info['phone_number'], banking_bank_number: raw_info['banking_bank_number'], banking_agency_number: raw_info['banking_agency_number'], + banking_agency_digit: raw_info['banking_agency_digit'], 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'], - paypal_account: raw_info['paypal_account'], + business_name: raw_info['business_name'], + business_cnpj: raw_info['business_cnpj'] } end def setup_phase environment = options.environment || :production \ No newline at end of file