Class: Onlyfans::Models::Fans::NoteClearNotesResponse::Data::SubscriptionBundle

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/fans/note_clear_notes_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(id: nil, can_buy: nil, discount: nil, duration: nil, price: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • can_buy (Boolean) (defaults to: nil)
  • discount (Integer) (defaults to: nil)
  • duration (Integer) (defaults to: nil)
  • price (Float) (defaults to: nil)


# File 'lib/onlyfans/models/fans/note_clear_notes_response.rb', line 942

Instance Attribute Details

#can_buyBoolean?

Returns:

  • (Boolean, nil)


925
# File 'lib/onlyfans/models/fans/note_clear_notes_response.rb', line 925

optional :can_buy, Onlyfans::Internal::Type::Boolean, api_name: :canBuy

#discountInteger?

Returns:

  • (Integer, nil)


930
# File 'lib/onlyfans/models/fans/note_clear_notes_response.rb', line 930

optional :discount, Integer

#durationInteger?

Returns:

  • (Integer, nil)


935
# File 'lib/onlyfans/models/fans/note_clear_notes_response.rb', line 935

optional :duration, Integer

#idInteger?

Returns:

  • (Integer, nil)


920
# File 'lib/onlyfans/models/fans/note_clear_notes_response.rb', line 920

optional :id, Integer

#priceFloat?

Returns:

  • (Float, nil)


940
# File 'lib/onlyfans/models/fans/note_clear_notes_response.rb', line 940

optional :price, Float