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
|
@@ -1,392 +1,15 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
|
-
type enterprise_retrieve_response =
|
|
4
|
-
{ data: Telnyx::Models::EnterpriseRetrieveResponse::Data }
|
|
3
|
+
type enterprise_retrieve_response = { data: Telnyx::EnterprisePublic }
|
|
5
4
|
|
|
6
5
|
class EnterpriseRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
attr_reader data: Telnyx::
|
|
6
|
+
attr_reader data: Telnyx::EnterprisePublic?
|
|
8
7
|
|
|
9
|
-
def data=: (
|
|
10
|
-
Telnyx::Models::EnterpriseRetrieveResponse::Data
|
|
11
|
-
) -> Telnyx::Models::EnterpriseRetrieveResponse::Data
|
|
8
|
+
def data=: (Telnyx::EnterprisePublic) -> Telnyx::EnterprisePublic
|
|
12
9
|
|
|
13
|
-
def initialize: (
|
|
14
|
-
?data: Telnyx::Models::EnterpriseRetrieveResponse::Data
|
|
15
|
-
) -> void
|
|
10
|
+
def initialize: (?data: Telnyx::EnterprisePublic) -> void
|
|
16
11
|
|
|
17
|
-
def to_hash: -> { data: Telnyx::
|
|
18
|
-
|
|
19
|
-
type data =
|
|
20
|
-
{
|
|
21
|
-
id: String,
|
|
22
|
-
billing_address: Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingAddress,
|
|
23
|
-
billing_contact: Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingContact,
|
|
24
|
-
corporate_registration_number: String?,
|
|
25
|
-
country_code: String,
|
|
26
|
-
created_at: Time,
|
|
27
|
-
customer_reference: String?,
|
|
28
|
-
doing_business_as: String,
|
|
29
|
-
dun_bradstreet_number: String?,
|
|
30
|
-
fein: String?,
|
|
31
|
-
industry: String?,
|
|
32
|
-
legal_name: String,
|
|
33
|
-
number_of_employees: Telnyx::Models::EnterpriseRetrieveResponse::Data::number_of_employees?,
|
|
34
|
-
organization_contact: Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationContact,
|
|
35
|
-
organization_legal_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_legal_type?,
|
|
36
|
-
organization_physical_address: Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationPhysicalAddress,
|
|
37
|
-
organization_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_type,
|
|
38
|
-
primary_business_domain_sic_code: String?,
|
|
39
|
-
professional_license_number: String?,
|
|
40
|
-
role_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::role_type,
|
|
41
|
-
updated_at: Time,
|
|
42
|
-
website: String?
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
46
|
-
attr_reader id: String?
|
|
47
|
-
|
|
48
|
-
def id=: (String) -> String
|
|
49
|
-
|
|
50
|
-
attr_reader billing_address: Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingAddress?
|
|
51
|
-
|
|
52
|
-
def billing_address=: (
|
|
53
|
-
Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingAddress
|
|
54
|
-
) -> Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingAddress
|
|
55
|
-
|
|
56
|
-
attr_reader billing_contact: Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingContact?
|
|
57
|
-
|
|
58
|
-
def billing_contact=: (
|
|
59
|
-
Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingContact
|
|
60
|
-
) -> Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingContact
|
|
61
|
-
|
|
62
|
-
attr_accessor corporate_registration_number: String?
|
|
63
|
-
|
|
64
|
-
attr_reader country_code: String?
|
|
65
|
-
|
|
66
|
-
def country_code=: (String) -> String
|
|
67
|
-
|
|
68
|
-
attr_reader created_at: Time?
|
|
69
|
-
|
|
70
|
-
def created_at=: (Time) -> Time
|
|
71
|
-
|
|
72
|
-
attr_accessor customer_reference: String?
|
|
73
|
-
|
|
74
|
-
attr_reader doing_business_as: String?
|
|
75
|
-
|
|
76
|
-
def doing_business_as=: (String) -> String
|
|
77
|
-
|
|
78
|
-
attr_accessor dun_bradstreet_number: String?
|
|
79
|
-
|
|
80
|
-
attr_accessor fein: String?
|
|
81
|
-
|
|
82
|
-
attr_accessor industry: String?
|
|
83
|
-
|
|
84
|
-
attr_reader legal_name: String?
|
|
85
|
-
|
|
86
|
-
def legal_name=: (String) -> String
|
|
87
|
-
|
|
88
|
-
attr_accessor number_of_employees: Telnyx::Models::EnterpriseRetrieveResponse::Data::number_of_employees?
|
|
89
|
-
|
|
90
|
-
attr_reader organization_contact: Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationContact?
|
|
91
|
-
|
|
92
|
-
def organization_contact=: (
|
|
93
|
-
Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationContact
|
|
94
|
-
) -> Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationContact
|
|
95
|
-
|
|
96
|
-
attr_accessor organization_legal_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_legal_type?
|
|
97
|
-
|
|
98
|
-
attr_reader organization_physical_address: Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationPhysicalAddress?
|
|
99
|
-
|
|
100
|
-
def organization_physical_address=: (
|
|
101
|
-
Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationPhysicalAddress
|
|
102
|
-
) -> Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationPhysicalAddress
|
|
103
|
-
|
|
104
|
-
attr_reader organization_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_type?
|
|
105
|
-
|
|
106
|
-
def organization_type=: (
|
|
107
|
-
Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_type
|
|
108
|
-
) -> Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_type
|
|
109
|
-
|
|
110
|
-
attr_accessor primary_business_domain_sic_code: String?
|
|
111
|
-
|
|
112
|
-
attr_accessor professional_license_number: String?
|
|
113
|
-
|
|
114
|
-
attr_reader role_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::role_type?
|
|
115
|
-
|
|
116
|
-
def role_type=: (
|
|
117
|
-
Telnyx::Models::EnterpriseRetrieveResponse::Data::role_type
|
|
118
|
-
) -> Telnyx::Models::EnterpriseRetrieveResponse::Data::role_type
|
|
119
|
-
|
|
120
|
-
attr_reader updated_at: Time?
|
|
121
|
-
|
|
122
|
-
def updated_at=: (Time) -> Time
|
|
123
|
-
|
|
124
|
-
attr_accessor website: String?
|
|
125
|
-
|
|
126
|
-
def initialize: (
|
|
127
|
-
?id: String,
|
|
128
|
-
?billing_address: Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingAddress,
|
|
129
|
-
?billing_contact: Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingContact,
|
|
130
|
-
?corporate_registration_number: String?,
|
|
131
|
-
?country_code: String,
|
|
132
|
-
?created_at: Time,
|
|
133
|
-
?customer_reference: String?,
|
|
134
|
-
?doing_business_as: String,
|
|
135
|
-
?dun_bradstreet_number: String?,
|
|
136
|
-
?fein: String?,
|
|
137
|
-
?industry: String?,
|
|
138
|
-
?legal_name: String,
|
|
139
|
-
?number_of_employees: Telnyx::Models::EnterpriseRetrieveResponse::Data::number_of_employees?,
|
|
140
|
-
?organization_contact: Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationContact,
|
|
141
|
-
?organization_legal_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_legal_type?,
|
|
142
|
-
?organization_physical_address: Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationPhysicalAddress,
|
|
143
|
-
?organization_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_type,
|
|
144
|
-
?primary_business_domain_sic_code: String?,
|
|
145
|
-
?professional_license_number: String?,
|
|
146
|
-
?role_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::role_type,
|
|
147
|
-
?updated_at: Time,
|
|
148
|
-
?website: String?
|
|
149
|
-
) -> void
|
|
150
|
-
|
|
151
|
-
def to_hash: -> {
|
|
152
|
-
id: String,
|
|
153
|
-
billing_address: Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingAddress,
|
|
154
|
-
billing_contact: Telnyx::Models::EnterpriseRetrieveResponse::Data::BillingContact,
|
|
155
|
-
corporate_registration_number: String?,
|
|
156
|
-
country_code: String,
|
|
157
|
-
created_at: Time,
|
|
158
|
-
customer_reference: String?,
|
|
159
|
-
doing_business_as: String,
|
|
160
|
-
dun_bradstreet_number: String?,
|
|
161
|
-
fein: String?,
|
|
162
|
-
industry: String?,
|
|
163
|
-
legal_name: String,
|
|
164
|
-
number_of_employees: Telnyx::Models::EnterpriseRetrieveResponse::Data::number_of_employees?,
|
|
165
|
-
organization_contact: Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationContact,
|
|
166
|
-
organization_legal_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_legal_type?,
|
|
167
|
-
organization_physical_address: Telnyx::Models::EnterpriseRetrieveResponse::Data::OrganizationPhysicalAddress,
|
|
168
|
-
organization_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_type,
|
|
169
|
-
primary_business_domain_sic_code: String?,
|
|
170
|
-
professional_license_number: String?,
|
|
171
|
-
role_type: Telnyx::Models::EnterpriseRetrieveResponse::Data::role_type,
|
|
172
|
-
updated_at: Time,
|
|
173
|
-
website: String?
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
type billing_address =
|
|
177
|
-
{
|
|
178
|
-
administrative_area: String,
|
|
179
|
-
city: String,
|
|
180
|
-
country: String,
|
|
181
|
-
postal_code: String,
|
|
182
|
-
street_address: String,
|
|
183
|
-
extended_address: String?
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
class BillingAddress < Telnyx::Internal::Type::BaseModel
|
|
187
|
-
attr_accessor administrative_area: String
|
|
188
|
-
|
|
189
|
-
attr_accessor city: String
|
|
190
|
-
|
|
191
|
-
attr_accessor country: String
|
|
192
|
-
|
|
193
|
-
attr_accessor postal_code: String
|
|
194
|
-
|
|
195
|
-
attr_accessor street_address: String
|
|
196
|
-
|
|
197
|
-
attr_accessor extended_address: String?
|
|
198
|
-
|
|
199
|
-
def initialize: (
|
|
200
|
-
administrative_area: String,
|
|
201
|
-
city: String,
|
|
202
|
-
country: String,
|
|
203
|
-
postal_code: String,
|
|
204
|
-
street_address: String,
|
|
205
|
-
?extended_address: String?
|
|
206
|
-
) -> void
|
|
207
|
-
|
|
208
|
-
def to_hash: -> {
|
|
209
|
-
administrative_area: String,
|
|
210
|
-
city: String,
|
|
211
|
-
country: String,
|
|
212
|
-
postal_code: String,
|
|
213
|
-
street_address: String,
|
|
214
|
-
extended_address: String?
|
|
215
|
-
}
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
type billing_contact =
|
|
219
|
-
{
|
|
220
|
-
email: String,
|
|
221
|
-
first_name: String,
|
|
222
|
-
last_name: String,
|
|
223
|
-
phone_number: String
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
class BillingContact < Telnyx::Internal::Type::BaseModel
|
|
227
|
-
attr_accessor email: String
|
|
228
|
-
|
|
229
|
-
attr_accessor first_name: String
|
|
230
|
-
|
|
231
|
-
attr_accessor last_name: String
|
|
232
|
-
|
|
233
|
-
attr_accessor phone_number: String
|
|
234
|
-
|
|
235
|
-
def initialize: (
|
|
236
|
-
email: String,
|
|
237
|
-
first_name: String,
|
|
238
|
-
last_name: String,
|
|
239
|
-
phone_number: String
|
|
240
|
-
) -> void
|
|
241
|
-
|
|
242
|
-
def to_hash: -> {
|
|
243
|
-
email: String,
|
|
244
|
-
first_name: String,
|
|
245
|
-
last_name: String,
|
|
246
|
-
phone_number: String
|
|
247
|
-
}
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
type number_of_employees =
|
|
251
|
-
:"1-10"
|
|
252
|
-
| :"11-50"
|
|
253
|
-
| :"51-200"
|
|
254
|
-
| :"201-500"
|
|
255
|
-
| :"501-2000"
|
|
256
|
-
| :"2001-10000"
|
|
257
|
-
| :"10001+"
|
|
258
|
-
|
|
259
|
-
module NumberOfEmployees
|
|
260
|
-
extend Telnyx::Internal::Type::Enum
|
|
261
|
-
|
|
262
|
-
NUMBER_OF_EMPLOYEES_1_10: :"1-10"
|
|
263
|
-
NUMBER_OF_EMPLOYEES_11_50: :"11-50"
|
|
264
|
-
NUMBER_OF_EMPLOYEES_51_200: :"51-200"
|
|
265
|
-
NUMBER_OF_EMPLOYEES_201_500: :"201-500"
|
|
266
|
-
NUMBER_OF_EMPLOYEES_501_2000: :"501-2000"
|
|
267
|
-
NUMBER_OF_EMPLOYEES_2001_10000: :"2001-10000"
|
|
268
|
-
NUMBER_OF_EMPLOYEES_10001: :"10001+"
|
|
269
|
-
|
|
270
|
-
def self?.values: -> ::Array[Telnyx::Models::EnterpriseRetrieveResponse::Data::number_of_employees]
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
type organization_contact =
|
|
274
|
-
{
|
|
275
|
-
email: String,
|
|
276
|
-
first_name: String,
|
|
277
|
-
job_title: String,
|
|
278
|
-
last_name: String,
|
|
279
|
-
phone: String
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
class OrganizationContact < Telnyx::Internal::Type::BaseModel
|
|
283
|
-
attr_accessor email: String
|
|
284
|
-
|
|
285
|
-
attr_accessor first_name: String
|
|
286
|
-
|
|
287
|
-
attr_accessor job_title: String
|
|
288
|
-
|
|
289
|
-
attr_accessor last_name: String
|
|
290
|
-
|
|
291
|
-
attr_accessor phone: String
|
|
292
|
-
|
|
293
|
-
def initialize: (
|
|
294
|
-
email: String,
|
|
295
|
-
first_name: String,
|
|
296
|
-
job_title: String,
|
|
297
|
-
last_name: String,
|
|
298
|
-
phone: String
|
|
299
|
-
) -> void
|
|
300
|
-
|
|
301
|
-
def to_hash: -> {
|
|
302
|
-
email: String,
|
|
303
|
-
first_name: String,
|
|
304
|
-
job_title: String,
|
|
305
|
-
last_name: String,
|
|
306
|
-
phone: String
|
|
307
|
-
}
|
|
308
|
-
end
|
|
309
|
-
|
|
310
|
-
type organization_legal_type =
|
|
311
|
-
:corporation | :llc | :partnership | :nonprofit | :other
|
|
312
|
-
|
|
313
|
-
module OrganizationLegalType
|
|
314
|
-
extend Telnyx::Internal::Type::Enum
|
|
315
|
-
|
|
316
|
-
CORPORATION: :corporation
|
|
317
|
-
LLC: :llc
|
|
318
|
-
PARTNERSHIP: :partnership
|
|
319
|
-
NONPROFIT: :nonprofit
|
|
320
|
-
OTHER: :other
|
|
321
|
-
|
|
322
|
-
def self?.values: -> ::Array[Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_legal_type]
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
type organization_physical_address =
|
|
326
|
-
{
|
|
327
|
-
administrative_area: String,
|
|
328
|
-
city: String,
|
|
329
|
-
country: String,
|
|
330
|
-
postal_code: String,
|
|
331
|
-
street_address: String,
|
|
332
|
-
extended_address: String?
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
class OrganizationPhysicalAddress < Telnyx::Internal::Type::BaseModel
|
|
336
|
-
attr_accessor administrative_area: String
|
|
337
|
-
|
|
338
|
-
attr_accessor city: String
|
|
339
|
-
|
|
340
|
-
attr_accessor country: String
|
|
341
|
-
|
|
342
|
-
attr_accessor postal_code: String
|
|
343
|
-
|
|
344
|
-
attr_accessor street_address: String
|
|
345
|
-
|
|
346
|
-
attr_accessor extended_address: String?
|
|
347
|
-
|
|
348
|
-
def initialize: (
|
|
349
|
-
administrative_area: String,
|
|
350
|
-
city: String,
|
|
351
|
-
country: String,
|
|
352
|
-
postal_code: String,
|
|
353
|
-
street_address: String,
|
|
354
|
-
?extended_address: String?
|
|
355
|
-
) -> void
|
|
356
|
-
|
|
357
|
-
def to_hash: -> {
|
|
358
|
-
administrative_area: String,
|
|
359
|
-
city: String,
|
|
360
|
-
country: String,
|
|
361
|
-
postal_code: String,
|
|
362
|
-
street_address: String,
|
|
363
|
-
extended_address: String?
|
|
364
|
-
}
|
|
365
|
-
end
|
|
366
|
-
|
|
367
|
-
type organization_type = :commercial | :government | :non_profit
|
|
368
|
-
|
|
369
|
-
module OrganizationType
|
|
370
|
-
extend Telnyx::Internal::Type::Enum
|
|
371
|
-
|
|
372
|
-
COMMERCIAL: :commercial
|
|
373
|
-
GOVERNMENT: :government
|
|
374
|
-
NON_PROFIT: :non_profit
|
|
375
|
-
|
|
376
|
-
def self?.values: -> ::Array[Telnyx::Models::EnterpriseRetrieveResponse::Data::organization_type]
|
|
377
|
-
end
|
|
378
|
-
|
|
379
|
-
type role_type = :enterprise | :bpo
|
|
380
|
-
|
|
381
|
-
module RoleType
|
|
382
|
-
extend Telnyx::Internal::Type::Enum
|
|
383
|
-
|
|
384
|
-
ENTERPRISE: :enterprise
|
|
385
|
-
BPO: :bpo
|
|
386
|
-
|
|
387
|
-
def self?.values: -> ::Array[Telnyx::Models::EnterpriseRetrieveResponse::Data::role_type]
|
|
388
|
-
end
|
|
389
|
-
end
|
|
12
|
+
def to_hash: -> { data: Telnyx::EnterprisePublic }
|
|
390
13
|
end
|
|
391
14
|
end
|
|
392
15
|
end
|
|
@@ -3,8 +3,8 @@ module Telnyx
|
|
|
3
3
|
type enterprise_update_params =
|
|
4
4
|
{
|
|
5
5
|
enterprise_id: String,
|
|
6
|
-
billing_address: Telnyx::
|
|
7
|
-
billing_contact: Telnyx::
|
|
6
|
+
billing_address: Telnyx::BillingAddress,
|
|
7
|
+
billing_contact: Telnyx::BillingContact,
|
|
8
8
|
corporate_registration_number: String,
|
|
9
9
|
customer_reference: String,
|
|
10
10
|
doing_business_as: String,
|
|
@@ -13,9 +13,9 @@ module Telnyx
|
|
|
13
13
|
industry: String,
|
|
14
14
|
legal_name: String,
|
|
15
15
|
number_of_employees: Telnyx::Models::EnterpriseUpdateParams::number_of_employees,
|
|
16
|
-
organization_contact: Telnyx::
|
|
16
|
+
organization_contact: Telnyx::OrganizationContact,
|
|
17
17
|
organization_legal_type: Telnyx::Models::EnterpriseUpdateParams::organization_legal_type,
|
|
18
|
-
organization_physical_address: Telnyx::
|
|
18
|
+
organization_physical_address: Telnyx::PhysicalAddress,
|
|
19
19
|
primary_business_domain_sic_code: String,
|
|
20
20
|
professional_license_number: String,
|
|
21
21
|
website: String
|
|
@@ -28,17 +28,13 @@ module Telnyx
|
|
|
28
28
|
|
|
29
29
|
attr_accessor enterprise_id: String
|
|
30
30
|
|
|
31
|
-
attr_reader billing_address: Telnyx::
|
|
31
|
+
attr_reader billing_address: Telnyx::BillingAddress?
|
|
32
32
|
|
|
33
|
-
def billing_address=: (
|
|
34
|
-
Telnyx::EnterpriseUpdateParams::BillingAddress
|
|
35
|
-
) -> Telnyx::EnterpriseUpdateParams::BillingAddress
|
|
33
|
+
def billing_address=: (Telnyx::BillingAddress) -> Telnyx::BillingAddress
|
|
36
34
|
|
|
37
|
-
attr_reader billing_contact: Telnyx::
|
|
35
|
+
attr_reader billing_contact: Telnyx::BillingContact?
|
|
38
36
|
|
|
39
|
-
def billing_contact=: (
|
|
40
|
-
Telnyx::EnterpriseUpdateParams::BillingContact
|
|
41
|
-
) -> Telnyx::EnterpriseUpdateParams::BillingContact
|
|
37
|
+
def billing_contact=: (Telnyx::BillingContact) -> Telnyx::BillingContact
|
|
42
38
|
|
|
43
39
|
attr_reader corporate_registration_number: String?
|
|
44
40
|
|
|
@@ -74,11 +70,11 @@ module Telnyx
|
|
|
74
70
|
Telnyx::Models::EnterpriseUpdateParams::number_of_employees
|
|
75
71
|
) -> Telnyx::Models::EnterpriseUpdateParams::number_of_employees
|
|
76
72
|
|
|
77
|
-
attr_reader organization_contact: Telnyx::
|
|
73
|
+
attr_reader organization_contact: Telnyx::OrganizationContact?
|
|
78
74
|
|
|
79
75
|
def organization_contact=: (
|
|
80
|
-
Telnyx::
|
|
81
|
-
) -> Telnyx::
|
|
76
|
+
Telnyx::OrganizationContact
|
|
77
|
+
) -> Telnyx::OrganizationContact
|
|
82
78
|
|
|
83
79
|
attr_reader organization_legal_type: Telnyx::Models::EnterpriseUpdateParams::organization_legal_type?
|
|
84
80
|
|
|
@@ -86,11 +82,11 @@ module Telnyx
|
|
|
86
82
|
Telnyx::Models::EnterpriseUpdateParams::organization_legal_type
|
|
87
83
|
) -> Telnyx::Models::EnterpriseUpdateParams::organization_legal_type
|
|
88
84
|
|
|
89
|
-
attr_reader organization_physical_address: Telnyx::
|
|
85
|
+
attr_reader organization_physical_address: Telnyx::PhysicalAddress?
|
|
90
86
|
|
|
91
87
|
def organization_physical_address=: (
|
|
92
|
-
Telnyx::
|
|
93
|
-
) -> Telnyx::
|
|
88
|
+
Telnyx::PhysicalAddress
|
|
89
|
+
) -> Telnyx::PhysicalAddress
|
|
94
90
|
|
|
95
91
|
attr_reader primary_business_domain_sic_code: String?
|
|
96
92
|
|
|
@@ -106,8 +102,8 @@ module Telnyx
|
|
|
106
102
|
|
|
107
103
|
def initialize: (
|
|
108
104
|
enterprise_id: String,
|
|
109
|
-
?billing_address: Telnyx::
|
|
110
|
-
?billing_contact: Telnyx::
|
|
105
|
+
?billing_address: Telnyx::BillingAddress,
|
|
106
|
+
?billing_contact: Telnyx::BillingContact,
|
|
111
107
|
?corporate_registration_number: String,
|
|
112
108
|
?customer_reference: String,
|
|
113
109
|
?doing_business_as: String,
|
|
@@ -116,9 +112,9 @@ module Telnyx
|
|
|
116
112
|
?industry: String,
|
|
117
113
|
?legal_name: String,
|
|
118
114
|
?number_of_employees: Telnyx::Models::EnterpriseUpdateParams::number_of_employees,
|
|
119
|
-
?organization_contact: Telnyx::
|
|
115
|
+
?organization_contact: Telnyx::OrganizationContact,
|
|
120
116
|
?organization_legal_type: Telnyx::Models::EnterpriseUpdateParams::organization_legal_type,
|
|
121
|
-
?organization_physical_address: Telnyx::
|
|
117
|
+
?organization_physical_address: Telnyx::PhysicalAddress,
|
|
122
118
|
?primary_business_domain_sic_code: String,
|
|
123
119
|
?professional_license_number: String,
|
|
124
120
|
?website: String,
|
|
@@ -127,8 +123,8 @@ module Telnyx
|
|
|
127
123
|
|
|
128
124
|
def to_hash: -> {
|
|
129
125
|
enterprise_id: String,
|
|
130
|
-
billing_address: Telnyx::
|
|
131
|
-
billing_contact: Telnyx::
|
|
126
|
+
billing_address: Telnyx::BillingAddress,
|
|
127
|
+
billing_contact: Telnyx::BillingContact,
|
|
132
128
|
corporate_registration_number: String,
|
|
133
129
|
customer_reference: String,
|
|
134
130
|
doing_business_as: String,
|
|
@@ -137,89 +133,15 @@ module Telnyx
|
|
|
137
133
|
industry: String,
|
|
138
134
|
legal_name: String,
|
|
139
135
|
number_of_employees: Telnyx::Models::EnterpriseUpdateParams::number_of_employees,
|
|
140
|
-
organization_contact: Telnyx::
|
|
136
|
+
organization_contact: Telnyx::OrganizationContact,
|
|
141
137
|
organization_legal_type: Telnyx::Models::EnterpriseUpdateParams::organization_legal_type,
|
|
142
|
-
organization_physical_address: Telnyx::
|
|
138
|
+
organization_physical_address: Telnyx::PhysicalAddress,
|
|
143
139
|
primary_business_domain_sic_code: String,
|
|
144
140
|
professional_license_number: String,
|
|
145
141
|
website: String,
|
|
146
142
|
request_options: Telnyx::RequestOptions
|
|
147
143
|
}
|
|
148
144
|
|
|
149
|
-
type billing_address =
|
|
150
|
-
{
|
|
151
|
-
administrative_area: String,
|
|
152
|
-
city: String,
|
|
153
|
-
country: String,
|
|
154
|
-
postal_code: String,
|
|
155
|
-
street_address: String,
|
|
156
|
-
extended_address: String?
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
class BillingAddress < Telnyx::Internal::Type::BaseModel
|
|
160
|
-
attr_accessor administrative_area: String
|
|
161
|
-
|
|
162
|
-
attr_accessor city: String
|
|
163
|
-
|
|
164
|
-
attr_accessor country: String
|
|
165
|
-
|
|
166
|
-
attr_accessor postal_code: String
|
|
167
|
-
|
|
168
|
-
attr_accessor street_address: String
|
|
169
|
-
|
|
170
|
-
attr_accessor extended_address: String?
|
|
171
|
-
|
|
172
|
-
def initialize: (
|
|
173
|
-
administrative_area: String,
|
|
174
|
-
city: String,
|
|
175
|
-
country: String,
|
|
176
|
-
postal_code: String,
|
|
177
|
-
street_address: String,
|
|
178
|
-
?extended_address: String?
|
|
179
|
-
) -> void
|
|
180
|
-
|
|
181
|
-
def to_hash: -> {
|
|
182
|
-
administrative_area: String,
|
|
183
|
-
city: String,
|
|
184
|
-
country: String,
|
|
185
|
-
postal_code: String,
|
|
186
|
-
street_address: String,
|
|
187
|
-
extended_address: String?
|
|
188
|
-
}
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
type billing_contact =
|
|
192
|
-
{
|
|
193
|
-
email: String,
|
|
194
|
-
first_name: String,
|
|
195
|
-
last_name: String,
|
|
196
|
-
phone_number: String
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
class BillingContact < Telnyx::Internal::Type::BaseModel
|
|
200
|
-
attr_accessor email: String
|
|
201
|
-
|
|
202
|
-
attr_accessor first_name: String
|
|
203
|
-
|
|
204
|
-
attr_accessor last_name: String
|
|
205
|
-
|
|
206
|
-
attr_accessor phone_number: String
|
|
207
|
-
|
|
208
|
-
def initialize: (
|
|
209
|
-
email: String,
|
|
210
|
-
first_name: String,
|
|
211
|
-
last_name: String,
|
|
212
|
-
phone_number: String
|
|
213
|
-
) -> void
|
|
214
|
-
|
|
215
|
-
def to_hash: -> {
|
|
216
|
-
email: String,
|
|
217
|
-
first_name: String,
|
|
218
|
-
last_name: String,
|
|
219
|
-
phone_number: String
|
|
220
|
-
}
|
|
221
|
-
end
|
|
222
|
-
|
|
223
145
|
type number_of_employees =
|
|
224
146
|
:"1-10"
|
|
225
147
|
| :"11-50"
|
|
@@ -243,43 +165,6 @@ module Telnyx
|
|
|
243
165
|
def self?.values: -> ::Array[Telnyx::Models::EnterpriseUpdateParams::number_of_employees]
|
|
244
166
|
end
|
|
245
167
|
|
|
246
|
-
type organization_contact =
|
|
247
|
-
{
|
|
248
|
-
email: String,
|
|
249
|
-
first_name: String,
|
|
250
|
-
job_title: String,
|
|
251
|
-
last_name: String,
|
|
252
|
-
phone: String
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
class OrganizationContact < Telnyx::Internal::Type::BaseModel
|
|
256
|
-
attr_accessor email: String
|
|
257
|
-
|
|
258
|
-
attr_accessor first_name: String
|
|
259
|
-
|
|
260
|
-
attr_accessor job_title: String
|
|
261
|
-
|
|
262
|
-
attr_accessor last_name: String
|
|
263
|
-
|
|
264
|
-
attr_accessor phone: String
|
|
265
|
-
|
|
266
|
-
def initialize: (
|
|
267
|
-
email: String,
|
|
268
|
-
first_name: String,
|
|
269
|
-
job_title: String,
|
|
270
|
-
last_name: String,
|
|
271
|
-
phone: String
|
|
272
|
-
) -> void
|
|
273
|
-
|
|
274
|
-
def to_hash: -> {
|
|
275
|
-
email: String,
|
|
276
|
-
first_name: String,
|
|
277
|
-
job_title: String,
|
|
278
|
-
last_name: String,
|
|
279
|
-
phone: String
|
|
280
|
-
}
|
|
281
|
-
end
|
|
282
|
-
|
|
283
168
|
type organization_legal_type =
|
|
284
169
|
:corporation | :llc | :partnership | :nonprofit | :other
|
|
285
170
|
|
|
@@ -294,48 +179,6 @@ module Telnyx
|
|
|
294
179
|
|
|
295
180
|
def self?.values: -> ::Array[Telnyx::Models::EnterpriseUpdateParams::organization_legal_type]
|
|
296
181
|
end
|
|
297
|
-
|
|
298
|
-
type organization_physical_address =
|
|
299
|
-
{
|
|
300
|
-
administrative_area: String,
|
|
301
|
-
city: String,
|
|
302
|
-
country: String,
|
|
303
|
-
postal_code: String,
|
|
304
|
-
street_address: String,
|
|
305
|
-
extended_address: String?
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
class OrganizationPhysicalAddress < Telnyx::Internal::Type::BaseModel
|
|
309
|
-
attr_accessor administrative_area: String
|
|
310
|
-
|
|
311
|
-
attr_accessor city: String
|
|
312
|
-
|
|
313
|
-
attr_accessor country: String
|
|
314
|
-
|
|
315
|
-
attr_accessor postal_code: String
|
|
316
|
-
|
|
317
|
-
attr_accessor street_address: String
|
|
318
|
-
|
|
319
|
-
attr_accessor extended_address: String?
|
|
320
|
-
|
|
321
|
-
def initialize: (
|
|
322
|
-
administrative_area: String,
|
|
323
|
-
city: String,
|
|
324
|
-
country: String,
|
|
325
|
-
postal_code: String,
|
|
326
|
-
street_address: String,
|
|
327
|
-
?extended_address: String?
|
|
328
|
-
) -> void
|
|
329
|
-
|
|
330
|
-
def to_hash: -> {
|
|
331
|
-
administrative_area: String,
|
|
332
|
-
city: String,
|
|
333
|
-
country: String,
|
|
334
|
-
postal_code: String,
|
|
335
|
-
street_address: String,
|
|
336
|
-
extended_address: String?
|
|
337
|
-
}
|
|
338
|
-
end
|
|
339
182
|
end
|
|
340
183
|
end
|
|
341
184
|
end
|