telnyx 4.0.0 → 4.2.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 (239) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/transport/pooled_net_requester.rb +7 -10
  5. data/lib/telnyx/models/{advanced_order_update_params.rb → advanced_order_update_requirement_group_params.rb} +9 -8
  6. data/lib/telnyx/models/{advanced_order_update_response.rb → advanced_order_update_requirement_group_response.rb} +1 -1
  7. data/lib/telnyx/models/calls/action_start_transcription_params.rb +3 -3
  8. data/lib/telnyx/models/calls/transcription_start_request.rb +448 -10
  9. data/lib/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rb +156 -0
  10. data/lib/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rb +151 -0
  11. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rb +3 -110
  12. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rb +3 -252
  13. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rb +3 -252
  14. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rb +3 -250
  15. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rb +3 -252
  16. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rb +3 -73
  17. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rb +3 -73
  18. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rb +3 -71
  19. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rb +3 -73
  20. data/lib/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rb +79 -0
  21. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rb +3 -110
  22. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rb +3 -256
  23. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rb +3 -256
  24. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rb +3 -255
  25. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rb +3 -256
  26. data/lib/telnyx/models/legacy/reporting/filter.rb +112 -0
  27. data/lib/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rb +109 -0
  28. data/lib/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rb +104 -0
  29. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rb +3 -97
  30. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rb +3 -97
  31. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rb +3 -96
  32. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rb +3 -97
  33. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rb +3 -102
  34. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rb +3 -102
  35. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rb +3 -101
  36. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rb +3 -102
  37. data/lib/telnyx/models/messaging_profile.rb +9 -1
  38. data/lib/telnyx/models/messaging_profile_create_params.rb +9 -1
  39. data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
  40. data/lib/telnyx/models/network_list_interfaces_response.rb +114 -0
  41. data/lib/telnyx/models/oauth_client.rb +173 -0
  42. data/lib/telnyx/models/oauth_client_create_response.rb +3 -172
  43. data/lib/telnyx/models/oauth_client_list_response.rb +3 -171
  44. data/lib/telnyx/models/oauth_client_retrieve_response.rb +3 -172
  45. data/lib/telnyx/models/oauth_client_update_response.rb +3 -172
  46. data/lib/telnyx/models/oauth_grant.rb +68 -0
  47. data/lib/telnyx/models/oauth_grant_delete_response.rb +3 -67
  48. data/lib/telnyx/models/oauth_grant_list_response.rb +3 -66
  49. data/lib/telnyx/models/oauth_grant_retrieve_response.rb +3 -67
  50. data/lib/telnyx/models/public_internet_gateway_create_response.rb +115 -0
  51. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +115 -0
  52. data/lib/telnyx/models/public_internet_gateway_list_response.rb +114 -0
  53. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +115 -0
  54. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +33 -1
  55. data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +33 -1
  56. data/lib/telnyx/models/verify_profile_create_template_response.rb +3 -20
  57. data/lib/telnyx/models/verify_profile_message_template_response.rb +21 -0
  58. data/lib/telnyx/models/verify_profile_retrieve_templates_response.rb +3 -20
  59. data/lib/telnyx/models/verify_profile_update_template_response.rb +3 -20
  60. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +275 -0
  61. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +275 -0
  62. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +274 -0
  63. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +275 -0
  64. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +275 -0
  65. data/lib/telnyx/models/wireguard_interface_create_response.rb +131 -0
  66. data/lib/telnyx/models/wireguard_interface_delete_response.rb +131 -0
  67. data/lib/telnyx/models/wireguard_interface_list_response.rb +130 -0
  68. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +131 -0
  69. data/lib/telnyx/models/wireguard_peer_create_response.rb +78 -0
  70. data/lib/telnyx/models/wireguard_peer_delete_response.rb +78 -0
  71. data/lib/telnyx/models/wireguard_peer_list_response.rb +77 -0
  72. data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +78 -0
  73. data/lib/telnyx/models/wireguard_peer_update_response.rb +78 -0
  74. data/lib/telnyx/models.rb +7 -1
  75. data/lib/telnyx/resources/advanced_orders.rb +26 -26
  76. data/lib/telnyx/resources/calls/actions.rb +2 -2
  77. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rb +1 -1
  78. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/voice.rb +1 -1
  79. data/lib/telnyx/resources/messaging_profiles.rb +6 -2
  80. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -1
  81. data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
  82. data/lib/telnyx/version.rb +1 -1
  83. data/lib/telnyx.rb +11 -2
  84. data/rbi/telnyx/models/{advanced_order_update_params.rbi → advanced_order_update_requirement_group_params.rbi} +53 -25
  85. data/rbi/telnyx/models/{advanced_order_update_response.rbi → advanced_order_update_requirement_group_response.rbi} +1 -1
  86. data/rbi/telnyx/models/calls/action_start_transcription_params.rbi +6 -6
  87. data/rbi/telnyx/models/calls/transcription_start_request.rbi +1488 -15
  88. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbi +232 -0
  89. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbi +346 -0
  90. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbi +4 -279
  91. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbi +4 -614
  92. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbi +4 -614
  93. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbi +4 -614
  94. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbi +4 -614
  95. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbi +4 -155
  96. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbi +4 -155
  97. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbi +4 -155
  98. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbi +4 -155
  99. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbi +162 -0
  100. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbi +4 -279
  101. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbi +4 -500
  102. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbi +4 -500
  103. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbi +4 -500
  104. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbi +4 -500
  105. data/rbi/telnyx/models/legacy/reporting/filter.rbi +252 -0
  106. data/rbi/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbi +157 -0
  107. data/rbi/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbi +155 -0
  108. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbi +4 -148
  109. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbi +4 -148
  110. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbi +4 -148
  111. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbi +4 -148
  112. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbi +4 -150
  113. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbi +4 -150
  114. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbi +4 -150
  115. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbi +4 -150
  116. data/rbi/telnyx/models/messaging_profile.rbi +11 -0
  117. data/rbi/telnyx/models/messaging_profile_create_params.rbi +11 -0
  118. data/rbi/telnyx/models/messaging_profile_update_params.rbi +11 -0
  119. data/rbi/telnyx/models/network_list_interfaces_response.rbi +202 -0
  120. data/rbi/telnyx/models/oauth_client.rbi +250 -0
  121. data/rbi/telnyx/models/oauth_client_create_response.rbi +4 -317
  122. data/rbi/telnyx/models/oauth_client_list_response.rbi +4 -313
  123. data/rbi/telnyx/models/oauth_client_retrieve_response.rbi +4 -317
  124. data/rbi/telnyx/models/oauth_client_update_response.rbi +4 -317
  125. data/rbi/telnyx/models/oauth_grant.rbi +95 -0
  126. data/rbi/telnyx/models/oauth_grant_delete_response.rbi +4 -127
  127. data/rbi/telnyx/models/oauth_grant_list_response.rbi +4 -123
  128. data/rbi/telnyx/models/oauth_grant_retrieve_response.rbi +4 -129
  129. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +202 -0
  130. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +202 -0
  131. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +202 -0
  132. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +202 -0
  133. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +65 -0
  134. data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +67 -0
  135. data/rbi/telnyx/models/verify_profile_create_template_response.rbi +4 -44
  136. data/rbi/telnyx/models/verify_profile_message_template_response.rbi +35 -0
  137. data/rbi/telnyx/models/verify_profile_retrieve_templates_response.rbi +3 -45
  138. data/rbi/telnyx/models/verify_profile_update_template_response.rbi +4 -44
  139. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +444 -0
  140. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +444 -0
  141. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -0
  142. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +444 -0
  143. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +444 -0
  144. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +224 -0
  145. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +224 -0
  146. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +224 -0
  147. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +224 -0
  148. data/rbi/telnyx/models/wireguard_peer_create_response.rbi +125 -0
  149. data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +125 -0
  150. data/rbi/telnyx/models/wireguard_peer_list_response.rbi +125 -0
  151. data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +125 -0
  152. data/rbi/telnyx/models/wireguard_peer_update_response.rbi +125 -0
  153. data/rbi/telnyx/models.rbi +9 -1
  154. data/rbi/telnyx/resources/advanced_orders.rbi +16 -14
  155. data/rbi/telnyx/resources/calls/actions.rbi +7 -3
  156. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbi +1 -4
  157. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbi +1 -4
  158. data/rbi/telnyx/resources/messaging_profiles.rbi +6 -0
  159. data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -0
  160. data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
  161. data/sig/telnyx/models/{advanced_order_update_params.rbs → advanced_order_update_requirement_group_params.rbs} +16 -16
  162. data/sig/telnyx/models/advanced_order_update_requirement_group_response.rbs +5 -0
  163. data/sig/telnyx/models/calls/action_start_transcription_params.rbs +5 -5
  164. data/sig/telnyx/models/calls/transcription_start_request.rbs +594 -11
  165. data/sig/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbs +142 -0
  166. data/sig/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbs +163 -0
  167. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbs +6 -108
  168. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbs +6 -262
  169. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbs +6 -262
  170. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbs +6 -262
  171. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbs +6 -262
  172. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbs +6 -82
  173. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbs +6 -82
  174. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbs +6 -82
  175. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbs +6 -82
  176. data/sig/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbs +85 -0
  177. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbs +6 -108
  178. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbs +6 -241
  179. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbs +6 -241
  180. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbs +6 -241
  181. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbs +6 -241
  182. data/sig/telnyx/models/legacy/reporting/filter.rbs +109 -0
  183. data/sig/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbs +105 -0
  184. data/sig/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbs +105 -0
  185. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbs +6 -102
  186. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbs +6 -102
  187. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbs +6 -102
  188. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbs +6 -102
  189. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbs +6 -102
  190. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbs +6 -102
  191. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbs +6 -102
  192. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbs +6 -102
  193. data/sig/telnyx/models/messaging_profile.rbs +7 -0
  194. data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
  195. data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
  196. data/sig/telnyx/models/network_list_interfaces_response.rbs +110 -0
  197. data/sig/telnyx/models/oauth_client.rbs +137 -0
  198. data/sig/telnyx/models/oauth_client_create_response.rbs +5 -144
  199. data/sig/telnyx/models/oauth_client_list_response.rbs +5 -141
  200. data/sig/telnyx/models/oauth_client_retrieve_response.rbs +5 -146
  201. data/sig/telnyx/models/oauth_client_update_response.rbs +5 -144
  202. data/sig/telnyx/models/oauth_grant.rbs +55 -0
  203. data/sig/telnyx/models/oauth_grant_delete_response.rbs +5 -62
  204. data/sig/telnyx/models/oauth_grant_list_response.rbs +5 -59
  205. data/sig/telnyx/models/oauth_grant_retrieve_response.rbs +5 -62
  206. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +110 -0
  207. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +110 -0
  208. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +110 -0
  209. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +110 -0
  210. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +21 -0
  211. data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +21 -0
  212. data/sig/telnyx/models/verify_profile_create_template_response.rbs +6 -24
  213. data/sig/telnyx/models/verify_profile_message_template_response.rbs +19 -0
  214. data/sig/telnyx/models/verify_profile_retrieve_templates_response.rbs +4 -22
  215. data/sig/telnyx/models/verify_profile_update_template_response.rbs +6 -24
  216. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +219 -0
  217. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +219 -0
  218. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +219 -0
  219. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +219 -0
  220. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +219 -0
  221. data/sig/telnyx/models/wireguard_interface_create_response.rbs +124 -0
  222. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +124 -0
  223. data/sig/telnyx/models/wireguard_interface_list_response.rbs +124 -0
  224. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +124 -0
  225. data/sig/telnyx/models/wireguard_peer_create_response.rbs +68 -0
  226. data/sig/telnyx/models/wireguard_peer_delete_response.rbs +68 -0
  227. data/sig/telnyx/models/wireguard_peer_list_response.rbs +68 -0
  228. data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +68 -0
  229. data/sig/telnyx/models/wireguard_peer_update_response.rbs +68 -0
  230. data/sig/telnyx/models.rbs +7 -1
  231. data/sig/telnyx/resources/advanced_orders.rbs +6 -6
  232. data/sig/telnyx/resources/calls/actions.rbs +1 -1
  233. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbs +1 -1
  234. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbs +1 -1
  235. data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
  236. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -0
  237. data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
  238. metadata +35 -8
  239. data/sig/telnyx/models/advanced_order_update_response.rbs +0 -5
