class Io::Flow::V0::Models::DeviceFingerprintDetailsBrowser

Used to identify device during 3ds verification.

Attributes

accept[R]
color_depth[R]
java_enabled[R]
screen_height[R]
screen_width[R]
time_zone_offset[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39675
def initialize(incoming={})
  super(:type => DeviceFingerprintDetails::Types::DEVICE_FINGERPRINT_DETAILS_BROWSER)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:java_enabled, :color_depth, :screen_height, :screen_width, :time_zone_offset], 'DeviceFingerprintDetailsBrowser')
  @accept = (x = opts.delete(:accept); x.nil? ? nil : HttpClient::Preconditions.assert_class('accept', x, String))
  @java_enabled = HttpClient::Preconditions.assert_boolean('java_enabled', opts.delete(:java_enabled))
  @color_depth = HttpClient::Preconditions.assert_class('color_depth', opts.delete(:color_depth), Integer)
  @screen_height = HttpClient::Preconditions.assert_class('screen_height', opts.delete(:screen_height), Integer)
  @screen_width = HttpClient::Preconditions.assert_class('screen_width', opts.delete(:screen_width), Integer)
  @time_zone_offset = HttpClient::Preconditions.assert_class('time_zone_offset', opts.delete(:time_zone_offset), Integer)
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39691
def copy(incoming={})
  DeviceFingerprintDetailsBrowser.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end
subtype_to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39695
def subtype_to_hash
  {
    :accept => accept,
    :java_enabled => java_enabled,
    :color_depth => color_depth,
    :screen_height => screen_height,
    :screen_width => screen_width,
    :time_zone_offset => time_zone_offset
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39687
def to_json
  JSON.dump(to_hash)
end