Class: Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature
- Defined in:
- lib/stigg/models/v1/plans/entitlement_update_params.rb
Defined Under Namespace
Modules: Behavior, HiddenFromWidget, ResetPeriod Classes: MonthlyResetPeriodConfiguration, WeeklyResetPeriodConfiguration, YearlyResetPeriodConfiguration
Instance Attribute Summary collapse
-
#behavior ⇒ Symbol, ...
Entitlement behavior (Increment or Override).
-
#description ⇒ String?
Description of the entitlement.
-
#display_name_override ⇒ String?
Override display name for the entitlement.
-
#enum_values ⇒ Array<String>?
Allowed enum values for the feature entitlement.
-
#has_soft_limit ⇒ Boolean?
Whether the usage limit is a soft limit.
-
#has_unlimited_usage ⇒ Boolean?
Whether usage is unlimited.
-
#hidden_from_widgets ⇒ Array<Symbol, Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature::HiddenFromWidget>?
Widget types where this entitlement is hidden.
-
#is_custom ⇒ Boolean?
Whether this is a custom entitlement.
-
#is_granted ⇒ Boolean?
Whether the entitlement is granted.
-
#monthly_reset_period_configuration ⇒ Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature::MonthlyResetPeriodConfiguration?
Configuration for monthly reset period.
-
#order ⇒ Float?
Display order of the entitlement.
-
#reset_period ⇒ Symbol, ...
Period at which usage resets.
-
#type ⇒ Symbol, :FEATURE
UpdateFeatureEntitlementRequest.
-
#usage_limit ⇒ Integer?
Maximum allowed usage for the feature.
-
#weekly_reset_period_configuration ⇒ Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature::WeeklyResetPeriodConfiguration?
Configuration for weekly reset period.
-
#yearly_reset_period_configuration ⇒ Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature::YearlyResetPeriodConfiguration?
Configuration for yearly reset period.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(behavior: nil, description: nil, display_name_override: nil, enum_values: nil, has_soft_limit: nil, has_unlimited_usage: nil, hidden_from_widgets: nil, is_custom: nil, is_granted: nil, monthly_reset_period_configuration: nil, order: nil, reset_period: nil, usage_limit: nil, weekly_reset_period_configuration: nil, yearly_reset_period_configuration: nil, type: :FEATURE) ⇒ Object
constructor
Fields to update on a feature entitlement.
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(behavior: nil, description: nil, display_name_override: nil, enum_values: nil, has_soft_limit: nil, has_unlimited_usage: nil, hidden_from_widgets: nil, is_custom: nil, is_granted: nil, monthly_reset_period_configuration: nil, order: nil, reset_period: nil, usage_limit: nil, weekly_reset_period_configuration: nil, yearly_reset_period_configuration: nil, type: :FEATURE) ⇒ Object
Fields to update on a feature entitlement
|
|
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 181
|
Instance Attribute Details
#behavior ⇒ Symbol, ...
Entitlement behavior (Increment or Override)
74 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 74 optional :behavior, enum: -> { Stigg::V1::Plans::EntitlementUpdateParams::Body::Feature::Behavior } |
#description ⇒ String?
Description of the entitlement
80 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 80 optional :description, String |
#display_name_override ⇒ String?
Override display name for the entitlement
86 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 86 optional :display_name_override, String, api_name: :displayNameOverride |
#enum_values ⇒ Array<String>?
Allowed enum values for the feature entitlement
92 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 92 optional :enum_values, Stigg::Internal::Type::ArrayOf[String], api_name: :enumValues |
#has_soft_limit ⇒ Boolean?
Whether the usage limit is a soft limit
98 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 98 optional :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit |
#has_unlimited_usage ⇒ Boolean?
Whether usage is unlimited
104 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 104 optional :has_unlimited_usage, Stigg::Internal::Type::Boolean, api_name: :hasUnlimitedUsage |
#hidden_from_widgets ⇒ Array<Symbol, Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature::HiddenFromWidget>?
Widget types where this entitlement is hidden
110 111 112 113 114 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 110 optional :hidden_from_widgets, -> { Stigg::Internal::Type::ArrayOf[enum: Stigg::V1::Plans::EntitlementUpdateParams::Body::Feature::HiddenFromWidget] }, api_name: :hiddenFromWidgets |
#is_custom ⇒ Boolean?
Whether this is a custom entitlement
120 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 120 optional :is_custom, Stigg::Internal::Type::Boolean, api_name: :isCustom |
#is_granted ⇒ Boolean?
Whether the entitlement is granted
126 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 126 optional :is_granted, Stigg::Internal::Type::Boolean, api_name: :isGranted |
#monthly_reset_period_configuration ⇒ Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature::MonthlyResetPeriodConfiguration?
Configuration for monthly reset period
132 133 134 135 136 137 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 132 optional :monthly_reset_period_configuration, -> { Stigg::V1::Plans::EntitlementUpdateParams::Body::Feature::MonthlyResetPeriodConfiguration }, api_name: :monthlyResetPeriodConfiguration, nil?: true |
#order ⇒ Float?
Display order of the entitlement
143 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 143 optional :order, Float |
#reset_period ⇒ Symbol, ...
Period at which usage resets
149 150 151 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 149 optional :reset_period, enum: -> { Stigg::V1::Plans::EntitlementUpdateParams::Body::Feature::ResetPeriod }, api_name: :resetPeriod |
#type ⇒ Symbol, :FEATURE
UpdateFeatureEntitlementRequest
68 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 68 required :type, const: :FEATURE |
#usage_limit ⇒ Integer?
Maximum allowed usage for the feature
157 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 157 optional :usage_limit, Integer, api_name: :usageLimit, nil?: true |
#weekly_reset_period_configuration ⇒ Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature::WeeklyResetPeriodConfiguration?
Configuration for weekly reset period
163 164 165 166 167 168 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 163 optional :weekly_reset_period_configuration, -> { Stigg::V1::Plans::EntitlementUpdateParams::Body::Feature::WeeklyResetPeriodConfiguration }, api_name: :weeklyResetPeriodConfiguration, nil?: true |
#yearly_reset_period_configuration ⇒ Stigg::Models::V1::Plans::EntitlementUpdateParams::Body::Feature::YearlyResetPeriodConfiguration?
Configuration for yearly reset period
174 175 176 177 178 179 |
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 174 optional :yearly_reset_period_configuration, -> { Stigg::V1::Plans::EntitlementUpdateParams::Body::Feature::YearlyResetPeriodConfiguration }, api_name: :yearlyResetPeriodConfiguration, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/stigg/models/v1/plans/entitlement_update_params.rb', line 225
|