Class: Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit
- Defined in:
- lib/stigg/models/v1/addons/entitlement_list_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::Addons::EntitlementListResponse::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::Addons::EntitlementListResponse::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::Addons::EntitlementListResponse::Data::Credit for more details.
Credit entitlement response
|
|
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 433
|
Instance Attribute Details
#amount ⇒ Float?
Credit amount (for credit entitlements)
352 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 352 required :amount, Float, nil?: true |
#behavior ⇒ Symbol, Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit::Behavior
Entitlement behavior (Increment or Override)
358 359 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 358 required :behavior, enum: -> { Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit::Behavior } |
#cadence ⇒ Symbol, ...
Credit grant cadence (for credit entitlements)
365 366 367 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 365 required :cadence, enum: -> { Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit::Cadence }, nil?: true |
#created_at ⇒ Time
Timestamp of when the record was created
373 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 373 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
431 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 431 optional :dependency_feature_id, String, api_name: :dependencyFeatureId, nil?: true |
#description ⇒ String?
Optional description of the entitlement
379 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 379 required :description, String, nil?: true |
#display_name_override ⇒ String?
Override display name for the entitlement
385 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 385 required :display_name_override, String, api_name: :displayNameOverride, nil?: true |
#hidden_from_widgets ⇒ Array<Symbol, Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit::HiddenFromWidget>
Widget types where this entitlement is hidden
391 392 393 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 391 required :hidden_from_widgets, -> { Stigg::Internal::Type::ArrayOf[enum: Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit::HiddenFromWidget] }, api_name: :hiddenFromWidgets |
#id ⇒ String
Unique identifier of the entitlement
346 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 346 required :id, String |
#is_custom ⇒ Boolean?
Whether this is a custom entitlement
399 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 399 required :is_custom, Stigg::Internal::Type::Boolean, api_name: :isCustom, nil?: true |
#is_granted ⇒ Boolean
Whether the entitlement is granted
405 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 405 required :is_granted, Stigg::Internal::Type::Boolean, api_name: :isGranted |
#order ⇒ Float?
Display order of the entitlement
411 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 411 required :order, Float, nil?: true |
#type ⇒ Symbol, :CREDIT
Entitlement type (FEATURE or CREDIT)
417 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 417 required :type, const: :CREDIT |
#updated_at ⇒ Time
Timestamp of when the record was last updated
423 |
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 423 required :updated_at, Time, api_name: :updatedAt |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 477
|