@@ -11,6 +11,137 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardInterfaceRetrieveResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardInterfaceRetrieveResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute name
18
+ # A user specified name for the interface.
19
+ #
20
+ # @return [String, nil]
21
+ optional :name, String
22
+
23
+ # @!attribute network_id
24
+ # The id of the network associated with the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :network_id, String
28
+
29
+ # @!attribute enable_sip_trunking
30
+ # Enable SIP traffic forwarding over VPN interface.
31
+ #
32
+ # @return [Boolean, nil]
33
+ optional :enable_sip_trunking, Telnyx::Internal::Type::Boolean
34
+
35
+ # @!attribute region
36
+ #
37
+ # @return [Telnyx::Models::WireguardInterfaceRetrieveResponse::Data::Region, nil]
38
+ optional :region, -> { Telnyx::Models::WireguardInterfaceRetrieveResponse::Data::Region }
39
+
40
+ # @!attribute region_code
41
+ # The region interface is deployed to.
42
+ #
43
+ # @return [String, nil]
44
+ optional :region_code, String
45
+
46
+ response_only do
47
+ # @!attribute id
48
+ # Identifies the resource.
49
+ #
50
+ # @return [String, nil]
51
+ optional :id, String
52
+
53
+ # @!attribute created_at
54
+ # ISO 8601 formatted date-time indicating when the resource was created.
55
+ #
56
+ # @return [String, nil]
57
+ optional :created_at, String
58
+
59
+ # @!attribute record_type
60
+ # Identifies the type of the resource.
61
+ #
62
+ # @return [String, nil]
63
+ optional :record_type, String
64
+
65
+ # @!attribute updated_at
66
+ # ISO 8601 formatted date-time indicating when the resource was updated.
67
+ #
68
+ # @return [String, nil]
69
+ optional :updated_at, String
70
+
71
+ # @!attribute status
72
+ # The current status of the interface deployment.
73
+ #
74
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
75
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
76
+
77
+ # @!attribute endpoint
78
+ # The Telnyx WireGuard peers `Peer.endpoint` value.
79
+ #
80
+ # @return [String, nil]
81
+ optional :endpoint, String
82
+
83
+ # @!attribute public_key
84
+ # The Telnyx WireGuard peers `Peer.PublicKey`.
85
+ #
86
+ # @return [String, nil]
87
+ optional :public_key, String
88
+ end
89
+
90
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, enable_sip_trunking: nil, endpoint: nil, public_key: nil, region: nil, region_code: nil)
91
+ # @param id [String] Identifies the resource.
92
+ #
93
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
94
+ #
95
+ # @param record_type [String] Identifies the type of the resource.
96
+ #
97
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
98
+ #
99
+ # @param name [String] A user specified name for the interface.
100
+ #
101
+ # @param network_id [String] The id of the network associated with the interface.
102
+ #
103
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
104
+ #
105
+ # @param enable_sip_trunking [Boolean] Enable SIP traffic forwarding over VPN interface.
106
+ #
107
+ # @param endpoint [String] The Telnyx WireGuard peers `Peer.endpoint` value.
108
+ #
109
+ # @param public_key [String] The Telnyx WireGuard peers `Peer.PublicKey`.
110
+ #
111
+ # @param region [Telnyx::Models::WireguardInterfaceRetrieveResponse::Data::Region]
112
+ #
113
+ # @param region_code [String] The region interface is deployed to.
114
+
115
+ # @see Telnyx::Models::WireguardInterfaceRetrieveResponse::Data#region
116
+ class Region < Telnyx::Internal::Type::BaseModel
117
+ # @!attribute code
118
+ # Region code of the interface.
119
+ #
120
+ # @return [String, nil]
121
+ optional :code, String
122
+
123
+ # @!attribute name
124
+ # Region name of the interface.
125
+ #
126
+ # @return [String, nil]
127
+ optional :name, String
128
+
129
+ response_only do
130
+ # @!attribute record_type
131
+ # Identifies the type of the resource.
132
+ #
133
+ # @return [String, nil]
134
+ optional :record_type, String
135
+ end
136
+
137
+ # @!method initialize(code: nil, name: nil, record_type: nil)
138
+ # @param code [String] Region code of the interface.
139
+ #
140
+ # @param name [String] Region name of the interface.
141
+ #
142
+ # @param record_type [String] Identifies the type of the resource.
143
+ end
144
+ end
14
145
  end
