Class: Telnyx::Models::BundlePricing::UserBundleCreateParams::Item

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/bundle_pricing/user_bundle_create_params.rb,
sig/telnyx/models/bundle_pricing/user_bundle_create_params.rbs

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(billing_bundle_id:, quantity:) ⇒ Item

Returns a new instance of Item.

Parameters:

  • billing_bundle_id (String)

    Quantity of user bundles to order.

  • quantity (Integer)

    Quantity of user bundles to order.

  • billing_bundle_id: (String)
  • quantity: (Integer)


42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/telnyx/models/bundle_pricing/user_bundle_create_params.rb', line 42

class Item < Telnyx::Internal::Type::BaseModel
  # @!attribute billing_bundle_id
  #   Quantity of user bundles to order.
  #
  #   @return [String]
  required :billing_bundle_id, String

  # @!attribute quantity
  #   Quantity of user bundles to order.
  #
  #   @return [Integer]
  required :quantity, Integer

  # @!method initialize(billing_bundle_id:, quantity:)
  #   @param billing_bundle_id [String] Quantity of user bundles to order.
  #
  #   @param quantity [Integer] Quantity of user bundles to order.
end

Instance Attribute Details

#billing_bundle_idString

Quantity of user bundles to order.

Parameters:

  • value (String)

Returns:

  • (String)


47
# File 'lib/telnyx/models/bundle_pricing/user_bundle_create_params.rb', line 47

required :billing_bundle_id, String

#quantityInteger

Quantity of user bundles to order.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


53
# File 'lib/telnyx/models/bundle_pricing/user_bundle_create_params.rb', line 53

required :quantity, Integer

Instance Method Details

#to_hash{ billing_bundle_id: String, quantity: Integer }

Returns:

  • ({ billing_bundle_id: String, quantity: Integer })


53
# File 'sig/telnyx/models/bundle_pricing/user_bundle_create_params.rbs', line 53

def to_hash: -> { billing_bundle_id: String, quantity: Integer }