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,
sig/telnyx/models/dir/phone_number_batch.rbs
Overview
Instance Attribute Summary collapse
-
#batch_id ⇒ String?
readonly
Returns the value of attribute batch_id.
-
#dir_display_name ⇒ String?
readonly
Returns the value of attribute dir_display_name.
- #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.
-
#submitted_at ⇒ Time?
readonly
Returns the value of attribute submitted_at.
-
#total_count ⇒ Integer?
readonly
Returns the value of attribute total_count.
Instance Method Summary collapse
- #batch_id ⇒ String readonly
- #dir_display_name ⇒ String readonly
-
#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.
- #submitted_at ⇒ Time readonly
- #to_hash ⇒ {
- #total_count ⇒ Integer readonly
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
#batch_id ⇒ String? (readonly)
Returns the value of attribute batch_id.
42 43 44 |
# File 'sig/telnyx/models/dir/phone_number_batch.rbs', line 42 def batch_id @batch_id end |
#dir_display_name ⇒ String? (readonly)
Returns the value of attribute dir_display_name.
46 47 48 |
# File 'sig/telnyx/models/dir/phone_number_batch.rbs', line 46 def dir_display_name @dir_display_name end |
#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 } |
#submitted_at ⇒ Time? (readonly)
Returns the value of attribute submitted_at.
50 51 52 |
# File 'sig/telnyx/models/dir/phone_number_batch.rbs', line 50 def submitted_at @submitted_at end |
#total_count ⇒ Integer? (readonly)
Returns the value of attribute total_count.
54 55 56 |
# File 'sig/telnyx/models/dir/phone_number_batch.rbs', line 54 def total_count @total_count end |
Instance Method Details
#batch_id= ⇒ String (readonly)
44 |
# File 'sig/telnyx/models/dir/phone_number_batch.rbs', line 44
def batch_id=: (String) -> String
|
#dir_display_name= ⇒ String (readonly)
48 |
# File 'sig/telnyx/models/dir/phone_number_batch.rbs', line 48
def dir_display_name=: (String) -> String
|
#submitted_at= ⇒ Time (readonly)
52 |
# File 'sig/telnyx/models/dir/phone_number_batch.rbs', line 52
def submitted_at=: (Time) -> Time
|
#to_hash ⇒ {
70 |
# File 'sig/telnyx/models/dir/phone_number_batch.rbs', line 70
def to_hash: -> {
|
#total_count= ⇒ Integer (readonly)
56 |
# File 'sig/telnyx/models/dir/phone_number_batch.rbs', line 56
def total_count=: (Integer) -> Integer
|