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,
sig/dodopayments/models/entitlement_create_params.rbs

Overview

See Also:

  • Dodopayments::Resources::Entitlements#create

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Dodopayments

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

Parameters:

  • value (String, nil)

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

Parameters:

  • value (Dodopayments::Models::entitlement_integration_type)

Returns:



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

required :integration_type, enum: -> { Dodopayments::EntitlementIntegrationType }

#metadataHash{Symbol=>String, Float, Boolean}?

Additional metadata for the entitlement

Returns:

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


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

optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }

#nameString

Display name for this entitlement

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

Instance Method Details

#to_hash{

Returns:

  • ({)


40
# File 'sig/dodopayments/models/entitlement_create_params.rbs', line 40

def to_hash: -> {