15
146
  end
16
147
  end
@@ -11,6 +11,84 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardPeerCreateResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardPeerCreateResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute public_key
18
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
19
+ # Public and Private key pair will be generated for you.
20
+ #
21
+ # @return [String, nil]
22
+ optional :public_key, String
23
+
24
+ # @!attribute wireguard_interface_id
25
+ # The id of the wireguard interface associated with the peer.
26
+ #
27
+ # @return [String, nil]
28
+ optional :wireguard_interface_id, String
29
+
30
+ response_only do
31
+ # @!attribute id
32
+ # Identifies the resource.
33
+ #
34
+ # @return [String, nil]
35
+ optional :id, String
36
+
37
+ # @!attribute created_at
38
+ # ISO 8601 formatted date-time indicating when the resource was created.
39
+ #
40
+ # @return [String, nil]
41
+ optional :created_at, String
42
+
43
+ # @!attribute record_type
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @return [String, nil]
47
+ optional :record_type, String
48
+
49
+ # @!attribute updated_at
50
+ # ISO 8601 formatted date-time indicating when the resource was updated.
51
+ #
52
+ # @return [String, nil]
53
+ optional :updated_at, String
54
+
55
+ # @!attribute last_seen
56
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
57
+ #
58
+ # @return [String, nil]
59
+ optional :last_seen, String
60
+
61
+ # @!attribute private_key
62
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
63
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
64
+ # new Public and Private key pair will be generated for you. When your
65
+ # `private_key` is returned, you must save this immediately as we do not save it
66
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
67
+ #
68
+ # @return [String, nil]
69
+ optional :private_key, String
70
+ end
71
+
72
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
73
+ # Some parameter documentations has been truncated, see
74
+ # {Telnyx::Models::WireguardPeerCreateResponse::Data} for more details.
75
+ #
76
+ # @param id [String] Identifies the resource.
77
+ #
78
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
79
+ #
80
+ # @param record_type [String] Identifies the type of the resource.
81
+ #
82
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
83
+ #
84
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
85
+ #
86
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
87
+ #
88
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
89
+ #
90
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
91
+ end
14
92
  end
