Class: Increase::Models::RealTimeDecision::CardAuthentication::DeviceChannel::Browser

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/real_time_decision.rb

Overview

See Also:

Defined Under Namespace

Modules: JavascriptEnabled

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(accept_header:, ip_address:, javascript_enabled:, language:, user_agent:) ⇒ Object

Fields specific to the browser device channel.

Parameters:

  • accept_header (String, nil)

    The accept header from the cardholder’s browser.

  • ip_address (String, nil)

    The IP address of the cardholder’s browser.

  • javascript_enabled (Symbol, Increase::Models::RealTimeDecision::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled, nil)

    Whether JavaScript is enabled in the cardholder’s browser.

  • language (String, nil)

    The language of the cardholder’s browser.

  • user_agent (String, nil)

    The user agent of the cardholder’s browser.



# File 'lib/increase/models/real_time_decision.rb', line 508

Instance Attribute Details

#accept_headerString?

The accept header from the cardholder’s browser.

Returns:

  • (String, nil)


478
# File 'lib/increase/models/real_time_decision.rb', line 478

required :accept_header, String, nil?: true

#ip_addressString?

The IP address of the cardholder’s browser.

Returns:

  • (String, nil)


484
# File 'lib/increase/models/real_time_decision.rb', line 484

required :ip_address, String, nil?: true

#javascript_enabledSymbol, ...

Whether JavaScript is enabled in the cardholder’s browser.



490
491
492
493
494
# File 'lib/increase/models/real_time_decision.rb', line 490

required :javascript_enabled,
enum: -> {
  Increase::RealTimeDecision::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled
},
nil?: true

#languageString?

The language of the cardholder’s browser.

Returns:

  • (String, nil)


500
# File 'lib/increase/models/real_time_decision.rb', line 500

required :language, String, nil?: true

#user_agentString?

The user agent of the cardholder’s browser.

Returns:

  • (String, nil)


506
# File 'lib/increase/models/real_time_decision.rb', line 506

required :user_agent, String, nil?: true