Class: Lithic::Models::Device

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/device.rb

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(imei:, ip_address:, location:) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::Device for more details.

Parameters:

  • imei (String, nil)

    The IMEI number of the device being provisioned. For Amex, this field contains d

  • ip_address (String, nil)

    The IP address of the device initiating the request

  • location (String, nil)

    Latitude and longitude where the device is located during the authorization atte



# File 'lib/lithic/models/device.rb', line 26


Instance Attribute Details

#imeiString?

The IMEI number of the device being provisioned. For Amex, this field contains device ID instead as IMEI is not provided

Returns:

  • (String, nil)


11
# File 'lib/lithic/models/device.rb', line 11

required :imei, String, nil?: true

#ip_addressString?

The IP address of the device initiating the request

Returns:

  • (String, nil)


17
# File 'lib/lithic/models/device.rb', line 17

required :ip_address, String, nil?: true

#locationString?

Latitude and longitude where the device is located during the authorization attempt

Returns:

  • (String, nil)


24
# File 'lib/lithic/models/device.rb', line 24

required :location, String, nil?: true