Class: Stigg::Models::V1::Events::Beta::Customers::EntitlementCheckResponse::Data::Credit::Chain

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb

Instance Attribute 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(current_usage:, entity_id:, is_granted:, usage_limit:) ⇒ Object

Per-entity governance node — limit and current usage for a single resolved entity.

Parameters:

  • current_usage (Float)

    Amount consumed by this entity in the current cadence period.

  • entity_id (String)

    External id of the entity within the customer.

  • is_granted (Boolean)

    Whether this node alone permits the requested usage.

  • usage_limit (Float, nil)

    Hard usage limit for this node; null when no assignment is configured.



# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 512

Instance Attribute Details

#current_usageFloat

Amount consumed by this entity in the current cadence period.

Returns:

  • (Float)


492
# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 492

required :current_usage, Float, api_name: :currentUsage

#entity_idString

External id of the entity within the customer.

Returns:

  • (String)


498
# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 498

required :entity_id, String, api_name: :entityId

#is_grantedBoolean

Whether this node alone permits the requested usage.

Returns:

  • (Boolean)


504
# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 504

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

#usage_limitFloat?

Hard usage limit for this node; null when no assignment is configured.

Returns:

  • (Float, nil)


510
# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 510

required :usage_limit, Float, api_name: :usageLimit, nil?: true