telnyx 5.65.0 → 5.66.0
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 +14 -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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2fde5336f30bf3885d6dae115c6680b44a9773ffc7cf430a997ac9866e0b9f4b
|
|
4
|
+
data.tar.gz: 911beeb12b8b575b114f4d23d0a31f294c3223fb3f8ea1ab7fda6ee4c4a7919d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3b256e7c48c13ddac1d8c8f46daf818c2c283701fb0a48487d77fc9c362df29f7ad1dde7d22792e72bca9e0a0556608b41dee237ae870eea9190fc8ee52e661
|
|
7
|
+
data.tar.gz: 89dfdc1e1c03b0b8ead3c1c200ee13c46d75a724f551da3a08f83a9ea9a72da93ddd2fb3791250584f1b4fe250fe763eecbf963a17e73bfcd67fd5d4f87bf85a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.66.0 (2026-03-25)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.65.0...v5.66.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.65.0...v5.66.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([803c2e9](https://github.com/team-telnyx/telnyx-ruby/commit/803c2e9a375cc947c6a38be2011d153d6fd36dbb))
|
|
10
|
+
* **api:** manual updates ([48ff892](https://github.com/team-telnyx/telnyx-ruby/commit/48ff892d54e1c2653dbb808bc53d81fa126e2c42))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
|
|
15
|
+
* **branded-calling:** add Number Reputation API specs ([10bb825](https://github.com/team-telnyx/telnyx-ruby/commit/10bb825c550afb98853b6bcf77a9548ae5bebe22))
|
|
16
|
+
|
|
3
17
|
## 5.65.0 (2026-03-24)
|
|
4
18
|
|
|
5
19
|
Full Changelog: [v5.64.0...v5.65.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.64.0...v5.65.0)
|
data/README.md
CHANGED
data/lib/telnyx/client.rb
CHANGED
|
@@ -643,6 +643,16 @@ module Telnyx
|
|
|
643
643
|
# @return [Telnyx::Resources::TrafficPolicyProfiles]
|
|
644
644
|
attr_reader :traffic_policy_profiles
|
|
645
645
|
|
|
646
|
+
# Enterprise management for Branded Calling and Number Reputation services
|
|
647
|
+
# @return [Telnyx::Resources::Enterprises]
|
|
648
|
+
attr_reader :enterprises
|
|
649
|
+
|
|
650
|
+
# @return [Telnyx::Resources::Reputation]
|
|
651
|
+
attr_reader :reputation
|
|
652
|
+
|
|
653
|
+
# @return [Telnyx::Resources::TermsOfService]
|
|
654
|
+
attr_reader :terms_of_service
|
|
655
|
+
|
|
646
656
|
# @api private
|
|
647
657
|
#
|
|
648
658
|
# @return [Hash{String=>String}]
|
|
@@ -897,6 +907,9 @@ module Telnyx
|
|
|
897
907
|
@voice_clones = Telnyx::Resources::VoiceClones.new(client: self)
|
|
898
908
|
@voice_designs = Telnyx::Resources::VoiceDesigns.new(client: self)
|
|
899
909
|
@traffic_policy_profiles = Telnyx::Resources::TrafficPolicyProfiles.new(client: self)
|
|
910
|
+
@enterprises = Telnyx::Resources::Enterprises.new(client: self)
|
|
911
|
+
@reputation = Telnyx::Resources::Reputation.new(client: self)
|
|
912
|
+
@terms_of_service = Telnyx::Resources::TermsOfService.new(client: self)
|
|
900
913
|
end
|
|
901
914
|
end
|
|
902
915
|
end
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::Enterprises#create
|
|
6
|
+
class EnterpriseCreateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute billing_address
|
|
11
|
+
#
|
|
12
|
+
# @return [Telnyx::Models::EnterpriseCreateParams::BillingAddress]
|
|
13
|
+
required :billing_address, -> { Telnyx::EnterpriseCreateParams::BillingAddress }
|
|
14
|
+
|
|
15
|
+
# @!attribute billing_contact
|
|
16
|
+
#
|
|
17
|
+
# @return [Telnyx::Models::EnterpriseCreateParams::BillingContact]
|
|
18
|
+
required :billing_contact, -> { Telnyx::EnterpriseCreateParams::BillingContact }
|
|
19
|
+
|
|
20
|
+
# @!attribute country_code
|
|
21
|
+
# Country code. Currently only 'US' is accepted.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
required :country_code, String
|
|
25
|
+
|
|
26
|
+
# @!attribute doing_business_as
|
|
27
|
+
# Primary business name / DBA name
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :doing_business_as, String
|
|
31
|
+
|
|
32
|
+
# @!attribute fein
|
|
33
|
+
# Federal Employer Identification Number. Format: XX-XXXXXXX or 9-digit number
|
|
34
|
+
# (minimum 9 digits).
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
required :fein, String
|
|
38
|
+
|
|
39
|
+
# @!attribute industry
|
|
40
|
+
# Industry classification. Case-insensitive. Accepted values: accounting, finance,
|
|
41
|
+
# billing, collections, business, charity, nonprofit, communications, telecom,
|
|
42
|
+
# customer service, support, delivery, shipping, logistics, education, financial,
|
|
43
|
+
# banking, government, public, healthcare, health, pharmacy, medical, insurance,
|
|
44
|
+
# legal, law, notifications, scheduling, real estate, property, retail, ecommerce,
|
|
45
|
+
# sales, marketing, software, technology, tech, media, surveys, market research,
|
|
46
|
+
# travel, hospitality, hotel
|
|
47
|
+
#
|
|
48
|
+
# @return [String]
|
|
49
|
+
required :industry, String
|
|
50
|
+
|
|
51
|
+
# @!attribute legal_name
|
|
52
|
+
# Legal name of the enterprise
|
|
53
|
+
#
|
|
54
|
+
# @return [String]
|
|
55
|
+
required :legal_name, String
|
|
56
|
+
|
|
57
|
+
# @!attribute number_of_employees
|
|
58
|
+
# Employee count range
|
|
59
|
+
#
|
|
60
|
+
# @return [Symbol, Telnyx::Models::EnterpriseCreateParams::NumberOfEmployees]
|
|
61
|
+
required :number_of_employees, enum: -> { Telnyx::EnterpriseCreateParams::NumberOfEmployees }
|
|
62
|
+
|
|
63
|
+
# @!attribute organization_contact
|
|
64
|
+
# Organization contact information. Note: the response returns this object with
|
|
65
|
+
# the phone field as 'phone' (not 'phone_number').
|
|
66
|
+
#
|
|
67
|
+
# @return [Telnyx::Models::EnterpriseCreateParams::OrganizationContact]
|
|
68
|
+
required :organization_contact, -> { Telnyx::EnterpriseCreateParams::OrganizationContact }
|
|
69
|
+
|
|
70
|
+
# @!attribute organization_legal_type
|
|
71
|
+
# Legal structure type
|
|
72
|
+
#
|
|
73
|
+
# @return [Symbol, Telnyx::Models::EnterpriseCreateParams::OrganizationLegalType]
|
|
74
|
+
required :organization_legal_type, enum: -> { Telnyx::EnterpriseCreateParams::OrganizationLegalType }
|
|
75
|
+
|
|
76
|
+
# @!attribute organization_physical_address
|
|
77
|
+
#
|
|
78
|
+
# @return [Telnyx::Models::EnterpriseCreateParams::OrganizationPhysicalAddress]
|
|
79
|
+
required :organization_physical_address,
|
|
80
|
+
-> { Telnyx::EnterpriseCreateParams::OrganizationPhysicalAddress }
|
|
81
|
+
|
|
82
|
+
# @!attribute organization_type
|
|
83
|
+
# Type of organization
|
|
84
|
+
#
|
|
85
|
+
# @return [Symbol, Telnyx::Models::EnterpriseCreateParams::OrganizationType]
|
|
86
|
+
required :organization_type, enum: -> { Telnyx::EnterpriseCreateParams::OrganizationType }
|
|
87
|
+
|
|
88
|
+
# @!attribute website
|
|
89
|
+
# Enterprise website URL. Accepts any string — no URL format validation enforced.
|
|
90
|
+
#
|
|
91
|
+
# @return [String]
|
|
92
|
+
required :website, String
|
|
93
|
+
|
|
94
|
+
# @!attribute corporate_registration_number
|
|
95
|
+
# Corporate registration number (optional)
|
|
96
|
+
#
|
|
97
|
+
# @return [String, nil]
|
|
98
|
+
optional :corporate_registration_number, String
|
|
99
|
+
|
|
100
|
+
# @!attribute customer_reference
|
|
101
|
+
# Optional customer reference identifier for your own tracking
|
|
102
|
+
#
|
|
103
|
+
# @return [String, nil]
|
|
104
|
+
optional :customer_reference, String
|
|
105
|
+
|
|
106
|
+
# @!attribute dun_bradstreet_number
|
|
107
|
+
# D-U-N-S Number (optional)
|
|
108
|
+
#
|
|
109
|
+
# @return [String, nil]
|
|
110
|
+
optional :dun_bradstreet_number, String
|
|
111
|
+
|
|
112
|
+
# @!attribute primary_business_domain_sic_code
|
|
113
|
+
# SIC Code (optional)
|
|
114
|
+
#
|
|
115
|
+
# @return [String, nil]
|
|
116
|
+
optional :primary_business_domain_sic_code, String
|
|
117
|
+
|
|
118
|
+
# @!attribute professional_license_number
|
|
119
|
+
# Professional license number (optional)
|
|
120
|
+
#
|
|
121
|
+
# @return [String, nil]
|
|
122
|
+
optional :professional_license_number, String
|
|
123
|
+
|
|
124
|
+
# @!attribute role_type
|
|
125
|
+
# Role type in Branded Calling / Number Reputation services
|
|
126
|
+
#
|
|
127
|
+
# @return [Symbol, Telnyx::Models::EnterpriseCreateParams::RoleType, nil]
|
|
128
|
+
optional :role_type, enum: -> { Telnyx::EnterpriseCreateParams::RoleType }
|
|
129
|
+
|
|
130
|
+
# @!method initialize(billing_address:, billing_contact:, country_code:, doing_business_as:, fein:, industry:, legal_name:, number_of_employees:, organization_contact:, organization_legal_type:, organization_physical_address:, organization_type:, website:, corporate_registration_number: nil, customer_reference: nil, dun_bradstreet_number: nil, primary_business_domain_sic_code: nil, professional_license_number: nil, role_type: nil, request_options: {})
|
|
131
|
+
# Some parameter documentations has been truncated, see
|
|
132
|
+
# {Telnyx::Models::EnterpriseCreateParams} for more details.
|
|
133
|
+
#
|
|
134
|
+
# @param billing_address [Telnyx::Models::EnterpriseCreateParams::BillingAddress]
|
|
135
|
+
#
|
|
136
|
+
# @param billing_contact [Telnyx::Models::EnterpriseCreateParams::BillingContact]
|
|
137
|
+
#
|
|
138
|
+
# @param country_code [String] Country code. Currently only 'US' is accepted.
|
|
139
|
+
#
|
|
140
|
+
# @param doing_business_as [String] Primary business name / DBA name
|
|
141
|
+
#
|
|
142
|
+
# @param fein [String] Federal Employer Identification Number. Format: XX-XXXXXXX or 9-digit number (mi
|
|
143
|
+
#
|
|
144
|
+
# @param industry [String] Industry classification. Case-insensitive. Accepted values: accounting, finance,
|
|
145
|
+
#
|
|
146
|
+
# @param legal_name [String] Legal name of the enterprise
|
|
147
|
+
#
|
|
148
|
+
# @param number_of_employees [Symbol, Telnyx::Models::EnterpriseCreateParams::NumberOfEmployees] Employee count range
|
|
149
|
+
#
|
|
150
|
+
# @param organization_contact [Telnyx::Models::EnterpriseCreateParams::OrganizationContact] Organization contact information. Note: the response returns this object with th
|
|
151
|
+
#
|
|
152
|
+
# @param organization_legal_type [Symbol, Telnyx::Models::EnterpriseCreateParams::OrganizationLegalType] Legal structure type
|
|
153
|
+
#
|
|
154
|
+
# @param organization_physical_address [Telnyx::Models::EnterpriseCreateParams::OrganizationPhysicalAddress]
|
|
155
|
+
#
|
|
156
|
+
# @param organization_type [Symbol, Telnyx::Models::EnterpriseCreateParams::OrganizationType] Type of organization
|
|
157
|
+
#
|
|
158
|
+
# @param website [String] Enterprise website URL. Accepts any string — no URL format validation enforced.
|
|
159
|
+
#
|
|
160
|
+
# @param corporate_registration_number [String] Corporate registration number (optional)
|
|
161
|
+
#
|
|
162
|
+
# @param customer_reference [String] Optional customer reference identifier for your own tracking
|
|
163
|
+
#
|
|
164
|
+
# @param dun_bradstreet_number [String] D-U-N-S Number (optional)
|
|
165
|
+
#
|
|
166
|
+
# @param primary_business_domain_sic_code [String] SIC Code (optional)
|
|
167
|
+
#
|
|
168
|
+
# @param professional_license_number [String] Professional license number (optional)
|
|
169
|
+
#
|
|
170
|
+
# @param role_type [Symbol, Telnyx::Models::EnterpriseCreateParams::RoleType] Role type in Branded Calling / Number Reputation services
|
|
171
|
+
#
|
|
172
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
173
|
+
|
|
174
|
+
class BillingAddress < Telnyx::Internal::Type::BaseModel
|
|
175
|
+
# @!attribute administrative_area
|
|
176
|
+
# State or province
|
|
177
|
+
#
|
|
178
|
+
# @return [String]
|
|
179
|
+
required :administrative_area, String
|
|
180
|
+
|
|
181
|
+
# @!attribute city
|
|
182
|
+
# City name
|
|
183
|
+
#
|
|
184
|
+
# @return [String]
|
|
185
|
+
required :city, String
|
|
186
|
+
|
|
187
|
+
# @!attribute country
|
|
188
|
+
# Country name (e.g., United States)
|
|
189
|
+
#
|
|
190
|
+
# @return [String]
|
|
191
|
+
required :country, String
|
|
192
|
+
|
|
193
|
+
# @!attribute postal_code
|
|
194
|
+
# ZIP or postal code
|
|
195
|
+
#
|
|
196
|
+
# @return [String]
|
|
197
|
+
required :postal_code, String
|
|
198
|
+
|
|
199
|
+
# @!attribute street_address
|
|
200
|
+
# Street address
|
|
201
|
+
#
|
|
202
|
+
# @return [String]
|
|
203
|
+
required :street_address, String
|
|
204
|
+
|
|
205
|
+
# @!attribute extended_address
|
|
206
|
+
# Additional address line (suite, apt, etc.)
|
|
207
|
+
#
|
|
208
|
+
# @return [String, nil]
|
|
209
|
+
optional :extended_address, String, nil?: true
|
|
210
|
+
|
|
211
|
+
# @!method initialize(administrative_area:, city:, country:, postal_code:, street_address:, extended_address: nil)
|
|
212
|
+
# @param administrative_area [String] State or province
|
|
213
|
+
#
|
|
214
|
+
# @param city [String] City name
|
|
215
|
+
#
|
|
216
|
+
# @param country [String] Country name (e.g., United States)
|
|
217
|
+
#
|
|
218
|
+
# @param postal_code [String] ZIP or postal code
|
|
219
|
+
#
|
|
220
|
+
# @param street_address [String] Street address
|
|
221
|
+
#
|
|
222
|
+
# @param extended_address [String, nil] Additional address line (suite, apt, etc.)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
class BillingContact < Telnyx::Internal::Type::BaseModel
|
|
226
|
+
# @!attribute email
|
|
227
|
+
# Contact's email address
|
|
228
|
+
#
|
|
229
|
+
# @return [String]
|
|
230
|
+
required :email, String
|
|
231
|
+
|
|
232
|
+
# @!attribute first_name
|
|
233
|
+
# Contact's first name
|
|
234
|
+
#
|
|
235
|
+
# @return [String]
|
|
236
|
+
required :first_name, String
|
|
237
|
+
|
|
238
|
+
# @!attribute last_name
|
|
239
|
+
# Contact's last name
|
|
240
|
+
#
|
|
241
|
+
# @return [String]
|
|
242
|
+
required :last_name, String
|
|
243
|
+
|
|
244
|
+
# @!attribute phone_number
|
|
245
|
+
# Contact's phone number (10-15 digits)
|
|
246
|
+
#
|
|
247
|
+
# @return [String]
|
|
248
|
+
required :phone_number, String
|
|
249
|
+
|
|
250
|
+
# @!method initialize(email:, first_name:, last_name:, phone_number:)
|
|
251
|
+
# @param email [String] Contact's email address
|
|
252
|
+
#
|
|
253
|
+
# @param first_name [String] Contact's first name
|
|
254
|
+
#
|
|
255
|
+
# @param last_name [String] Contact's last name
|
|
256
|
+
#
|
|
257
|
+
# @param phone_number [String] Contact's phone number (10-15 digits)
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Employee count range
|
|
261
|
+
module NumberOfEmployees
|
|
262
|
+
extend Telnyx::Internal::Type::Enum
|
|
263
|
+
|
|
264
|
+
NUMBER_OF_EMPLOYEES_1_10 = :"1-10"
|
|
265
|
+
NUMBER_OF_EMPLOYEES_11_50 = :"11-50"
|
|
266
|
+
NUMBER_OF_EMPLOYEES_51_200 = :"51-200"
|
|
267
|
+
NUMBER_OF_EMPLOYEES_201_500 = :"201-500"
|
|
268
|
+
NUMBER_OF_EMPLOYEES_501_2000 = :"501-2000"
|
|
269
|
+
NUMBER_OF_EMPLOYEES_2001_10000 = :"2001-10000"
|
|
270
|
+
NUMBER_OF_EMPLOYEES_10001 = :"10001+"
|
|
271
|
+
|
|
272
|
+
# @!method self.values
|
|
273
|
+
# @return [Array<Symbol>]
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
class OrganizationContact < Telnyx::Internal::Type::BaseModel
|
|
277
|
+
# @!attribute email
|
|
278
|
+
# Contact's email address
|
|
279
|
+
#
|
|
280
|
+
# @return [String]
|
|
281
|
+
required :email, String
|
|
282
|
+
|
|
283
|
+
# @!attribute first_name
|
|
284
|
+
# Contact's first name
|
|
285
|
+
#
|
|
286
|
+
# @return [String]
|
|
287
|
+
required :first_name, String
|
|
288
|
+
|
|
289
|
+
# @!attribute job_title
|
|
290
|
+
# Contact's job title (required)
|
|
291
|
+
#
|
|
292
|
+
# @return [String]
|
|
293
|
+
required :job_title, String
|
|
294
|
+
|
|
295
|
+
# @!attribute last_name
|
|
296
|
+
# Contact's last name
|
|
297
|
+
#
|
|
298
|
+
# @return [String]
|
|
299
|
+
required :last_name, String
|
|
300
|
+
|
|
301
|
+
# @!attribute phone
|
|
302
|
+
# Contact's phone number in E.164 format
|
|
303
|
+
#
|
|
304
|
+
# @return [String]
|
|
305
|
+
required :phone, String
|
|
306
|
+
|
|
307
|
+
# @!method initialize(email:, first_name:, job_title:, last_name:, phone:)
|
|
308
|
+
# Organization contact information. Note: the response returns this object with
|
|
309
|
+
# the phone field as 'phone' (not 'phone_number').
|
|
310
|
+
#
|
|
311
|
+
# @param email [String] Contact's email address
|
|
312
|
+
#
|
|
313
|
+
# @param first_name [String] Contact's first name
|
|
314
|
+
#
|
|
315
|
+
# @param job_title [String] Contact's job title (required)
|
|
316
|
+
#
|
|
317
|
+
# @param last_name [String] Contact's last name
|
|
318
|
+
#
|
|
319
|
+
# @param phone [String] Contact's phone number in E.164 format
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Legal structure type
|
|
323
|
+
module OrganizationLegalType
|
|
324
|
+
extend Telnyx::Internal::Type::Enum
|
|
325
|
+
|
|
326
|
+
CORPORATION = :corporation
|
|
327
|
+
LLC = :llc
|
|
328
|
+
PARTNERSHIP = :partnership
|
|
329
|
+
NONPROFIT = :nonprofit
|
|
330
|
+
OTHER = :other
|
|
331
|
+
|
|
332
|
+
# @!method self.values
|
|
333
|
+
# @return [Array<Symbol>]
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
class OrganizationPhysicalAddress < Telnyx::Internal::Type::BaseModel
|
|
337
|
+
# @!attribute administrative_area
|
|
338
|
+
# State or province
|
|
339
|
+
#
|
|
340
|
+
# @return [String]
|
|
341
|
+
required :administrative_area, String
|
|
342
|
+
|
|
343
|
+
# @!attribute city
|
|
344
|
+
# City name
|
|
345
|
+
#
|
|
346
|
+
# @return [String]
|
|
347
|
+
required :city, String
|
|
348
|
+
|
|
349
|
+
# @!attribute country
|
|
350
|
+
# Country name (e.g., United States)
|
|
351
|
+
#
|
|
352
|
+
# @return [String]
|
|
353
|
+
required :country, String
|
|
354
|
+
|
|
355
|
+
# @!attribute postal_code
|
|
356
|
+
# ZIP or postal code
|
|
357
|
+
#
|
|
358
|
+
# @return [String]
|
|
359
|
+
required :postal_code, String
|
|
360
|
+
|
|
361
|
+
# @!attribute street_address
|
|
362
|
+
# Street address
|
|
363
|
+
#
|
|
364
|
+
# @return [String]
|
|
365
|
+
required :street_address, String
|
|
366
|
+
|
|
367
|
+
# @!attribute extended_address
|
|
368
|
+
# Additional address line (suite, apt, etc.)
|
|
369
|
+
#
|
|
370
|
+
# @return [String, nil]
|
|
371
|
+
optional :extended_address, String, nil?: true
|
|
372
|
+
|
|
373
|
+
# @!method initialize(administrative_area:, city:, country:, postal_code:, street_address:, extended_address: nil)
|
|
374
|
+
# @param administrative_area [String] State or province
|
|
375
|
+
#
|
|
376
|
+
# @param city [String] City name
|
|
377
|
+
#
|
|
378
|
+
# @param country [String] Country name (e.g., United States)
|
|
379
|
+
#
|
|
380
|
+
# @param postal_code [String] ZIP or postal code
|
|
381
|
+
#
|
|
382
|
+
# @param street_address [String] Street address
|
|
383
|
+
#
|
|
384
|
+
# @param extended_address [String, nil] Additional address line (suite, apt, etc.)
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# Type of organization
|
|
388
|
+
module OrganizationType
|
|
389
|
+
extend Telnyx::Internal::Type::Enum
|
|
390
|
+
|
|
391
|
+
COMMERCIAL = :commercial
|
|
392
|
+
GOVERNMENT = :government
|
|
393
|
+
NON_PROFIT = :non_profit
|
|
394
|
+
|
|
395
|
+
# @!method self.values
|
|
396
|
+
# @return [Array<Symbol>]
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# Role type in Branded Calling / Number Reputation services
|
|
400
|
+
module RoleType
|
|
401
|
+
extend Telnyx::Internal::Type::Enum
|
|
402
|
+
|
|
403
|
+
ENTERPRISE = :enterprise
|
|
404
|
+
BPO = :bpo
|
|
405
|
+
|
|
406
|
+
# @!method self.values
|
|
407
|
+
# @return [Array<Symbol>]
|
|
408
|
+
end
|
|
409
|
+
end
|
|
410
|
+
end
|
|
411
|
+
end
|