55require 'minfraud/model/device'
66require 'minfraud/model/email'
77require 'minfraud/model/ip_address'
8+ require 'minfraud/model/phone'
89require 'minfraud/model/score'
910require 'minfraud/model/shipping_address'
1011
@@ -18,6 +19,12 @@ class Insights < Score
1819 # @return [Minfraud::Model::BillingAddress]
1920 attr_reader :billing_address
2021
22+ # An object containing minFraud data related to the billing phone
23+ # number used in the transaction.
24+ #
25+ # @return [Minfraud::Model::Phone]
26+ attr_reader :billing_phone
27+
2128 # An object containing minFraud data about the credit card used in the
2229 # transaction.
2330 #
@@ -48,20 +55,28 @@ class Insights < Score
4855 # @return [Minfraud::Model::ShippingAddress]
4956 attr_reader :shipping_address
5057
58+ # An object containing minFraud data related to the shipping phone
59+ # number used in the transaction.
60+ #
61+ # @return [Minfraud::Model::Phone]
62+ attr_reader :shipping_phone
63+
5164 # @!visibility private
5265 def initialize ( record , locales )
5366 super
5467
5568 @billing_address = Minfraud ::Model ::BillingAddress . new (
5669 get ( 'billing_address' )
5770 )
71+ @billing_phone = Minfraud ::Model ::Phone . new ( get ( 'billing_phone' ) )
5872 @credit_card = Minfraud ::Model ::CreditCard . new ( get ( 'credit_card' ) )
5973 @device = Minfraud ::Model ::Device . new ( get ( 'device' ) )
6074 @email = Minfraud ::Model ::Email . new ( get ( 'email' ) )
6175 @ip_address = Minfraud ::Model ::IPAddress . new ( get ( 'ip_address' ) , locales )
6276 @shipping_address = Minfraud ::Model ::ShippingAddress . new (
6377 get ( 'shipping_address' )
6478 )
79+ @shipping_phone = Minfraud ::Model ::Phone . new ( get ( 'shipping_phone' ) )
6580 end
6681 end
6782 end
0 commit comments