Class: Dodopayments::Models::EntitlementCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/dodopayments/models/entitlement_create_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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

Parameters:



# File 'lib/dodopayments/models/entitlement_create_params.rb', line 40

Instance Attribute Details

#descriptionString?

Optional description

Returns:

  • (String, nil)


32
# File 'lib/dodopayments/models/entitlement_create_params.rb', line 32

optional :description, String, nil?: true

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

#metadataHash{Symbol=>String}?

Optional user-facing metadata

Returns:

  • (Hash{Symbol=>String}, nil)


38
# File 'lib/dodopayments/models/entitlement_create_params.rb', line 38

optional :metadata, Dodopayments::Internal::Type::HashOf[String], nil?: true

#nameString

Display name for this entitlement

Returns:

  • (String)


26
# File 'lib/dodopayments/models/entitlement_create_params.rb', line 26

required :name, String