Class: Dodopayments::Models::Entitlement
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Entitlement
- Defined in:
- lib/dodopayments/models/entitlement.rb
Overview
Instance Attribute Summary collapse
- #business_id ⇒ String
- #created_at ⇒ Time
- #description ⇒ String?
- #id ⇒ String
-
#integration_config ⇒ Dodopayments::Models::IntegrationConfigResponse::GitHubConfig, ...
Public-facing variant of [‘IntegrationConfig`].
- #integration_type ⇒ Symbol, Dodopayments::Models::EntitlementIntegrationType
- #is_active ⇒ Boolean
- #metadata ⇒ Object?
- #name ⇒ String
- #updated_at ⇒ Time
Instance Method Summary collapse
-
#initialize(id:, business_id:, created_at:, integration_config:, integration_type:, is_active:, name:, updated_at:, description: nil, metadata: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Entitlement 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:, business_id:, created_at:, integration_config:, integration_type:, is_active:, name:, updated_at:, description: nil, metadata: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::Entitlement for more details.
|
|
# File 'lib/dodopayments/models/entitlement.rb', line 61
|
Instance Attribute Details
#business_id ⇒ String
15 |
# File 'lib/dodopayments/models/entitlement.rb', line 15 required :business_id, String |
#created_at ⇒ Time
20 |
# File 'lib/dodopayments/models/entitlement.rb', line 20 required :created_at, Time |
#description ⇒ String?
54 |
# File 'lib/dodopayments/models/entitlement.rb', line 54 optional :description, String, nil?: true |
#id ⇒ String
10 |
# File 'lib/dodopayments/models/entitlement.rb', line 10 required :id, String |
#integration_config ⇒ Dodopayments::Models::IntegrationConfigResponse::GitHubConfig, ...
Public-facing variant of [‘IntegrationConfig`]. Mirrors every variant shape on the wire EXCEPT `DigitalFiles`, which is replaced with a hydrated `digital_files` object (resolved download URLs etc.). The persisted JSONB stays ID-only via [`IntegrationConfig`]; this enum is response-only.
29 |
# File 'lib/dodopayments/models/entitlement.rb', line 29 required :integration_config, union: -> { Dodopayments::IntegrationConfigResponse } |
#integration_type ⇒ Symbol, Dodopayments::Models::EntitlementIntegrationType
34 |
# File 'lib/dodopayments/models/entitlement.rb', line 34 required :integration_type, enum: -> { Dodopayments::EntitlementIntegrationType } |
#is_active ⇒ Boolean
39 |
# File 'lib/dodopayments/models/entitlement.rb', line 39 required :is_active, Dodopayments::Internal::Type::Boolean |
#metadata ⇒ Object?
59 |
# File 'lib/dodopayments/models/entitlement.rb', line 59 optional :metadata, Dodopayments::Internal::Type::Unknown |
#name ⇒ String
44 |
# File 'lib/dodopayments/models/entitlement.rb', line 44 required :name, String |
#updated_at ⇒ Time
49 |
# File 'lib/dodopayments/models/entitlement.rb', line 49 required :updated_at, Time |