Class: Telnyx::Models::Dir::PhoneNumberBatch

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/dir/phone_number_batch.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(batch_id: nil, dir_display_name: nil, dir_id: nil, documents: nil, enterprise_id: nil, phone_numbers: nil, status: nil, submitted_at: nil, total_count: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::Dir::PhoneNumberBatch for more details.

A phone-number batch groups all numbers added in a single bulk-add request. Telnyx vets the batch as a unit. The response embeds the full ‘phone_numbers` array so you can read per-number status without a separate call, plus a batch-level `status` summarising the unit’s progress.

Parameters:

  • batch_id (String) (defaults to: nil)
  • dir_display_name (String) (defaults to: nil)

    The DIR’s display name at the time the batch was read.

  • dir_id (String) (defaults to: nil)
  • documents (Array<Telnyx::Models::Document>) (defaults to: nil)

    Documents attached to this batch (e.g. a Letter of Authorization). Empty when no

  • enterprise_id (String) (defaults to: nil)
  • phone_numbers (Array<Telnyx::Models::Dir::DirPhoneNumber>) (defaults to: nil)

    All phone numbers in this batch, with per-number status.

  • status (Symbol, Telnyx::Models::Dir::DirPhoneNumberStatus) (defaults to: nil)

    Aggregate batch status. Mirrors the values used on individual phone numbers (‘su

  • submitted_at (Time) (defaults to: nil)

    When the batch was created (and implicitly submitted for vetting).

  • total_count (Integer) (defaults to: nil)

    Number of phone numbers in this batch (length of ‘phone_numbers`).



# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 64

Instance Attribute Details

#dir_idString?

Returns:

  • (String, nil)


11
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 11

optional :dir_id, String

#documentsArray<Telnyx::Models::Document>?

Documents attached to this batch (e.g. a Letter of Authorization). Empty when none were supplied at add time.

Returns:



18
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 18

optional :documents, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Document] }

#enterprise_idString?

Returns:

  • (String, nil)


23
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 23

optional :enterprise_id, String

#phone_numbersArray<Telnyx::Models::Dir::DirPhoneNumber>?

All phone numbers in this batch, with per-number status.

Returns:



29
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 29

optional :phone_numbers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Dir::DirPhoneNumber] }

#statusSymbol, ...

Aggregate batch status. Mirrors the values used on individual phone numbers (‘submitted`, `in_review`, `verified`, `unsuccessful`, `permanently_rejected`, etc.).



37
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 37

optional :status, enum: -> { Telnyx::Dir::DirPhoneNumberStatus }