Class: Increase::Models::DigitalWalletToken::DynamicPrimaryAccountNumber

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

Overview

See Also:

  • Increase::Models::DigitalWalletToken#dynamic_primary_account_number

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

#initializeDynamicPrimaryAccountNumber

Returns a new instance of DynamicPrimaryAccountNumber.

Parameters:

  • first6: (String)
  • last4: (String)


210
# File 'sig/increase/models/digital_wallet_token.rbs', line 210

def initialize: (first6: String, last4: String) -> void

Instance Attribute Details

#first6String

The first 6 digits of the token's Dynamic Primary Account Number.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :first6, String

#last4String

The last 4 digits of the token's Dynamic Primary Account Number.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :last4, String

Instance Method Details

#to_hash{ :first6 => String, :last4 => String }

Returns:

  • ({ :first6 => String, :last4 => String })


212
# File 'sig/increase/models/digital_wallet_token.rbs', line 212

def to_hash: -> { :first6 => String, :last4 => String }