Class: Stigg::Models::V1::SubscriptionUpdateParams::Entitlement::Feature

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stigg/models/v1/subscription_update_params.rb

Defined Under Namespace

Modules: ResetPeriod Classes: MonthlyResetPeriodConfiguration, WeeklyResetPeriodConfiguration, YearlyResetPeriodConfiguration

Instance Attribute Summary collapse

Class Method 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:, has_soft_limit: nil, has_unlimited_usage: nil, monthly_reset_period_configuration: nil, reset_period: nil, usage_limit: nil, weekly_reset_period_configuration: nil, yearly_reset_period_configuration: nil, type: :FEATURE) ⇒ Object

Feature entitlement configuration for a subscription

Parameters:



# File 'lib/stigg/models/v1/subscription_update_params.rb', line 756

Instance Attribute Details

#has_soft_limitBoolean?

Whether the usage limit is a soft limit

Returns:

  • (Boolean, nil)


701
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 701

optional :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit

#has_unlimited_usageBoolean?

Whether usage is unlimited

Returns:

  • (Boolean, nil)


707
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 707

optional :has_unlimited_usage, Stigg::Internal::Type::Boolean, api_name: :hasUnlimitedUsage

#idString

The feature ID to attach the entitlement to

Returns:

  • (String)


689
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 689

required :id, String

#monthly_reset_period_configurationStigg::Models::V1::SubscriptionUpdateParams::Entitlement::Feature::MonthlyResetPeriodConfiguration?

Configuration for monthly reset period



713
714
715
716
717
718
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 713

optional :monthly_reset_period_configuration,
-> {
  Stigg::V1::SubscriptionUpdateParams::Entitlement::Feature::MonthlyResetPeriodConfiguration
},
api_name: :monthlyResetPeriodConfiguration,
nil?: true

#reset_periodSymbol, ...

Period at which usage resets



724
725
726
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 724

optional :reset_period,
enum: -> { Stigg::V1::SubscriptionUpdateParams::Entitlement::Feature::ResetPeriod },
api_name: :resetPeriod

#typeSymbol, :FEATURE

SubscriptionFeatureEntitlementRequest

Returns:

  • (Symbol, :FEATURE)


695
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 695

required :type, const: :FEATURE

#usage_limitInteger?

Maximum allowed usage for the feature

Returns:

  • (Integer, nil)


732
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 732

optional :usage_limit, Integer, api_name: :usageLimit

#weekly_reset_period_configurationStigg::Models::V1::SubscriptionUpdateParams::Entitlement::Feature::WeeklyResetPeriodConfiguration?

Configuration for weekly reset period



738
739
740
741
742
743
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 738

optional :weekly_reset_period_configuration,
-> {
  Stigg::V1::SubscriptionUpdateParams::Entitlement::Feature::WeeklyResetPeriodConfiguration
},
api_name: :weeklyResetPeriodConfiguration,
nil?: true

#yearly_reset_period_configurationStigg::Models::V1::SubscriptionUpdateParams::Entitlement::Feature::YearlyResetPeriodConfiguration?

Configuration for yearly reset period



749
750
751
752
753
754
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 749

optional :yearly_reset_period_configuration,
-> {
  Stigg::V1::SubscriptionUpdateParams::Entitlement::Feature::YearlyResetPeriodConfiguration
},
api_name: :yearlyResetPeriodConfiguration,
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/stigg/models/v1/subscription_update_params.rb', line 803