15
93
  end
16
94
  end
@@ -11,6 +11,84 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardPeerDeleteResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardPeerDeleteResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute public_key
18
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
19
+ # Public and Private key pair will be generated for you.
20
+ #
21
+ # @return [String, nil]
22
+ optional :public_key, String
23
+
24
+ # @!attribute wireguard_interface_id
25
+ # The id of the wireguard interface associated with the peer.
26
+ #
27
+ # @return [String, nil]
28
+ optional :wireguard_interface_id, String
29
+
30
+ response_only do
31
+ # @!attribute id
32
+ # Identifies the resource.
33
+ #
34
+ # @return [String, nil]
35
+ optional :id, String
36
+
37
+ # @!attribute created_at
38
+ # ISO 8601 formatted date-time indicating when the resource was created.
39
+ #
40
+ # @return [String, nil]
41
+ optional :created_at, String
42
+
43
+ # @!attribute record_type
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @return [String, nil]
47
+ optional :record_type, String
48
+
49
+ # @!attribute updated_at
50
+ # ISO 8601 formatted date-time indicating when the resource was updated.
51
+ #
52
+ # @return [String, nil]
53
+ optional :updated_at, String
54
+
55
+ # @!attribute last_seen
56
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
57
+ #
58
+ # @return [String, nil]
59
+ optional :last_seen, String
60
+
61
+ # @!attribute private_key
62
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
63
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
64
+ # new Public and Private key pair will be generated for you. When your
65
+ # `private_key` is returned, you must save this immediately as we do not save it
66
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
67
+ #
68
+ # @return [String, nil]
69
+ optional :private_key, String
70
+ end
71
+
72
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
73
+ # Some parameter documentations has been truncated, see
74
+ # {Telnyx::Models::WireguardPeerDeleteResponse::Data} for more details.
75
+ #
76
+ # @param id [String] Identifies the resource.
77
+ #
78
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
79
+ #
80
+ # @param record_type [String] Identifies the type of the resource.
81
+ #
82
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
83
+ #
84
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
85
+ #
86
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
87
+ #
88
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
89
+ #
90
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
91
+ end
14
92
  end
