Class: ModernTreasury::Models::RoutingNumberLookupRequest

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

Overview

Defined Under Namespace

Modules: RoutingNumberType, SupportedPaymentType

Instance Attribute Summary collapse

Class Method 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(bank_address: nil, bank_name: nil, routing_number: nil, routing_number_type: nil, sanctions: nil, supported_payment_types: nil) ⇒ Object

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

Parameters:



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


Instance Attribute Details

#bank_addressModernTreasury::Models::AddressRequest?

The address of the bank.



11
# File 'lib/modern_treasury/models/routing_number_lookup_request.rb', line 11

optional :bank_address, -> { ModernTreasury::AddressRequest }

#bank_nameString?

The name of the bank.

Returns:

  • (String, nil)


17
# File 'lib/modern_treasury/models/routing_number_lookup_request.rb', line 17

optional :bank_name, String

#routing_numberString?

The routing number of the bank.

Returns:

  • (String, nil)


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

optional :routing_number, String

#routing_number_typeSymbol, ...

The type of routing number. See docs.moderntreasury.com/platform/reference/routing-detail-object for more details. In sandbox mode we currently only support ‘aba` and `swift` with routing numbers ’123456789’ and ‘GRINUST0XXX’ respectively.



32
# File 'lib/modern_treasury/models/routing_number_lookup_request.rb', line 32

optional :routing_number_type, enum: -> { ModernTreasury::RoutingNumberLookupRequest::RoutingNumberType }

#sanctionsHash{Symbol=>Object}?

An object containing key-value pairs, each with a sanctions list as the key and a boolean value representing whether the bank is on that particular sanctions list. Currently, this includes eu_con, uk_hmt, us_ofac, and un sanctions lists.

Returns:

  • (Hash{Symbol=>Object}, nil)


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

optional :sanctions, ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]

#supported_payment_typesArray<Symbol, ModernTreasury::Models::RoutingNumberLookupRequest::SupportedPaymentType>?

An array of payment types that are supported for this routing number. This can include ‘ach`, `wire`, `rtp`, `sepa`, `bacs`, `au_becs`, and ’fednow’ currently.



47
48
# File 'lib/modern_treasury/models/routing_number_lookup_request.rb', line 47

optional :supported_payment_types,
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::RoutingNumberLookupRequest::SupportedPaymentType] }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/modern_treasury/models/routing_number_lookup_request.rb', line 85