Class: Telnyx::Models::BundlePricing::UserBundle

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/bundle_pricing/user_bundle.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:, active:, billing_bundle:, created_at:, resources:, user_id:, updated_at: nil) ⇒ Object

Parameters:



# File 'lib/telnyx/models/bundle_pricing/user_bundle.rb', line 48

Instance Attribute Details

#activeBoolean

Status of the user bundle.

Returns:

  • (Boolean)


18
# File 'lib/telnyx/models/bundle_pricing/user_bundle.rb', line 18

required :active, Telnyx::Internal::Type::Boolean

#billing_bundleTelnyx::Models::BundlePricing::BillingBundleSummary



23
# File 'lib/telnyx/models/bundle_pricing/user_bundle.rb', line 23

required :billing_bundle, -> { Telnyx::BundlePricing::BillingBundleSummary }

#created_atDate

Date the user bundle was created.

Returns:

  • (Date)


29
# File 'lib/telnyx/models/bundle_pricing/user_bundle.rb', line 29

required :created_at, Date

#idString

User bundle’s ID, this is used to identify the user bundle in the API.

Returns:

  • (String)


12
# File 'lib/telnyx/models/bundle_pricing/user_bundle.rb', line 12

required :id, String

#resourcesArray<Telnyx::Models::BundlePricing::UserBundleResource>



34
# File 'lib/telnyx/models/bundle_pricing/user_bundle.rb', line 34

required :resources, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::BundlePricing::UserBundleResource] }

#updated_atDate?

Date the user bundle was last updated.

Returns:

  • (Date, nil)


46
# File 'lib/telnyx/models/bundle_pricing/user_bundle.rb', line 46

optional :updated_at, Date, nil?: true

#user_idString

The customer’s ID that owns this user bundle.

Returns:

  • (String)


40
# File 'lib/telnyx/models/bundle_pricing/user_bundle.rb', line 40

required :user_id, String