15
93
  end
16
94
  end
@@ -17,6 +17,83 @@ module Telnyx
17
17
  # @!method initialize(data: nil, meta: nil)
18
18
  # @param data [Array<Telnyx::Models::WireguardPeerListResponse::Data>]
19
19
  # @param meta [Telnyx::Models::PaginationMeta]
20
+
21
+ class Data < Telnyx::Internal::Type::BaseModel
22
+ # @!attribute public_key
23
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
24
+ # Public and Private key pair will be generated for you.
25
+ #
26
+ # @return [String, nil]
27
+ optional :public_key, String
28
+
29
+ # @!attribute wireguard_interface_id
30
+ # The id of the wireguard interface associated with the peer.
31
+ #
32
+ # @return [String, nil]
33
+ optional :wireguard_interface_id, String
34
+
35
+ response_only do
36
+ # @!attribute id
37
+ # Identifies the resource.
38
+ #
39
+ # @return [String, nil]
40
+ optional :id, String
41
+
42
+ # @!attribute created_at
43
+ # ISO 8601 formatted date-time indicating when the resource was created.
44
+ #
45
+ # @return [String, nil]
46
+ optional :created_at, String
47
+
48
+ # @!attribute record_type
49
+ # Identifies the type of the resource.
50
+ #
51
+ # @return [String, nil]
52
+ optional :record_type, String
53
+
54
+ # @!attribute updated_at
55
+ # ISO 8601 formatted date-time indicating when the resource was updated.
56
+ #
57
+ # @return [String, nil]
58
+ optional :updated_at, String
59
+
60
+ # @!attribute last_seen
61
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
62
+ #
63
+ # @return [String, nil]
64
+ optional :last_seen, String
65
+
66
+ # @!attribute private_key
67
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
68
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
69
+ # new Public and Private key pair will be generated for you. When your
70
+ # `private_key` is returned, you must save this immediately as we do not save it
71
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
72
+ #
73
+ # @return [String, nil]
74
+ optional :private_key, String
75
+ end
76
+
77
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
78
+ # Some parameter documentations has been truncated, see
79
+ # {Telnyx::Models::WireguardPeerListResponse::Data} for more details.
80
+ #
81
+ # @param id [String] Identifies the resource.
82
+ #
83
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
84
+ #
85
+ # @param record_type [String] Identifies the type of the resource.
86
+ #
87
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
88
+ #
89
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
90
+ #
91
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
92
+ #
93
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
94
+ #
95
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
96
+ end
20
97
  end
