Class: Telnyx::Models::PhoneNumber
Defined Under Namespace
Modules: PhoneNumberType, RequirementsStatus, Status
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
-
#bundle_id ⇒ String
readonly
-
#country_code ⇒ String
readonly
-
#country_iso_alpha2 ⇒ String
readonly
-
#id ⇒ String
readonly
-
#initialize(id: nil, bundle_id: nil, country_code: nil, country_iso_alpha2: nil, phone_number: nil, phone_number_type: nil, record_type: nil, regulatory_requirements: nil, requirements_met: nil, requirements_status: nil, status: nil) ⇒ Object
constructor
-
#phone_number_type ⇒ Object
readonly
-
#record_type ⇒ String
readonly
-
#requirements_met ⇒ Boolean
readonly
-
#requirements_status ⇒ Object
readonly
-
#status ⇒ Object
readonly
-
#to_hash ⇒ {
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: nil, bundle_id: nil, country_code: nil, country_iso_alpha2: nil, phone_number: nil, phone_number_type: nil, record_type: nil, regulatory_requirements: nil, requirements_met: nil, requirements_status: nil, status: nil) ⇒ Object
|
# File 'lib/telnyx/models/phone_number.rb', line 70
|
Instance Attribute Details
#bundle_id ⇒ String?
Returns the value of attribute bundle_id.
33
34
35
|
# File 'sig/telnyx/models/phone_number.rbs', line 33
def bundle_id
@bundle_id
end
|
#country_code ⇒ String?
Returns the value of attribute country_code.
37
38
39
|
# File 'sig/telnyx/models/phone_number.rbs', line 37
def country_code
@country_code
end
|
#country_iso_alpha2 ⇒ String?
Returns the value of attribute country_iso_alpha2.
41
42
43
|
# File 'sig/telnyx/models/phone_number.rbs', line 41
def country_iso_alpha2
@country_iso_alpha2
end
|
#id ⇒ String?
Returns the value of attribute id.
29
30
31
|
# File 'sig/telnyx/models/phone_number.rbs', line 29
def id
@id
end
|
#phone_number ⇒ String?
9
|
# File 'lib/telnyx/models/phone_number.rb', line 9
optional :phone_number, String
|
#phone_number_type ⇒ Telnyx::Models::PhoneNumber::phone_number_type?
Returns the value of attribute phone_number_type.
45
46
47
|
# File 'sig/telnyx/models/phone_number.rbs', line 45
def phone_number_type
@phone_number_type
end
|
#record_type ⇒ String?
Returns the value of attribute record_type.
51
52
53
|
# File 'sig/telnyx/models/phone_number.rbs', line 51
def record_type
@record_type
end
|
14
15
|
# File 'lib/telnyx/models/phone_number.rb', line 14
optional :regulatory_requirements,
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::SubNumberOrderRegulatoryRequirementWithValue] }
|
#requirements_met ⇒ Boolean?
Returns the value of attribute requirements_met.
55
56
57
|
# File 'sig/telnyx/models/phone_number.rbs', line 55
def requirements_met
@requirements_met
end
|
#requirements_status ⇒ Telnyx::Models::PhoneNumber::requirements_status?
Returns the value of attribute requirements_status.
59
60
61
|
# File 'sig/telnyx/models/phone_number.rbs', line 59
def requirements_status
@requirements_status
end
|
#status ⇒ Telnyx::Models::PhoneNumber::status?
Returns the value of attribute status.
65
66
67
|
# File 'sig/telnyx/models/phone_number.rbs', line 65
def status
@status
end
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/telnyx/models/phone_number.rb', line 105
|
Instance Method Details
#bundle_id= ⇒ String
35
|
# File 'sig/telnyx/models/phone_number.rbs', line 35
def bundle_id=: (String) -> String
|
#country_code= ⇒ String
39
|
# File 'sig/telnyx/models/phone_number.rbs', line 39
def country_code=: (String) -> String
|
#country_iso_alpha2= ⇒ String
43
|
# File 'sig/telnyx/models/phone_number.rbs', line 43
def country_iso_alpha2=: (String) -> String
|
#id= ⇒ String
31
|
# File 'sig/telnyx/models/phone_number.rbs', line 31
def id=: (String) -> String
|
#phone_number_type= ⇒ Object
47
|
# File 'sig/telnyx/models/phone_number.rbs', line 47
def phone_number_type=: (
|
#record_type= ⇒ String
53
|
# File 'sig/telnyx/models/phone_number.rbs', line 53
def record_type=: (String) -> String
|
#requirements_met= ⇒ Boolean
57
|
# File 'sig/telnyx/models/phone_number.rbs', line 57
def requirements_met=: (bool) -> bool
|
#requirements_status= ⇒ Object
61
|
# File 'sig/telnyx/models/phone_number.rbs', line 61
def requirements_status=: (
|
#status= ⇒ Object
67
|
# File 'sig/telnyx/models/phone_number.rbs', line 67
def status=: (
|
#to_hash ⇒ {
85
|
# File 'sig/telnyx/models/phone_number.rbs', line 85
def to_hash: -> {
|