Class: Onlyfans::Models::PayoutRetrieveBalancesResponse::Data::WithdrawalPeriodOption

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/payout_retrieve_balances_response.rb

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(code: nil, name: nil) ⇒ Object

Parameters:

  • code (String) (defaults to: nil)
  • name (String) (defaults to: nil)


167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/onlyfans/models/payout_retrieve_balances_response.rb', line 167

class WithdrawalPeriodOption < Onlyfans::Internal::Type::BaseModel
  # @!attribute code
  #
  #   @return [String, nil]
  optional :code, String

  # @!attribute name
  #
  #   @return [String, nil]
  optional :name, String

  # @!method initialize(code: nil, name: nil)
  #   @param code [String]
  #   @param name [String]
end

Instance Attribute Details

#codeString?

Returns:

  • (String, nil)


171
# File 'lib/onlyfans/models/payout_retrieve_balances_response.rb', line 171

optional :code, String

#nameString?

Returns:

  • (String, nil)


176
# File 'lib/onlyfans/models/payout_retrieve_balances_response.rb', line 176

optional :name, String