Module: ModernTreasury::Models::InternalAccounts::BalanceReportRetrieveParams::ID

Extended by:
Internal::Type::Union
Defined in:
lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb

collapse

LATEST =
:latest

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(String, Symbol)

Returns:

  • (Array(String, Symbol))


30
31
32
# File 'lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb', line 30

define_sorbet_constant!(:Variants) do
  T.type_alias { T.any(String, ModernTreasury::InternalAccounts::BalanceReportRetrieveParams::ID::TaggedSymbol) }
end

Instance Method Details

#initialize(internal_account_id: , request_options: {}) ⇒ Object

Parameters:



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb', line 20

module ID
  extend ModernTreasury::Internal::Type::Union

  variant String

  variant const: -> { ModernTreasury::Models::InternalAccounts::BalanceReportRetrieveParams::ID::LATEST }

  # @!method self.variants
  #   @return [Array(String, Symbol)]

  define_sorbet_constant!(:Variants) do
    T.type_alias { T.any(String, ModernTreasury::InternalAccounts::BalanceReportRetrieveParams::ID::TaggedSymbol) }
  end

  # @!group

  LATEST = :latest

  # @!endgroup
end