Class: Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit
- Defined in:
- lib/stigg/models/v1/plans/entitlement_create_response.rb
Defined Under Namespace
Modules: Behavior, Cadence, HiddenFromWidget
Instance Attribute Summary collapse
-
#amount ⇒ Float?
Credit amount (for credit entitlements).
-
#behavior ⇒ Symbol, Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit::Behavior
Entitlement behavior (Increment or Override).
-
#cadence ⇒ Symbol, ...
Credit grant cadence (for credit entitlements).
-
#created_at ⇒ Time
Timestamp of when the record was created.
-
#dependency_feature_id ⇒ String?
The feature ID this entitlement depends on (for credit entitlements).
-
#description ⇒ String?
Optional description of the entitlement.
-
#display_name_override ⇒ String?
Override display name for the entitlement.
-
#hidden_from_widgets ⇒ Array<Symbol, Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit::HiddenFromWidget>
Widget types where this entitlement is hidden.
-
#id ⇒ String
Unique identifier of the entitlement.
-
#is_custom ⇒ Boolean?
Whether this is a custom entitlement.
-
#is_granted ⇒ Boolean
Whether the entitlement is granted.
-
#order ⇒ Float?
Display order of the entitlement.
-
#type ⇒ Symbol, :CREDIT
Entitlement type (FEATURE or CREDIT).
-
#updated_at ⇒ Time
Timestamp of when the record was last updated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, amount:, behavior:, cadence:, created_at:, description:, display_name_override:, hidden_from_widgets:, is_custom:, is_granted:, order:, updated_at:, dependency_feature_id: nil, type: :CREDIT) ⇒ Object
constructor
Some parameter documentations has been truncated, see Credit for more details.
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:, amount:, behavior:, cadence:, created_at:, description:, display_name_override:, hidden_from_widgets:, is_custom:, is_granted:, order:, updated_at:, dependency_feature_id: nil, type: :CREDIT) ⇒ Object
Some parameter documentations has been truncated, see Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit for more details.
Credit entitlement response
|
|
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 425
|
Instance Attribute Details
#amount ⇒ Float?
Credit amount (for credit entitlements)
344 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 344 required :amount, Float, nil?: true |
#behavior ⇒ Symbol, Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit::Behavior
Entitlement behavior (Increment or Override)
350 351 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 350 required :behavior, enum: -> { Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit::Behavior } |
#cadence ⇒ Symbol, ...
Credit grant cadence (for credit entitlements)
357 358 359 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 357 required :cadence, enum: -> { Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit::Cadence }, nil?: true |
#created_at ⇒ Time
Timestamp of when the record was created
365 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 365 required :created_at, Time, api_name: :createdAt |
#dependency_feature_id ⇒ String?
The feature ID this entitlement depends on (for credit entitlements). The entitlement value will be calculated as: base amount × dependency feature usage limit
423 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 423 optional :dependency_feature_id, String, api_name: :dependencyFeatureId, nil?: true |
#description ⇒ String?
Optional description of the entitlement
371 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 371 required :description, String, nil?: true |
#display_name_override ⇒ String?
Override display name for the entitlement
377 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 377 required :display_name_override, String, api_name: :displayNameOverride, nil?: true |
#hidden_from_widgets ⇒ Array<Symbol, Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit::HiddenFromWidget>
Widget types where this entitlement is hidden
383 384 385 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 383 required :hidden_from_widgets, -> { Stigg::Internal::Type::ArrayOf[enum: Stigg::Models::V1::Plans::EntitlementCreateResponse::Data::Credit::HiddenFromWidget] }, api_name: :hiddenFromWidgets |
#id ⇒ String
Unique identifier of the entitlement
338 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 338 required :id, String |
#is_custom ⇒ Boolean?
Whether this is a custom entitlement
391 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 391 required :is_custom, Stigg::Internal::Type::Boolean, api_name: :isCustom, nil?: true |
#is_granted ⇒ Boolean
Whether the entitlement is granted
397 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 397 required :is_granted, Stigg::Internal::Type::Boolean, api_name: :isGranted |
#order ⇒ Float?
Display order of the entitlement
403 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 403 required :order, Float, nil?: true |
#type ⇒ Symbol, :CREDIT
Entitlement type (FEATURE or CREDIT)
409 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 409 required :type, const: :CREDIT |
#updated_at ⇒ Time
Timestamp of when the record was last updated
415 |
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 415 required :updated_at, Time, api_name: :updatedAt |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/stigg/models/v1/plans/entitlement_create_response.rb', line 469
|