Class: Onlyfans::Models::NotificationSearchUsersResponse::Data::SubscribedOnData::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(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) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • action (String) (defaults to: nil)
  • cancel_date (String, nil) (defaults to: nil)
  • date (String) (defaults to: nil)
  • discount (Integer) (defaults to: nil)
  • duration (Integer) (defaults to: nil)
  • earning_id (Integer) (defaults to: nil)
  • expire_date (String) (defaults to: nil)
  • is_current (Boolean) (defaults to: nil)
  • offer_end (String) (defaults to: nil)
  • offer_start (String) (defaults to: nil)
  • price (Integer) (defaults to: nil)
  • regular_price (Integer) (defaults to: nil)
  • start_date (String) (defaults to: nil)
  • subscriber_id (Integer) (defaults to: nil)
  • type (String) (defaults to: nil)
  • user_id (Integer) (defaults to: nil)


864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
# File 'lib/onlyfans/models/notification_search_users_response.rb', line 864

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

  # @!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 [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]
  #   @param offer_start [String]
  #   @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)


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

optional :action, String

#cancel_dateString?

Returns:

  • (String, nil)


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

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

#dateString?

Returns:

  • (String, nil)


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

optional :date, String

#discountInteger?

Returns:

  • (Integer, nil)


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

optional :discount, Integer

#durationInteger?

Returns:

  • (Integer, nil)


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

optional :duration, Integer

#earning_idInteger?

Returns:

  • (Integer, nil)


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

optional :earning_id, Integer, api_name: :earningId

#expire_dateString?

Returns:

  • (String, nil)


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

optional :expire_date, String, api_name: :expireDate

#idInteger?

Returns:

  • (Integer, nil)


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

optional :id, Integer

#is_currentBoolean?

Returns:

  • (Boolean, nil)


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

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

#offer_endString?

Returns:

  • (String, nil)


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

optional :offer_end, String, api_name: :offerEnd

#offer_startString?

Returns:

  • (String, nil)


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

optional :offer_start, String, api_name: :offerStart

#priceInteger?

Returns:

  • (Integer, nil)


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

optional :price, Integer

#regular_priceInteger?

Returns:

  • (Integer, nil)


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

optional :regular_price, Integer, api_name: :regularPrice

#start_dateString?

Returns:

  • (String, nil)


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

optional :start_date, String, api_name: :startDate

#subscriber_idInteger?

Returns:

  • (Integer, nil)


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

optional :subscriber_id, Integer, api_name: :subscriberId

#typeString?

Returns:

  • (String, nil)


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

optional :type, String

#user_idInteger?

Returns:

  • (Integer, nil)


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

optional :user_id, Integer, api_name: :userId