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
|
@@ -14,26 +14,16 @@ module Telnyx
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :enterprise_id
|
|
16
16
|
|
|
17
|
-
sig { returns(T.nilable(Telnyx::
|
|
17
|
+
sig { returns(T.nilable(Telnyx::BillingAddress)) }
|
|
18
18
|
attr_reader :billing_address
|
|
19
19
|
|
|
20
|
-
sig
|
|
21
|
-
params(
|
|
22
|
-
billing_address:
|
|
23
|
-
Telnyx::EnterpriseUpdateParams::BillingAddress::OrHash
|
|
24
|
-
).void
|
|
25
|
-
end
|
|
20
|
+
sig { params(billing_address: Telnyx::BillingAddress::OrHash).void }
|
|
26
21
|
attr_writer :billing_address
|
|
27
22
|
|
|
28
|
-
sig { returns(T.nilable(Telnyx::
|
|
23
|
+
sig { returns(T.nilable(Telnyx::BillingContact)) }
|
|
29
24
|
attr_reader :billing_contact
|
|
30
25
|
|
|
31
|
-
sig
|
|
32
|
-
params(
|
|
33
|
-
billing_contact:
|
|
34
|
-
Telnyx::EnterpriseUpdateParams::BillingContact::OrHash
|
|
35
|
-
).void
|
|
36
|
-
end
|
|
26
|
+
sig { params(billing_contact: Telnyx::BillingContact::OrHash).void }
|
|
37
27
|
attr_writer :billing_contact
|
|
38
28
|
|
|
39
29
|
# Corporate registration number
|
|
@@ -103,16 +93,11 @@ module Telnyx
|
|
|
103
93
|
|
|
104
94
|
# Organization contact information. Note: the response returns this object with
|
|
105
95
|
# the phone field as 'phone' (not 'phone_number').
|
|
106
|
-
sig
|
|
107
|
-
returns(T.nilable(Telnyx::EnterpriseUpdateParams::OrganizationContact))
|
|
108
|
-
end
|
|
96
|
+
sig { returns(T.nilable(Telnyx::OrganizationContact)) }
|
|
109
97
|
attr_reader :organization_contact
|
|
110
98
|
|
|
111
99
|
sig do
|
|
112
|
-
params(
|
|
113
|
-
organization_contact:
|
|
114
|
-
Telnyx::EnterpriseUpdateParams::OrganizationContact::OrHash
|
|
115
|
-
).void
|
|
100
|
+
params(organization_contact: Telnyx::OrganizationContact::OrHash).void
|
|
116
101
|
end
|
|
117
102
|
attr_writer :organization_contact
|
|
118
103
|
|
|
@@ -134,17 +119,12 @@ module Telnyx
|
|
|
134
119
|
end
|
|
135
120
|
attr_writer :organization_legal_type
|
|
136
121
|
|
|
137
|
-
sig
|
|
138
|
-
returns(
|
|
139
|
-
T.nilable(Telnyx::EnterpriseUpdateParams::OrganizationPhysicalAddress)
|
|
140
|
-
)
|
|
141
|
-
end
|
|
122
|
+
sig { returns(T.nilable(Telnyx::PhysicalAddress)) }
|
|
142
123
|
attr_reader :organization_physical_address
|
|
143
124
|
|
|
144
125
|
sig do
|
|
145
126
|
params(
|
|
146
|
-
organization_physical_address:
|
|
147
|
-
Telnyx::EnterpriseUpdateParams::OrganizationPhysicalAddress::OrHash
|
|
127
|
+
organization_physical_address: Telnyx::PhysicalAddress::OrHash
|
|
148
128
|
).void
|
|
149
129
|
end
|
|
150
130
|
attr_writer :organization_physical_address
|
|
@@ -173,10 +153,8 @@ module Telnyx
|
|
|
173
153
|
sig do
|
|
174
154
|
params(
|
|
175
155
|
enterprise_id: String,
|
|
176
|
-
billing_address:
|
|
177
|
-
|
|
178
|
-
billing_contact:
|
|
179
|
-
Telnyx::EnterpriseUpdateParams::BillingContact::OrHash,
|
|
156
|
+
billing_address: Telnyx::BillingAddress::OrHash,
|
|
157
|
+
billing_contact: Telnyx::BillingContact::OrHash,
|
|
180
158
|
corporate_registration_number: String,
|
|
181
159
|
customer_reference: String,
|
|
182
160
|
doing_business_as: String,
|
|
@@ -186,12 +164,10 @@ module Telnyx
|
|
|
186
164
|
legal_name: String,
|
|
187
165
|
number_of_employees:
|
|
188
166
|
Telnyx::EnterpriseUpdateParams::NumberOfEmployees::OrSymbol,
|
|
189
|
-
organization_contact:
|
|
190
|
-
Telnyx::EnterpriseUpdateParams::OrganizationContact::OrHash,
|
|
167
|
+
organization_contact: Telnyx::OrganizationContact::OrHash,
|
|
191
168
|
organization_legal_type:
|
|
192
169
|
Telnyx::EnterpriseUpdateParams::OrganizationLegalType::OrSymbol,
|
|
193
|
-
organization_physical_address:
|
|
194
|
-
Telnyx::EnterpriseUpdateParams::OrganizationPhysicalAddress::OrHash,
|
|
170
|
+
organization_physical_address: Telnyx::PhysicalAddress::OrHash,
|
|
195
171
|
primary_business_domain_sic_code: String,
|
|
196
172
|
professional_license_number: String,
|
|
197
173
|
website: String,
|
|
@@ -238,8 +214,8 @@ module Telnyx
|
|
|
238
214
|
override.returns(
|
|
239
215
|
{
|
|
240
216
|
enterprise_id: String,
|
|
241
|
-
billing_address: Telnyx::
|
|
242
|
-
billing_contact: Telnyx::
|
|
217
|
+
billing_address: Telnyx::BillingAddress,
|
|
218
|
+
billing_contact: Telnyx::BillingContact,
|
|
243
219
|
corporate_registration_number: String,
|
|
244
220
|
customer_reference: String,
|
|
245
221
|
doing_business_as: String,
|
|
@@ -249,12 +225,10 @@ module Telnyx
|
|
|
249
225
|
legal_name: String,
|
|
250
226
|
number_of_employees:
|
|
251
227
|
Telnyx::EnterpriseUpdateParams::NumberOfEmployees::OrSymbol,
|
|
252
|
-
organization_contact:
|
|
253
|
-
Telnyx::EnterpriseUpdateParams::OrganizationContact,
|
|
228
|
+
organization_contact: Telnyx::OrganizationContact,
|
|
254
229
|
organization_legal_type:
|
|
255
230
|
Telnyx::EnterpriseUpdateParams::OrganizationLegalType::OrSymbol,
|
|
256
|
-
organization_physical_address:
|
|
257
|
-
Telnyx::EnterpriseUpdateParams::OrganizationPhysicalAddress,
|
|
231
|
+
organization_physical_address: Telnyx::PhysicalAddress,
|
|
258
232
|
primary_business_domain_sic_code: String,
|
|
259
233
|
professional_license_number: String,
|
|
260
234
|
website: String,
|
|
@@ -265,140 +239,6 @@ module Telnyx
|
|
|
265
239
|
def to_hash
|
|
266
240
|
end
|
|
267
241
|
|
|
268
|
-
class BillingAddress < Telnyx::Internal::Type::BaseModel
|
|
269
|
-
OrHash =
|
|
270
|
-
T.type_alias do
|
|
271
|
-
T.any(
|
|
272
|
-
Telnyx::EnterpriseUpdateParams::BillingAddress,
|
|
273
|
-
Telnyx::Internal::AnyHash
|
|
274
|
-
)
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
# State or province
|
|
278
|
-
sig { returns(String) }
|
|
279
|
-
attr_accessor :administrative_area
|
|
280
|
-
|
|
281
|
-
# City name
|
|
282
|
-
sig { returns(String) }
|
|
283
|
-
attr_accessor :city
|
|
284
|
-
|
|
285
|
-
# Country name (e.g., United States)
|
|
286
|
-
sig { returns(String) }
|
|
287
|
-
attr_accessor :country
|
|
288
|
-
|
|
289
|
-
# ZIP or postal code
|
|
290
|
-
sig { returns(String) }
|
|
291
|
-
attr_accessor :postal_code
|
|
292
|
-
|
|
293
|
-
# Street address
|
|
294
|
-
sig { returns(String) }
|
|
295
|
-
attr_accessor :street_address
|
|
296
|
-
|
|
297
|
-
# Additional address line (suite, apt, etc.)
|
|
298
|
-
sig { returns(T.nilable(String)) }
|
|
299
|
-
attr_accessor :extended_address
|
|
300
|
-
|
|
301
|
-
sig do
|
|
302
|
-
params(
|
|
303
|
-
administrative_area: String,
|
|
304
|
-
city: String,
|
|
305
|
-
country: String,
|
|
306
|
-
postal_code: String,
|
|
307
|
-
street_address: String,
|
|
308
|
-
extended_address: T.nilable(String)
|
|
309
|
-
).returns(T.attached_class)
|
|
310
|
-
end
|
|
311
|
-
def self.new(
|
|
312
|
-
# State or province
|
|
313
|
-
administrative_area:,
|
|
314
|
-
# City name
|
|
315
|
-
city:,
|
|
316
|
-
# Country name (e.g., United States)
|
|
317
|
-
country:,
|
|
318
|
-
# ZIP or postal code
|
|
319
|
-
postal_code:,
|
|
320
|
-
# Street address
|
|
321
|
-
street_address:,
|
|
322
|
-
# Additional address line (suite, apt, etc.)
|
|
323
|
-
extended_address: nil
|
|
324
|
-
)
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
sig do
|
|
328
|
-
override.returns(
|
|
329
|
-
{
|
|
330
|
-
administrative_area: String,
|
|
331
|
-
city: String,
|
|
332
|
-
country: String,
|
|
333
|
-
postal_code: String,
|
|
334
|
-
street_address: String,
|
|
335
|
-
extended_address: T.nilable(String)
|
|
336
|
-
}
|
|
337
|
-
)
|
|
338
|
-
end
|
|
339
|
-
def to_hash
|
|
340
|
-
end
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
class BillingContact < Telnyx::Internal::Type::BaseModel
|
|
344
|
-
OrHash =
|
|
345
|
-
T.type_alias do
|
|
346
|
-
T.any(
|
|
347
|
-
Telnyx::EnterpriseUpdateParams::BillingContact,
|
|
348
|
-
Telnyx::Internal::AnyHash
|
|
349
|
-
)
|
|
350
|
-
end
|
|
351
|
-
|
|
352
|
-
# Contact's email address
|
|
353
|
-
sig { returns(String) }
|
|
354
|
-
attr_accessor :email
|
|
355
|
-
|
|
356
|
-
# Contact's first name
|
|
357
|
-
sig { returns(String) }
|
|
358
|
-
attr_accessor :first_name
|
|
359
|
-
|
|
360
|
-
# Contact's last name
|
|
361
|
-
sig { returns(String) }
|
|
362
|
-
attr_accessor :last_name
|
|
363
|
-
|
|
364
|
-
# Contact's phone number (10-15 digits)
|
|
365
|
-
sig { returns(String) }
|
|
366
|
-
attr_accessor :phone_number
|
|
367
|
-
|
|
368
|
-
sig do
|
|
369
|
-
params(
|
|
370
|
-
email: String,
|
|
371
|
-
first_name: String,
|
|
372
|
-
last_name: String,
|
|
373
|
-
phone_number: String
|
|
374
|
-
).returns(T.attached_class)
|
|
375
|
-
end
|
|
376
|
-
def self.new(
|
|
377
|
-
# Contact's email address
|
|
378
|
-
email:,
|
|
379
|
-
# Contact's first name
|
|
380
|
-
first_name:,
|
|
381
|
-
# Contact's last name
|
|
382
|
-
last_name:,
|
|
383
|
-
# Contact's phone number (10-15 digits)
|
|
384
|
-
phone_number:
|
|
385
|
-
)
|
|
386
|
-
end
|
|
387
|
-
|
|
388
|
-
sig do
|
|
389
|
-
override.returns(
|
|
390
|
-
{
|
|
391
|
-
email: String,
|
|
392
|
-
first_name: String,
|
|
393
|
-
last_name: String,
|
|
394
|
-
phone_number: String
|
|
395
|
-
}
|
|
396
|
-
)
|
|
397
|
-
end
|
|
398
|
-
def to_hash
|
|
399
|
-
end
|
|
400
|
-
end
|
|
401
|
-
|
|
402
242
|
# Employee count range
|
|
403
243
|
module NumberOfEmployees
|
|
404
244
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -456,75 +296,6 @@ module Telnyx
|
|
|
456
296
|
end
|
|
457
297
|
end
|
|
458
298
|
|
|
459
|
-
class OrganizationContact < Telnyx::Internal::Type::BaseModel
|
|
460
|
-
OrHash =
|
|
461
|
-
T.type_alias do
|
|
462
|
-
T.any(
|
|
463
|
-
Telnyx::EnterpriseUpdateParams::OrganizationContact,
|
|
464
|
-
Telnyx::Internal::AnyHash
|
|
465
|
-
)
|
|
466
|
-
end
|
|
467
|
-
|
|
468
|
-
# Contact's email address
|
|
469
|
-
sig { returns(String) }
|
|
470
|
-
attr_accessor :email
|
|
471
|
-
|
|
472
|
-
# Contact's first name
|
|
473
|
-
sig { returns(String) }
|
|
474
|
-
attr_accessor :first_name
|
|
475
|
-
|
|
476
|
-
# Contact's job title (required)
|
|
477
|
-
sig { returns(String) }
|
|
478
|
-
attr_accessor :job_title
|
|
479
|
-
|
|
480
|
-
# Contact's last name
|
|
481
|
-
sig { returns(String) }
|
|
482
|
-
attr_accessor :last_name
|
|
483
|
-
|
|
484
|
-
# Contact's phone number in E.164 format
|
|
485
|
-
sig { returns(String) }
|
|
486
|
-
attr_accessor :phone
|
|
487
|
-
|
|
488
|
-
# Organization contact information. Note: the response returns this object with
|
|
489
|
-
# the phone field as 'phone' (not 'phone_number').
|
|
490
|
-
sig do
|
|
491
|
-
params(
|
|
492
|
-
email: String,
|
|
493
|
-
first_name: String,
|
|
494
|
-
job_title: String,
|
|
495
|
-
last_name: String,
|
|
496
|
-
phone: String
|
|
497
|
-
).returns(T.attached_class)
|
|
498
|
-
end
|
|
499
|
-
def self.new(
|
|
500
|
-
# Contact's email address
|
|
501
|
-
email:,
|
|
502
|
-
# Contact's first name
|
|
503
|
-
first_name:,
|
|
504
|
-
# Contact's job title (required)
|
|
505
|
-
job_title:,
|
|
506
|
-
# Contact's last name
|
|
507
|
-
last_name:,
|
|
508
|
-
# Contact's phone number in E.164 format
|
|
509
|
-
phone:
|
|
510
|
-
)
|
|
511
|
-
end
|
|
512
|
-
|
|
513
|
-
sig do
|
|
514
|
-
override.returns(
|
|
515
|
-
{
|
|
516
|
-
email: String,
|
|
517
|
-
first_name: String,
|
|
518
|
-
job_title: String,
|
|
519
|
-
last_name: String,
|
|
520
|
-
phone: String
|
|
521
|
-
}
|
|
522
|
-
)
|
|
523
|
-
end
|
|
524
|
-
def to_hash
|
|
525
|
-
end
|
|
526
|
-
end
|
|
527
|
-
|
|
528
299
|
# Legal structure type
|
|
529
300
|
module OrganizationLegalType
|
|
530
301
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -571,81 +342,6 @@ module Telnyx
|
|
|
571
342
|
def self.values
|
|
572
343
|
end
|
|
573
344
|
end
|
|
574
|
-
|
|
575
|
-
class OrganizationPhysicalAddress < Telnyx::Internal::Type::BaseModel
|
|
576
|
-
OrHash =
|
|
577
|
-
T.type_alias do
|
|
578
|
-
T.any(
|
|
579
|
-
Telnyx::EnterpriseUpdateParams::OrganizationPhysicalAddress,
|
|
580
|
-
Telnyx::Internal::AnyHash
|
|
581
|
-
)
|
|
582
|
-
end
|
|
583
|
-
|
|
584
|
-
# State or province
|
|
585
|
-
sig { returns(String) }
|
|
586
|
-
attr_accessor :administrative_area
|
|
587
|
-
|
|
588
|
-
# City name
|
|
589
|
-
sig { returns(String) }
|
|
590
|
-
attr_accessor :city
|
|
591
|
-
|
|
592
|
-
# Country name (e.g., United States)
|
|
593
|
-
sig { returns(String) }
|
|
594
|
-
attr_accessor :country
|
|
595
|
-
|
|
596
|
-
# ZIP or postal code
|
|
597
|
-
sig { returns(String) }
|
|
598
|
-
attr_accessor :postal_code
|
|
599
|
-
|
|
600
|
-
# Street address
|
|
601
|
-
sig { returns(String) }
|
|
602
|
-
attr_accessor :street_address
|
|
603
|
-
|
|
604
|
-
# Additional address line (suite, apt, etc.)
|
|
605
|
-
sig { returns(T.nilable(String)) }
|
|
606
|
-
attr_accessor :extended_address
|
|
607
|
-
|
|
608
|
-
sig do
|
|
609
|
-
params(
|
|
610
|
-
administrative_area: String,
|
|
611
|
-
city: String,
|
|
612
|
-
country: String,
|
|
613
|
-
postal_code: String,
|
|
614
|
-
street_address: String,
|
|
615
|
-
extended_address: T.nilable(String)
|
|
616
|
-
).returns(T.attached_class)
|
|
617
|
-
end
|
|
618
|
-
def self.new(
|
|
619
|
-
# State or province
|
|
620
|
-
administrative_area:,
|
|
621
|
-
# City name
|
|
622
|
-
city:,
|
|
623
|
-
# Country name (e.g., United States)
|
|
624
|
-
country:,
|
|
625
|
-
# ZIP or postal code
|
|
626
|
-
postal_code:,
|
|
627
|
-
# Street address
|
|
628
|
-
street_address:,
|
|
629
|
-
# Additional address line (suite, apt, etc.)
|
|
630
|
-
extended_address: nil
|
|
631
|
-
)
|
|
632
|
-
end
|
|
633
|
-
|
|
634
|
-
sig do
|
|
635
|
-
override.returns(
|
|
636
|
-
{
|
|
637
|
-
administrative_area: String,
|
|
638
|
-
city: String,
|
|
639
|
-
country: String,
|
|
640
|
-
postal_code: String,
|
|
641
|
-
street_address: String,
|
|
642
|
-
extended_address: T.nilable(String)
|
|
643
|
-
}
|
|
644
|
-
)
|
|
645
|
-
end
|
|
646
|
-
def to_hash
|
|
647
|
-
end
|
|
648
|
-
end
|
|
649
345
|
end
|
|
650
346
|
end
|
|
651
347
|
end
|