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
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class BillingContact < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Telnyx::BillingContact, Telnyx::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Contact's email address
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :email
|
|
14
|
+
|
|
15
|
+
# Contact's first name
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :first_name
|
|
18
|
+
|
|
19
|
+
# Contact's last name
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :last_name
|
|
22
|
+
|
|
23
|
+
# Contact's phone number (10-15 digits)
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
attr_accessor :phone_number
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
email: String,
|
|
30
|
+
first_name: String,
|
|
31
|
+
last_name: String,
|
|
32
|
+
phone_number: String
|
|
33
|
+
).returns(T.attached_class)
|
|
34
|
+
end
|
|
35
|
+
def self.new(
|
|
36
|
+
# Contact's email address
|
|
37
|
+
email:,
|
|
38
|
+
# Contact's first name
|
|
39
|
+
first_name:,
|
|
40
|
+
# Contact's last name
|
|
41
|
+
last_name:,
|
|
42
|
+
# Contact's phone number (10-15 digits)
|
|
43
|
+
phone_number:
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
sig do
|
|
48
|
+
override.returns(
|
|
49
|
+
{
|
|
50
|
+
email: String,
|
|
51
|
+
first_name: String,
|
|
52
|
+
last_name: String,
|
|
53
|
+
phone_number: String
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
def to_hash
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -11,26 +11,16 @@ module Telnyx
|
|
|
11
11
|
T.any(Telnyx::EnterpriseCreateParams, Telnyx::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig { returns(Telnyx::
|
|
14
|
+
sig { returns(Telnyx::BillingAddress) }
|
|
15
15
|
attr_reader :billing_address
|
|
16
16
|
|
|
17
|
-
sig
|
|
18
|
-
params(
|
|
19
|
-
billing_address:
|
|
20
|
-
Telnyx::EnterpriseCreateParams::BillingAddress::OrHash
|
|
21
|
-
).void
|
|
22
|
-
end
|
|
17
|
+
sig { params(billing_address: Telnyx::BillingAddress::OrHash).void }
|
|
23
18
|
attr_writer :billing_address
|
|
24
19
|
|
|
25
|
-
sig { returns(Telnyx::
|
|
20
|
+
sig { returns(Telnyx::BillingContact) }
|
|
26
21
|
attr_reader :billing_contact
|
|
27
22
|
|
|
28
|
-
sig
|
|
29
|
-
params(
|
|
30
|
-
billing_contact:
|
|
31
|
-
Telnyx::EnterpriseCreateParams::BillingContact::OrHash
|
|
32
|
-
).void
|
|
33
|
-
end
|
|
23
|
+
sig { params(billing_contact: Telnyx::BillingContact::OrHash).void }
|
|
34
24
|
attr_writer :billing_contact
|
|
35
25
|
|
|
36
26
|
# Country code. Currently only 'US' is accepted.
|
|
@@ -68,14 +58,11 @@ module Telnyx
|
|
|
68
58
|
|
|
69
59
|
# Organization contact information. Note: the response returns this object with
|
|
70
60
|
# the phone field as 'phone' (not 'phone_number').
|
|
71
|
-
sig { returns(Telnyx::
|
|
61
|
+
sig { returns(Telnyx::OrganizationContact) }
|
|
72
62
|
attr_reader :organization_contact
|
|
73
63
|
|
|
74
64
|
sig do
|
|
75
|
-
params(
|
|
76
|
-
organization_contact:
|
|
77
|
-
Telnyx::EnterpriseCreateParams::OrganizationContact::OrHash
|
|
78
|
-
).void
|
|
65
|
+
params(organization_contact: Telnyx::OrganizationContact::OrHash).void
|
|
79
66
|
end
|
|
80
67
|
attr_writer :organization_contact
|
|
81
68
|
|
|
@@ -85,15 +72,12 @@ module Telnyx
|
|
|
85
72
|
end
|
|
86
73
|
attr_accessor :organization_legal_type
|
|
87
74
|
|
|
88
|
-
sig
|
|
89
|
-
returns(Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress)
|
|
90
|
-
end
|
|
75
|
+
sig { returns(Telnyx::PhysicalAddress) }
|
|
91
76
|
attr_reader :organization_physical_address
|
|
92
77
|
|
|
93
78
|
sig do
|
|
94
79
|
params(
|
|
95
|
-
organization_physical_address:
|
|
96
|
-
Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress::OrHash
|
|
80
|
+
organization_physical_address: Telnyx::PhysicalAddress::OrHash
|
|
97
81
|
).void
|
|
98
82
|
end
|
|
99
83
|
attr_writer :organization_physical_address
|
|
@@ -158,10 +142,8 @@ module Telnyx
|
|
|
158
142
|
|
|
159
143
|
sig do
|
|
160
144
|
params(
|
|
161
|
-
billing_address:
|
|
162
|
-
|
|
163
|
-
billing_contact:
|
|
164
|
-
Telnyx::EnterpriseCreateParams::BillingContact::OrHash,
|
|
145
|
+
billing_address: Telnyx::BillingAddress::OrHash,
|
|
146
|
+
billing_contact: Telnyx::BillingContact::OrHash,
|
|
165
147
|
country_code: String,
|
|
166
148
|
doing_business_as: String,
|
|
167
149
|
fein: String,
|
|
@@ -169,12 +151,10 @@ module Telnyx
|
|
|
169
151
|
legal_name: String,
|
|
170
152
|
number_of_employees:
|
|
171
153
|
Telnyx::EnterpriseCreateParams::NumberOfEmployees::OrSymbol,
|
|
172
|
-
organization_contact:
|
|
173
|
-
Telnyx::EnterpriseCreateParams::OrganizationContact::OrHash,
|
|
154
|
+
organization_contact: Telnyx::OrganizationContact::OrHash,
|
|
174
155
|
organization_legal_type:
|
|
175
156
|
Telnyx::EnterpriseCreateParams::OrganizationLegalType::OrSymbol,
|
|
176
|
-
organization_physical_address:
|
|
177
|
-
Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress::OrHash,
|
|
157
|
+
organization_physical_address: Telnyx::PhysicalAddress::OrHash,
|
|
178
158
|
organization_type:
|
|
179
159
|
Telnyx::EnterpriseCreateParams::OrganizationType::OrSymbol,
|
|
180
160
|
website: String,
|
|
@@ -238,8 +218,8 @@ module Telnyx
|
|
|
238
218
|
sig do
|
|
239
219
|
override.returns(
|
|
240
220
|
{
|
|
241
|
-
billing_address: Telnyx::
|
|
242
|
-
billing_contact: Telnyx::
|
|
221
|
+
billing_address: Telnyx::BillingAddress,
|
|
222
|
+
billing_contact: Telnyx::BillingContact,
|
|
243
223
|
country_code: String,
|
|
244
224
|
doing_business_as: String,
|
|
245
225
|
fein: String,
|
|
@@ -247,12 +227,10 @@ module Telnyx
|
|
|
247
227
|
legal_name: String,
|
|
248
228
|
number_of_employees:
|
|
249
229
|
Telnyx::EnterpriseCreateParams::NumberOfEmployees::OrSymbol,
|
|
250
|
-
organization_contact:
|
|
251
|
-
Telnyx::EnterpriseCreateParams::OrganizationContact,
|
|
230
|
+
organization_contact: Telnyx::OrganizationContact,
|
|
252
231
|
organization_legal_type:
|
|
253
232
|
Telnyx::EnterpriseCreateParams::OrganizationLegalType::OrSymbol,
|
|
254
|
-
organization_physical_address:
|
|
255
|
-
Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress,
|
|
233
|
+
organization_physical_address: Telnyx::PhysicalAddress,
|
|
256
234
|
organization_type:
|
|
257
235
|
Telnyx::EnterpriseCreateParams::OrganizationType::OrSymbol,
|
|
258
236
|
website: String,
|
|
@@ -269,140 +247,6 @@ module Telnyx
|
|
|
269
247
|
def to_hash
|
|
270
248
|
end
|
|
271
249
|
|
|
272
|
-
class BillingAddress < Telnyx::Internal::Type::BaseModel
|
|
273
|
-
OrHash =
|
|
274
|
-
T.type_alias do
|
|
275
|
-
T.any(
|
|
276
|
-
Telnyx::EnterpriseCreateParams::BillingAddress,
|
|
277
|
-
Telnyx::Internal::AnyHash
|
|
278
|
-
)
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
# State or province
|
|
282
|
-
sig { returns(String) }
|
|
283
|
-
attr_accessor :administrative_area
|
|
284
|
-
|
|
285
|
-
# City name
|
|
286
|
-
sig { returns(String) }
|
|
287
|
-
attr_accessor :city
|
|
288
|
-
|
|
289
|
-
# Country name (e.g., United States)
|
|
290
|
-
sig { returns(String) }
|
|
291
|
-
attr_accessor :country
|
|
292
|
-
|
|
293
|
-
# ZIP or postal code
|
|
294
|
-
sig { returns(String) }
|
|
295
|
-
attr_accessor :postal_code
|
|
296
|
-
|
|
297
|
-
# Street address
|
|
298
|
-
sig { returns(String) }
|
|
299
|
-
attr_accessor :street_address
|
|
300
|
-
|
|
301
|
-
# Additional address line (suite, apt, etc.)
|
|
302
|
-
sig { returns(T.nilable(String)) }
|
|
303
|
-
attr_accessor :extended_address
|
|
304
|
-
|
|
305
|
-
sig do
|
|
306
|
-
params(
|
|
307
|
-
administrative_area: String,
|
|
308
|
-
city: String,
|
|
309
|
-
country: String,
|
|
310
|
-
postal_code: String,
|
|
311
|
-
street_address: String,
|
|
312
|
-
extended_address: T.nilable(String)
|
|
313
|
-
).returns(T.attached_class)
|
|
314
|
-
end
|
|
315
|
-
def self.new(
|
|
316
|
-
# State or province
|
|
317
|
-
administrative_area:,
|
|
318
|
-
# City name
|
|
319
|
-
city:,
|
|
320
|
-
# Country name (e.g., United States)
|
|
321
|
-
country:,
|
|
322
|
-
# ZIP or postal code
|
|
323
|
-
postal_code:,
|
|
324
|
-
# Street address
|
|
325
|
-
street_address:,
|
|
326
|
-
# Additional address line (suite, apt, etc.)
|
|
327
|
-
extended_address: nil
|
|
328
|
-
)
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
sig do
|
|
332
|
-
override.returns(
|
|
333
|
-
{
|
|
334
|
-
administrative_area: String,
|
|
335
|
-
city: String,
|
|
336
|
-
country: String,
|
|
337
|
-
postal_code: String,
|
|
338
|
-
street_address: String,
|
|
339
|
-
extended_address: T.nilable(String)
|
|
340
|
-
}
|
|
341
|
-
)
|
|
342
|
-
end
|
|
343
|
-
def to_hash
|
|
344
|
-
end
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
class BillingContact < Telnyx::Internal::Type::BaseModel
|
|
348
|
-
OrHash =
|
|
349
|
-
T.type_alias do
|
|
350
|
-
T.any(
|
|
351
|
-
Telnyx::EnterpriseCreateParams::BillingContact,
|
|
352
|
-
Telnyx::Internal::AnyHash
|
|
353
|
-
)
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
# Contact's email address
|
|
357
|
-
sig { returns(String) }
|
|
358
|
-
attr_accessor :email
|
|
359
|
-
|
|
360
|
-
# Contact's first name
|
|
361
|
-
sig { returns(String) }
|
|
362
|
-
attr_accessor :first_name
|
|
363
|
-
|
|
364
|
-
# Contact's last name
|
|
365
|
-
sig { returns(String) }
|
|
366
|
-
attr_accessor :last_name
|
|
367
|
-
|
|
368
|
-
# Contact's phone number (10-15 digits)
|
|
369
|
-
sig { returns(String) }
|
|
370
|
-
attr_accessor :phone_number
|
|
371
|
-
|
|
372
|
-
sig do
|
|
373
|
-
params(
|
|
374
|
-
email: String,
|
|
375
|
-
first_name: String,
|
|
376
|
-
last_name: String,
|
|
377
|
-
phone_number: String
|
|
378
|
-
).returns(T.attached_class)
|
|
379
|
-
end
|
|
380
|
-
def self.new(
|
|
381
|
-
# Contact's email address
|
|
382
|
-
email:,
|
|
383
|
-
# Contact's first name
|
|
384
|
-
first_name:,
|
|
385
|
-
# Contact's last name
|
|
386
|
-
last_name:,
|
|
387
|
-
# Contact's phone number (10-15 digits)
|
|
388
|
-
phone_number:
|
|
389
|
-
)
|
|
390
|
-
end
|
|
391
|
-
|
|
392
|
-
sig do
|
|
393
|
-
override.returns(
|
|
394
|
-
{
|
|
395
|
-
email: String,
|
|
396
|
-
first_name: String,
|
|
397
|
-
last_name: String,
|
|
398
|
-
phone_number: String
|
|
399
|
-
}
|
|
400
|
-
)
|
|
401
|
-
end
|
|
402
|
-
def to_hash
|
|
403
|
-
end
|
|
404
|
-
end
|
|
405
|
-
|
|
406
250
|
# Employee count range
|
|
407
251
|
module NumberOfEmployees
|
|
408
252
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -460,75 +304,6 @@ module Telnyx
|
|
|
460
304
|
end
|
|
461
305
|
end
|
|
462
306
|
|
|
463
|
-
class OrganizationContact < Telnyx::Internal::Type::BaseModel
|
|
464
|
-
OrHash =
|
|
465
|
-
T.type_alias do
|
|
466
|
-
T.any(
|
|
467
|
-
Telnyx::EnterpriseCreateParams::OrganizationContact,
|
|
468
|
-
Telnyx::Internal::AnyHash
|
|
469
|
-
)
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
# Contact's email address
|
|
473
|
-
sig { returns(String) }
|
|
474
|
-
attr_accessor :email
|
|
475
|
-
|
|
476
|
-
# Contact's first name
|
|
477
|
-
sig { returns(String) }
|
|
478
|
-
attr_accessor :first_name
|
|
479
|
-
|
|
480
|
-
# Contact's job title (required)
|
|
481
|
-
sig { returns(String) }
|
|
482
|
-
attr_accessor :job_title
|
|
483
|
-
|
|
484
|
-
# Contact's last name
|
|
485
|
-
sig { returns(String) }
|
|
486
|
-
attr_accessor :last_name
|
|
487
|
-
|
|
488
|
-
# Contact's phone number in E.164 format
|
|
489
|
-
sig { returns(String) }
|
|
490
|
-
attr_accessor :phone
|
|
491
|
-
|
|
492
|
-
# Organization contact information. Note: the response returns this object with
|
|
493
|
-
# the phone field as 'phone' (not 'phone_number').
|
|
494
|
-
sig do
|
|
495
|
-
params(
|
|
496
|
-
email: String,
|
|
497
|
-
first_name: String,
|
|
498
|
-
job_title: String,
|
|
499
|
-
last_name: String,
|
|
500
|
-
phone: String
|
|
501
|
-
).returns(T.attached_class)
|
|
502
|
-
end
|
|
503
|
-
def self.new(
|
|
504
|
-
# Contact's email address
|
|
505
|
-
email:,
|
|
506
|
-
# Contact's first name
|
|
507
|
-
first_name:,
|
|
508
|
-
# Contact's job title (required)
|
|
509
|
-
job_title:,
|
|
510
|
-
# Contact's last name
|
|
511
|
-
last_name:,
|
|
512
|
-
# Contact's phone number in E.164 format
|
|
513
|
-
phone:
|
|
514
|
-
)
|
|
515
|
-
end
|
|
516
|
-
|
|
517
|
-
sig do
|
|
518
|
-
override.returns(
|
|
519
|
-
{
|
|
520
|
-
email: String,
|
|
521
|
-
first_name: String,
|
|
522
|
-
job_title: String,
|
|
523
|
-
last_name: String,
|
|
524
|
-
phone: String
|
|
525
|
-
}
|
|
526
|
-
)
|
|
527
|
-
end
|
|
528
|
-
def to_hash
|
|
529
|
-
end
|
|
530
|
-
end
|
|
531
|
-
|
|
532
307
|
# Legal structure type
|
|
533
308
|
module OrganizationLegalType
|
|
534
309
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -576,81 +351,6 @@ module Telnyx
|
|
|
576
351
|
end
|
|
577
352
|
end
|
|
578
353
|
|
|
579
|
-
class OrganizationPhysicalAddress < Telnyx::Internal::Type::BaseModel
|
|
580
|
-
OrHash =
|
|
581
|
-
T.type_alias do
|
|
582
|
-
T.any(
|
|
583
|
-
Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress,
|
|
584
|
-
Telnyx::Internal::AnyHash
|
|
585
|
-
)
|
|
586
|
-
end
|
|
587
|
-
|
|
588
|
-
# State or province
|
|
589
|
-
sig { returns(String) }
|
|
590
|
-
attr_accessor :administrative_area
|
|
591
|
-
|
|
592
|
-
# City name
|
|
593
|
-
sig { returns(String) }
|
|
594
|
-
attr_accessor :city
|
|
595
|
-
|
|
596
|
-
# Country name (e.g., United States)
|
|
597
|
-
sig { returns(String) }
|
|
598
|
-
attr_accessor :country
|
|
599
|
-
|
|
600
|
-
# ZIP or postal code
|
|
601
|
-
sig { returns(String) }
|
|
602
|
-
attr_accessor :postal_code
|
|
603
|
-
|
|
604
|
-
# Street address
|
|
605
|
-
sig { returns(String) }
|
|
606
|
-
attr_accessor :street_address
|
|
607
|
-
|
|
608
|
-
# Additional address line (suite, apt, etc.)
|
|
609
|
-
sig { returns(T.nilable(String)) }
|
|
610
|
-
attr_accessor :extended_address
|
|
611
|
-
|
|
612
|
-
sig do
|
|
613
|
-
params(
|
|
614
|
-
administrative_area: String,
|
|
615
|
-
city: String,
|
|
616
|
-
country: String,
|
|
617
|
-
postal_code: String,
|
|
618
|
-
street_address: String,
|
|
619
|
-
extended_address: T.nilable(String)
|
|
620
|
-
).returns(T.attached_class)
|
|
621
|
-
end
|
|
622
|
-
def self.new(
|
|
623
|
-
# State or province
|
|
624
|
-
administrative_area:,
|
|
625
|
-
# City name
|
|
626
|
-
city:,
|
|
627
|
-
# Country name (e.g., United States)
|
|
628
|
-
country:,
|
|
629
|
-
# ZIP or postal code
|
|
630
|
-
postal_code:,
|
|
631
|
-
# Street address
|
|
632
|
-
street_address:,
|
|
633
|
-
# Additional address line (suite, apt, etc.)
|
|
634
|
-
extended_address: nil
|
|
635
|
-
)
|
|
636
|
-
end
|
|
637
|
-
|
|
638
|
-
sig do
|
|
639
|
-
override.returns(
|
|
640
|
-
{
|
|
641
|
-
administrative_area: String,
|
|
642
|
-
city: String,
|
|
643
|
-
country: String,
|
|
644
|
-
postal_code: String,
|
|
645
|
-
street_address: String,
|
|
646
|
-
extended_address: T.nilable(String)
|
|
647
|
-
}
|
|
648
|
-
)
|
|
649
|
-
end
|
|
650
|
-
def to_hash
|
|
651
|
-
end
|
|
652
|
-
end
|
|
653
|
-
|
|
654
354
|
# Type of organization
|
|
655
355
|
module OrganizationType
|
|
656
356
|
extend Telnyx::Internal::Type::Enum
|