class Io::Flow::V0::Models::BrowserInfo
Shopper browser info used as part of card authentication. All of these fields are required if you are using 3DS2.
Attributes
accept[R]
color_depth[R]
java_enabled[R]
language[R]
origin[R]
screen_height[R]
screen_width[R]
time_zone_offset[R]
user_agent[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32638 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @origin = (x = opts.delete(:origin); x.nil? ? nil : HttpClient::Preconditions.assert_class('origin', x, String)) @language = (x = opts.delete(:language); x.nil? ? nil : HttpClient::Preconditions.assert_class('language', x, String)) @java_enabled = (x = opts.delete(:java_enabled); x.nil? ? nil : HttpClient::Preconditions.assert_boolean('java_enabled', x)) @color_depth = (x = opts.delete(:color_depth); x.nil? ? nil : HttpClient::Preconditions.assert_class('color_depth', x, Integer)) @screen_height = (x = opts.delete(:screen_height); x.nil? ? nil : HttpClient::Preconditions.assert_class('screen_height', x, Integer)) @screen_width = (x = opts.delete(:screen_width); x.nil? ? nil : HttpClient::Preconditions.assert_class('screen_width', x, Integer)) @time_zone_offset = (x = opts.delete(:time_zone_offset); x.nil? ? nil : HttpClient::Preconditions.assert_class('time_zone_offset', x, Integer)) @user_agent = (x = opts.delete(:user_agent); x.nil? ? nil : HttpClient::Preconditions.assert_class('user_agent', x, String)) @accept = (x = opts.delete(:accept); x.nil? ? nil : HttpClient::Preconditions.assert_class('accept', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32655 def copy(incoming={}) BrowserInfo.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32659 def to_hash { :origin => origin, :language => language, :java_enabled => java_enabled, :color_depth => color_depth, :screen_height => screen_height, :screen_width => screen_width, :time_zone_offset => time_zone_offset, :user_agent => user_agent, :accept => accept } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32651 def to_json JSON.dump(to_hash) end