Class: ModernTreasury::Models::AccountDetail

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/account_detail.rb

Overview

Defined Under Namespace

Modules: AccountNumberType

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(id: , account_number_safe: , account_number_type: , created_at: , discarded_at: , live_mode: , object: , updated_at: , account_number: nil) ⇒ Object

Some parameter documentations has been truncated, see ModernTreasury::Models::AccountDetail for more details.

Parameters:

  • id (String) (defaults to: )
  • account_number_safe (String) (defaults to: )

    The last 4 digits of the account_number.

  • account_number_type (Symbol, ModernTreasury::Models::AccountDetail::AccountNumberType) (defaults to: )

    One of ‘iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank ac

  • created_at (Time) (defaults to: )
  • discarded_at (Time, nil) (defaults to: )
  • live_mode (Boolean) (defaults to: )

    This field will be true if this object exists in the live environment or false i

  • object (String) (defaults to: )
  • updated_at (Time) (defaults to: )
  • account_number (String) (defaults to: nil)

    The account number for the bank account.



# File 'lib/modern_treasury/models/account_detail.rb', line 58


Instance Attribute Details

#account_numberString?

The account number for the bank account.

Returns:

  • (String, nil)


56
# File 'lib/modern_treasury/models/account_detail.rb', line 56

optional :account_number, String

#account_number_safeString

The last 4 digits of the account_number.

Returns:

  • (String)


16
# File 'lib/modern_treasury/models/account_detail.rb', line 16

required :account_number_safe, String

#account_number_typeSymbol, ModernTreasury::Models::AccountDetail::AccountNumberType

One of ‘iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank account number is in a generic format.



23
# File 'lib/modern_treasury/models/account_detail.rb', line 23

required :account_number_type, enum: -> { ModernTreasury::AccountDetail::AccountNumberType }

#created_atTime

Returns:

  • (Time)


28
# File 'lib/modern_treasury/models/account_detail.rb', line 28

required :created_at, Time

#discarded_atTime?

Returns:

  • (Time, nil)


33
# File 'lib/modern_treasury/models/account_detail.rb', line 33

required :discarded_at, Time, nil?: true

#idString

Returns:

  • (String)


10
# File 'lib/modern_treasury/models/account_detail.rb', line 10

required :id, String

#live_modeBoolean

This field will be true if this object exists in the live environment or false if it exists in the test environment.

Returns:

  • (Boolean)


40
# File 'lib/modern_treasury/models/account_detail.rb', line 40

required :live_mode, ModernTreasury::Internal::Type::Boolean

#objectString

Returns:

  • (String)


45
# File 'lib/modern_treasury/models/account_detail.rb', line 45

required :object, String

#updated_atTime

Returns:

  • (Time)


50
# File 'lib/modern_treasury/models/account_detail.rb', line 50

required :updated_at, Time