21
98
  end
22
99
  end
@@ -11,6 +11,84 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardPeerRetrieveResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardPeerRetrieveResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute public_key
18
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
19
+ # Public and Private key pair will be generated for you.
20
+ #
21
+ # @return [String, nil]
22
+ optional :public_key, String
23
+
24
+ # @!attribute wireguard_interface_id
25
+ # The id of the wireguard interface associated with the peer.
26
+ #
27
+ # @return [String, nil]
28
+ optional :wireguard_interface_id, String
29
+
30
+ response_only do
31
+ # @!attribute id
32
+ # Identifies the resource.
33
+ #
34
+ # @return [String, nil]
35
+ optional :id, String
36
+
37
+ # @!attribute created_at
38
+ # ISO 8601 formatted date-time indicating when the resource was created.
39
+ #
40
+ # @return [String, nil]
41
+ optional :created_at, String
42
+
43
+ # @!attribute record_type
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @return [String, nil]
47
+ optional :record_type, String
48
+
49
+ # @!attribute updated_at
50
+ # ISO 8601 formatted date-time indicating when the resource was updated.
51
+ #
52
+ # @return [String, nil]
53
+ optional :updated_at, String
54
+
55
+ # @!attribute last_seen
56
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
57
+ #
58
+ # @return [String, nil]
59
+ optional :last_seen, String
60
+
61
+ # @!attribute private_key
62
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
63
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
64
+ # new Public and Private key pair will be generated for you. When your
65
+ # `private_key` is returned, you must save this immediately as we do not save it
66
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
67
+ #
68
+ # @return [String, nil]
69
+ optional :private_key, String
70
+ end
71
+
72
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
73
+ # Some parameter documentations has been truncated, see
74
+ # {Telnyx::Models::WireguardPeerRetrieveResponse::Data} for more details.
75
+ #
76
+ # @param id [String] Identifies the resource.
77
+ #
78
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
79
+ #
80
+ # @param record_type [String] Identifies the type of the resource.
81
+ #
82
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
83
+ #
84
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
85
+ #
86
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
87
+ #
88
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
89
+ #
90
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
91
+ end
14
92
  end
