Class: Telnyx::Models::Dir::PhoneNumberBatch
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::Dir::PhoneNumberBatch
- Defined in:
- lib/telnyx/models/dir/phone_number_batch.rb
Overview
Instance Attribute Summary collapse
- #dir_id ⇒ String?
-
#documents ⇒ Array<Telnyx::Models::Document>?
Documents attached to this batch (e.g. a Letter of Authorization).
- #enterprise_id ⇒ String?
-
#phone_numbers ⇒ Array<Telnyx::Models::Dir::DirPhoneNumber>?
All phone numbers in this batch, with per-number status.
-
#status ⇒ Symbol, ...
Aggregate batch status.
Instance Method Summary collapse
-
#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
constructor
Some parameter documentations has been truncated, see PhoneNumberBatch for more details.
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.
|
|
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 64
|
Instance Attribute Details
#dir_id ⇒ String?
11 |
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 11 optional :dir_id, String |
#documents ⇒ Array<Telnyx::Models::Document>?
Documents attached to this batch (e.g. a Letter of Authorization). Empty when none were supplied at add time.
18 |
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 18 optional :documents, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Document] } |
#enterprise_id ⇒ String?
23 |
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 23 optional :enterprise_id, String |
#phone_numbers ⇒ Array<Telnyx::Models::Dir::DirPhoneNumber>?
All phone numbers in this batch, with per-number status.
29 |
# File 'lib/telnyx/models/dir/phone_number_batch.rb', line 29 optional :phone_numbers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Dir::DirPhoneNumber] } |
#status ⇒ Symbol, ...
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 } |