telnyx 5.67.0 → 5.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/util.rb +1 -2
- data/lib/telnyx/models/ai/voice_settings.rb +1 -1
- data/lib/telnyx/models/billing_address.rb +56 -0
- data/lib/telnyx/models/billing_contact.rb +40 -0
- data/lib/telnyx/models/enterprise_create_params.rb +12 -196
- data/lib/telnyx/models/enterprise_create_response.rb +3 -437
- data/lib/telnyx/models/enterprise_public.rb +249 -0
- data/lib/telnyx/models/enterprise_retrieve_response.rb +3 -439
- data/lib/telnyx/models/enterprise_update_params.rb +12 -196
- data/lib/telnyx/models/enterprise_update_response.rb +3 -437
- data/lib/telnyx/models/enterprises/enterprise_reputation_public.rb +100 -0
- data/lib/telnyx/models/enterprises/reputation/number_create_response.rb +3 -39
- data/lib/telnyx/models/enterprises/reputation/number_retrieve_response.rb +3 -148
- data/lib/telnyx/models/enterprises/reputation_create_response.rb +3 -96
- data/lib/telnyx/models/enterprises/reputation_list_response.rb +3 -96
- data/lib/telnyx/models/enterprises/reputation_update_frequency_response.rb +3 -97
- data/lib/telnyx/models/meta_info.rb +40 -0
- data/lib/telnyx/models/organization_contact.rb +51 -0
- data/lib/telnyx/models/physical_address.rb +56 -0
- data/lib/telnyx/models/reputation/number_retrieve_response.rb +3 -148
- data/lib/telnyx/models/reputation_data.rb +80 -0
- data/lib/telnyx/models/reputation_phone_number_with_reputation_data.rb +56 -0
- data/lib/telnyx/models.rb +16 -0
- data/lib/telnyx/resources/enterprises/reputation/numbers.rb +2 -2
- data/lib/telnyx/resources/enterprises.rb +10 -10
- data/lib/telnyx/resources/reputation/numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +9 -3
- data/rbi/telnyx/models/ai/voice_settings.rbi +2 -2
- data/rbi/telnyx/models/billing_address.rbi +77 -0
- data/rbi/telnyx/models/billing_contact.rbi +61 -0
- data/rbi/telnyx/models/enterprise_create_params.rbi +16 -316
- data/rbi/telnyx/models/enterprise_create_response.rbi +4 -814
- data/rbi/telnyx/models/enterprise_public.rbi +436 -0
- data/rbi/telnyx/models/enterprise_retrieve_response.rbi +4 -816
- data/rbi/telnyx/models/enterprise_update_params.rbi +16 -320
- data/rbi/telnyx/models/enterprise_update_response.rbi +4 -814
- data/rbi/telnyx/models/enterprises/enterprise_reputation_public.rbi +233 -0
- data/rbi/telnyx/models/enterprises/reputation/number_create_response.rbi +4 -88
- data/rbi/telnyx/models/enterprises/reputation/number_retrieve_response.rbi +4 -292
- data/rbi/telnyx/models/enterprises/reputation_create_response.rbi +4 -236
- data/rbi/telnyx/models/enterprises/reputation_list_response.rbi +4 -232
- data/rbi/telnyx/models/enterprises/reputation_update_frequency_response.rbi +4 -237
- data/rbi/telnyx/models/meta_info.rbi +71 -0
- data/rbi/telnyx/models/organization_contact.rbi +71 -0
- data/rbi/telnyx/models/physical_address.rbi +77 -0
- data/rbi/telnyx/models/reputation/number_retrieve_response.rbi +4 -287
- data/rbi/telnyx/models/reputation_data.rbi +107 -0
- data/rbi/telnyx/models/reputation_phone_number_with_reputation_data.rbi +98 -0
- data/rbi/telnyx/models.rbi +17 -0
- data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +1 -1
- data/rbi/telnyx/resources/enterprises.rbi +9 -19
- data/rbi/telnyx/resources/reputation/numbers.rbi +1 -1
- data/sig/telnyx/models/billing_address.rbs +45 -0
- data/sig/telnyx/models/billing_contact.rbs +35 -0
- data/sig/telnyx/models/enterprise_create_params.rbs +16 -169
- data/sig/telnyx/models/enterprise_create_response.rbs +5 -382
- data/sig/telnyx/models/enterprise_public.rbs +218 -0
- data/sig/telnyx/models/enterprise_retrieve_response.rbs +5 -382
- data/sig/telnyx/models/enterprise_update_params.rbs +22 -179
- data/sig/telnyx/models/enterprise_update_response.rbs +5 -382
- data/sig/telnyx/models/enterprises/enterprise_reputation_public.rbs +97 -0
- data/sig/telnyx/models/enterprises/reputation/number_create_response.rbs +5 -47
- data/sig/telnyx/models/enterprises/reputation/number_retrieve_response.rbs +6 -133
- data/sig/telnyx/models/enterprises/reputation_create_response.rbs +6 -96
- data/sig/telnyx/models/enterprises/reputation_list_response.rbs +6 -96
- data/sig/telnyx/models/enterprises/reputation_update_frequency_response.rbs +6 -98
- data/sig/telnyx/models/meta_info.rbs +43 -0
- data/sig/telnyx/models/organization_contact.rbs +40 -0
- data/sig/telnyx/models/physical_address.rbs +45 -0
- data/sig/telnyx/models/reputation/number_retrieve_response.rbs +6 -131
- data/sig/telnyx/models/reputation_data.rbs +62 -0
- data/sig/telnyx/models/reputation_phone_number_with_reputation_data.rbs +57 -0
- data/sig/telnyx/models.rbs +16 -0
- data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +1 -1
- data/sig/telnyx/resources/enterprises.rbs +9 -9
- data/sig/telnyx/resources/reputation/numbers.rbs +1 -1
- metadata +29 -11
- data/lib/telnyx/models/enterprise_list_response.rb +0 -439
- data/lib/telnyx/models/enterprises/reputation/number_list_response.rb +0 -154
- data/lib/telnyx/models/reputation/number_list_response.rb +0 -151
- data/rbi/telnyx/models/enterprise_list_response.rbi +0 -794
- data/rbi/telnyx/models/enterprises/reputation/number_list_response.rbi +0 -288
- data/rbi/telnyx/models/reputation/number_list_response.rbi +0 -286
- data/sig/telnyx/models/enterprise_list_response.rbs +0 -375
- data/sig/telnyx/models/enterprises/reputation/number_list_response.rbs +0 -132
- data/sig/telnyx/models/reputation/number_list_response.rbs +0 -130
|
@@ -11,831 +11,21 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig { returns(T.nilable(Telnyx::
|
|
14
|
+
sig { returns(T.nilable(Telnyx::EnterprisePublic)) }
|
|
15
15
|
attr_reader :data
|
|
16
16
|
|
|
17
|
-
sig
|
|
18
|
-
params(
|
|
19
|
-
data: Telnyx::Models::EnterpriseCreateResponse::Data::OrHash
|
|
20
|
-
).void
|
|
21
|
-
end
|
|
17
|
+
sig { params(data: Telnyx::EnterprisePublic::OrHash).void }
|
|
22
18
|
attr_writer :data
|
|
23
19
|
|
|
24
20
|
sig do
|
|
25
|
-
params(
|
|
26
|
-
data: Telnyx::Models::EnterpriseCreateResponse::Data::OrHash
|
|
27
|
-
).returns(T.attached_class)
|
|
21
|
+
params(data: Telnyx::EnterprisePublic::OrHash).returns(T.attached_class)
|
|
28
22
|
end
|
|
29
23
|
def self.new(data: nil)
|
|
30
24
|
end
|
|
31
25
|
|
|
32
|
-
sig
|
|
33
|
-
override.returns(
|
|
34
|
-
{ data: Telnyx::Models::EnterpriseCreateResponse::Data }
|
|
35
|
-
)
|
|
36
|
-
end
|
|
26
|
+
sig { override.returns({ data: Telnyx::EnterprisePublic }) }
|
|
37
27
|
def to_hash
|
|
38
28
|
end
|
|
39
|
-
|
|
40
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
41
|
-
OrHash =
|
|
42
|
-
T.type_alias do
|
|
43
|
-
T.any(
|
|
44
|
-
Telnyx::Models::EnterpriseCreateResponse::Data,
|
|
45
|
-
Telnyx::Internal::AnyHash
|
|
46
|
-
)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
# Unique identifier of the enterprise
|
|
50
|
-
sig { returns(T.nilable(String)) }
|
|
51
|
-
attr_reader :id
|
|
52
|
-
|
|
53
|
-
sig { params(id: String).void }
|
|
54
|
-
attr_writer :id
|
|
55
|
-
|
|
56
|
-
sig do
|
|
57
|
-
returns(
|
|
58
|
-
T.nilable(
|
|
59
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingAddress
|
|
60
|
-
)
|
|
61
|
-
)
|
|
62
|
-
end
|
|
63
|
-
attr_reader :billing_address
|
|
64
|
-
|
|
65
|
-
sig do
|
|
66
|
-
params(
|
|
67
|
-
billing_address:
|
|
68
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingAddress::OrHash
|
|
69
|
-
).void
|
|
70
|
-
end
|
|
71
|
-
attr_writer :billing_address
|
|
72
|
-
|
|
73
|
-
sig do
|
|
74
|
-
returns(
|
|
75
|
-
T.nilable(
|
|
76
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingContact
|
|
77
|
-
)
|
|
78
|
-
)
|
|
79
|
-
end
|
|
80
|
-
attr_reader :billing_contact
|
|
81
|
-
|
|
82
|
-
sig do
|
|
83
|
-
params(
|
|
84
|
-
billing_contact:
|
|
85
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingContact::OrHash
|
|
86
|
-
).void
|
|
87
|
-
end
|
|
88
|
-
attr_writer :billing_contact
|
|
89
|
-
|
|
90
|
-
# Corporate registration number
|
|
91
|
-
sig { returns(T.nilable(String)) }
|
|
92
|
-
attr_accessor :corporate_registration_number
|
|
93
|
-
|
|
94
|
-
# ISO 3166-1 alpha-2 country code
|
|
95
|
-
sig { returns(T.nilable(String)) }
|
|
96
|
-
attr_reader :country_code
|
|
97
|
-
|
|
98
|
-
sig { params(country_code: String).void }
|
|
99
|
-
attr_writer :country_code
|
|
100
|
-
|
|
101
|
-
# When the enterprise was created
|
|
102
|
-
sig { returns(T.nilable(Time)) }
|
|
103
|
-
attr_reader :created_at
|
|
104
|
-
|
|
105
|
-
sig { params(created_at: Time).void }
|
|
106
|
-
attr_writer :created_at
|
|
107
|
-
|
|
108
|
-
# Customer reference identifier
|
|
109
|
-
sig { returns(T.nilable(String)) }
|
|
110
|
-
attr_accessor :customer_reference
|
|
111
|
-
|
|
112
|
-
# DBA name
|
|
113
|
-
sig { returns(T.nilable(String)) }
|
|
114
|
-
attr_reader :doing_business_as
|
|
115
|
-
|
|
116
|
-
sig { params(doing_business_as: String).void }
|
|
117
|
-
attr_writer :doing_business_as
|
|
118
|
-
|
|
119
|
-
# D-U-N-S Number
|
|
120
|
-
sig { returns(T.nilable(String)) }
|
|
121
|
-
attr_accessor :dun_bradstreet_number
|
|
122
|
-
|
|
123
|
-
# Federal Employer Identification Number
|
|
124
|
-
sig { returns(T.nilable(String)) }
|
|
125
|
-
attr_accessor :fein
|
|
126
|
-
|
|
127
|
-
# Industry classification
|
|
128
|
-
sig { returns(T.nilable(String)) }
|
|
129
|
-
attr_accessor :industry
|
|
130
|
-
|
|
131
|
-
# Legal name of the enterprise
|
|
132
|
-
sig { returns(T.nilable(String)) }
|
|
133
|
-
attr_reader :legal_name
|
|
134
|
-
|
|
135
|
-
sig { params(legal_name: String).void }
|
|
136
|
-
attr_writer :legal_name
|
|
137
|
-
|
|
138
|
-
# Employee count range
|
|
139
|
-
sig do
|
|
140
|
-
returns(
|
|
141
|
-
T.nilable(
|
|
142
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
143
|
-
)
|
|
144
|
-
)
|
|
145
|
-
end
|
|
146
|
-
attr_accessor :number_of_employees
|
|
147
|
-
|
|
148
|
-
# Organization contact information. Note: the response returns this object with
|
|
149
|
-
# the phone field as 'phone' (not 'phone_number').
|
|
150
|
-
sig do
|
|
151
|
-
returns(
|
|
152
|
-
T.nilable(
|
|
153
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationContact
|
|
154
|
-
)
|
|
155
|
-
)
|
|
156
|
-
end
|
|
157
|
-
attr_reader :organization_contact
|
|
158
|
-
|
|
159
|
-
sig do
|
|
160
|
-
params(
|
|
161
|
-
organization_contact:
|
|
162
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationContact::OrHash
|
|
163
|
-
).void
|
|
164
|
-
end
|
|
165
|
-
attr_writer :organization_contact
|
|
166
|
-
|
|
167
|
-
# Legal structure type
|
|
168
|
-
sig do
|
|
169
|
-
returns(
|
|
170
|
-
T.nilable(
|
|
171
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType::TaggedSymbol
|
|
172
|
-
)
|
|
173
|
-
)
|
|
174
|
-
end
|
|
175
|
-
attr_accessor :organization_legal_type
|
|
176
|
-
|
|
177
|
-
sig do
|
|
178
|
-
returns(
|
|
179
|
-
T.nilable(
|
|
180
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationPhysicalAddress
|
|
181
|
-
)
|
|
182
|
-
)
|
|
183
|
-
end
|
|
184
|
-
attr_reader :organization_physical_address
|
|
185
|
-
|
|
186
|
-
sig do
|
|
187
|
-
params(
|
|
188
|
-
organization_physical_address:
|
|
189
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationPhysicalAddress::OrHash
|
|
190
|
-
).void
|
|
191
|
-
end
|
|
192
|
-
attr_writer :organization_physical_address
|
|
193
|
-
|
|
194
|
-
# Type of organization
|
|
195
|
-
sig do
|
|
196
|
-
returns(
|
|
197
|
-
T.nilable(
|
|
198
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType::TaggedSymbol
|
|
199
|
-
)
|
|
200
|
-
)
|
|
201
|
-
end
|
|
202
|
-
attr_reader :organization_type
|
|
203
|
-
|
|
204
|
-
sig do
|
|
205
|
-
params(
|
|
206
|
-
organization_type:
|
|
207
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType::OrSymbol
|
|
208
|
-
).void
|
|
209
|
-
end
|
|
210
|
-
attr_writer :organization_type
|
|
211
|
-
|
|
212
|
-
# SIC Code
|
|
213
|
-
sig { returns(T.nilable(String)) }
|
|
214
|
-
attr_accessor :primary_business_domain_sic_code
|
|
215
|
-
|
|
216
|
-
# Professional license number
|
|
217
|
-
sig { returns(T.nilable(String)) }
|
|
218
|
-
attr_accessor :professional_license_number
|
|
219
|
-
|
|
220
|
-
# Role type in Branded Calling / Number Reputation services
|
|
221
|
-
sig do
|
|
222
|
-
returns(
|
|
223
|
-
T.nilable(
|
|
224
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::RoleType::TaggedSymbol
|
|
225
|
-
)
|
|
226
|
-
)
|
|
227
|
-
end
|
|
228
|
-
attr_reader :role_type
|
|
229
|
-
|
|
230
|
-
sig do
|
|
231
|
-
params(
|
|
232
|
-
role_type:
|
|
233
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::RoleType::OrSymbol
|
|
234
|
-
).void
|
|
235
|
-
end
|
|
236
|
-
attr_writer :role_type
|
|
237
|
-
|
|
238
|
-
# When the enterprise was last updated
|
|
239
|
-
sig { returns(T.nilable(Time)) }
|
|
240
|
-
attr_reader :updated_at
|
|
241
|
-
|
|
242
|
-
sig { params(updated_at: Time).void }
|
|
243
|
-
attr_writer :updated_at
|
|
244
|
-
|
|
245
|
-
# Company website URL
|
|
246
|
-
sig { returns(T.nilable(String)) }
|
|
247
|
-
attr_accessor :website
|
|
248
|
-
|
|
249
|
-
sig do
|
|
250
|
-
params(
|
|
251
|
-
id: String,
|
|
252
|
-
billing_address:
|
|
253
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingAddress::OrHash,
|
|
254
|
-
billing_contact:
|
|
255
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingContact::OrHash,
|
|
256
|
-
corporate_registration_number: T.nilable(String),
|
|
257
|
-
country_code: String,
|
|
258
|
-
created_at: Time,
|
|
259
|
-
customer_reference: T.nilable(String),
|
|
260
|
-
doing_business_as: String,
|
|
261
|
-
dun_bradstreet_number: T.nilable(String),
|
|
262
|
-
fein: T.nilable(String),
|
|
263
|
-
industry: T.nilable(String),
|
|
264
|
-
legal_name: String,
|
|
265
|
-
number_of_employees:
|
|
266
|
-
T.nilable(
|
|
267
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::OrSymbol
|
|
268
|
-
),
|
|
269
|
-
organization_contact:
|
|
270
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationContact::OrHash,
|
|
271
|
-
organization_legal_type:
|
|
272
|
-
T.nilable(
|
|
273
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType::OrSymbol
|
|
274
|
-
),
|
|
275
|
-
organization_physical_address:
|
|
276
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationPhysicalAddress::OrHash,
|
|
277
|
-
organization_type:
|
|
278
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType::OrSymbol,
|
|
279
|
-
primary_business_domain_sic_code: T.nilable(String),
|
|
280
|
-
professional_license_number: T.nilable(String),
|
|
281
|
-
role_type:
|
|
282
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::RoleType::OrSymbol,
|
|
283
|
-
updated_at: Time,
|
|
284
|
-
website: T.nilable(String)
|
|
285
|
-
).returns(T.attached_class)
|
|
286
|
-
end
|
|
287
|
-
def self.new(
|
|
288
|
-
# Unique identifier of the enterprise
|
|
289
|
-
id: nil,
|
|
290
|
-
billing_address: nil,
|
|
291
|
-
billing_contact: nil,
|
|
292
|
-
# Corporate registration number
|
|
293
|
-
corporate_registration_number: nil,
|
|
294
|
-
# ISO 3166-1 alpha-2 country code
|
|
295
|
-
country_code: nil,
|
|
296
|
-
# When the enterprise was created
|
|
297
|
-
created_at: nil,
|
|
298
|
-
# Customer reference identifier
|
|
299
|
-
customer_reference: nil,
|
|
300
|
-
# DBA name
|
|
301
|
-
doing_business_as: nil,
|
|
302
|
-
# D-U-N-S Number
|
|
303
|
-
dun_bradstreet_number: nil,
|
|
304
|
-
# Federal Employer Identification Number
|
|
305
|
-
fein: nil,
|
|
306
|
-
# Industry classification
|
|
307
|
-
industry: nil,
|
|
308
|
-
# Legal name of the enterprise
|
|
309
|
-
legal_name: nil,
|
|
310
|
-
# Employee count range
|
|
311
|
-
number_of_employees: nil,
|
|
312
|
-
# Organization contact information. Note: the response returns this object with
|
|
313
|
-
# the phone field as 'phone' (not 'phone_number').
|
|
314
|
-
organization_contact: nil,
|
|
315
|
-
# Legal structure type
|
|
316
|
-
organization_legal_type: nil,
|
|
317
|
-
organization_physical_address: nil,
|
|
318
|
-
# Type of organization
|
|
319
|
-
organization_type: nil,
|
|
320
|
-
# SIC Code
|
|
321
|
-
primary_business_domain_sic_code: nil,
|
|
322
|
-
# Professional license number
|
|
323
|
-
professional_license_number: nil,
|
|
324
|
-
# Role type in Branded Calling / Number Reputation services
|
|
325
|
-
role_type: nil,
|
|
326
|
-
# When the enterprise was last updated
|
|
327
|
-
updated_at: nil,
|
|
328
|
-
# Company website URL
|
|
329
|
-
website: nil
|
|
330
|
-
)
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
sig do
|
|
334
|
-
override.returns(
|
|
335
|
-
{
|
|
336
|
-
id: String,
|
|
337
|
-
billing_address:
|
|
338
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingAddress,
|
|
339
|
-
billing_contact:
|
|
340
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingContact,
|
|
341
|
-
corporate_registration_number: T.nilable(String),
|
|
342
|
-
country_code: String,
|
|
343
|
-
created_at: Time,
|
|
344
|
-
customer_reference: T.nilable(String),
|
|
345
|
-
doing_business_as: String,
|
|
346
|
-
dun_bradstreet_number: T.nilable(String),
|
|
347
|
-
fein: T.nilable(String),
|
|
348
|
-
industry: T.nilable(String),
|
|
349
|
-
legal_name: String,
|
|
350
|
-
number_of_employees:
|
|
351
|
-
T.nilable(
|
|
352
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
353
|
-
),
|
|
354
|
-
organization_contact:
|
|
355
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationContact,
|
|
356
|
-
organization_legal_type:
|
|
357
|
-
T.nilable(
|
|
358
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType::TaggedSymbol
|
|
359
|
-
),
|
|
360
|
-
organization_physical_address:
|
|
361
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationPhysicalAddress,
|
|
362
|
-
organization_type:
|
|
363
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType::TaggedSymbol,
|
|
364
|
-
primary_business_domain_sic_code: T.nilable(String),
|
|
365
|
-
professional_license_number: T.nilable(String),
|
|
366
|
-
role_type:
|
|
367
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::RoleType::TaggedSymbol,
|
|
368
|
-
updated_at: Time,
|
|
369
|
-
website: T.nilable(String)
|
|
370
|
-
}
|
|
371
|
-
)
|
|
372
|
-
end
|
|
373
|
-
def to_hash
|
|
374
|
-
end
|
|
375
|
-
|
|
376
|
-
class BillingAddress < Telnyx::Internal::Type::BaseModel
|
|
377
|
-
OrHash =
|
|
378
|
-
T.type_alias do
|
|
379
|
-
T.any(
|
|
380
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingAddress,
|
|
381
|
-
Telnyx::Internal::AnyHash
|
|
382
|
-
)
|
|
383
|
-
end
|
|
384
|
-
|
|
385
|
-
# State or province
|
|
386
|
-
sig { returns(String) }
|
|
387
|
-
attr_accessor :administrative_area
|
|
388
|
-
|
|
389
|
-
# City name
|
|
390
|
-
sig { returns(String) }
|
|
391
|
-
attr_accessor :city
|
|
392
|
-
|
|
393
|
-
# Country name (e.g., United States)
|
|
394
|
-
sig { returns(String) }
|
|
395
|
-
attr_accessor :country
|
|
396
|
-
|
|
397
|
-
# ZIP or postal code
|
|
398
|
-
sig { returns(String) }
|
|
399
|
-
attr_accessor :postal_code
|
|
400
|
-
|
|
401
|
-
# Street address
|
|
402
|
-
sig { returns(String) }
|
|
403
|
-
attr_accessor :street_address
|
|
404
|
-
|
|
405
|
-
# Additional address line (suite, apt, etc.)
|
|
406
|
-
sig { returns(T.nilable(String)) }
|
|
407
|
-
attr_accessor :extended_address
|
|
408
|
-
|
|
409
|
-
sig do
|
|
410
|
-
params(
|
|
411
|
-
administrative_area: String,
|
|
412
|
-
city: String,
|
|
413
|
-
country: String,
|
|
414
|
-
postal_code: String,
|
|
415
|
-
street_address: String,
|
|
416
|
-
extended_address: T.nilable(String)
|
|
417
|
-
).returns(T.attached_class)
|
|
418
|
-
end
|
|
419
|
-
def self.new(
|
|
420
|
-
# State or province
|
|
421
|
-
administrative_area:,
|
|
422
|
-
# City name
|
|
423
|
-
city:,
|
|
424
|
-
# Country name (e.g., United States)
|
|
425
|
-
country:,
|
|
426
|
-
# ZIP or postal code
|
|
427
|
-
postal_code:,
|
|
428
|
-
# Street address
|
|
429
|
-
street_address:,
|
|
430
|
-
# Additional address line (suite, apt, etc.)
|
|
431
|
-
extended_address: nil
|
|
432
|
-
)
|
|
433
|
-
end
|
|
434
|
-
|
|
435
|
-
sig do
|
|
436
|
-
override.returns(
|
|
437
|
-
{
|
|
438
|
-
administrative_area: String,
|
|
439
|
-
city: String,
|
|
440
|
-
country: String,
|
|
441
|
-
postal_code: String,
|
|
442
|
-
street_address: String,
|
|
443
|
-
extended_address: T.nilable(String)
|
|
444
|
-
}
|
|
445
|
-
)
|
|
446
|
-
end
|
|
447
|
-
def to_hash
|
|
448
|
-
end
|
|
449
|
-
end
|
|
450
|
-
|
|
451
|
-
class BillingContact < Telnyx::Internal::Type::BaseModel
|
|
452
|
-
OrHash =
|
|
453
|
-
T.type_alias do
|
|
454
|
-
T.any(
|
|
455
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::BillingContact,
|
|
456
|
-
Telnyx::Internal::AnyHash
|
|
457
|
-
)
|
|
458
|
-
end
|
|
459
|
-
|
|
460
|
-
# Contact's email address
|
|
461
|
-
sig { returns(String) }
|
|
462
|
-
attr_accessor :email
|
|
463
|
-
|
|
464
|
-
# Contact's first name
|
|
465
|
-
sig { returns(String) }
|
|
466
|
-
attr_accessor :first_name
|
|
467
|
-
|
|
468
|
-
# Contact's last name
|
|
469
|
-
sig { returns(String) }
|
|
470
|
-
attr_accessor :last_name
|
|
471
|
-
|
|
472
|
-
# Contact's phone number (10-15 digits)
|
|
473
|
-
sig { returns(String) }
|
|
474
|
-
attr_accessor :phone_number
|
|
475
|
-
|
|
476
|
-
sig do
|
|
477
|
-
params(
|
|
478
|
-
email: String,
|
|
479
|
-
first_name: String,
|
|
480
|
-
last_name: String,
|
|
481
|
-
phone_number: String
|
|
482
|
-
).returns(T.attached_class)
|
|
483
|
-
end
|
|
484
|
-
def self.new(
|
|
485
|
-
# Contact's email address
|
|
486
|
-
email:,
|
|
487
|
-
# Contact's first name
|
|
488
|
-
first_name:,
|
|
489
|
-
# Contact's last name
|
|
490
|
-
last_name:,
|
|
491
|
-
# Contact's phone number (10-15 digits)
|
|
492
|
-
phone_number:
|
|
493
|
-
)
|
|
494
|
-
end
|
|
495
|
-
|
|
496
|
-
sig do
|
|
497
|
-
override.returns(
|
|
498
|
-
{
|
|
499
|
-
email: String,
|
|
500
|
-
first_name: String,
|
|
501
|
-
last_name: String,
|
|
502
|
-
phone_number: String
|
|
503
|
-
}
|
|
504
|
-
)
|
|
505
|
-
end
|
|
506
|
-
def to_hash
|
|
507
|
-
end
|
|
508
|
-
end
|
|
509
|
-
|
|
510
|
-
# Employee count range
|
|
511
|
-
module NumberOfEmployees
|
|
512
|
-
extend Telnyx::Internal::Type::Enum
|
|
513
|
-
|
|
514
|
-
TaggedSymbol =
|
|
515
|
-
T.type_alias do
|
|
516
|
-
T.all(
|
|
517
|
-
Symbol,
|
|
518
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees
|
|
519
|
-
)
|
|
520
|
-
end
|
|
521
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
522
|
-
|
|
523
|
-
NUMBER_OF_EMPLOYEES_1_10 =
|
|
524
|
-
T.let(
|
|
525
|
-
:"1-10",
|
|
526
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
527
|
-
)
|
|
528
|
-
NUMBER_OF_EMPLOYEES_11_50 =
|
|
529
|
-
T.let(
|
|
530
|
-
:"11-50",
|
|
531
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
532
|
-
)
|
|
533
|
-
NUMBER_OF_EMPLOYEES_51_200 =
|
|
534
|
-
T.let(
|
|
535
|
-
:"51-200",
|
|
536
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
537
|
-
)
|
|
538
|
-
NUMBER_OF_EMPLOYEES_201_500 =
|
|
539
|
-
T.let(
|
|
540
|
-
:"201-500",
|
|
541
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
542
|
-
)
|
|
543
|
-
NUMBER_OF_EMPLOYEES_501_2000 =
|
|
544
|
-
T.let(
|
|
545
|
-
:"501-2000",
|
|
546
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
547
|
-
)
|
|
548
|
-
NUMBER_OF_EMPLOYEES_2001_10000 =
|
|
549
|
-
T.let(
|
|
550
|
-
:"2001-10000",
|
|
551
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
552
|
-
)
|
|
553
|
-
NUMBER_OF_EMPLOYEES_10001 =
|
|
554
|
-
T.let(
|
|
555
|
-
:"10001+",
|
|
556
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
557
|
-
)
|
|
558
|
-
|
|
559
|
-
sig do
|
|
560
|
-
override.returns(
|
|
561
|
-
T::Array[
|
|
562
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees::TaggedSymbol
|
|
563
|
-
]
|
|
564
|
-
)
|
|
565
|
-
end
|
|
566
|
-
def self.values
|
|
567
|
-
end
|
|
568
|
-
end
|
|
569
|
-
|
|
570
|
-
class OrganizationContact < Telnyx::Internal::Type::BaseModel
|
|
571
|
-
OrHash =
|
|
572
|
-
T.type_alias do
|
|
573
|
-
T.any(
|
|
574
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationContact,
|
|
575
|
-
Telnyx::Internal::AnyHash
|
|
576
|
-
)
|
|
577
|
-
end
|
|
578
|
-
|
|
579
|
-
# Contact's email address
|
|
580
|
-
sig { returns(String) }
|
|
581
|
-
attr_accessor :email
|
|
582
|
-
|
|
583
|
-
# Contact's first name
|
|
584
|
-
sig { returns(String) }
|
|
585
|
-
attr_accessor :first_name
|
|
586
|
-
|
|
587
|
-
# Contact's job title (required)
|
|
588
|
-
sig { returns(String) }
|
|
589
|
-
attr_accessor :job_title
|
|
590
|
-
|
|
591
|
-
# Contact's last name
|
|
592
|
-
sig { returns(String) }
|
|
593
|
-
attr_accessor :last_name
|
|
594
|
-
|
|
595
|
-
# Contact's phone number in E.164 format
|
|
596
|
-
sig { returns(String) }
|
|
597
|
-
attr_accessor :phone
|
|
598
|
-
|
|
599
|
-
# Organization contact information. Note: the response returns this object with
|
|
600
|
-
# the phone field as 'phone' (not 'phone_number').
|
|
601
|
-
sig do
|
|
602
|
-
params(
|
|
603
|
-
email: String,
|
|
604
|
-
first_name: String,
|
|
605
|
-
job_title: String,
|
|
606
|
-
last_name: String,
|
|
607
|
-
phone: String
|
|
608
|
-
).returns(T.attached_class)
|
|
609
|
-
end
|
|
610
|
-
def self.new(
|
|
611
|
-
# Contact's email address
|
|
612
|
-
email:,
|
|
613
|
-
# Contact's first name
|
|
614
|
-
first_name:,
|
|
615
|
-
# Contact's job title (required)
|
|
616
|
-
job_title:,
|
|
617
|
-
# Contact's last name
|
|
618
|
-
last_name:,
|
|
619
|
-
# Contact's phone number in E.164 format
|
|
620
|
-
phone:
|
|
621
|
-
)
|
|
622
|
-
end
|
|
623
|
-
|
|
624
|
-
sig do
|
|
625
|
-
override.returns(
|
|
626
|
-
{
|
|
627
|
-
email: String,
|
|
628
|
-
first_name: String,
|
|
629
|
-
job_title: String,
|
|
630
|
-
last_name: String,
|
|
631
|
-
phone: String
|
|
632
|
-
}
|
|
633
|
-
)
|
|
634
|
-
end
|
|
635
|
-
def to_hash
|
|
636
|
-
end
|
|
637
|
-
end
|
|
638
|
-
|
|
639
|
-
# Legal structure type
|
|
640
|
-
module OrganizationLegalType
|
|
641
|
-
extend Telnyx::Internal::Type::Enum
|
|
642
|
-
|
|
643
|
-
TaggedSymbol =
|
|
644
|
-
T.type_alias do
|
|
645
|
-
T.all(
|
|
646
|
-
Symbol,
|
|
647
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType
|
|
648
|
-
)
|
|
649
|
-
end
|
|
650
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
651
|
-
|
|
652
|
-
CORPORATION =
|
|
653
|
-
T.let(
|
|
654
|
-
:corporation,
|
|
655
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType::TaggedSymbol
|
|
656
|
-
)
|
|
657
|
-
LLC =
|
|
658
|
-
T.let(
|
|
659
|
-
:llc,
|
|
660
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType::TaggedSymbol
|
|
661
|
-
)
|
|
662
|
-
PARTNERSHIP =
|
|
663
|
-
T.let(
|
|
664
|
-
:partnership,
|
|
665
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType::TaggedSymbol
|
|
666
|
-
)
|
|
667
|
-
NONPROFIT =
|
|
668
|
-
T.let(
|
|
669
|
-
:nonprofit,
|
|
670
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType::TaggedSymbol
|
|
671
|
-
)
|
|
672
|
-
OTHER =
|
|
673
|
-
T.let(
|
|
674
|
-
:other,
|
|
675
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType::TaggedSymbol
|
|
676
|
-
)
|
|
677
|
-
|
|
678
|
-
sig do
|
|
679
|
-
override.returns(
|
|
680
|
-
T::Array[
|
|
681
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType::TaggedSymbol
|
|
682
|
-
]
|
|
683
|
-
)
|
|
684
|
-
end
|
|
685
|
-
def self.values
|
|
686
|
-
end
|
|
687
|
-
end
|
|
688
|
-
|
|
689
|
-
class OrganizationPhysicalAddress < Telnyx::Internal::Type::BaseModel
|
|
690
|
-
OrHash =
|
|
691
|
-
T.type_alias do
|
|
692
|
-
T.any(
|
|
693
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationPhysicalAddress,
|
|
694
|
-
Telnyx::Internal::AnyHash
|
|
695
|
-
)
|
|
696
|
-
end
|
|
697
|
-
|
|
698
|
-
# State or province
|
|
699
|
-
sig { returns(String) }
|
|
700
|
-
attr_accessor :administrative_area
|
|
701
|
-
|
|
702
|
-
# City name
|
|
703
|
-
sig { returns(String) }
|
|
704
|
-
attr_accessor :city
|
|
705
|
-
|
|
706
|
-
# Country name (e.g., United States)
|
|
707
|
-
sig { returns(String) }
|
|
708
|
-
attr_accessor :country
|
|
709
|
-
|
|
710
|
-
# ZIP or postal code
|
|
711
|
-
sig { returns(String) }
|
|
712
|
-
attr_accessor :postal_code
|
|
713
|
-
|
|
714
|
-
# Street address
|
|
715
|
-
sig { returns(String) }
|
|
716
|
-
attr_accessor :street_address
|
|
717
|
-
|
|
718
|
-
# Additional address line (suite, apt, etc.)
|
|
719
|
-
sig { returns(T.nilable(String)) }
|
|
720
|
-
attr_accessor :extended_address
|
|
721
|
-
|
|
722
|
-
sig do
|
|
723
|
-
params(
|
|
724
|
-
administrative_area: String,
|
|
725
|
-
city: String,
|
|
726
|
-
country: String,
|
|
727
|
-
postal_code: String,
|
|
728
|
-
street_address: String,
|
|
729
|
-
extended_address: T.nilable(String)
|
|
730
|
-
).returns(T.attached_class)
|
|
731
|
-
end
|
|
732
|
-
def self.new(
|
|
733
|
-
# State or province
|
|
734
|
-
administrative_area:,
|
|
735
|
-
# City name
|
|
736
|
-
city:,
|
|
737
|
-
# Country name (e.g., United States)
|
|
738
|
-
country:,
|
|
739
|
-
# ZIP or postal code
|
|
740
|
-
postal_code:,
|
|
741
|
-
# Street address
|
|
742
|
-
street_address:,
|
|
743
|
-
# Additional address line (suite, apt, etc.)
|
|
744
|
-
extended_address: nil
|
|
745
|
-
)
|
|
746
|
-
end
|
|
747
|
-
|
|
748
|
-
sig do
|
|
749
|
-
override.returns(
|
|
750
|
-
{
|
|
751
|
-
administrative_area: String,
|
|
752
|
-
city: String,
|
|
753
|
-
country: String,
|
|
754
|
-
postal_code: String,
|
|
755
|
-
street_address: String,
|
|
756
|
-
extended_address: T.nilable(String)
|
|
757
|
-
}
|
|
758
|
-
)
|
|
759
|
-
end
|
|
760
|
-
def to_hash
|
|
761
|
-
end
|
|
762
|
-
end
|
|
763
|
-
|
|
764
|
-
# Type of organization
|
|
765
|
-
module OrganizationType
|
|
766
|
-
extend Telnyx::Internal::Type::Enum
|
|
767
|
-
|
|
768
|
-
TaggedSymbol =
|
|
769
|
-
T.type_alias do
|
|
770
|
-
T.all(
|
|
771
|
-
Symbol,
|
|
772
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType
|
|
773
|
-
)
|
|
774
|
-
end
|
|
775
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
776
|
-
|
|
777
|
-
COMMERCIAL =
|
|
778
|
-
T.let(
|
|
779
|
-
:commercial,
|
|
780
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType::TaggedSymbol
|
|
781
|
-
)
|
|
782
|
-
GOVERNMENT =
|
|
783
|
-
T.let(
|
|
784
|
-
:government,
|
|
785
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType::TaggedSymbol
|
|
786
|
-
)
|
|
787
|
-
NON_PROFIT =
|
|
788
|
-
T.let(
|
|
789
|
-
:non_profit,
|
|
790
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType::TaggedSymbol
|
|
791
|
-
)
|
|
792
|
-
|
|
793
|
-
sig do
|
|
794
|
-
override.returns(
|
|
795
|
-
T::Array[
|
|
796
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType::TaggedSymbol
|
|
797
|
-
]
|
|
798
|
-
)
|
|
799
|
-
end
|
|
800
|
-
def self.values
|
|
801
|
-
end
|
|
802
|
-
end
|
|
803
|
-
|
|
804
|
-
# Role type in Branded Calling / Number Reputation services
|
|
805
|
-
module RoleType
|
|
806
|
-
extend Telnyx::Internal::Type::Enum
|
|
807
|
-
|
|
808
|
-
TaggedSymbol =
|
|
809
|
-
T.type_alias do
|
|
810
|
-
T.all(
|
|
811
|
-
Symbol,
|
|
812
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::RoleType
|
|
813
|
-
)
|
|
814
|
-
end
|
|
815
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
816
|
-
|
|
817
|
-
ENTERPRISE =
|
|
818
|
-
T.let(
|
|
819
|
-
:enterprise,
|
|
820
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::RoleType::TaggedSymbol
|
|
821
|
-
)
|
|
822
|
-
BPO =
|
|
823
|
-
T.let(
|
|
824
|
-
:bpo,
|
|
825
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::RoleType::TaggedSymbol
|
|
826
|
-
)
|
|
827
|
-
|
|
828
|
-
sig do
|
|
829
|
-
override.returns(
|
|
830
|
-
T::Array[
|
|
831
|
-
Telnyx::Models::EnterpriseCreateResponse::Data::RoleType::TaggedSymbol
|
|
832
|
-
]
|
|
833
|
-
)
|
|
834
|
-
end
|
|
835
|
-
def self.values
|
|
836
|
-
end
|
|
837
|
-
end
|
|
838
|
-
end
|
|
839
29
|
end
|
|
840
30
|
end
|
|
841
31
|
end
|