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
|
@@ -6,445 +6,11 @@ module Telnyx
|
|
|
6
6
|
class EnterpriseCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::EnterprisePublic, nil]
|
|
10
|
+
optional :data, -> { Telnyx::EnterprisePublic }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::EnterpriseCreateResponse#data
|
|
16
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
17
|
-
# @!attribute id
|
|
18
|
-
# Unique identifier of the enterprise
|
|
19
|
-
#
|
|
20
|
-
# @return [String, nil]
|
|
21
|
-
optional :id, String
|
|
22
|
-
|
|
23
|
-
# @!attribute billing_address
|
|
24
|
-
#
|
|
25
|
-
# @return [Telnyx::Models::EnterpriseCreateResponse::Data::BillingAddress, nil]
|
|
26
|
-
optional :billing_address, -> { Telnyx::Models::EnterpriseCreateResponse::Data::BillingAddress }
|
|
27
|
-
|
|
28
|
-
# @!attribute billing_contact
|
|
29
|
-
#
|
|
30
|
-
# @return [Telnyx::Models::EnterpriseCreateResponse::Data::BillingContact, nil]
|
|
31
|
-
optional :billing_contact, -> { Telnyx::Models::EnterpriseCreateResponse::Data::BillingContact }
|
|
32
|
-
|
|
33
|
-
# @!attribute corporate_registration_number
|
|
34
|
-
# Corporate registration number
|
|
35
|
-
#
|
|
36
|
-
# @return [String, nil]
|
|
37
|
-
optional :corporate_registration_number, String, nil?: true
|
|
38
|
-
|
|
39
|
-
# @!attribute country_code
|
|
40
|
-
# ISO 3166-1 alpha-2 country code
|
|
41
|
-
#
|
|
42
|
-
# @return [String, nil]
|
|
43
|
-
optional :country_code, String
|
|
44
|
-
|
|
45
|
-
# @!attribute created_at
|
|
46
|
-
# When the enterprise was created
|
|
47
|
-
#
|
|
48
|
-
# @return [Time, nil]
|
|
49
|
-
optional :created_at, Time
|
|
50
|
-
|
|
51
|
-
# @!attribute customer_reference
|
|
52
|
-
# Customer reference identifier
|
|
53
|
-
#
|
|
54
|
-
# @return [String, nil]
|
|
55
|
-
optional :customer_reference, String, nil?: true
|
|
56
|
-
|
|
57
|
-
# @!attribute doing_business_as
|
|
58
|
-
# DBA name
|
|
59
|
-
#
|
|
60
|
-
# @return [String, nil]
|
|
61
|
-
optional :doing_business_as, String
|
|
62
|
-
|
|
63
|
-
# @!attribute dun_bradstreet_number
|
|
64
|
-
# D-U-N-S Number
|
|
65
|
-
#
|
|
66
|
-
# @return [String, nil]
|
|
67
|
-
optional :dun_bradstreet_number, String, nil?: true
|
|
68
|
-
|
|
69
|
-
# @!attribute fein
|
|
70
|
-
# Federal Employer Identification Number
|
|
71
|
-
#
|
|
72
|
-
# @return [String, nil]
|
|
73
|
-
optional :fein, String, nil?: true
|
|
74
|
-
|
|
75
|
-
# @!attribute industry
|
|
76
|
-
# Industry classification
|
|
77
|
-
#
|
|
78
|
-
# @return [String, nil]
|
|
79
|
-
optional :industry, String, nil?: true
|
|
80
|
-
|
|
81
|
-
# @!attribute legal_name
|
|
82
|
-
# Legal name of the enterprise
|
|
83
|
-
#
|
|
84
|
-
# @return [String, nil]
|
|
85
|
-
optional :legal_name, String
|
|
86
|
-
|
|
87
|
-
# @!attribute number_of_employees
|
|
88
|
-
# Employee count range
|
|
89
|
-
#
|
|
90
|
-
# @return [Symbol, Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees, nil]
|
|
91
|
-
optional :number_of_employees,
|
|
92
|
-
enum: -> { Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees },
|
|
93
|
-
nil?: true
|
|
94
|
-
|
|
95
|
-
# @!attribute organization_contact
|
|
96
|
-
# Organization contact information. Note: the response returns this object with
|
|
97
|
-
# the phone field as 'phone' (not 'phone_number').
|
|
98
|
-
#
|
|
99
|
-
# @return [Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationContact, nil]
|
|
100
|
-
optional :organization_contact, -> { Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationContact }
|
|
101
|
-
|
|
102
|
-
# @!attribute organization_legal_type
|
|
103
|
-
# Legal structure type
|
|
104
|
-
#
|
|
105
|
-
# @return [Symbol, Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType, nil]
|
|
106
|
-
optional :organization_legal_type,
|
|
107
|
-
enum: -> { Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType },
|
|
108
|
-
nil?: true
|
|
109
|
-
|
|
110
|
-
# @!attribute organization_physical_address
|
|
111
|
-
#
|
|
112
|
-
# @return [Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationPhysicalAddress, nil]
|
|
113
|
-
optional :organization_physical_address,
|
|
114
|
-
-> { Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationPhysicalAddress }
|
|
115
|
-
|
|
116
|
-
# @!attribute organization_type
|
|
117
|
-
# Type of organization
|
|
118
|
-
#
|
|
119
|
-
# @return [Symbol, Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType, nil]
|
|
120
|
-
optional :organization_type, enum: -> { Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType }
|
|
121
|
-
|
|
122
|
-
# @!attribute primary_business_domain_sic_code
|
|
123
|
-
# SIC Code
|
|
124
|
-
#
|
|
125
|
-
# @return [String, nil]
|
|
126
|
-
optional :primary_business_domain_sic_code, String, nil?: true
|
|
127
|
-
|
|
128
|
-
# @!attribute professional_license_number
|
|
129
|
-
# Professional license number
|
|
130
|
-
#
|
|
131
|
-
# @return [String, nil]
|
|
132
|
-
optional :professional_license_number, String, nil?: true
|
|
133
|
-
|
|
134
|
-
# @!attribute role_type
|
|
135
|
-
# Role type in Branded Calling / Number Reputation services
|
|
136
|
-
#
|
|
137
|
-
# @return [Symbol, Telnyx::Models::EnterpriseCreateResponse::Data::RoleType, nil]
|
|
138
|
-
optional :role_type, enum: -> { Telnyx::Models::EnterpriseCreateResponse::Data::RoleType }
|
|
139
|
-
|
|
140
|
-
# @!attribute updated_at
|
|
141
|
-
# When the enterprise was last updated
|
|
142
|
-
#
|
|
143
|
-
# @return [Time, nil]
|
|
144
|
-
optional :updated_at, Time
|
|
145
|
-
|
|
146
|
-
# @!attribute website
|
|
147
|
-
# Company website URL
|
|
148
|
-
#
|
|
149
|
-
# @return [String, nil]
|
|
150
|
-
optional :website, String, nil?: true
|
|
151
|
-
|
|
152
|
-
# @!method initialize(id: nil, billing_address: nil, billing_contact: nil, corporate_registration_number: nil, country_code: nil, created_at: nil, customer_reference: nil, doing_business_as: nil, dun_bradstreet_number: nil, fein: nil, industry: nil, legal_name: nil, number_of_employees: nil, organization_contact: nil, organization_legal_type: nil, organization_physical_address: nil, organization_type: nil, primary_business_domain_sic_code: nil, professional_license_number: nil, role_type: nil, updated_at: nil, website: nil)
|
|
153
|
-
# Some parameter documentations has been truncated, see
|
|
154
|
-
# {Telnyx::Models::EnterpriseCreateResponse::Data} for more details.
|
|
155
|
-
#
|
|
156
|
-
# @param id [String] Unique identifier of the enterprise
|
|
157
|
-
#
|
|
158
|
-
# @param billing_address [Telnyx::Models::EnterpriseCreateResponse::Data::BillingAddress]
|
|
159
|
-
#
|
|
160
|
-
# @param billing_contact [Telnyx::Models::EnterpriseCreateResponse::Data::BillingContact]
|
|
161
|
-
#
|
|
162
|
-
# @param corporate_registration_number [String, nil] Corporate registration number
|
|
163
|
-
#
|
|
164
|
-
# @param country_code [String] ISO 3166-1 alpha-2 country code
|
|
165
|
-
#
|
|
166
|
-
# @param created_at [Time] When the enterprise was created
|
|
167
|
-
#
|
|
168
|
-
# @param customer_reference [String, nil] Customer reference identifier
|
|
169
|
-
#
|
|
170
|
-
# @param doing_business_as [String] DBA name
|
|
171
|
-
#
|
|
172
|
-
# @param dun_bradstreet_number [String, nil] D-U-N-S Number
|
|
173
|
-
#
|
|
174
|
-
# @param fein [String, nil] Federal Employer Identification Number
|
|
175
|
-
#
|
|
176
|
-
# @param industry [String, nil] Industry classification
|
|
177
|
-
#
|
|
178
|
-
# @param legal_name [String] Legal name of the enterprise
|
|
179
|
-
#
|
|
180
|
-
# @param number_of_employees [Symbol, Telnyx::Models::EnterpriseCreateResponse::Data::NumberOfEmployees, nil] Employee count range
|
|
181
|
-
#
|
|
182
|
-
# @param organization_contact [Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationContact] Organization contact information. Note: the response returns this object with th
|
|
183
|
-
#
|
|
184
|
-
# @param organization_legal_type [Symbol, Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationLegalType, nil] Legal structure type
|
|
185
|
-
#
|
|
186
|
-
# @param organization_physical_address [Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationPhysicalAddress]
|
|
187
|
-
#
|
|
188
|
-
# @param organization_type [Symbol, Telnyx::Models::EnterpriseCreateResponse::Data::OrganizationType] Type of organization
|
|
189
|
-
#
|
|
190
|
-
# @param primary_business_domain_sic_code [String, nil] SIC Code
|
|
191
|
-
#
|
|
192
|
-
# @param professional_license_number [String, nil] Professional license number
|
|
193
|
-
#
|
|
194
|
-
# @param role_type [Symbol, Telnyx::Models::EnterpriseCreateResponse::Data::RoleType] Role type in Branded Calling / Number Reputation services
|
|
195
|
-
#
|
|
196
|
-
# @param updated_at [Time] When the enterprise was last updated
|
|
197
|
-
#
|
|
198
|
-
# @param website [String, nil] Company website URL
|
|
199
|
-
|
|
200
|
-
# @see Telnyx::Models::EnterpriseCreateResponse::Data#billing_address
|
|
201
|
-
class BillingAddress < Telnyx::Internal::Type::BaseModel
|
|
202
|
-
# @!attribute administrative_area
|
|
203
|
-
# State or province
|
|
204
|
-
#
|
|
205
|
-
# @return [String]
|
|
206
|
-
required :administrative_area, String
|
|
207
|
-
|
|
208
|
-
# @!attribute city
|
|
209
|
-
# City name
|
|
210
|
-
#
|
|
211
|
-
# @return [String]
|
|
212
|
-
required :city, String
|
|
213
|
-
|
|
214
|
-
# @!attribute country
|
|
215
|
-
# Country name (e.g., United States)
|
|
216
|
-
#
|
|
217
|
-
# @return [String]
|
|
218
|
-
required :country, String
|
|
219
|
-
|
|
220
|
-
# @!attribute postal_code
|
|
221
|
-
# ZIP or postal code
|
|
222
|
-
#
|
|
223
|
-
# @return [String]
|
|
224
|
-
required :postal_code, String
|
|
225
|
-
|
|
226
|
-
# @!attribute street_address
|
|
227
|
-
# Street address
|
|
228
|
-
#
|
|
229
|
-
# @return [String]
|
|
230
|
-
required :street_address, String
|
|
231
|
-
|
|
232
|
-
# @!attribute extended_address
|
|
233
|
-
# Additional address line (suite, apt, etc.)
|
|
234
|
-
#
|
|
235
|
-
# @return [String, nil]
|
|
236
|
-
optional :extended_address, String, nil?: true
|
|
237
|
-
|
|
238
|
-
# @!method initialize(administrative_area:, city:, country:, postal_code:, street_address:, extended_address: nil)
|
|
239
|
-
# @param administrative_area [String] State or province
|
|
240
|
-
#
|
|
241
|
-
# @param city [String] City name
|
|
242
|
-
#
|
|
243
|
-
# @param country [String] Country name (e.g., United States)
|
|
244
|
-
#
|
|
245
|
-
# @param postal_code [String] ZIP or postal code
|
|
246
|
-
#
|
|
247
|
-
# @param street_address [String] Street address
|
|
248
|
-
#
|
|
249
|
-
# @param extended_address [String, nil] Additional address line (suite, apt, etc.)
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
# @see Telnyx::Models::EnterpriseCreateResponse::Data#billing_contact
|
|
253
|
-
class BillingContact < Telnyx::Internal::Type::BaseModel
|
|
254
|
-
# @!attribute email
|
|
255
|
-
# Contact's email address
|
|
256
|
-
#
|
|
257
|
-
# @return [String]
|
|
258
|
-
required :email, String
|
|
259
|
-
|
|
260
|
-
# @!attribute first_name
|
|
261
|
-
# Contact's first name
|
|
262
|
-
#
|
|
263
|
-
# @return [String]
|
|
264
|
-
required :first_name, String
|
|
265
|
-
|
|
266
|
-
# @!attribute last_name
|
|
267
|
-
# Contact's last name
|
|
268
|
-
#
|
|
269
|
-
# @return [String]
|
|
270
|
-
required :last_name, String
|
|
271
|
-
|
|
272
|
-
# @!attribute phone_number
|
|
273
|
-
# Contact's phone number (10-15 digits)
|
|
274
|
-
#
|
|
275
|
-
# @return [String]
|
|
276
|
-
required :phone_number, String
|
|
277
|
-
|
|
278
|
-
# @!method initialize(email:, first_name:, last_name:, phone_number:)
|
|
279
|
-
# @param email [String] Contact's email address
|
|
280
|
-
#
|
|
281
|
-
# @param first_name [String] Contact's first name
|
|
282
|
-
#
|
|
283
|
-
# @param last_name [String] Contact's last name
|
|
284
|
-
#
|
|
285
|
-
# @param phone_number [String] Contact's phone number (10-15 digits)
|
|
286
|
-
end
|
|
287
|
-
|
|
288
|
-
# Employee count range
|
|
289
|
-
#
|
|
290
|
-
# @see Telnyx::Models::EnterpriseCreateResponse::Data#number_of_employees
|
|
291
|
-
module NumberOfEmployees
|
|
292
|
-
extend Telnyx::Internal::Type::Enum
|
|
293
|
-
|
|
294
|
-
NUMBER_OF_EMPLOYEES_1_10 = :"1-10"
|
|
295
|
-
NUMBER_OF_EMPLOYEES_11_50 = :"11-50"
|
|
296
|
-
NUMBER_OF_EMPLOYEES_51_200 = :"51-200"
|
|
297
|
-
NUMBER_OF_EMPLOYEES_201_500 = :"201-500"
|
|
298
|
-
NUMBER_OF_EMPLOYEES_501_2000 = :"501-2000"
|
|
299
|
-
NUMBER_OF_EMPLOYEES_2001_10000 = :"2001-10000"
|
|
300
|
-
NUMBER_OF_EMPLOYEES_10001 = :"10001+"
|
|
301
|
-
|
|
302
|
-
# @!method self.values
|
|
303
|
-
# @return [Array<Symbol>]
|
|
304
|
-
end
|
|
305
|
-
|
|
306
|
-
# @see Telnyx::Models::EnterpriseCreateResponse::Data#organization_contact
|
|
307
|
-
class OrganizationContact < Telnyx::Internal::Type::BaseModel
|
|
308
|
-
# @!attribute email
|
|
309
|
-
# Contact's email address
|
|
310
|
-
#
|
|
311
|
-
# @return [String]
|
|
312
|
-
required :email, String
|
|
313
|
-
|
|
314
|
-
# @!attribute first_name
|
|
315
|
-
# Contact's first name
|
|
316
|
-
#
|
|
317
|
-
# @return [String]
|
|
318
|
-
required :first_name, String
|
|
319
|
-
|
|
320
|
-
# @!attribute job_title
|
|
321
|
-
# Contact's job title (required)
|
|
322
|
-
#
|
|
323
|
-
# @return [String]
|
|
324
|
-
required :job_title, String
|
|
325
|
-
|
|
326
|
-
# @!attribute last_name
|
|
327
|
-
# Contact's last name
|
|
328
|
-
#
|
|
329
|
-
# @return [String]
|
|
330
|
-
required :last_name, String
|
|
331
|
-
|
|
332
|
-
# @!attribute phone
|
|
333
|
-
# Contact's phone number in E.164 format
|
|
334
|
-
#
|
|
335
|
-
# @return [String]
|
|
336
|
-
required :phone, String
|
|
337
|
-
|
|
338
|
-
# @!method initialize(email:, first_name:, job_title:, last_name:, phone:)
|
|
339
|
-
# Organization contact information. Note: the response returns this object with
|
|
340
|
-
# the phone field as 'phone' (not 'phone_number').
|
|
341
|
-
#
|
|
342
|
-
# @param email [String] Contact's email address
|
|
343
|
-
#
|
|
344
|
-
# @param first_name [String] Contact's first name
|
|
345
|
-
#
|
|
346
|
-
# @param job_title [String] Contact's job title (required)
|
|
347
|
-
#
|
|
348
|
-
# @param last_name [String] Contact's last name
|
|
349
|
-
#
|
|
350
|
-
# @param phone [String] Contact's phone number in E.164 format
|
|
351
|
-
end
|
|
352
|
-
|
|
353
|
-
# Legal structure type
|
|
354
|
-
#
|
|
355
|
-
# @see Telnyx::Models::EnterpriseCreateResponse::Data#organization_legal_type
|
|
356
|
-
module OrganizationLegalType
|
|
357
|
-
extend Telnyx::Internal::Type::Enum
|
|
358
|
-
|
|
359
|
-
CORPORATION = :corporation
|
|
360
|
-
LLC = :llc
|
|
361
|
-
PARTNERSHIP = :partnership
|
|
362
|
-
NONPROFIT = :nonprofit
|
|
363
|
-
OTHER = :other
|
|
364
|
-
|
|
365
|
-
# @!method self.values
|
|
366
|
-
# @return [Array<Symbol>]
|
|
367
|
-
end
|
|
368
|
-
|
|
369
|
-
# @see Telnyx::Models::EnterpriseCreateResponse::Data#organization_physical_address
|
|
370
|
-
class OrganizationPhysicalAddress < Telnyx::Internal::Type::BaseModel
|
|
371
|
-
# @!attribute administrative_area
|
|
372
|
-
# State or province
|
|
373
|
-
#
|
|
374
|
-
# @return [String]
|
|
375
|
-
required :administrative_area, String
|
|
376
|
-
|
|
377
|
-
# @!attribute city
|
|
378
|
-
# City name
|
|
379
|
-
#
|
|
380
|
-
# @return [String]
|
|
381
|
-
required :city, String
|
|
382
|
-
|
|
383
|
-
# @!attribute country
|
|
384
|
-
# Country name (e.g., United States)
|
|
385
|
-
#
|
|
386
|
-
# @return [String]
|
|
387
|
-
required :country, String
|
|
388
|
-
|
|
389
|
-
# @!attribute postal_code
|
|
390
|
-
# ZIP or postal code
|
|
391
|
-
#
|
|
392
|
-
# @return [String]
|
|
393
|
-
required :postal_code, String
|
|
394
|
-
|
|
395
|
-
# @!attribute street_address
|
|
396
|
-
# Street address
|
|
397
|
-
#
|
|
398
|
-
# @return [String]
|
|
399
|
-
required :street_address, String
|
|
400
|
-
|
|
401
|
-
# @!attribute extended_address
|
|
402
|
-
# Additional address line (suite, apt, etc.)
|
|
403
|
-
#
|
|
404
|
-
# @return [String, nil]
|
|
405
|
-
optional :extended_address, String, nil?: true
|
|
406
|
-
|
|
407
|
-
# @!method initialize(administrative_area:, city:, country:, postal_code:, street_address:, extended_address: nil)
|
|
408
|
-
# @param administrative_area [String] State or province
|
|
409
|
-
#
|
|
410
|
-
# @param city [String] City name
|
|
411
|
-
#
|
|
412
|
-
# @param country [String] Country name (e.g., United States)
|
|
413
|
-
#
|
|
414
|
-
# @param postal_code [String] ZIP or postal code
|
|
415
|
-
#
|
|
416
|
-
# @param street_address [String] Street address
|
|
417
|
-
#
|
|
418
|
-
# @param extended_address [String, nil] Additional address line (suite, apt, etc.)
|
|
419
|
-
end
|
|
420
|
-
|
|
421
|
-
# Type of organization
|
|
422
|
-
#
|
|
423
|
-
# @see Telnyx::Models::EnterpriseCreateResponse::Data#organization_type
|
|
424
|
-
module OrganizationType
|
|
425
|
-
extend Telnyx::Internal::Type::Enum
|
|
426
|
-
|
|
427
|
-
COMMERCIAL = :commercial
|
|
428
|
-
GOVERNMENT = :government
|
|
429
|
-
NON_PROFIT = :non_profit
|
|
430
|
-
|
|
431
|
-
# @!method self.values
|
|
432
|
-
# @return [Array<Symbol>]
|
|
433
|
-
end
|
|
434
|
-
|
|
435
|
-
# Role type in Branded Calling / Number Reputation services
|
|
436
|
-
#
|
|
437
|
-
# @see Telnyx::Models::EnterpriseCreateResponse::Data#role_type
|
|
438
|
-
module RoleType
|
|
439
|
-
extend Telnyx::Internal::Type::Enum
|
|
440
|
-
|
|
441
|
-
ENTERPRISE = :enterprise
|
|
442
|
-
BPO = :bpo
|
|
443
|
-
|
|
444
|
-
# @!method self.values
|
|
445
|
-
# @return [Array<Symbol>]
|
|
446
|
-
end
|
|
447
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::EnterprisePublic]
|
|
448
14
|
end
|
|
449
15
|
end
|
|
450
16
|
end
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::Enterprises#list
|
|
6
|
+
class EnterprisePublic < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# Unique identifier of the enterprise
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute billing_address
|
|
14
|
+
#
|
|
15
|
+
# @return [Telnyx::Models::BillingAddress, nil]
|
|
16
|
+
optional :billing_address, -> { Telnyx::BillingAddress }
|
|
17
|
+
|
|
18
|
+
# @!attribute billing_contact
|
|
19
|
+
#
|
|
20
|
+
# @return [Telnyx::Models::BillingContact, nil]
|
|
21
|
+
optional :billing_contact, -> { Telnyx::BillingContact }
|
|
22
|
+
|
|
23
|
+
# @!attribute corporate_registration_number
|
|
24
|
+
# Corporate registration number
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :corporate_registration_number, String, nil?: true
|
|
28
|
+
|
|
29
|
+
# @!attribute country_code
|
|
30
|
+
# ISO 3166-1 alpha-2 country code
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :country_code, String
|
|
34
|
+
|
|
35
|
+
# @!attribute created_at
|
|
36
|
+
# When the enterprise was created
|
|
37
|
+
#
|
|
38
|
+
# @return [Time, nil]
|
|
39
|
+
optional :created_at, Time
|
|
40
|
+
|
|
41
|
+
# @!attribute customer_reference
|
|
42
|
+
# Customer reference identifier
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :customer_reference, String, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute doing_business_as
|
|
48
|
+
# DBA name
|
|
49
|
+
#
|
|
50
|
+
# @return [String, nil]
|
|
51
|
+
optional :doing_business_as, String
|
|
52
|
+
|
|
53
|
+
# @!attribute dun_bradstreet_number
|
|
54
|
+
# D-U-N-S Number
|
|
55
|
+
#
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
optional :dun_bradstreet_number, String, nil?: true
|
|
58
|
+
|
|
59
|
+
# @!attribute fein
|
|
60
|
+
# Federal Employer Identification Number
|
|
61
|
+
#
|
|
62
|
+
# @return [String, nil]
|
|
63
|
+
optional :fein, String, nil?: true
|
|
64
|
+
|
|
65
|
+
# @!attribute industry
|
|
66
|
+
# Industry classification
|
|
67
|
+
#
|
|
68
|
+
# @return [String, nil]
|
|
69
|
+
optional :industry, String, nil?: true
|
|
70
|
+
|
|
71
|
+
# @!attribute legal_name
|
|
72
|
+
# Legal name of the enterprise
|
|
73
|
+
#
|
|
74
|
+
# @return [String, nil]
|
|
75
|
+
optional :legal_name, String
|
|
76
|
+
|
|
77
|
+
# @!attribute number_of_employees
|
|
78
|
+
# Employee count range
|
|
79
|
+
#
|
|
80
|
+
# @return [Symbol, Telnyx::Models::EnterprisePublic::NumberOfEmployees, nil]
|
|
81
|
+
optional :number_of_employees, enum: -> { Telnyx::EnterprisePublic::NumberOfEmployees }, nil?: true
|
|
82
|
+
|
|
83
|
+
# @!attribute organization_contact
|
|
84
|
+
# Organization contact information. Note: the response returns this object with
|
|
85
|
+
# the phone field as 'phone' (not 'phone_number').
|
|
86
|
+
#
|
|
87
|
+
# @return [Telnyx::Models::OrganizationContact, nil]
|
|
88
|
+
optional :organization_contact, -> { Telnyx::OrganizationContact }
|
|
89
|
+
|
|
90
|
+
# @!attribute organization_legal_type
|
|
91
|
+
# Legal structure type
|
|
92
|
+
#
|
|
93
|
+
# @return [Symbol, Telnyx::Models::EnterprisePublic::OrganizationLegalType, nil]
|
|
94
|
+
optional :organization_legal_type,
|
|
95
|
+
enum: -> { Telnyx::EnterprisePublic::OrganizationLegalType },
|
|
96
|
+
nil?: true
|
|
97
|
+
|
|
98
|
+
# @!attribute organization_physical_address
|
|
99
|
+
#
|
|
100
|
+
# @return [Telnyx::Models::PhysicalAddress, nil]
|
|
101
|
+
optional :organization_physical_address, -> { Telnyx::PhysicalAddress }
|
|
102
|
+
|
|
103
|
+
# @!attribute organization_type
|
|
104
|
+
# Type of organization
|
|
105
|
+
#
|
|
106
|
+
# @return [Symbol, Telnyx::Models::EnterprisePublic::OrganizationType, nil]
|
|
107
|
+
optional :organization_type, enum: -> { Telnyx::EnterprisePublic::OrganizationType }
|
|
108
|
+
|
|
109
|
+
# @!attribute primary_business_domain_sic_code
|
|
110
|
+
# SIC Code
|
|
111
|
+
#
|
|
112
|
+
# @return [String, nil]
|
|
113
|
+
optional :primary_business_domain_sic_code, String, nil?: true
|
|
114
|
+
|
|
115
|
+
# @!attribute professional_license_number
|
|
116
|
+
# Professional license number
|
|
117
|
+
#
|
|
118
|
+
# @return [String, nil]
|
|
119
|
+
optional :professional_license_number, String, nil?: true
|
|
120
|
+
|
|
121
|
+
# @!attribute role_type
|
|
122
|
+
# Role type in Branded Calling / Number Reputation services
|
|
123
|
+
#
|
|
124
|
+
# @return [Symbol, Telnyx::Models::EnterprisePublic::RoleType, nil]
|
|
125
|
+
optional :role_type, enum: -> { Telnyx::EnterprisePublic::RoleType }
|
|
126
|
+
|
|
127
|
+
# @!attribute updated_at
|
|
128
|
+
# When the enterprise was last updated
|
|
129
|
+
#
|
|
130
|
+
# @return [Time, nil]
|
|
131
|
+
optional :updated_at, Time
|
|
132
|
+
|
|
133
|
+
# @!attribute website
|
|
134
|
+
# Company website URL
|
|
135
|
+
#
|
|
136
|
+
# @return [String, nil]
|
|
137
|
+
optional :website, String, nil?: true
|
|
138
|
+
|
|
139
|
+
# @!method initialize(id: nil, billing_address: nil, billing_contact: nil, corporate_registration_number: nil, country_code: nil, created_at: nil, customer_reference: nil, doing_business_as: nil, dun_bradstreet_number: nil, fein: nil, industry: nil, legal_name: nil, number_of_employees: nil, organization_contact: nil, organization_legal_type: nil, organization_physical_address: nil, organization_type: nil, primary_business_domain_sic_code: nil, professional_license_number: nil, role_type: nil, updated_at: nil, website: nil)
|
|
140
|
+
# Some parameter documentations has been truncated, see
|
|
141
|
+
# {Telnyx::Models::EnterprisePublic} for more details.
|
|
142
|
+
#
|
|
143
|
+
# @param id [String] Unique identifier of the enterprise
|
|
144
|
+
#
|
|
145
|
+
# @param billing_address [Telnyx::Models::BillingAddress]
|
|
146
|
+
#
|
|
147
|
+
# @param billing_contact [Telnyx::Models::BillingContact]
|
|
148
|
+
#
|
|
149
|
+
# @param corporate_registration_number [String, nil] Corporate registration number
|
|
150
|
+
#
|
|
151
|
+
# @param country_code [String] ISO 3166-1 alpha-2 country code
|
|
152
|
+
#
|
|
153
|
+
# @param created_at [Time] When the enterprise was created
|
|
154
|
+
#
|
|
155
|
+
# @param customer_reference [String, nil] Customer reference identifier
|
|
156
|
+
#
|
|
157
|
+
# @param doing_business_as [String] DBA name
|
|
158
|
+
#
|
|
159
|
+
# @param dun_bradstreet_number [String, nil] D-U-N-S Number
|
|
160
|
+
#
|
|
161
|
+
# @param fein [String, nil] Federal Employer Identification Number
|
|
162
|
+
#
|
|
163
|
+
# @param industry [String, nil] Industry classification
|
|
164
|
+
#
|
|
165
|
+
# @param legal_name [String] Legal name of the enterprise
|
|
166
|
+
#
|
|
167
|
+
# @param number_of_employees [Symbol, Telnyx::Models::EnterprisePublic::NumberOfEmployees, nil] Employee count range
|
|
168
|
+
#
|
|
169
|
+
# @param organization_contact [Telnyx::Models::OrganizationContact] Organization contact information. Note: the response returns this object with th
|
|
170
|
+
#
|
|
171
|
+
# @param organization_legal_type [Symbol, Telnyx::Models::EnterprisePublic::OrganizationLegalType, nil] Legal structure type
|
|
172
|
+
#
|
|
173
|
+
# @param organization_physical_address [Telnyx::Models::PhysicalAddress]
|
|
174
|
+
#
|
|
175
|
+
# @param organization_type [Symbol, Telnyx::Models::EnterprisePublic::OrganizationType] Type of organization
|
|
176
|
+
#
|
|
177
|
+
# @param primary_business_domain_sic_code [String, nil] SIC Code
|
|
178
|
+
#
|
|
179
|
+
# @param professional_license_number [String, nil] Professional license number
|
|
180
|
+
#
|
|
181
|
+
# @param role_type [Symbol, Telnyx::Models::EnterprisePublic::RoleType] Role type in Branded Calling / Number Reputation services
|
|
182
|
+
#
|
|
183
|
+
# @param updated_at [Time] When the enterprise was last updated
|
|
184
|
+
#
|
|
185
|
+
# @param website [String, nil] Company website URL
|
|
186
|
+
|
|
187
|
+
# Employee count range
|
|
188
|
+
#
|
|
189
|
+
# @see Telnyx::Models::EnterprisePublic#number_of_employees
|
|
190
|
+
module NumberOfEmployees
|
|
191
|
+
extend Telnyx::Internal::Type::Enum
|
|
192
|
+
|
|
193
|
+
NUMBER_OF_EMPLOYEES_1_10 = :"1-10"
|
|
194
|
+
NUMBER_OF_EMPLOYEES_11_50 = :"11-50"
|
|
195
|
+
NUMBER_OF_EMPLOYEES_51_200 = :"51-200"
|
|
196
|
+
NUMBER_OF_EMPLOYEES_201_500 = :"201-500"
|
|
197
|
+
NUMBER_OF_EMPLOYEES_501_2000 = :"501-2000"
|
|
198
|
+
NUMBER_OF_EMPLOYEES_2001_10000 = :"2001-10000"
|
|
199
|
+
NUMBER_OF_EMPLOYEES_10001 = :"10001+"
|
|
200
|
+
|
|
201
|
+
# @!method self.values
|
|
202
|
+
# @return [Array<Symbol>]
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Legal structure type
|
|
206
|
+
#
|
|
207
|
+
# @see Telnyx::Models::EnterprisePublic#organization_legal_type
|
|
208
|
+
module OrganizationLegalType
|
|
209
|
+
extend Telnyx::Internal::Type::Enum
|
|
210
|
+
|
|
211
|
+
CORPORATION = :corporation
|
|
212
|
+
LLC = :llc
|
|
213
|
+
PARTNERSHIP = :partnership
|
|
214
|
+
NONPROFIT = :nonprofit
|
|
215
|
+
OTHER = :other
|
|
216
|
+
|
|
217
|
+
# @!method self.values
|
|
218
|
+
# @return [Array<Symbol>]
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Type of organization
|
|
222
|
+
#
|
|
223
|
+
# @see Telnyx::Models::EnterprisePublic#organization_type
|
|
224
|
+
module OrganizationType
|
|
225
|
+
extend Telnyx::Internal::Type::Enum
|
|
226
|
+
|
|
227
|
+
COMMERCIAL = :commercial
|
|
228
|
+
GOVERNMENT = :government
|
|
229
|
+
NON_PROFIT = :non_profit
|
|
230
|
+
|
|
231
|
+
# @!method self.values
|
|
232
|
+
# @return [Array<Symbol>]
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Role type in Branded Calling / Number Reputation services
|
|
236
|
+
#
|
|
237
|
+
# @see Telnyx::Models::EnterprisePublic#role_type
|
|
238
|
+
module RoleType
|
|
239
|
+
extend Telnyx::Internal::Type::Enum
|
|
240
|
+
|
|
241
|
+
ENTERPRISE = :enterprise
|
|
242
|
+
BPO = :bpo
|
|
243
|
+
|
|
244
|
+
# @!method self.values
|
|
245
|
+
# @return [Array<Symbol>]
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
end
|