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