Verification::Residence allow to use new RemoteCensusAPI

Verification::Residence allow send params :date_of_birth and
:postal_code to CensusCaller 'call' method.
This commit is contained in:
taitus
2019-04-17 14:12:14 +02:00
committed by Javi Martín
parent 4dfce4f245
commit 4f52d8bf76
2 changed files with 26 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ class Verification::Residence
private
def retrieve_census_data
@census_data = CensusCaller.new.call(document_type, document_number)
@census_data = CensusCaller.new.call(document_type, document_number, date_of_birth, postal_code)
end
def residency_valid?