deltavista_crif_dva_interface 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -48,6 +48,27 @@ module DeltavistaCrifDvaInterface
|
|
48
48
|
address_matched
|
49
49
|
end
|
50
50
|
|
51
|
+
# Gets address id of matched address
|
52
|
+
# @param [Hash] check result
|
53
|
+
# @return [String,nil] address id if available, otherwise nil
|
54
|
+
def address_id(result)
|
55
|
+
address_id = nil
|
56
|
+
if address_matched?(result)
|
57
|
+
if result.has_key?(:address_match_result)
|
58
|
+
address_match_result = result[:address_match_result]
|
59
|
+
if address_match_result.has_key?(:found_address)
|
60
|
+
found_address = address_match_result[:found_address]
|
61
|
+
if found_address.has_key?(:identifiers)
|
62
|
+
if found_address[:identifiers].has_key?(:identifier_type) && found_address[:identifiers][:identifier_type] == 'ADDRESS_ID'
|
63
|
+
address_id = found_address[:identifiers][:identifier_text]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
address_id
|
70
|
+
end
|
71
|
+
|
51
72
|
# Gets global decision of collection check
|
52
73
|
# @param [Hash] check result
|
53
74
|
# @return [Hash<Symbol, String>] hash with decision and decision text
|
@@ -85,7 +106,7 @@ module DeltavistaCrifDvaInterface
|
|
85
106
|
# Overrides default minor version in super class
|
86
107
|
# @return [Integer] minor version number
|
87
108
|
def minor_version
|
88
|
-
|
109
|
+
5
|
89
110
|
end
|
90
111
|
|
91
112
|
private
|