lib/active_merchant/billing/avs_result.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/avs_result.rb in activemerchant-1.104.0
- old
+ new
@@ -37,24 +37,24 @@
'Z' => 'Street address does not match, but 5-digit postal code matches.'
}
# Map vendor's AVS result code to a postal match code
POSTAL_MATCH_CODE = {
- 'Y' => %w( D H F H J L M P Q V W X Y Z ),
- 'N' => %w( A C K N O ),
- 'X' => %w( G S ),
- nil => %w( B E I R T U )
+ 'Y' => %w(D H F H J L M P Q V W X Y Z),
+ 'N' => %w(A C K N O),
+ 'X' => %w(G S),
+ nil => %w(B E I R T U)
}.inject({}) do |map, (type, codes)|
codes.each { |code| map[code] = type }
map
end
# Map vendor's AVS result code to a street match code
STREET_MATCH_CODE = {
- 'Y' => %w( A B D H J M O Q T V X Y ),
- 'N' => %w( C K L N W Z ),
- 'X' => %w( G S ),
- nil => %w( E F I P R U )
+ 'Y' => %w(A B D H J M O Q T V X Y),
+ 'N' => %w(C K L N W Z),
+ 'X' => %w(G S),
+ nil => %w(E F I P R U)
}.inject({}) do |map, (type, codes)|
codes.each { |code| map[code] = type }
map
end