telnyx 5.65.0 → 5.66.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 +22 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +13 -0
- data/lib/telnyx/models/enterprise_create_params.rb +411 -0
- data/lib/telnyx/models/enterprise_create_response.rb +450 -0
- data/lib/telnyx/models/enterprise_delete_params.rb +20 -0
- data/lib/telnyx/models/enterprise_list_params.rb +38 -0
- data/lib/telnyx/models/enterprise_list_response.rb +439 -0
- data/lib/telnyx/models/enterprise_retrieve_params.rb +20 -0
- data/lib/telnyx/models/enterprise_retrieve_response.rb +452 -0
- data/lib/telnyx/models/enterprise_update_params.rb +364 -0
- data/lib/telnyx/models/enterprise_update_response.rb +450 -0
- data/lib/telnyx/models/enterprises/reputation/number_create_params.rb +33 -0
- data/lib/telnyx/models/enterprises/reputation/number_create_response.rb +106 -0
- data/lib/telnyx/models/enterprises/reputation/number_delete_params.rb +30 -0
- data/lib/telnyx/models/enterprises/reputation/number_list_params.rb +49 -0
- data/lib/telnyx/models/enterprises/reputation/number_list_response.rb +154 -0
- data/lib/telnyx/models/enterprises/reputation/number_retrieve_params.rb +45 -0
- data/lib/telnyx/models/enterprises/reputation/number_retrieve_response.rb +165 -0
- data/lib/telnyx/models/enterprises/reputation_create_params.rb +58 -0
- data/lib/telnyx/models/enterprises/reputation_create_response.rb +111 -0
- data/lib/telnyx/models/enterprises/reputation_delete_all_params.rb +22 -0
- data/lib/telnyx/models/enterprises/reputation_list_params.rb +22 -0
- data/lib/telnyx/models/enterprises/reputation_list_response.rb +111 -0
- data/lib/telnyx/models/enterprises/reputation_update_frequency_params.rb +47 -0
- data/lib/telnyx/models/enterprises/reputation_update_frequency_response.rb +112 -0
- data/lib/telnyx/models/reputation/number_delete_params.rb +22 -0
- data/lib/telnyx/models/reputation/number_list_params.rb +40 -0
- data/lib/telnyx/models/reputation/number_list_response.rb +151 -0
- data/lib/telnyx/models/reputation/number_retrieve_params.rb +35 -0
- data/lib/telnyx/models/reputation/number_retrieve_response.rb +163 -0
- data/lib/telnyx/models/terms_of_service/number_reputation_agree_params.rb +16 -0
- data/lib/telnyx/models.rb +16 -0
- data/lib/telnyx/resources/enterprises/reputation/numbers.rb +174 -0
- data/lib/telnyx/resources/enterprises/reputation.rb +166 -0
- data/lib/telnyx/resources/enterprises.rb +217 -0
- data/lib/telnyx/resources/reputation/numbers.rb +102 -0
- data/lib/telnyx/resources/reputation.rb +20 -0
- data/lib/telnyx/resources/terms_of_service/number_reputation.rb +39 -0
- data/lib/telnyx/resources/terms_of_service.rb +19 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +36 -0
- data/rbi/telnyx/client.rbi +10 -0
- data/rbi/telnyx/models/enterprise_create_params.rbi +719 -0
- data/rbi/telnyx/models/enterprise_create_response.rbi +841 -0
- data/rbi/telnyx/models/enterprise_delete_params.rbi +35 -0
- data/rbi/telnyx/models/enterprise_list_params.rbi +68 -0
- data/rbi/telnyx/models/enterprise_list_response.rbi +794 -0
- data/rbi/telnyx/models/enterprise_retrieve_params.rbi +35 -0
- data/rbi/telnyx/models/enterprise_retrieve_response.rbi +843 -0
- data/rbi/telnyx/models/enterprise_update_params.rbi +651 -0
- data/rbi/telnyx/models/enterprise_update_response.rbi +841 -0
- data/rbi/telnyx/models/enterprises/reputation/number_create_params.rbi +56 -0
- data/rbi/telnyx/models/enterprises/reputation/number_create_response.rbi +238 -0
- data/rbi/telnyx/models/enterprises/reputation/number_delete_params.rbi +50 -0
- data/rbi/telnyx/models/enterprises/reputation/number_list_params.rbi +81 -0
- data/rbi/telnyx/models/enterprises/reputation/number_list_response.rbi +288 -0
- data/rbi/telnyx/models/enterprises/reputation/number_retrieve_params.rbi +67 -0
- data/rbi/telnyx/models/enterprises/reputation/number_retrieve_response.rbi +335 -0
- data/rbi/telnyx/models/enterprises/reputation_create_params.rbi +135 -0
- data/rbi/telnyx/models/enterprises/reputation_create_response.rbi +277 -0
- data/rbi/telnyx/models/enterprises/reputation_delete_all_params.rbi +40 -0
- data/rbi/telnyx/models/enterprises/reputation_list_params.rbi +40 -0
- data/rbi/telnyx/models/enterprises/reputation_list_response.rbi +273 -0
- data/rbi/telnyx/models/enterprises/reputation_update_frequency_params.rbi +115 -0
- data/rbi/telnyx/models/enterprises/reputation_update_frequency_response.rbi +278 -0
- data/rbi/telnyx/models/reputation/number_delete_params.rbi +40 -0
- data/rbi/telnyx/models/reputation/number_list_params.rbi +73 -0
- data/rbi/telnyx/models/reputation/number_list_response.rbi +286 -0
- data/rbi/telnyx/models/reputation/number_retrieve_params.rbi +59 -0
- data/rbi/telnyx/models/reputation/number_retrieve_response.rbi +328 -0
- data/rbi/telnyx/models/terms_of_service/number_reputation_agree_params.rbi +32 -0
- data/rbi/telnyx/models.rbi +16 -0
- data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +142 -0
- data/rbi/telnyx/resources/enterprises/reputation.rbi +140 -0
- data/rbi/telnyx/resources/enterprises.rbi +226 -0
- data/rbi/telnyx/resources/reputation/numbers.rbi +80 -0
- data/rbi/telnyx/resources/reputation.rbi +17 -0
- data/rbi/telnyx/resources/terms_of_service/number_reputation.rbi +24 -0
- data/rbi/telnyx/resources/terms_of_service.rbi +16 -0
- data/sig/telnyx/client.rbs +6 -0
- data/sig/telnyx/models/enterprise_create_params.rbs +344 -0
- data/sig/telnyx/models/enterprise_create_response.rbs +392 -0
- data/sig/telnyx/models/enterprise_delete_params.rbs +23 -0
- data/sig/telnyx/models/enterprise_list_params.rbs +38 -0
- data/sig/telnyx/models/enterprise_list_response.rbs +375 -0
- data/sig/telnyx/models/enterprise_retrieve_params.rbs +23 -0
- data/sig/telnyx/models/enterprise_retrieve_response.rbs +392 -0
- data/sig/telnyx/models/enterprise_update_params.rbs +341 -0
- data/sig/telnyx/models/enterprise_update_response.rbs +392 -0
- data/sig/telnyx/models/enterprises/reputation/number_create_params.rbs +32 -0
- data/sig/telnyx/models/enterprises/reputation/number_create_response.rbs +124 -0
- data/sig/telnyx/models/enterprises/reputation/number_delete_params.rbs +32 -0
- data/sig/telnyx/models/enterprises/reputation/number_list_params.rbs +51 -0
- data/sig/telnyx/models/enterprises/reputation/number_list_response.rbs +132 -0
- data/sig/telnyx/models/enterprises/reputation/number_retrieve_params.rbs +38 -0
- data/sig/telnyx/models/enterprises/reputation/number_retrieve_response.rbs +153 -0
- data/sig/telnyx/models/enterprises/reputation_create_params.rbs +58 -0
- data/sig/telnyx/models/enterprises/reputation_create_response.rbs +114 -0
- data/sig/telnyx/models/enterprises/reputation_delete_all_params.rbs +25 -0
- data/sig/telnyx/models/enterprises/reputation_list_params.rbs +25 -0
- data/sig/telnyx/models/enterprises/reputation_list_response.rbs +114 -0
- data/sig/telnyx/models/enterprises/reputation_update_frequency_params.rbs +49 -0
- data/sig/telnyx/models/enterprises/reputation_update_frequency_response.rbs +116 -0
- data/sig/telnyx/models/reputation/number_delete_params.rbs +25 -0
- data/sig/telnyx/models/reputation/number_list_params.rbs +40 -0
- data/sig/telnyx/models/reputation/number_list_response.rbs +130 -0
- data/sig/telnyx/models/reputation/number_retrieve_params.rbs +32 -0
- data/sig/telnyx/models/reputation/number_retrieve_response.rbs +149 -0
- data/sig/telnyx/models/terms_of_service/number_reputation_agree_params.rbs +17 -0
- data/sig/telnyx/models.rbs +16 -0
- data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +38 -0
- data/sig/telnyx/resources/enterprises/reputation.rbs +34 -0
- data/sig/telnyx/resources/enterprises.rbs +70 -0
- data/sig/telnyx/resources/reputation/numbers.rbs +27 -0
- data/sig/telnyx/resources/reputation.rbs +9 -0
- data/sig/telnyx/resources/terms_of_service/number_reputation.rbs +11 -0
- data/sig/telnyx/resources/terms_of_service.rbs +9 -0
- metadata +110 -2
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class EnterpriseCreateParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::EnterpriseCreateParams, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(Telnyx::EnterpriseCreateParams::BillingAddress) }
|
|
15
|
+
attr_reader :billing_address
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
billing_address:
|
|
20
|
+
Telnyx::EnterpriseCreateParams::BillingAddress::OrHash
|
|
21
|
+
).void
|
|
22
|
+
end
|
|
23
|
+
attr_writer :billing_address
|
|
24
|
+
|
|
25
|
+
sig { returns(Telnyx::EnterpriseCreateParams::BillingContact) }
|
|
26
|
+
attr_reader :billing_contact
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
params(
|
|
30
|
+
billing_contact:
|
|
31
|
+
Telnyx::EnterpriseCreateParams::BillingContact::OrHash
|
|
32
|
+
).void
|
|
33
|
+
end
|
|
34
|
+
attr_writer :billing_contact
|
|
35
|
+
|
|
36
|
+
# Country code. Currently only 'US' is accepted.
|
|
37
|
+
sig { returns(String) }
|
|
38
|
+
attr_accessor :country_code
|
|
39
|
+
|
|
40
|
+
# Primary business name / DBA name
|
|
41
|
+
sig { returns(String) }
|
|
42
|
+
attr_accessor :doing_business_as
|
|
43
|
+
|
|
44
|
+
# Federal Employer Identification Number. Format: XX-XXXXXXX or 9-digit number
|
|
45
|
+
# (minimum 9 digits).
|
|
46
|
+
sig { returns(String) }
|
|
47
|
+
attr_accessor :fein
|
|
48
|
+
|
|
49
|
+
# Industry classification. Case-insensitive. Accepted values: accounting, finance,
|
|
50
|
+
# billing, collections, business, charity, nonprofit, communications, telecom,
|
|
51
|
+
# customer service, support, delivery, shipping, logistics, education, financial,
|
|
52
|
+
# banking, government, public, healthcare, health, pharmacy, medical, insurance,
|
|
53
|
+
# legal, law, notifications, scheduling, real estate, property, retail, ecommerce,
|
|
54
|
+
# sales, marketing, software, technology, tech, media, surveys, market research,
|
|
55
|
+
# travel, hospitality, hotel
|
|
56
|
+
sig { returns(String) }
|
|
57
|
+
attr_accessor :industry
|
|
58
|
+
|
|
59
|
+
# Legal name of the enterprise
|
|
60
|
+
sig { returns(String) }
|
|
61
|
+
attr_accessor :legal_name
|
|
62
|
+
|
|
63
|
+
# Employee count range
|
|
64
|
+
sig do
|
|
65
|
+
returns(Telnyx::EnterpriseCreateParams::NumberOfEmployees::OrSymbol)
|
|
66
|
+
end
|
|
67
|
+
attr_accessor :number_of_employees
|
|
68
|
+
|
|
69
|
+
# Organization contact information. Note: the response returns this object with
|
|
70
|
+
# the phone field as 'phone' (not 'phone_number').
|
|
71
|
+
sig { returns(Telnyx::EnterpriseCreateParams::OrganizationContact) }
|
|
72
|
+
attr_reader :organization_contact
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
params(
|
|
76
|
+
organization_contact:
|
|
77
|
+
Telnyx::EnterpriseCreateParams::OrganizationContact::OrHash
|
|
78
|
+
).void
|
|
79
|
+
end
|
|
80
|
+
attr_writer :organization_contact
|
|
81
|
+
|
|
82
|
+
# Legal structure type
|
|
83
|
+
sig do
|
|
84
|
+
returns(Telnyx::EnterpriseCreateParams::OrganizationLegalType::OrSymbol)
|
|
85
|
+
end
|
|
86
|
+
attr_accessor :organization_legal_type
|
|
87
|
+
|
|
88
|
+
sig do
|
|
89
|
+
returns(Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress)
|
|
90
|
+
end
|
|
91
|
+
attr_reader :organization_physical_address
|
|
92
|
+
|
|
93
|
+
sig do
|
|
94
|
+
params(
|
|
95
|
+
organization_physical_address:
|
|
96
|
+
Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress::OrHash
|
|
97
|
+
).void
|
|
98
|
+
end
|
|
99
|
+
attr_writer :organization_physical_address
|
|
100
|
+
|
|
101
|
+
# Type of organization
|
|
102
|
+
sig do
|
|
103
|
+
returns(Telnyx::EnterpriseCreateParams::OrganizationType::OrSymbol)
|
|
104
|
+
end
|
|
105
|
+
attr_accessor :organization_type
|
|
106
|
+
|
|
107
|
+
# Enterprise website URL. Accepts any string — no URL format validation enforced.
|
|
108
|
+
sig { returns(String) }
|
|
109
|
+
attr_accessor :website
|
|
110
|
+
|
|
111
|
+
# Corporate registration number (optional)
|
|
112
|
+
sig { returns(T.nilable(String)) }
|
|
113
|
+
attr_reader :corporate_registration_number
|
|
114
|
+
|
|
115
|
+
sig { params(corporate_registration_number: String).void }
|
|
116
|
+
attr_writer :corporate_registration_number
|
|
117
|
+
|
|
118
|
+
# Optional customer reference identifier for your own tracking
|
|
119
|
+
sig { returns(T.nilable(String)) }
|
|
120
|
+
attr_reader :customer_reference
|
|
121
|
+
|
|
122
|
+
sig { params(customer_reference: String).void }
|
|
123
|
+
attr_writer :customer_reference
|
|
124
|
+
|
|
125
|
+
# D-U-N-S Number (optional)
|
|
126
|
+
sig { returns(T.nilable(String)) }
|
|
127
|
+
attr_reader :dun_bradstreet_number
|
|
128
|
+
|
|
129
|
+
sig { params(dun_bradstreet_number: String).void }
|
|
130
|
+
attr_writer :dun_bradstreet_number
|
|
131
|
+
|
|
132
|
+
# SIC Code (optional)
|
|
133
|
+
sig { returns(T.nilable(String)) }
|
|
134
|
+
attr_reader :primary_business_domain_sic_code
|
|
135
|
+
|
|
136
|
+
sig { params(primary_business_domain_sic_code: String).void }
|
|
137
|
+
attr_writer :primary_business_domain_sic_code
|
|
138
|
+
|
|
139
|
+
# Professional license number (optional)
|
|
140
|
+
sig { returns(T.nilable(String)) }
|
|
141
|
+
attr_reader :professional_license_number
|
|
142
|
+
|
|
143
|
+
sig { params(professional_license_number: String).void }
|
|
144
|
+
attr_writer :professional_license_number
|
|
145
|
+
|
|
146
|
+
# Role type in Branded Calling / Number Reputation services
|
|
147
|
+
sig do
|
|
148
|
+
returns(T.nilable(Telnyx::EnterpriseCreateParams::RoleType::OrSymbol))
|
|
149
|
+
end
|
|
150
|
+
attr_reader :role_type
|
|
151
|
+
|
|
152
|
+
sig do
|
|
153
|
+
params(
|
|
154
|
+
role_type: Telnyx::EnterpriseCreateParams::RoleType::OrSymbol
|
|
155
|
+
).void
|
|
156
|
+
end
|
|
157
|
+
attr_writer :role_type
|
|
158
|
+
|
|
159
|
+
sig do
|
|
160
|
+
params(
|
|
161
|
+
billing_address:
|
|
162
|
+
Telnyx::EnterpriseCreateParams::BillingAddress::OrHash,
|
|
163
|
+
billing_contact:
|
|
164
|
+
Telnyx::EnterpriseCreateParams::BillingContact::OrHash,
|
|
165
|
+
country_code: String,
|
|
166
|
+
doing_business_as: String,
|
|
167
|
+
fein: String,
|
|
168
|
+
industry: String,
|
|
169
|
+
legal_name: String,
|
|
170
|
+
number_of_employees:
|
|
171
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::OrSymbol,
|
|
172
|
+
organization_contact:
|
|
173
|
+
Telnyx::EnterpriseCreateParams::OrganizationContact::OrHash,
|
|
174
|
+
organization_legal_type:
|
|
175
|
+
Telnyx::EnterpriseCreateParams::OrganizationLegalType::OrSymbol,
|
|
176
|
+
organization_physical_address:
|
|
177
|
+
Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress::OrHash,
|
|
178
|
+
organization_type:
|
|
179
|
+
Telnyx::EnterpriseCreateParams::OrganizationType::OrSymbol,
|
|
180
|
+
website: String,
|
|
181
|
+
corporate_registration_number: String,
|
|
182
|
+
customer_reference: String,
|
|
183
|
+
dun_bradstreet_number: String,
|
|
184
|
+
primary_business_domain_sic_code: String,
|
|
185
|
+
professional_license_number: String,
|
|
186
|
+
role_type: Telnyx::EnterpriseCreateParams::RoleType::OrSymbol,
|
|
187
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
188
|
+
).returns(T.attached_class)
|
|
189
|
+
end
|
|
190
|
+
def self.new(
|
|
191
|
+
billing_address:,
|
|
192
|
+
billing_contact:,
|
|
193
|
+
# Country code. Currently only 'US' is accepted.
|
|
194
|
+
country_code:,
|
|
195
|
+
# Primary business name / DBA name
|
|
196
|
+
doing_business_as:,
|
|
197
|
+
# Federal Employer Identification Number. Format: XX-XXXXXXX or 9-digit number
|
|
198
|
+
# (minimum 9 digits).
|
|
199
|
+
fein:,
|
|
200
|
+
# Industry classification. Case-insensitive. Accepted values: accounting, finance,
|
|
201
|
+
# billing, collections, business, charity, nonprofit, communications, telecom,
|
|
202
|
+
# customer service, support, delivery, shipping, logistics, education, financial,
|
|
203
|
+
# banking, government, public, healthcare, health, pharmacy, medical, insurance,
|
|
204
|
+
# legal, law, notifications, scheduling, real estate, property, retail, ecommerce,
|
|
205
|
+
# sales, marketing, software, technology, tech, media, surveys, market research,
|
|
206
|
+
# travel, hospitality, hotel
|
|
207
|
+
industry:,
|
|
208
|
+
# Legal name of the enterprise
|
|
209
|
+
legal_name:,
|
|
210
|
+
# Employee count range
|
|
211
|
+
number_of_employees:,
|
|
212
|
+
# Organization contact information. Note: the response returns this object with
|
|
213
|
+
# the phone field as 'phone' (not 'phone_number').
|
|
214
|
+
organization_contact:,
|
|
215
|
+
# Legal structure type
|
|
216
|
+
organization_legal_type:,
|
|
217
|
+
organization_physical_address:,
|
|
218
|
+
# Type of organization
|
|
219
|
+
organization_type:,
|
|
220
|
+
# Enterprise website URL. Accepts any string — no URL format validation enforced.
|
|
221
|
+
website:,
|
|
222
|
+
# Corporate registration number (optional)
|
|
223
|
+
corporate_registration_number: nil,
|
|
224
|
+
# Optional customer reference identifier for your own tracking
|
|
225
|
+
customer_reference: nil,
|
|
226
|
+
# D-U-N-S Number (optional)
|
|
227
|
+
dun_bradstreet_number: nil,
|
|
228
|
+
# SIC Code (optional)
|
|
229
|
+
primary_business_domain_sic_code: nil,
|
|
230
|
+
# Professional license number (optional)
|
|
231
|
+
professional_license_number: nil,
|
|
232
|
+
# Role type in Branded Calling / Number Reputation services
|
|
233
|
+
role_type: nil,
|
|
234
|
+
request_options: {}
|
|
235
|
+
)
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
sig do
|
|
239
|
+
override.returns(
|
|
240
|
+
{
|
|
241
|
+
billing_address: Telnyx::EnterpriseCreateParams::BillingAddress,
|
|
242
|
+
billing_contact: Telnyx::EnterpriseCreateParams::BillingContact,
|
|
243
|
+
country_code: String,
|
|
244
|
+
doing_business_as: String,
|
|
245
|
+
fein: String,
|
|
246
|
+
industry: String,
|
|
247
|
+
legal_name: String,
|
|
248
|
+
number_of_employees:
|
|
249
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::OrSymbol,
|
|
250
|
+
organization_contact:
|
|
251
|
+
Telnyx::EnterpriseCreateParams::OrganizationContact,
|
|
252
|
+
organization_legal_type:
|
|
253
|
+
Telnyx::EnterpriseCreateParams::OrganizationLegalType::OrSymbol,
|
|
254
|
+
organization_physical_address:
|
|
255
|
+
Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress,
|
|
256
|
+
organization_type:
|
|
257
|
+
Telnyx::EnterpriseCreateParams::OrganizationType::OrSymbol,
|
|
258
|
+
website: String,
|
|
259
|
+
corporate_registration_number: String,
|
|
260
|
+
customer_reference: String,
|
|
261
|
+
dun_bradstreet_number: String,
|
|
262
|
+
primary_business_domain_sic_code: String,
|
|
263
|
+
professional_license_number: String,
|
|
264
|
+
role_type: Telnyx::EnterpriseCreateParams::RoleType::OrSymbol,
|
|
265
|
+
request_options: Telnyx::RequestOptions
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
end
|
|
269
|
+
def to_hash
|
|
270
|
+
end
|
|
271
|
+
|
|
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
|
+
# Employee count range
|
|
407
|
+
module NumberOfEmployees
|
|
408
|
+
extend Telnyx::Internal::Type::Enum
|
|
409
|
+
|
|
410
|
+
TaggedSymbol =
|
|
411
|
+
T.type_alias do
|
|
412
|
+
T.all(Symbol, Telnyx::EnterpriseCreateParams::NumberOfEmployees)
|
|
413
|
+
end
|
|
414
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
415
|
+
|
|
416
|
+
NUMBER_OF_EMPLOYEES_1_10 =
|
|
417
|
+
T.let(
|
|
418
|
+
:"1-10",
|
|
419
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
420
|
+
)
|
|
421
|
+
NUMBER_OF_EMPLOYEES_11_50 =
|
|
422
|
+
T.let(
|
|
423
|
+
:"11-50",
|
|
424
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
425
|
+
)
|
|
426
|
+
NUMBER_OF_EMPLOYEES_51_200 =
|
|
427
|
+
T.let(
|
|
428
|
+
:"51-200",
|
|
429
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
430
|
+
)
|
|
431
|
+
NUMBER_OF_EMPLOYEES_201_500 =
|
|
432
|
+
T.let(
|
|
433
|
+
:"201-500",
|
|
434
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
435
|
+
)
|
|
436
|
+
NUMBER_OF_EMPLOYEES_501_2000 =
|
|
437
|
+
T.let(
|
|
438
|
+
:"501-2000",
|
|
439
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
440
|
+
)
|
|
441
|
+
NUMBER_OF_EMPLOYEES_2001_10000 =
|
|
442
|
+
T.let(
|
|
443
|
+
:"2001-10000",
|
|
444
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
445
|
+
)
|
|
446
|
+
NUMBER_OF_EMPLOYEES_10001 =
|
|
447
|
+
T.let(
|
|
448
|
+
:"10001+",
|
|
449
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
450
|
+
)
|
|
451
|
+
|
|
452
|
+
sig do
|
|
453
|
+
override.returns(
|
|
454
|
+
T::Array[
|
|
455
|
+
Telnyx::EnterpriseCreateParams::NumberOfEmployees::TaggedSymbol
|
|
456
|
+
]
|
|
457
|
+
)
|
|
458
|
+
end
|
|
459
|
+
def self.values
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
|
|
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
|
+
# Legal structure type
|
|
533
|
+
module OrganizationLegalType
|
|
534
|
+
extend Telnyx::Internal::Type::Enum
|
|
535
|
+
|
|
536
|
+
TaggedSymbol =
|
|
537
|
+
T.type_alias do
|
|
538
|
+
T.all(Symbol, Telnyx::EnterpriseCreateParams::OrganizationLegalType)
|
|
539
|
+
end
|
|
540
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
541
|
+
|
|
542
|
+
CORPORATION =
|
|
543
|
+
T.let(
|
|
544
|
+
:corporation,
|
|
545
|
+
Telnyx::EnterpriseCreateParams::OrganizationLegalType::TaggedSymbol
|
|
546
|
+
)
|
|
547
|
+
LLC =
|
|
548
|
+
T.let(
|
|
549
|
+
:llc,
|
|
550
|
+
Telnyx::EnterpriseCreateParams::OrganizationLegalType::TaggedSymbol
|
|
551
|
+
)
|
|
552
|
+
PARTNERSHIP =
|
|
553
|
+
T.let(
|
|
554
|
+
:partnership,
|
|
555
|
+
Telnyx::EnterpriseCreateParams::OrganizationLegalType::TaggedSymbol
|
|
556
|
+
)
|
|
557
|
+
NONPROFIT =
|
|
558
|
+
T.let(
|
|
559
|
+
:nonprofit,
|
|
560
|
+
Telnyx::EnterpriseCreateParams::OrganizationLegalType::TaggedSymbol
|
|
561
|
+
)
|
|
562
|
+
OTHER =
|
|
563
|
+
T.let(
|
|
564
|
+
:other,
|
|
565
|
+
Telnyx::EnterpriseCreateParams::OrganizationLegalType::TaggedSymbol
|
|
566
|
+
)
|
|
567
|
+
|
|
568
|
+
sig do
|
|
569
|
+
override.returns(
|
|
570
|
+
T::Array[
|
|
571
|
+
Telnyx::EnterpriseCreateParams::OrganizationLegalType::TaggedSymbol
|
|
572
|
+
]
|
|
573
|
+
)
|
|
574
|
+
end
|
|
575
|
+
def self.values
|
|
576
|
+
end
|
|
577
|
+
end
|
|
578
|
+
|
|
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
|
+
# Type of organization
|
|
655
|
+
module OrganizationType
|
|
656
|
+
extend Telnyx::Internal::Type::Enum
|
|
657
|
+
|
|
658
|
+
TaggedSymbol =
|
|
659
|
+
T.type_alias do
|
|
660
|
+
T.all(Symbol, Telnyx::EnterpriseCreateParams::OrganizationType)
|
|
661
|
+
end
|
|
662
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
663
|
+
|
|
664
|
+
COMMERCIAL =
|
|
665
|
+
T.let(
|
|
666
|
+
:commercial,
|
|
667
|
+
Telnyx::EnterpriseCreateParams::OrganizationType::TaggedSymbol
|
|
668
|
+
)
|
|
669
|
+
GOVERNMENT =
|
|
670
|
+
T.let(
|
|
671
|
+
:government,
|
|
672
|
+
Telnyx::EnterpriseCreateParams::OrganizationType::TaggedSymbol
|
|
673
|
+
)
|
|
674
|
+
NON_PROFIT =
|
|
675
|
+
T.let(
|
|
676
|
+
:non_profit,
|
|
677
|
+
Telnyx::EnterpriseCreateParams::OrganizationType::TaggedSymbol
|
|
678
|
+
)
|
|
679
|
+
|
|
680
|
+
sig do
|
|
681
|
+
override.returns(
|
|
682
|
+
T::Array[
|
|
683
|
+
Telnyx::EnterpriseCreateParams::OrganizationType::TaggedSymbol
|
|
684
|
+
]
|
|
685
|
+
)
|
|
686
|
+
end
|
|
687
|
+
def self.values
|
|
688
|
+
end
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
# Role type in Branded Calling / Number Reputation services
|
|
692
|
+
module RoleType
|
|
693
|
+
extend Telnyx::Internal::Type::Enum
|
|
694
|
+
|
|
695
|
+
TaggedSymbol =
|
|
696
|
+
T.type_alias do
|
|
697
|
+
T.all(Symbol, Telnyx::EnterpriseCreateParams::RoleType)
|
|
698
|
+
end
|
|
699
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
700
|
+
|
|
701
|
+
ENTERPRISE =
|
|
702
|
+
T.let(
|
|
703
|
+
:enterprise,
|
|
704
|
+
Telnyx::EnterpriseCreateParams::RoleType::TaggedSymbol
|
|
705
|
+
)
|
|
706
|
+
BPO =
|
|
707
|
+
T.let(:bpo, Telnyx::EnterpriseCreateParams::RoleType::TaggedSymbol)
|
|
708
|
+
|
|
709
|
+
sig do
|
|
710
|
+
override.returns(
|
|
711
|
+
T::Array[Telnyx::EnterpriseCreateParams::RoleType::TaggedSymbol]
|
|
712
|
+
)
|
|
713
|
+
end
|
|
714
|
+
def self.values
|
|
715
|
+
end
|
|
716
|
+
end
|
|
717
|
+
end
|
|
718
|
+
end
|
|
719
|
+
end
|