telnyx 5.164.0 → 5.166.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.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +4 -5
  5. data/lib/telnyx/lib/webhook_verification.rb +54 -155
  6. data/lib/telnyx/lib.rb +3 -1
  7. data/lib/telnyx/models/ai/assistant_tool.rb +14 -1
  8. data/lib/telnyx/models/ai/transcription_settings.rb +20 -15
  9. data/lib/telnyx/models/ai/transcription_settings_config.rb +35 -10
  10. data/lib/telnyx/models/call_dial_params.rb +13 -1
  11. data/lib/telnyx/models/calls/action_transfer_params.rb +13 -1
  12. data/lib/telnyx/models/connection_rtcp_settings.rb +3 -3
  13. data/lib/telnyx/models/credential_connections/action_check_registration_status_response.rb +12 -12
  14. data/lib/telnyx/models/external_requirements/sub_number_order_retrieve_params.rb +28 -0
  15. data/lib/telnyx/models/external_requirements/sub_number_order_retrieve_response.rb +104 -0
  16. data/lib/telnyx/models/external_requirements/sub_number_order_update_params.rb +69 -0
  17. data/lib/telnyx/models/external_requirements/sub_number_order_update_response.rb +66 -0
  18. data/lib/telnyx/models/outbound_voice_profile.rb +14 -14
  19. data/lib/telnyx/models/outbound_voice_profile_create_params.rb +14 -14
  20. data/lib/telnyx/models/outbound_voice_profile_update_params.rb +14 -14
  21. data/lib/telnyx/models/uac_connections/action_check_registration_status_response.rb +12 -12
  22. data/lib/telnyx/models.rb +2 -2
  23. data/lib/telnyx/resources/calls/actions.rb +3 -1
  24. data/lib/telnyx/resources/calls.rb +3 -1
  25. data/lib/telnyx/resources/credential_connections/actions.rb +3 -3
  26. data/lib/telnyx/resources/external_requirements/sub_number_orders.rb +99 -0
  27. data/lib/telnyx/resources/external_requirements.rb +19 -0
  28. data/lib/telnyx/resources/outbound_voice_profiles.rb +2 -2
  29. data/lib/telnyx/resources/uac_connections/actions.rb +3 -3
  30. data/lib/telnyx/resources/webhooks.rb +1 -1
  31. data/lib/telnyx/version.rb +1 -1
  32. data/lib/telnyx.rb +6 -4
  33. data/rbi/telnyx/client.rbi +3 -4
  34. data/rbi/telnyx/models/ai/assistant_tool.rbi +21 -0
  35. data/rbi/telnyx/models/ai/transcription_settings.rbi +40 -28
  36. data/rbi/telnyx/models/ai/transcription_settings_config.rbi +52 -12
  37. data/rbi/telnyx/models/call_dial_params.rbi +19 -0
  38. data/rbi/telnyx/models/calls/action_transfer_params.rbi +19 -0
  39. data/rbi/telnyx/models/connection_rtcp_settings.rbi +4 -4
  40. data/rbi/telnyx/models/credential_connections/action_check_registration_status_response.rbi +18 -36
  41. data/rbi/telnyx/models/external_requirements/sub_number_order_retrieve_params.rbi +52 -0
  42. data/rbi/telnyx/models/external_requirements/sub_number_order_retrieve_response.rbi +248 -0
  43. data/rbi/telnyx/models/external_requirements/sub_number_order_update_params.rbi +119 -0
  44. data/rbi/telnyx/models/external_requirements/sub_number_order_update_response.rbi +159 -0
  45. data/rbi/telnyx/models/outbound_voice_profile.rbi +18 -18
  46. data/rbi/telnyx/models/outbound_voice_profile_create_params.rbi +18 -18
  47. data/rbi/telnyx/models/outbound_voice_profile_update_params.rbi +18 -18
  48. data/rbi/telnyx/models/uac_connections/action_check_registration_status_response.rbi +18 -36
  49. data/rbi/telnyx/models.rbi +2 -3
  50. data/rbi/telnyx/resources/calls/actions.rbi +7 -0
  51. data/rbi/telnyx/resources/calls.rbi +7 -0
  52. data/rbi/telnyx/resources/credential_connections/actions.rbi +3 -3
  53. data/rbi/telnyx/resources/external_requirements/sub_number_orders.rbi +71 -0
  54. data/rbi/telnyx/resources/external_requirements.rbi +16 -0
  55. data/rbi/telnyx/resources/outbound_voice_profiles.rbi +4 -4
  56. data/rbi/telnyx/resources/uac_connections/actions.rbi +3 -3
  57. data/sig/telnyx/client.rbs +2 -2
  58. data/sig/telnyx/models/ai/assistant_tool.rbs +7 -0
  59. data/sig/telnyx/models/ai/transcription_settings.rbs +2 -0
  60. data/sig/telnyx/models/ai/transcription_settings_config.rbs +14 -0
  61. data/sig/telnyx/models/call_dial_params.rbs +7 -0
  62. data/sig/telnyx/models/calls/action_transfer_params.rbs +7 -0
  63. data/sig/telnyx/models/credential_connections/action_check_registration_status_response.rbs +24 -36
  64. data/sig/telnyx/models/external_requirements/sub_number_order_retrieve_params.rbs +30 -0
  65. data/sig/telnyx/models/external_requirements/sub_number_order_retrieve_response.rbs +110 -0
  66. data/sig/telnyx/models/external_requirements/sub_number_order_update_params.rbs +50 -0
  67. data/sig/telnyx/models/external_requirements/sub_number_order_update_response.rbs +75 -0
  68. data/sig/telnyx/models/uac_connections/action_check_registration_status_response.rbs +24 -36
  69. data/sig/telnyx/models.rbs +2 -2
  70. data/sig/telnyx/resources/calls/actions.rbs +1 -0
  71. data/sig/telnyx/resources/calls.rbs +1 -0
  72. data/sig/telnyx/resources/external_requirements/sub_number_orders.rbs +22 -0
  73. data/sig/telnyx/resources/external_requirements.rbs +9 -0
  74. metadata +20 -26
  75. data/lib/telnyx/lib/webhooks_ed25519.rb +0 -63
  76. data/lib/telnyx/models/sip_registration_status_retrieve_params.rb +0 -59
  77. data/lib/telnyx/models/sip_registration_status_retrieve_response.rb +0 -214
  78. data/lib/telnyx/resources/sip_registration_status.rb +0 -59
  79. data/rbi/telnyx/models/sip_registration_status_retrieve_params.rbi +0 -124
  80. data/rbi/telnyx/models/sip_registration_status_retrieve_response.rbi +0 -416
  81. data/rbi/telnyx/resources/sip_registration_status.rbi +0 -52
  82. data/sig/telnyx/models/sip_registration_status_retrieve_params.rbs +0 -55
  83. data/sig/telnyx/models/sip_registration_status_retrieve_response.rbs +0 -195
  84. data/sig/telnyx/resources/sip_registration_status.rbs +0 -14
