Class: Onlyfans::Models::Fans::NoteClearNotesResponse::Data::SubscribedByData::Subscribe

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(discount_finished_at: nil, discount_percent: nil, discount_period: nil, discount_started_at: nil, duration: nil, expired_at: nil, has_active_paid_subscriptions: nil, is_muted: nil, new_price: nil, price: nil, regular_price: nil, renewed_at: nil, show_posts_in_feed: nil, status: nil, subscribe_at: nil, subscribe_price: nil, subscribes: nil, unsubscribe_reason: nil) ⇒ Object

Parameters:

  • discount_finished_at (String, nil) (defaults to: nil)
  • discount_percent (Integer) (defaults to: nil)
  • discount_period (Integer) (defaults to: nil)
  • discount_started_at (String, nil) (defaults to: nil)
  • duration (String) (defaults to: nil)
  • expired_at (String) (defaults to: nil)
  • has_active_paid_subscriptions (Boolean) (defaults to: nil)
  • is_muted (Boolean) (defaults to: nil)
  • new_price (Integer) (defaults to: nil)
  • price (Integer) (defaults to: nil)
  • regular_price (Float) (defaults to: nil)
  • renewed_at (String, nil) (defaults to: nil)
  • show_posts_in_feed (Boolean) (defaults to: nil)
  • status (String) (defaults to: nil)
  • subscribe_at (String) (defaults to: nil)
  • subscribe_price (Float) (defaults to: nil)
  • subscribes (Array<Onlyfans::Models::Fans::NoteClearNotesResponse::Data::SubscribedByData::Subscribe>) (defaults to: nil)
  • unsubscribe_reason (String) (defaults to: nil)


664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
# File 'lib/onlyfans/models/fans/note_clear_notes_response.rb', line 664

class Subscribe < Onlyfans::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [Integer, nil]
  optional :id, Integer

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

  # @!attribute cancel_date
  #
  #   @return [String, nil]
  optional :cancel_date, String, api_name: :cancelDate, nil?: true

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

  # @!attribute discount
  #
  #   @return [Integer, nil]
  optional :discount, Integer

  # @!attribute duration
  #
  #   @return [Integer, nil]
  optional :duration, Integer

  # @!attribute earning_id
  #
  #   @return [Integer, nil]
  optional :earning_id, Integer, api_name: :earningId

  # @!attribute expire_date
  #
  #   @return [String, nil]
  optional :expire_date, String, api_name: :expireDate

  # @!attribute is_current
  #
  #   @return [Boolean, nil]
  optional :is_current, Onlyfans::Internal::Type::Boolean, api_name: :isCurrent

  # @!attribute offer_end
  #
  #   @return [String, nil]
  optional :offer_end, String, api_name: :offerEnd, nil?: true

  # @!attribute offer_start
  #
  #   @return [String, nil]
  optional :offer_start, String, api_name: :offerStart

  # @!attribute price
  #
  #   @return [Integer, nil]
  optional :price, Integer

  # @!attribute regular_price
  #
  #   @return [Float, nil]
  optional :regular_price, Float, api_name: :regularPrice

  # @!attribute start_date
  #
  #   @return [String, nil]
  optional :start_date, String, api_name: :startDate

  # @!attribute subscriber_id
  #
  #   @return [Integer, nil]
  optional :subscriber_id, Integer, api_name: :subscriberId

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

  # @!attribute user_id
  #
  #   @return [Integer, nil]
  optional :user_id, Integer, api_name: :userId

  # @!method initialize(id: nil, action: nil, cancel_date: nil, date: nil, discount: nil, duration: nil, earning_id: nil, expire_date: nil, is_current: nil, offer_end: nil, offer_start: nil, price: nil, regular_price: nil, start_date: nil, subscriber_id: nil, type: nil, user_id: nil)
  #   @param id [Integer]
  #   @param action [String]
  #   @param cancel_date [String, nil]
  #   @param date [String]
  #   @param discount [Integer]
  #   @param duration [Integer]
  #   @param earning_id [Integer]
  #   @param expire_date [String]
  #   @param is_current [Boolean]
  #   @param offer_end [String, nil]
  #   @param offer_start [String]
  #   @param price [Integer]
  #   @param regular_price [Float]
  #   @param start_date [String]
  #   @param subscriber_id [Integer]
  #   @param type [String]
  #   @param user_id [Integer]
end

Instance Attribute Details

#actionString?

Returns:

  • (String, nil)


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

optional :action, String

#cancel_dateString?

Returns:

  • (String, nil)


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

optional :cancel_date, String, api_name: :cancelDate, nil?: true

#dateString?

Returns:

  • (String, nil)


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

optional :date, String

#discountInteger?

Returns:

  • (Integer, nil)


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

optional :discount, Integer

#durationInteger?

Returns:

  • (Integer, nil)


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

optional :duration, Integer

#earning_idInteger?

Returns:

  • (Integer, nil)


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

optional :earning_id, Integer, api_name: :earningId

#expire_dateString?

Returns:

  • (String, nil)


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

optional :expire_date, String, api_name: :expireDate

#idInteger?

Returns:

  • (Integer, nil)


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

optional :id, Integer

#is_currentBoolean?

Returns:

  • (Boolean, nil)


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

optional :is_current, Onlyfans::Internal::Type::Boolean, api_name: :isCurrent

#offer_endString?

Returns:

  • (String, nil)


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

optional :offer_end, String, api_name: :offerEnd, nil?: true

#offer_startString?

Returns:

  • (String, nil)


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

optional :offer_start, String, api_name: :offerStart

#priceInteger?

Returns:

  • (Integer, nil)


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

optional :price, Integer

#regular_priceFloat?

Returns:

  • (Float, nil)


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

optional :regular_price, Float, api_name: :regularPrice

#start_dateString?

Returns:

  • (String, nil)


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

optional :start_date, String, api_name: :startDate

#subscriber_idInteger?

Returns:

  • (Integer, nil)


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

optional :subscriber_id, Integer, api_name: :subscriberId

#typeString?

Returns:

  • (String, nil)


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

optional :type, String

#user_idInteger?

Returns:

  • (Integer, nil)


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

optional :user_id, Integer, api_name: :userId