Class: ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail

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

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(account_number: , account_number_type: nil) ⇒ Object

Parameters:



266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
# File 'lib/modern_treasury/models/counterparty_create_params.rb', line 266

class AccountDetail < ModernTreasury::Internal::Type::BaseModel
  # @!attribute account_number
  #
  #   @return [String]
  required :account_number, String

  # @!attribute account_number_type
  #
  #   @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType, nil]
  optional :account_number_type,
           enum: -> { ModernTreasury::CounterpartyCreateParams::::AccountDetail::AccountNumberType }

  # @!method initialize(account_number:, account_number_type: nil)
  #   @param account_number [String]
  #   @param account_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType]

  # @see ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail#account_number_type
  module AccountNumberType
    extend ModernTreasury::Internal::Type::Enum

    AU_NUMBER = :au_number
    BASE_ADDRESS = :base_address
    CLABE = :clabe
    ETHEREUM_ADDRESS = :ethereum_address
    HK_NUMBER = :hk_number
    IBAN = :iban
    ID_NUMBER = :id_number
    NZ_NUMBER = :nz_number
    OTHER = :other
    PAN = :pan
    POLYGON_ADDRESS = :polygon_address
    SG_NUMBER = :sg_number
    SOLANA_ADDRESS = :solana_address
    WALLET_ADDRESS = :wallet_address

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#account_numberString

Returns:

  • (String)


270
# File 'lib/modern_treasury/models/counterparty_create_params.rb', line 270

required :account_number, String

#account_number_typeSymbol, ...



275
276
# File 'lib/modern_treasury/models/counterparty_create_params.rb', line 275

optional :account_number_type,
enum: -> { ModernTreasury::CounterpartyCreateParams::::AccountDetail::AccountNumberType }