@@ -109,6 +109,17 @@ module Telnyx
109
109
  end
110
110
  attr_writer :custom_headers
111
111
 
112
+ # The number the inbound call being transferred was originally received on, in
113
+ # +E164 format. Supplying it lets an unverified non-Telnyx `from` be used as the
114
+ # caller id, provided that number is still on an active inbound call to this
115
+ # `diversion` number for your account. The `diversion` number itself must be one
116
+ # you own or have verified.
117
+ sig { returns(T.nilable(String)) }
118
+ attr_reader :diversion
119
+
120
+ sig { params(diversion: String).void }
121
+ attr_writer :diversion
122
+
112
123
  # If set to false, early media will not be passed to the originating leg.
113
124
  sig { returns(T.nilable(T::Boolean)) }
114
125
  attr_reader :early_media
@@ -548,6 +559,7 @@ module Telnyx
548
559
  client_state: String,
549
560
  command_id: String,
550
561
  custom_headers: T::Array[Telnyx::CustomSipHeader::OrHash],
562
+ diversion: String,
551
563
  early_media: T::Boolean,
552
564
  from: String,
553
565
  from_display_name: String,
@@ -634,6 +646,12 @@ module Telnyx
634
646
  command_id: nil,
635
647
  # Custom headers to be added to the SIP INVITE.
