Class: Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit

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

Defined Under Namespace

Modules: Behavior, Cadence, HiddenFromWidget

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:, 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

Parameters:

  • id (String)

    Unique identifier of the entitlement

  • amount (Float, nil)

    Credit amount (for credit entitlements)

  • behavior (Symbol, Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit::Behavior)

    Entitlement behavior (Increment or Override)

  • cadence (Symbol, Stigg::Models::V1::Addons::EntitlementListResponse::Data::Credit::Cadence, nil)

    Credit grant cadence (for credit entitlements)

  • created_at (Time)

    Timestamp of when the record was created

  • description (String, nil)

    Optional description of the entitlement

  • display_name_override (String, nil)

    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

  • is_custom (Boolean, nil)

    Whether this is a custom entitlement

  • is_granted (Boolean)

    Whether the entitlement is granted

  • order (Float, nil)

    Display order of the entitlement

  • updated_at (Time)

    Timestamp of when the record was last updated

  • dependency_feature_id (String, nil) (defaults to: nil)

    The feature ID this entitlement depends on (for credit entitlements). The entitl

  • type (Symbol, :CREDIT) (defaults to: :CREDIT)

    Entitlement type (FEATURE or CREDIT)



# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 433

Instance Attribute Details

#amountFloat?

Credit amount (for credit entitlements)

Returns:

  • (Float, nil)


352
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 352

required :amount, Float, nil?: true

#behaviorSymbol, 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 }

#cadenceSymbol, ...

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_atTime

Timestamp of when the record was created

Returns:

  • (Time)


373
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 373

required :created_at, Time, api_name: :createdAt

#dependency_feature_idString?

The feature ID this entitlement depends on (for credit entitlements). The entitlement value will be calculated as: base amount × dependency feature usage limit

Returns:

  • (String, nil)


431
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 431

optional :dependency_feature_id, String, api_name: :dependencyFeatureId, nil?: true

#descriptionString?

Optional description of the entitlement

Returns:

  • (String, nil)


379
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 379

required :description, String, nil?: true

#display_name_overrideString?

Override display name for the entitlement

Returns:

  • (String, nil)


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_widgetsArray<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

#idString

Unique identifier of the entitlement

Returns:

  • (String)


346
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 346

required :id, String

#is_customBoolean?

Whether this is a custom entitlement

Returns:

  • (Boolean, nil)


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_grantedBoolean

Whether the entitlement is granted

Returns:

  • (Boolean)


405
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 405

required :is_granted, Stigg::Internal::Type::Boolean, api_name: :isGranted

#orderFloat?

Display order of the entitlement

Returns:

  • (Float, nil)


411
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 411

required :order, Float, nil?: true

#typeSymbol, :CREDIT

Entitlement type (FEATURE or CREDIT)

Returns:

  • (Symbol, :CREDIT)


417
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 417

required :type, const: :CREDIT

#updated_atTime

Timestamp of when the record was last updated

Returns:

  • (Time)


423
# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 423

required :updated_at, Time, api_name: :updatedAt

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/stigg/models/v1/addons/entitlement_list_response.rb', line 477