Class: Dodopayments::Models::Entitlements::LicenseKeyGrant
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Entitlements::LicenseKeyGrant
- Defined in:
- lib/dodopayments/models/entitlements/license_key_grant.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(activations_used:, key:, activations_limit: nil, expires_at: nil) ⇒ Object
constructor
Nested representation of license-key grant fields.
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(activations_used:, key:, activations_limit: nil, expires_at: nil) ⇒ Object
Nested representation of license-key grant fields. Present only when the grant’s entitlement has ‘integration_type = ’license_key’‘ and a row exists in `license_keys`. The grant’s top-level ‘status` is the source of truth for the grant’s lifecycle — no per-license-key status is exposed here.
|
|
# File 'lib/dodopayments/models/entitlements/license_key_grant.rb', line 27
|
Instance Attribute Details
#activations_limit ⇒ Integer?
20 |
# File 'lib/dodopayments/models/entitlements/license_key_grant.rb', line 20 optional :activations_limit, Integer, nil?: true |
#activations_used ⇒ Integer
10 |
# File 'lib/dodopayments/models/entitlements/license_key_grant.rb', line 10 required :activations_used, Integer |
#expires_at ⇒ Time?
25 |
# File 'lib/dodopayments/models/entitlements/license_key_grant.rb', line 25 optional :expires_at, Time, nil?: true |
#key ⇒ String
15 |
# File 'lib/dodopayments/models/entitlements/license_key_grant.rb', line 15 required :key, String |