636
648
  custom_headers: nil,
649
+ # The number the inbound call being transferred was originally received on, in
650
+ # +E164 format. Supplying it lets an unverified non-Telnyx `from` be used as the
651
+ # caller id, provided that number is still on an active inbound call to this
652
+ # `diversion` number for your account. The `diversion` number itself must be one
653
+ # you own or have verified.
654
+ diversion: nil,
637
655
  # If set to false, early media will not be passed to the originating leg.
638
656
  early_media: nil,
639
657
  # The `from` number to be used as the caller id presented to the destination (`to`
@@ -776,6 +794,7 @@ module Telnyx
776
794
  client_state: String,
777
795
  command_id: String,
778
796
  custom_headers: T::Array[Telnyx::CustomSipHeader],
797
+ diversion: String,
779
798
  early_media: T::Boolean,
780
799
  from: String,
781
800
  from_display_name: String,
@@ -8,8 +8,8 @@ module Telnyx
8
8
  T.any(Telnyx::ConnectionRtcpSettings, Telnyx::Internal::AnyHash)
9
9
  end
10
10
 
11
- # BETA - Enable the capture and storage of RTCP messages to create QoS reports on
12
- # the Telnyx Mission Control Portal.
11
+ # Enable the capture and storage of RTCP messages to create QoS reports on the
12
+ # Telnyx Mission Control Portal.
13
13
  sig { returns(T.nilable(T::Boolean)) }
14
14
  attr_reader :capture_enabled
15
15
 
@@ -39,8 +39,8 @@ module Telnyx
39
39
  ).returns(T.attached_class)
40
40
  end
