Module: Onlyfans::Models::PromotionCreateParams::Type

Extended by:
Internal::Type::Enum
Defined in:
lib/onlyfans/models/promotion_create_params.rb,
sig/onlyfans/models/promotion_create_params.rbs

Overview

Whether this promotion should apply to new subscribers, expired subscribers, or both. IMPORTANT: when set to new_and_expired, the OF will create two separate promotions.

Constant Summary collapse

NEW =

Returns:

  • (:new)
:new
EXPIRED =

Returns:

  • (:expired)
:expired
NEW_AND_EXPIRED =

Returns:

  • (:new_and_expired)
:new_and_expired

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/onlyfans/models/promotion_create_params.rb', line 86

Instance Method Details

#self?.values ⇒ ::Array[Onlyfans::Models::PromotionCreateParams::type_]

Returns:

  • (::Array[Onlyfans::Models::PromotionCreateParams::type_])


68
# File 'sig/onlyfans/models/promotion_create_params.rbs', line 68

def self?.values: -> ::Array[Onlyfans::Models::PromotionCreateParams::type_]