Class: Onlyfans::Models::NotificationSearchUsersResponse::Data::SubscribedByData::Subscribe

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/notification_search_users_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 (Integer) (defaults to: nil)
  • renewed_at (String) (defaults to: nil)
  • show_posts_in_feed (Boolean) (defaults to: nil)
  • status (String, nil) (defaults to: nil)
  • subscribe_at (String) (defaults to: nil)
  • subscribe_price (Integer) (defaults to: nil)
  • subscribes (Array<Onlyfans::Models::NotificationSearchUsersResponse::Data::SubscribedByData::Subscribe>) (defaults to: nil)
  • unsubscribe_reason (String) (defaults to: nil)


600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
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
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 600

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, nil?: true

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

  # @!attribute regular_price
  #
  #   @return [Integer, nil]
  optional :regular_price, Integer, 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, nil]
  #   @param price [Integer]
  #   @param regular_price [Integer]
  #   @param start_date [String]
  #   @param subscriber_id [Integer]
  #   @param type [String]
  #   @param user_id [Integer]
end

Instance Attribute Details

#actionString?

Returns:

  • (String, nil)


609
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 609

optional :action, String

#cancel_dateString?

Returns:

  • (String, nil)


614
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 614

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

#dateString?

Returns:

  • (String, nil)


619
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 619

optional :date, String

#discountInteger?

Returns:

  • (Integer, nil)


624
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 624

optional :discount, Integer

#durationInteger?

Returns:

  • (Integer, nil)


629
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 629

optional :duration, Integer

#earning_idInteger?

Returns:

  • (Integer, nil)


634
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 634

optional :earning_id, Integer, api_name: :earningId

#expire_dateString?

Returns:

  • (String, nil)


639
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 639

optional :expire_date, String, api_name: :expireDate

#idInteger?

Returns:

  • (Integer, nil)


604
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 604

optional :id, Integer

#is_currentBoolean?

Returns:

  • (Boolean, nil)


644
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 644

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

#offer_endString?

Returns:

  • (String, nil)


649
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 649

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

#offer_startString?

Returns:

  • (String, nil)


654
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 654

optional :offer_start, String, api_name: :offerStart, nil?: true

#priceInteger?

Returns:

  • (Integer, nil)


659
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 659

optional :price, Integer

#regular_priceInteger?

Returns:

  • (Integer, nil)


664
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 664

optional :regular_price, Integer, api_name: :regularPrice

#start_dateString?

Returns:

  • (String, nil)


669
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 669

optional :start_date, String, api_name: :startDate

#subscriber_idInteger?

Returns:

  • (Integer, nil)


674
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 674

optional :subscriber_id, Integer, api_name: :subscriberId

#typeString?

Returns:

  • (String, nil)


679
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 679

optional :type, String

#user_idInteger?

Returns:

  • (Integer, nil)


684
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 684

optional :user_id, Integer, api_name: :userId