41
41
  def self.new(
42
- # BETA - Enable the capture and storage of RTCP messages to create QoS reports on
43
- # the Telnyx Mission Control Portal.
42
+ # Enable the capture and storage of RTCP messages to create QoS reports on the
43
+ # Telnyx Mission Control Portal.
44
44
  capture_enabled: nil,
45
45
  # RTCP port by default is rtp+1, it can also be set to rtcp-mux
46
46
  port: nil,
@@ -60,24 +60,15 @@ module Telnyx
60
60
 
61
61
  # The ip used during the SIP connection
62
62
  sig { returns(T.nilable(String)) }
63
- attr_reader :ip_address
64
-
65
- sig { params(ip_address: String).void }
66
- attr_writer :ip_address
63
+ attr_accessor :ip_address
67
64
 
68
65
  # ISO 8601 formatted date indicating when the resource was last updated.
69
66
  sig { returns(T.nilable(String)) }
70
- attr_reader :last_registration
71
-
72
- sig { params(last_registration: String).void }
73
- attr_writer :last_registration
67
+ attr_accessor :last_registration
74
68
 
75
69
  # The port of the SIP connection
76
70
  sig { returns(T.nilable(Integer)) }
77
- attr_reader :port
78
-
79
- sig { params(port: Integer).void }
80
- attr_writer :port
71
+ attr_accessor :port
81
72
 
82
73
  # Identifies the type of the resource.
83
74
  sig { returns(T.nilable(String)) }
@@ -88,10 +79,7 @@ module Telnyx
88
79
 
89
80
  # The user name of the SIP connection
90
81
  sig { returns(T.nilable(String)) }
91
- attr_reader :sip_username
92
-
93
- sig { params(sip_username: String).void }
94
- attr_writer :sip_username
82
+ attr_accessor :sip_username
95
83
 
96
84
  # The current registration status of your SIP connection
97
85
  sig do
@@ -113,29 +101,23 @@ module Telnyx
113
101
 
114
102
  # The protocol of the SIP connection
115
103
  sig { returns(T.nilable(String)) }
116
- attr_reader :transport
117
-
118
- sig { params(transport: String).void }
119
- attr_writer :transport
104
+ attr_accessor :transport
120
105
 
121
106
  # The user agent of the SIP connection
122
107
  sig { returns(T.nilable(String)) }
123
- attr_reader :user_agent
124
-
125
- sig { params(user_agent: String).void }
126
- attr_writer :user_agent
108
+ attr_accessor :user_agent
127
109
 
128
110
  sig do
129
111
  params(
130
- ip_address: String,
131
- last_registration: String,
132
- port: Integer,
112
+ ip_address: T.nilable(String),
113
+ last_registration: T.nilable(String),
114
+ port: T.nilable(Integer),
133
115
  record_type: String,
134
- sip_username: String,
116
+ sip_username: T.nilable(String),
135
117
  status:
136
118
  Telnyx::Models::CredentialConnections::ActionCheckRegistrationStatusResponse::Data::Status::OrSymbol,
137
- transport: String,
138
- user_agent: String
119
+ transport: T.nilable(String),
120
+ user_agent: T.nilable(String)
139
121
  ).returns(T.attached_class)
140
122
  end
141
123
  def self.new(
@@ -161,15 +143,15 @@ module Telnyx
161
143
  sig do
162
144
  override.returns(
163
145
  {
164
- ip_address: String,
165
- last_registration: String,
166
- port: Integer,
146
+ ip_address: T.nilable(String),
147
+ last_registration: T.nilable(String),
148
+ port: T.nilable(Integer),
167
149
  record_type: String,
168
- sip_username: String,
150
+ sip_username: T.nilable(String),
169
151
  status:
170
152
  Telnyx::Models::CredentialConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol,
171
- transport: String,
172
- user_agent: String
153
+ transport: T.nilable(String),
154
+ user_agent: T.nilable(String)
173
155
  }
174
156
  )
175
157
  end
@@ -0,0 +1,52 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module ExternalRequirements
6
+ class SubNumberOrderRetrieveParams < Telnyx::Internal::Type::BaseModel
7
+ extend Telnyx::Internal::Type::RequestParameters::Converter
8
+ include Telnyx::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Telnyx::ExternalRequirements::SubNumberOrderRetrieveParams,
14
+ Telnyx::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :regulatory_requirement_id
20
+
21
+ sig { returns(String) }
22
+ attr_accessor :sub_number_order_id
23
+
24
+ sig do
25
+ params(
26
+ regulatory_requirement_id: String,
27
+ sub_number_order_id: String,
28
+ request_options: Telnyx::RequestOptions::OrHash
29
+ ).returns(T.attached_class)
30
+ end
31
+ def self.new(
32
+ regulatory_requirement_id:,
33
+ sub_number_order_id:,
34
+ request_options: {}
35
+ )
36
+ end
37
+
38
+ sig do
39
+ override.returns(
40
+ {
41
+ regulatory_requirement_id: String,
42
+ sub_number_order_id: String,
43
+ request_options: Telnyx::RequestOptions
44
+ }
45
+ )
46
+ end
47
+ def to_hash
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,248 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module ExternalRequirements
6
+ class SubNumberOrderRetrieveResponse < Telnyx::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse,
11
+ Telnyx::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ sig do
16
+ returns(
17
+ T.nilable(
18
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data
19
+ )
20
+ )
21
+ end
22
+ attr_reader :data
23
+
24
+ sig do
25
+ params(
26
+ data:
27
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::OrHash
28
+ ).void
29
+ end
30
+ attr_writer :data
31
+
32
+ sig do
33
+ params(
34
+ data:
35
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::OrHash
36
+ ).returns(T.attached_class)
37
+ end
38
+ def self.new(data: nil)
39
+ end
40
+
41
+ sig do
42
+ override.returns(
43
+ {
44
+ data:
45
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data
46
+ }
47
+ )
48
+ end
49
+ def to_hash
50
+ end
51
+
52
+ class Data < Telnyx::Internal::Type::BaseModel
53
+ OrHash =
54
+ T.type_alias do
55
+ T.any(
56
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data,
57
+ Telnyx::Internal::AnyHash
58
+ )
59
+ end
60
+
61
+ # The fields the end user must provide to fulfill this requirement.
62
+ sig do
63
+ returns(
64
+ T.nilable(
65
+ T::Array[
66
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::FieldsRequired
67
+ ]
68
+ )
69
+ )
70
+ end
71
+ attr_reader :fields_required
72
+
73
+ sig do
74
+ params(
75
+ fields_required:
76
+ T::Array[
77
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::FieldsRequired::OrHash
78
+ ]
79
+ ).void
80
+ end
81
+ attr_writer :fields_required
82
+
83
+ sig { returns(T.nilable(String)) }
84
+ attr_reader :regulatory_requirement_id
85
+
86
+ sig { params(regulatory_requirement_id: String).void }
87
+ attr_writer :regulatory_requirement_id
88
+
89
+ sig do
90
+ returns(
91
+ T.nilable(
92
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::RequirementAction
93
+ )
94
+ )
95
+ end
96
+ attr_reader :requirement_action
97
+
98
+ sig do
99
+ params(
100
+ requirement_action:
101
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::RequirementAction::OrHash
102
+ ).void
103
+ end
104
+ attr_writer :requirement_action
105
+
106
+ sig do
107
+ params(
108
+ fields_required:
109
+ T::Array[
110
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::FieldsRequired::OrHash
111
+ ],
112
+ regulatory_requirement_id: String,
113
+ requirement_action:
114
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::RequirementAction::OrHash
115
+ ).returns(T.attached_class)
116
+ end
117
+ def self.new(
118
+ # The fields the end user must provide to fulfill this requirement.
119
+ fields_required: nil,
120
+ regulatory_requirement_id: nil,
121
+ requirement_action: nil
122
+ )
123
+ end
124
+
125
+ sig do
126
+ override.returns(
127
+ {
128
+ fields_required:
129
+ T::Array[
130
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::FieldsRequired
131
+ ],
132
+ regulatory_requirement_id: String,
133
+ requirement_action:
134
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::RequirementAction
135
+ }
136
+ )
137
+ end
138
+ def to_hash
139
+ end
140
+
141
+ class FieldsRequired < Telnyx::Internal::Type::BaseModel
142
+ OrHash =
143
+ T.type_alias do
144
+ T.any(
145
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::FieldsRequired,
146
+ Telnyx::Internal::AnyHash
147
+ )
148
+ end
149
+
150
+ sig { returns(T.nilable(String)) }
151
+ attr_reader :description
152
+
153
+ sig { params(description: String).void }
154
+ attr_writer :description
155
+
156
+ # The field name to send inside the `requirement` object on the POST.
157
+ sig { returns(T.nilable(String)) }
158
+ attr_reader :name
159
+
160
+ sig { params(name: String).void }
161
+ attr_writer :name
162
+
163
+ sig { returns(T.nilable(String)) }
164
+ attr_reader :type
165
+
166
+ sig { params(type: String).void }
167
+ attr_writer :type
168
+
169
+ # The value already stored for this field, or null if not yet provided.
170
+ sig { returns(T.nilable(String)) }
171
+ attr_accessor :value
172
+
173
+ sig do
174
+ params(
175
+ description: String,
176
+ name: String,
177
+ type: String,
178
+ value: T.nilable(String)
179
+ ).returns(T.attached_class)
180
+ end
181
+ def self.new(
182
+ description: nil,
183
+ # The field name to send inside the `requirement` object on the POST.
184
+ name: nil,
185
+ type: nil,
186
+ # The value already stored for this field, or null if not yet provided.
187
+ value: nil
188
+ )
189
+ end
190
+
191
+ sig do
192
+ override.returns(
193
+ {
194
+ description: String,
195
+ name: String,
196
+ type: String,
197
+ value: T.nilable(String)
198
+ }
199
+ )
200
+ end
201
+ def to_hash
202
+ end
203
+ end
204
+
205
+ class RequirementAction < Telnyx::Internal::Type::BaseModel
206
+ OrHash =
207
+ T.type_alias do
208
+ T.any(
209
+ Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse::Data::RequirementAction,
210
+ Telnyx::Internal::AnyHash
211
+ )
212
+ end
213
+
214
+ # The type of action the end user must complete.
215
+ sig { returns(T.nilable(String)) }
216
+ attr_reader :type
217
+
218
+ sig { params(type: String).void }
219
+ attr_writer :type
220
+
221
+ # The action value. For ID verification this is the verification link URL, or null
222
+ # until it has been generated.
223
+ sig { returns(T.nilable(String)) }
224
+ attr_accessor :value
225
+
226
+ sig do
227
+ params(type: String, value: T.nilable(String)).returns(
228
+ T.attached_class
229
+ )
230
+ end
231
+ def self.new(
232
+ # The type of action the end user must complete.
233
+ type: nil,
234
+ # The action value. For ID verification this is the verification link URL, or null
235
+ # until it has been generated.
236
+ value: nil
237
+ )
238
+ end
239
+
240
+ sig { override.returns({ type: String, value: T.nilable(String) }) }
241
+ def to_hash
242
+ end
243
+ end
244
+ end
245
+ end
246
+ end
247
+ end
248
+ end
@@ -0,0 +1,119 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module ExternalRequirements
6
+ class SubNumberOrderUpdateParams < Telnyx::Internal::Type::BaseModel
7
+ extend Telnyx::Internal::Type::RequestParameters::Converter
8
+ include Telnyx::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Telnyx::ExternalRequirements::SubNumberOrderUpdateParams,
14
+ Telnyx::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :regulatory_requirement_id
20
+
21
+ sig { returns(String) }
22
+ attr_accessor :sub_number_order_id
23
+
24
+ # The end user's identity details for the action requirement. Australia mobile ID
25
+ # verification is currently the only action requirement. It requires `first_name`
26
+ # and `last_name`, the same fields the corresponding GET lists in
27
+ # `fields_required`.
28
+ sig do
29
+ returns(
30
+ Telnyx::ExternalRequirements::SubNumberOrderUpdateParams::Requirement
31
+ )
32
+ end
33
+ attr_reader :requirement
34
+
35
+ sig do
36
+ params(
37
+ requirement:
38
+ Telnyx::ExternalRequirements::SubNumberOrderUpdateParams::Requirement::OrHash
39
+ ).void
40
+ end
41
+ attr_writer :requirement
42
+
43
+ sig do
44
+ params(
45
+ regulatory_requirement_id: String,
46
+ sub_number_order_id: String,
47
+ requirement:
48
+ Telnyx::ExternalRequirements::SubNumberOrderUpdateParams::Requirement::OrHash,
49
+ request_options: Telnyx::RequestOptions::OrHash
50
+ ).returns(T.attached_class)
51
+ end
52
+ def self.new(
53
+ regulatory_requirement_id:,
54
+ sub_number_order_id:,
55
+ # The end user's identity details for the action requirement. Australia mobile ID
56
+ # verification is currently the only action requirement. It requires `first_name`
57
+ # and `last_name`, the same fields the corresponding GET lists in
58
+ # `fields_required`.
59
+ requirement:,
60
+ request_options: {}
61
+ )
62
+ end
63
+
64
+ sig do
65
+ override.returns(
66
+ {
67
+ regulatory_requirement_id: String,
68
+ sub_number_order_id: String,
69
+ requirement:
70
+ Telnyx::ExternalRequirements::SubNumberOrderUpdateParams::Requirement,
71
+ request_options: Telnyx::RequestOptions
72
+ }
73
+ )
74
+ end
75
+ def to_hash
76
+ end
77
+
78
+ class Requirement < Telnyx::Internal::Type::BaseModel
79
+ OrHash =
80
+ T.type_alias do
81
+ T.any(
82
+ Telnyx::ExternalRequirements::SubNumberOrderUpdateParams::Requirement,
83
+ Telnyx::Internal::AnyHash
84
+ )
85
+ end
86
+
87
+ # The end user's first name.
88
+ sig { returns(String) }
89
+ attr_accessor :first_name
90
+
91
+ # The end user's last name.
92
+ sig { returns(String) }
93
+ attr_accessor :last_name
94
+
95
+ # The end user's identity details for the action requirement. Australia mobile ID
96
+ # verification is currently the only action requirement. It requires `first_name`
97
+ # and `last_name`, the same fields the corresponding GET lists in
98
+ # `fields_required`.
99
+ sig do
100
+ params(first_name: String, last_name: String).returns(
101
+ T.attached_class
102
+ )
103
+ end
104
+ def self.new(
105
+ # The end user's first name.
106
+ first_name:,
107
+ # The end user's last name.
108
+ last_name:
109
+ )
110
+ end
111
+
112
+ sig { override.returns({ first_name: String, last_name: String }) }
113
+ def to_hash
114
+ end
115
+ end
116
+ end
117
+ end
118
+ end
119
+ end