Class: Dodopayments::Models::EntitlementCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::EntitlementCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/dodopayments/models/entitlement_create_params.rb,
sig/dodopayments/models/entitlement_create_params.rbs
Overview
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::Dodopayments
Instance Attribute Summary collapse
-
#description ⇒ String?
Optional description.
-
#integration_config ⇒ Dodopayments::Models::IntegrationConfig::FeatureFlagConfig, ...
Platform-specific configuration (validated per integration_type).
-
#integration_type ⇒ Symbol, Dodopayments::Models::EntitlementIntegrationType
Which platform integration this entitlement uses.
-
#metadata ⇒ Hash{Symbol=>String, Float, Boolean}?
Additional metadata for the entitlement.
-
#name ⇒ String
Display name for this entitlement.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
- #initialize(integration_config:, integration_type:, name:, description: nil, metadata: nil, request_options: {}) ⇒ Object constructor
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(integration_config:, integration_type:, name:, description: nil, metadata: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/dodopayments/models/entitlement_create_params.rb', line 40
|
Instance Attribute Details
#description ⇒ String?
Optional description
32 |
# File 'lib/dodopayments/models/entitlement_create_params.rb', line 32 optional :description, String, nil?: true |
#integration_config ⇒ Dodopayments::Models::IntegrationConfig::FeatureFlagConfig, ...
Platform-specific configuration (validated per integration_type)
14 |
# File 'lib/dodopayments/models/entitlement_create_params.rb', line 14 required :integration_config, union: -> { Dodopayments::IntegrationConfig } |
#integration_type ⇒ Symbol, Dodopayments::Models::EntitlementIntegrationType
Which platform integration this entitlement uses
20 |
# File 'lib/dodopayments/models/entitlement_create_params.rb', line 20 required :integration_type, enum: -> { Dodopayments::EntitlementIntegrationType } |
#metadata ⇒ Hash{Symbol=>String, Float, Boolean}?
Additional metadata for the entitlement
38 |
# File 'lib/dodopayments/models/entitlement_create_params.rb', line 38 optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] } |
#name ⇒ String
Display name for this entitlement
26 |
# File 'lib/dodopayments/models/entitlement_create_params.rb', line 26 required :name, String |
Instance Method Details
#to_hash ⇒ {
40 |
# File 'sig/dodopayments/models/entitlement_create_params.rbs', line 40
def to_hash: -> {
|