Class: Increase::Models::DigitalWalletToken::Device

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

Overview

See Also:

Defined Under Namespace

Modules: DeviceType

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(device_type: , identifier: , ip_address: , name: ) ⇒ Object

The device that was used to create the Digital Wallet Token.

Parameters:

  • device_type (Symbol, Increase::Models::DigitalWalletToken::Device::DeviceType, nil) (defaults to: )

    Device type.

  • identifier (String, nil) (defaults to: )

    ID assigned to the device by the digital wallet provider.

  • ip_address (String, nil) (defaults to: )

    IP address of the device.

  • name (String, nil) (defaults to: )

    Name of the device, for example “My Work Phone”.



# File 'lib/increase/models/digital_wallet_token.rb', line 129

Instance Attribute Details

#device_typeSymbol, ...

Device type.



109
# File 'lib/increase/models/digital_wallet_token.rb', line 109

required :device_type, enum: -> { Increase::DigitalWalletToken::Device::DeviceType }, nil?: true

#identifierString?

ID assigned to the device by the digital wallet provider.

Returns:

  • (String, nil)


115
# File 'lib/increase/models/digital_wallet_token.rb', line 115

required :identifier, String, nil?: true

#ip_addressString?

IP address of the device.

Returns:

  • (String, nil)


121
# File 'lib/increase/models/digital_wallet_token.rb', line 121

required :ip_address, String, nil?: true

#nameString?

Name of the device, for example “My Work Phone”.

Returns:

  • (String, nil)


127
# File 'lib/increase/models/digital_wallet_token.rb', line 127

required :name, String, nil?: true