Class: Onlyfans::Models::Users::RestrictCreateResponse::Data::SubscribedByData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/users/restrict_create_response.rb,
sig/onlyfans/models/users/restrict_create_response.rbs

Overview

See Also:

  • Onlyfans::Models::Users::RestrictCreateResponse::Data#subscribed_by_data

Defined Under Namespace

Classes: Subscribe

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 ⇒ Object



985
# File 'sig/onlyfans/models/users/restrict_create_response.rbs', line 985

def initialize: (

Instance Attribute Details

#discount_finished_at ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


776
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 776

optional :discount_finished_at, String, api_name: :discountFinishedAt, nil?: true

#discount_percent ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


781
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 781

optional :discount_percent, Integer, api_name: :discountPercent

#discount_period ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


786
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 786

optional :discount_period, Integer, api_name: :discountPeriod

#discount_started_at ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


791
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 791

optional :discount_started_at, String, api_name: :discountStartedAt, nil?: true

#duration ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


796
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 796

optional :duration, String

#expired_at ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


801
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 801

optional :expired_at, String, api_name: :expiredAt

#has_active_paid_subscriptions ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


806
807
808
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 806

optional :has_active_paid_subscriptions,
Onlyfans::Internal::Type::Boolean,
api_name: :hasActivePaidSubscriptions

#is_muted ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


813
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 813

optional :is_muted, Onlyfans::Internal::Type::Boolean, api_name: :isMuted

#new_price ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


818
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 818

optional :new_price, Integer, api_name: :newPrice

#price ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


823
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 823

optional :price, Integer

#regular_price ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


828
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 828

optional :regular_price, Float, api_name: :regularPrice

#renewed_at ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


833
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 833

optional :renewed_at, String, api_name: :renewedAt, nil?: true

#show_posts_in_feed ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


838
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 838

optional :show_posts_in_feed, Onlyfans::Internal::Type::Boolean, api_name: :showPostsInFeed

#status ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


843
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 843

optional :status, String

#subscribe_at ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


848
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 848

optional :subscribe_at, String, api_name: :subscribeAt

#subscribe_price ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


853
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 853

optional :subscribe_price, Float, api_name: :subscribePrice

#subscribes ⇒ Array<Onlyfans::Models::Users::RestrictCreateResponse::Data::SubscribedByData::Subscribe>?



858
859
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 858

optional :subscribes,
-> { Onlyfans::Internal::Type::ArrayOf[Onlyfans::Models::Users::RestrictCreateResponse::Data::SubscribedByData::Subscribe] }

#unsubscribe_reason ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


864
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 864

optional :unsubscribe_reason, String, api_name: :unsubscribeReason

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


1006
# File 'sig/onlyfans/models/users/restrict_create_response.rbs', line 1006

def to_hash: -> {