Class: Onlyfans::Models::PromotionCreateResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/promotion_create_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_claim: nil, claims_count: nil, created_at: nil, finished_at: nil, has_related_promo: nil, is_finished: nil, message: nil, price: nil, raw_message: nil, subscribe_counts: nil, subscribe_days: nil, type: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • can_claim (Boolean) (defaults to: nil)
  • claims_count (Integer) (defaults to: nil)
  • created_at (String) (defaults to: nil)
  • finished_at (String) (defaults to: nil)
  • has_related_promo (Boolean) (defaults to: nil)
  • is_finished (Boolean) (defaults to: nil)
  • message (String) (defaults to: nil)
  • price (Integer) (defaults to: nil)
  • raw_message (String) (defaults to: nil)
  • subscribe_counts (Integer) (defaults to: nil)
  • subscribe_days (Integer) (defaults to: nil)
  • type (String) (defaults to: nil)


# File 'lib/onlyfans/models/promotion_create_response.rb', line 185

Instance Attribute Details

#can_claimBoolean?

Returns:

  • (Boolean, nil)


128
# File 'lib/onlyfans/models/promotion_create_response.rb', line 128

optional :can_claim, Onlyfans::Internal::Type::Boolean, api_name: :canClaim

#claims_countInteger?

Returns:

  • (Integer, nil)


133
# File 'lib/onlyfans/models/promotion_create_response.rb', line 133

optional :claims_count, Integer, api_name: :claimsCount

#created_atString?

Returns:

  • (String, nil)


138
# File 'lib/onlyfans/models/promotion_create_response.rb', line 138

optional :created_at, String, api_name: :createdAt

#finished_atString?

Returns:

  • (String, nil)


143
# File 'lib/onlyfans/models/promotion_create_response.rb', line 143

optional :finished_at, String, api_name: :finishedAt

Returns:

  • (Boolean, nil)


148
# File 'lib/onlyfans/models/promotion_create_response.rb', line 148

optional :has_related_promo, Onlyfans::Internal::Type::Boolean, api_name: :hasRelatedPromo

#idInteger?

Returns:

  • (Integer, nil)


123
# File 'lib/onlyfans/models/promotion_create_response.rb', line 123

optional :id, Integer

#is_finishedBoolean?

Returns:

  • (Boolean, nil)


153
# File 'lib/onlyfans/models/promotion_create_response.rb', line 153

optional :is_finished, Onlyfans::Internal::Type::Boolean, api_name: :isFinished

#messageString?

Returns:

  • (String, nil)


158
# File 'lib/onlyfans/models/promotion_create_response.rb', line 158

optional :message, String

#priceInteger?

Returns:

  • (Integer, nil)


163
# File 'lib/onlyfans/models/promotion_create_response.rb', line 163

optional :price, Integer

#raw_messageString?

Returns:

  • (String, nil)


168
# File 'lib/onlyfans/models/promotion_create_response.rb', line 168

optional :raw_message, String, api_name: :rawMessage

#subscribe_countsInteger?

Returns:

  • (Integer, nil)


173
# File 'lib/onlyfans/models/promotion_create_response.rb', line 173

optional :subscribe_counts, Integer, api_name: :subscribeCounts

#subscribe_daysInteger?

Returns:

  • (Integer, nil)


178
# File 'lib/onlyfans/models/promotion_create_response.rb', line 178

optional :subscribe_days, Integer, api_name: :subscribeDays

#typeString?

Returns:

  • (String, nil)


183
# File 'lib/onlyfans/models/promotion_create_response.rb', line 183

optional :type, String