15
93
  end
16
94
  end
@@ -11,6 +11,84 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardPeerUpdateResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardPeerUpdateResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute public_key
18
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
19
+ # Public and Private key pair will be generated for you.
20
+ #
21
+ # @return [String, nil]
22
+ optional :public_key, String
23
+
24
+ # @!attribute wireguard_interface_id
25
+ # The id of the wireguard interface associated with the peer.
26
+ #
27
+ # @return [String, nil]
28
+ optional :wireguard_interface_id, String
29
+
30
+ response_only do
31
+ # @!attribute id
32
+ # Identifies the resource.
33
+ #
34
+ # @return [String, nil]
35
+ optional :id, String
36
+
37
+ # @!attribute created_at
38
+ # ISO 8601 formatted date-time indicating when the resource was created.
39
+ #
40
+ # @return [String, nil]
41
+ optional :created_at, String
42
+
43
+ # @!attribute record_type
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @return [String, nil]
47
+ optional :record_type, String
48
+
49
+ # @!attribute updated_at
50
+ # ISO 8601 formatted date-time indicating when the resource was updated.
51
+ #
52
+ # @return [String, nil]
53
+ optional :updated_at, String
54
+
55
+ # @!attribute last_seen
56
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
57
+ #
58
+ # @return [String, nil]
59
+ optional :last_seen, String
60
+
61
+ # @!attribute private_key
62
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
63
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
64
+ # new Public and Private key pair will be generated for you. When your
65
+ # `private_key` is returned, you must save this immediately as we do not save it
66
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
67
+ #
68
+ # @return [String, nil]
69
+ optional :private_key, String
70
+ end
71
+
72
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
73
+ # Some parameter documentations has been truncated, see
74
+ # {Telnyx::Models::WireguardPeerUpdateResponse::Data} for more details.
75
+ #
76
+ # @param id [String] Identifies the resource.
77
+ #
78
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
79
+ #
80
+ # @param record_type [String] Identifies the type of the resource.
81
+ #
82
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
83
+ #
84
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
85
+ #
86
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
87
+ #
88
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
89
+ #
90
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
91
+ end
14
92
  end
15
93
  end
16
94
  end
data/lib/telnyx/models.rb CHANGED
@@ -77,7 +77,7 @@ module Telnyx
77
77
 
78
78
  AdvancedOrderRetrieveParams = Telnyx::Models::AdvancedOrderRetrieveParams
79
79
 
80
- AdvancedOrderUpdateParams = Telnyx::Models::AdvancedOrderUpdateParams
80
+ AdvancedOrderUpdateRequirementGroupParams = Telnyx::Models::AdvancedOrderUpdateRequirementGroupParams
81
81
 
82
82
  AI = Telnyx::Models::AI
83
83
 
@@ -880,6 +880,8 @@ module Telnyx
880
880
 
881
881
  NumbersFeatureCreateParams = Telnyx::Models::NumbersFeatureCreateParams
882
882
 
883
+ OAuthClient = Telnyx::Models::OAuthClient
884
+
883
885
  OAuthClientCreateParams = Telnyx::Models::OAuthClientCreateParams
884
886
 
885
887
  OAuthClientDeleteParams = Telnyx::Models::OAuthClientDeleteParams
@@ -890,6 +892,8 @@ module Telnyx
890
892
 
891
893
  OAuthClientUpdateParams = Telnyx::Models::OAuthClientUpdateParams
892
894
 
895
+ OAuthGrant = Telnyx::Models::OAuthGrant
896
+
893
897
  OAuthGrantDeleteParams = Telnyx::Models::OAuthGrantDeleteParams
894
898
 
895
899
  OAuthGrantListParams = Telnyx::Models::OAuthGrantListParams
