Class: Dodopayments::Models::Entitlement

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/entitlement.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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:, metadata:, name:, updated_at:, description: nil) ⇒ Object

Some parameter documentations has been truncated, see Dodopayments::Models::Entitlement for more details.

Detailed view of a single entitlement: identity, integration type, integration-specific configuration, and metadata.

Parameters:



# File 'lib/dodopayments/models/entitlement.rb', line 69

Instance Attribute Details

#business_idString

Identifier of the business that owns this entitlement.

Returns:

  • (String)


17
# File 'lib/dodopayments/models/entitlement.rb', line 17

required :business_id, String

#created_atTime

Timestamp when the entitlement was created.

Returns:

  • (Time)


23
# File 'lib/dodopayments/models/entitlement.rb', line 23

required :created_at, Time

#descriptionString?

Optional description supplied at creation.

Returns:

  • (String, nil)


67
# File 'lib/dodopayments/models/entitlement.rb', line 67

optional :description, String, nil?: true

#idString

Unique identifier of the entitlement.

Returns:

  • (String)


11
# File 'lib/dodopayments/models/entitlement.rb', line 11

required :id, String

#integration_typeSymbol, Dodopayments::Models::EntitlementIntegrationType

Platform integration this entitlement uses.



36
# File 'lib/dodopayments/models/entitlement.rb', line 36

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

#is_activeBoolean

Always ‘true` for entitlements returned by the public API; soft-deleted entitlements are not returned.

Returns:

  • (Boolean)


43
# File 'lib/dodopayments/models/entitlement.rb', line 43

required :is_active, Dodopayments::Internal::Type::Boolean

#metadataHash{Symbol=>String}

Arbitrary key-value metadata supplied at creation or via PATCH.

Returns:

  • (Hash{Symbol=>String})


49
# File 'lib/dodopayments/models/entitlement.rb', line 49

required :metadata, Dodopayments::Internal::Type::HashOf[String]

#nameString

Display name supplied at creation.

Returns:

  • (String)


55
# File 'lib/dodopayments/models/entitlement.rb', line 55

required :name, String

#updated_atTime

Timestamp when the entitlement was last modified.

Returns:

  • (Time)


61
# File 'lib/dodopayments/models/entitlement.rb', line 61

required :updated_at, Time