@@ -1446,6 +1450,8 @@ module Telnyx
1446
1450
 
1447
1451
  VerifyProfileListParams = Telnyx::Models::VerifyProfileListParams
1448
1452
 
1453
+ VerifyProfileMessageTemplateResponse = Telnyx::Models::VerifyProfileMessageTemplateResponse
1454
+
1449
1455
  VerifyProfileRetrieveParams = Telnyx::Models::VerifyProfileRetrieveParams
1450
1456
 
1451
1457
  VerifyProfileRetrieveTemplatesParams = Telnyx::Models::VerifyProfileRetrieveTemplatesParams
@@ -58,11 +58,29 @@ module Telnyx
58
58
  )
59
59
  end
60
60
 
61
+ # List Advanced Orders
62
+ #
63
+ # @overload list(request_options: {})
64
+ #
65
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
66
+ #
67
+ # @return [Object]
68
+ #
69
+ # @see Telnyx::Models::AdvancedOrderListParams
70
+ def list(params = {})
71
+ @client.request(
72
+ method: :get,
73
+ path: "advanced_orders",
74
+ model: Telnyx::Internal::Type::Unknown,
75
+ options: params[:request_options]
76
+ )
77
+ end
78
+
61
79
  # Update Advanced Order
62
80
  #
63
- # @overload update(order_id, area_code: nil, comments: nil, country_code: nil, customer_reference: nil, features: nil, phone_number_type: nil, quantity: nil, requirement_group_id: nil, request_options: {})
81
+ # @overload update_requirement_group(advanced_order_id, area_code: nil, comments: nil, country_code: nil, customer_reference: nil, features: nil, phone_number_type: nil, quantity: nil, requirement_group_id: nil, request_options: {})
64
82
  #
65
- # @param order_id [String]
83
+ # @param advanced_order_id [String]
66
84
  #
67
85
  # @param area_code [String]
68
86
  #
@@ -72,9 +90,9 @@ module Telnyx
72
90
  #
73
91
  # @param customer_reference [String]
74
92
  #
75
- # @param features [Array<Symbol, Telnyx::Models::AdvancedOrderUpdateParams::Feature>]
93
+ # @param features [Array<Symbol, Telnyx::Models::AdvancedOrderUpdateRequirementGroupParams::Feature>]
76
94
  #
77
- # @param phone_number_type [Symbol, Telnyx::Models::AdvancedOrderUpdateParams::PhoneNumberType]
95
+ # @param phone_number_type [Symbol, Telnyx::Models::AdvancedOrderUpdateRequirementGroupParams::PhoneNumberType]
78
96
  #
79
97
  # @param quantity [Integer]
80
98
  #
@@ -84,36 +102,18 @@ module Telnyx
84
102
  #
85
103
  # @return [Object]
86
104
  #
87
- # @see Telnyx::Models::AdvancedOrderUpdateParams
88
- def update(order_id, params = {})
89
- parsed, options = Telnyx::AdvancedOrderUpdateParams.dump_request(params)
105
+ # @see Telnyx::Models::AdvancedOrderUpdateRequirementGroupParams
106
+ def update_requirement_group(advanced_order_id, params = {})
107
+ parsed, options = Telnyx::AdvancedOrderUpdateRequirementGroupParams.dump_request(params)
90
108
  @client.request(
91
109
  method: :patch,
92
- path: ["advanced_orders/%1$s", order_id],
110
+ path: ["advanced_orders/%1$s/requirement_group", advanced_order_id],
93
111
  body: parsed,
94
112
  model: Telnyx::Internal::Type::Unknown,
95
113
  options: options
96
114
  )
97
115
  end
98
116
 
99
- # List Advanced Orders
100
- #
101
- # @overload list(request_options: {})
102
- #
103
- # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
104
- #
105
- # @return [Object]
106
- #
107
- # @see Telnyx::Models::AdvancedOrderListParams
108
- def list(params = {})
109
- @client.request(
110
- method: :get,
111
- path: "advanced_orders",
112
- model: Telnyx::Internal::Type::Unknown,
113
- options: params[:request_options]
114
- )
115
- end
116
-
117
117
  # @api private
118
118
  #
119
119
  # @param client [Telnyx::Client]