bandwidth-sdk 11.0.0.pre.beta.1 → 11.0.0.pre.beta.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (381) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +46 -23
  4. data/README.md +7 -3
  5. data/Rakefile +10 -2
  6. data/bandwidth-sdk.gemspec +12 -12
  7. data/bandwidth.yml +409 -353
  8. data/coverage/.last_run.json +5 -0
  9. data/coverage/.resultset.json +9792 -0
  10. data/coverage/.resultset.json.lock +0 -0
  11. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
  12. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
  13. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
  14. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
  15. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
  16. data/coverage/assets/0.12.3/application.css +1 -0
  17. data/coverage/assets/0.12.3/application.js +7 -0
  18. data/coverage/assets/0.12.3/colorbox/border.png +0 -0
  19. data/coverage/assets/0.12.3/colorbox/controls.png +0 -0
  20. data/coverage/assets/0.12.3/colorbox/loading.gif +0 -0
  21. data/coverage/assets/0.12.3/colorbox/loading_background.png +0 -0
  22. data/coverage/assets/0.12.3/favicon_green.png +0 -0
  23. data/coverage/assets/0.12.3/favicon_red.png +0 -0
  24. data/coverage/assets/0.12.3/favicon_yellow.png +0 -0
  25. data/coverage/assets/0.12.3/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  26. data/coverage/assets/0.12.3/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  27. data/coverage/assets/0.12.3/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  28. data/coverage/assets/0.12.3/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  29. data/coverage/assets/0.12.3/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  30. data/coverage/assets/0.12.3/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  31. data/coverage/assets/0.12.3/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  32. data/coverage/assets/0.12.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  33. data/coverage/assets/0.12.3/images/ui-icons_222222_256x240.png +0 -0
  34. data/coverage/assets/0.12.3/images/ui-icons_2e83ff_256x240.png +0 -0
  35. data/coverage/assets/0.12.3/images/ui-icons_454545_256x240.png +0 -0
  36. data/coverage/assets/0.12.3/images/ui-icons_888888_256x240.png +0 -0
  37. data/coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png +0 -0
  38. data/coverage/assets/0.12.3/loading.gif +0 -0
  39. data/coverage/assets/0.12.3/magnify.png +0 -0
  40. data/coverage/index.html +108612 -0
  41. data/custom_templates/Gemfile.mustache +11 -0
  42. data/custom_templates/README.mustache +170 -0
  43. data/custom_templates/gem.mustache +99 -0
  44. data/custom_templates/gemspec.mustache +37 -0
  45. data/custom_templates/version.mustache +7 -0
  46. data/docs/AnswerCallback.md +3 -3
  47. data/docs/BridgeCompleteCallback.md +2 -2
  48. data/docs/BridgeTargetCompleteCallback.md +2 -2
  49. data/docs/CallState.md +2 -2
  50. data/docs/CallsApi.md +15 -15
  51. data/docs/Conference.md +4 -4
  52. data/docs/ConferenceCompletedCallback.md +2 -2
  53. data/docs/ConferenceCreatedCallback.md +2 -2
  54. data/docs/ConferenceMemberExitCallback.md +2 -2
  55. data/docs/ConferenceMemberJoinCallback.md +2 -2
  56. data/docs/ConferenceRecordingAvailableCallback.md +2 -2
  57. data/docs/ConferenceRedirectCallback.md +2 -2
  58. data/docs/ConferencesApi.md +42 -42
  59. data/docs/CreateCall.md +11 -11
  60. data/docs/CreateCallResponse.md +11 -11
  61. data/docs/DisconnectCallback.md +2 -2
  62. data/docs/DtmfCallback.md +2 -2
  63. data/docs/GatherCallback.md +2 -2
  64. data/docs/InitiateCallback.md +2 -2
  65. data/docs/ListMessageItem.md +5 -3
  66. data/docs/MFAApi.md +6 -6
  67. data/docs/MachineDetectionCompleteCallback.md +3 -3
  68. data/docs/MachineDetectionConfiguration.md +2 -2
  69. data/docs/MachineDetectionResult.md +20 -0
  70. data/docs/Message.md +5 -3
  71. data/docs/MessageDeliveredCallbackMessage.md +1 -1
  72. data/docs/MessageFailedCallbackMessage.md +1 -1
  73. data/docs/MessageRequest.md +1 -1
  74. data/docs/MessageSendingCallbackMessage.md +1 -1
  75. data/docs/MessagesApi.md +5 -1
  76. data/docs/MessagesList.md +1 -1
  77. data/docs/PhoneNumberLookupApi.md +4 -4
  78. data/docs/RecordingAvailableCallback.md +2 -2
  79. data/docs/RecordingCompleteCallback.md +2 -2
  80. data/docs/RecordingsApi.md +52 -52
  81. data/docs/RedirectCallback.md +2 -2
  82. data/docs/StatisticsApi.md +2 -2
  83. data/docs/TranscribeRecording.md +4 -2
  84. data/docs/TranscriptionAvailableCallback.md +2 -2
  85. data/docs/TransferAnswerCallback.md +2 -2
  86. data/docs/TransferCompleteCallback.md +2 -2
  87. data/docs/TransferDisconnectCallback.md +2 -2
  88. data/docs/UpdateCall.md +3 -3
  89. data/docs/UpdateConference.md +3 -3
  90. data/lib/bandwidth-sdk/api/calls_api.rb +18 -18
  91. data/lib/bandwidth-sdk/api/conferences_api.rb +46 -46
  92. data/lib/bandwidth-sdk/api/media_api.rb +2 -2
  93. data/lib/bandwidth-sdk/api/messages_api.rb +8 -2
  94. data/lib/bandwidth-sdk/api/mfa_api.rb +10 -10
  95. data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +6 -6
  96. data/lib/bandwidth-sdk/api/recordings_api.rb +55 -55
  97. data/lib/bandwidth-sdk/api/statistics_api.rb +3 -3
  98. data/lib/bandwidth-sdk/api_client.rb +1 -1
  99. data/lib/bandwidth-sdk/api_error.rb +2 -2
  100. data/lib/bandwidth-sdk/configuration.rb +3 -3
  101. data/lib/bandwidth-sdk/models/account_statistics.rb +2 -4
  102. data/lib/bandwidth-sdk/models/answer_callback.rb +4 -7
  103. data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +3 -5
  104. data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +3 -5
  105. data/lib/bandwidth-sdk/models/bxml/bxml.rb +2 -4
  106. data/lib/bandwidth-sdk/models/bxml/nestable_verb.rb +3 -7
  107. data/lib/bandwidth-sdk/models/bxml/response.rb +2 -4
  108. data/lib/bandwidth-sdk/models/bxml/root.rb +3 -3
  109. data/lib/bandwidth-sdk/models/bxml/verb.rb +4 -5
  110. data/lib/bandwidth-sdk/models/bxml/verbs/bridge.rb +2 -4
  111. data/lib/bandwidth-sdk/models/bxml/verbs/conference.rb +2 -5
  112. data/lib/bandwidth-sdk/models/bxml/verbs/custom_param.rb +16 -0
  113. data/lib/bandwidth-sdk/models/bxml/verbs/forward.rb +2 -4
  114. data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +3 -5
  115. data/lib/bandwidth-sdk/models/bxml/verbs/hangup.rb +2 -4
  116. data/lib/bandwidth-sdk/models/bxml/verbs/pause.rb +2 -4
  117. data/lib/bandwidth-sdk/models/bxml/verbs/pause_recording.rb +2 -4
  118. data/lib/bandwidth-sdk/models/bxml/verbs/phone_number.rb +2 -4
  119. data/lib/bandwidth-sdk/models/bxml/verbs/play_audio.rb +2 -4
  120. data/lib/bandwidth-sdk/models/bxml/verbs/record.rb +2 -4
  121. data/lib/bandwidth-sdk/models/bxml/verbs/redirect.rb +2 -4
  122. data/lib/bandwidth-sdk/models/bxml/verbs/resume_recording.rb +2 -4
  123. data/lib/bandwidth-sdk/models/bxml/verbs/ring.rb +2 -4
  124. data/lib/bandwidth-sdk/models/bxml/verbs/send_dtmf.rb +2 -4
  125. data/lib/bandwidth-sdk/models/bxml/verbs/sip_uri.rb +2 -4
  126. data/lib/bandwidth-sdk/models/bxml/verbs/speak_sentence.rb +3 -5
  127. data/lib/bandwidth-sdk/models/bxml/verbs/start_gather.rb +2 -4
  128. data/lib/bandwidth-sdk/models/bxml/verbs/start_recording.rb +2 -4
  129. data/lib/bandwidth-sdk/models/bxml/verbs/start_stream.rb +2 -4
  130. data/lib/bandwidth-sdk/models/bxml/verbs/start_transcription.rb +29 -0
  131. data/lib/bandwidth-sdk/models/bxml/verbs/stop_gather.rb +2 -4
  132. data/lib/bandwidth-sdk/models/bxml/verbs/stop_recording.rb +2 -4
  133. data/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb +2 -4
  134. data/lib/bandwidth-sdk/models/bxml/verbs/stop_transcription.rb +15 -0
  135. data/lib/bandwidth-sdk/models/bxml/verbs/stream_param.rb +2 -4
  136. data/lib/bandwidth-sdk/models/bxml/verbs/tag.rb +2 -4
  137. data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +2 -4
  138. data/lib/bandwidth-sdk/models/call_direction_enum.rb +3 -3
  139. data/lib/bandwidth-sdk/models/call_recording_metadata.rb +2 -4
  140. data/lib/bandwidth-sdk/models/call_state.rb +4 -6
  141. data/lib/bandwidth-sdk/models/call_state_enum.rb +3 -3
  142. data/lib/bandwidth-sdk/models/callback_method_enum.rb +3 -3
  143. data/lib/bandwidth-sdk/models/code_request.rb +2 -4
  144. data/lib/bandwidth-sdk/models/conference.rb +5 -7
  145. data/lib/bandwidth-sdk/models/conference_completed_callback.rb +3 -5
  146. data/lib/bandwidth-sdk/models/conference_created_callback.rb +3 -5
  147. data/lib/bandwidth-sdk/models/conference_member.rb +2 -4
  148. data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +3 -5
  149. data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +3 -5
  150. data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +3 -5
  151. data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +2 -4
  152. data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +3 -5
  153. data/lib/bandwidth-sdk/models/conference_state_enum.rb +3 -3
  154. data/lib/bandwidth-sdk/models/create_call.rb +14 -7
  155. data/lib/bandwidth-sdk/models/create_call_response.rb +10 -12
  156. data/lib/bandwidth-sdk/models/create_lookup_response.rb +2 -4
  157. data/lib/bandwidth-sdk/models/create_message_request_error.rb +2 -4
  158. data/lib/bandwidth-sdk/models/deferred_result.rb +2 -4
  159. data/lib/bandwidth-sdk/models/disconenct_callback.rb +1 -3
  160. data/lib/bandwidth-sdk/models/disconnect_callback.rb +3 -5
  161. data/lib/bandwidth-sdk/models/diversion.rb +2 -4
  162. data/lib/bandwidth-sdk/models/dtmf_callback.rb +3 -5
  163. data/lib/bandwidth-sdk/models/field_error.rb +2 -4
  164. data/lib/bandwidth-sdk/models/file_format_enum.rb +3 -3
  165. data/lib/bandwidth-sdk/models/gather_callback.rb +3 -5
  166. data/lib/bandwidth-sdk/models/inbound_message_callback.rb +2 -4
  167. data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +3 -4
  168. data/lib/bandwidth-sdk/models/initiate_callback.rb +3 -5
  169. data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +3 -3
  170. data/lib/bandwidth-sdk/models/list_message_item.rb +19 -10
  171. data/lib/bandwidth-sdk/models/lookup_request.rb +2 -4
  172. data/lib/bandwidth-sdk/models/lookup_result.rb +2 -4
  173. data/lib/bandwidth-sdk/models/lookup_status.rb +2 -4
  174. data/lib/bandwidth-sdk/models/lookup_status_enum.rb +5 -5
  175. data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +4 -7
  176. data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +2 -4
  177. data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +3 -3
  178. data/lib/bandwidth-sdk/models/machine_detection_result.rb +229 -0
  179. data/lib/bandwidth-sdk/models/media.rb +2 -4
  180. data/lib/bandwidth-sdk/models/message.rb +17 -9
  181. data/lib/bandwidth-sdk/models/message_delivered_callback.rb +2 -4
  182. data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +3 -4
  183. data/lib/bandwidth-sdk/models/message_direction_enum.rb +3 -3
  184. data/lib/bandwidth-sdk/models/message_failed_callback.rb +2 -4
  185. data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +3 -4
  186. data/lib/bandwidth-sdk/models/message_request.rb +4 -6
  187. data/lib/bandwidth-sdk/models/message_sending_callback.rb +2 -4
  188. data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +3 -4
  189. data/lib/bandwidth-sdk/models/message_status_enum.rb +9 -9
  190. data/lib/bandwidth-sdk/models/message_type_enum.rb +3 -3
  191. data/lib/bandwidth-sdk/models/messages_list.rb +3 -5
  192. data/lib/bandwidth-sdk/models/messaging_code_response.rb +2 -4
  193. data/lib/bandwidth-sdk/models/messaging_request_error.rb +2 -4
  194. data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +2 -4
  195. data/lib/bandwidth-sdk/models/mfa_request_error.rb +2 -4
  196. data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +2 -4
  197. data/lib/bandwidth-sdk/models/page_info.rb +2 -4
  198. data/lib/bandwidth-sdk/models/priority_enum.rb +3 -3
  199. data/lib/bandwidth-sdk/models/recording_available_callback.rb +3 -5
  200. data/lib/bandwidth-sdk/models/recording_complete_callback.rb +3 -5
  201. data/lib/bandwidth-sdk/models/recording_state_enum.rb +3 -3
  202. data/lib/bandwidth-sdk/models/redirect_callback.rb +3 -5
  203. data/lib/bandwidth-sdk/models/redirect_method_enum.rb +3 -3
  204. data/lib/bandwidth-sdk/models/stir_shaken.rb +2 -4
  205. data/lib/bandwidth-sdk/models/tag.rb +2 -4
  206. data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +2 -4
  207. data/lib/bandwidth-sdk/models/transcribe_recording.rb +20 -9
  208. data/lib/bandwidth-sdk/models/transcription.rb +2 -4
  209. data/lib/bandwidth-sdk/models/transcription_available_callback.rb +3 -5
  210. data/lib/bandwidth-sdk/models/transcription_list.rb +2 -4
  211. data/lib/bandwidth-sdk/models/transcription_metadata.rb +2 -4
  212. data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +3 -5
  213. data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +3 -5
  214. data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +3 -5
  215. data/lib/bandwidth-sdk/models/update_call.rb +12 -5
  216. data/lib/bandwidth-sdk/models/update_call_recording.rb +2 -4
  217. data/lib/bandwidth-sdk/models/update_conference.rb +3 -5
  218. data/lib/bandwidth-sdk/models/update_conference_member.rb +2 -4
  219. data/lib/bandwidth-sdk/models/verify_code_request.rb +2 -4
  220. data/lib/bandwidth-sdk/models/verify_code_response.rb +2 -4
  221. data/lib/bandwidth-sdk/models/voice_api_error.rb +2 -4
  222. data/lib/bandwidth-sdk/models/voice_code_response.rb +2 -4
  223. data/lib/bandwidth-sdk/version.rb +2 -2
  224. data/lib/bandwidth-sdk.rb +5 -1
  225. data/openapi-config.yml +1 -0
  226. data/openapitools.json +7 -0
  227. data/ruby-notes.md +11 -60
  228. data/spec/api/calls_api_spec.rb +228 -0
  229. data/spec/api/conferences_api_spec.rb +393 -0
  230. data/spec/api/media_api_spec.rb +129 -0
  231. data/spec/api/messages_api_spec.rb +193 -0
  232. data/spec/api/mfa_api_spec.rb +130 -0
  233. data/spec/api/phone_number_lookup_api_spec.rb +100 -0
  234. data/spec/api/recordings_api_spec.rb +395 -0
  235. data/spec/api/statistics_api_spec.rb +45 -0
  236. data/spec/api_client_spec.rb +377 -0
  237. data/spec/api_error_spec.rb +23 -0
  238. data/spec/call_utils.rb +28 -28
  239. data/spec/configuration_spec.rb +178 -0
  240. data/spec/integration/calls_api_integration_spec.rb +88 -69
  241. data/spec/integration/conferences_api_integration_spec.rb +74 -68
  242. data/spec/integration/media_api_integration_spec.rb +38 -32
  243. data/spec/integration/messages_api_integration_spec.rb +79 -38
  244. data/spec/integration/mfa_api_integration_spec.rb +41 -33
  245. data/spec/integration/phone_number_lookup_api_integration_spec.rb +26 -22
  246. data/spec/integration/recordings_api_integration_spec.rb +84 -77
  247. data/spec/integration/statistics_api_integration_spec.rb +15 -14
  248. data/spec/{unit/models → models}/bxml/bxml_spec.rb +0 -2
  249. data/spec/{unit/models → models}/bxml/nestable_verb_spec.rb +1 -3
  250. data/spec/{unit/models → models}/bxml/response_spec.rb +0 -2
  251. data/spec/{unit/models → models}/bxml/verb_spec.rb +1 -14
  252. data/spec/{unit/models → models}/bxml/verbs/bridge_spec.rb +0 -2
  253. data/spec/{unit/models → models}/bxml/verbs/conference_spec.rb +0 -2
  254. data/spec/models/bxml/verbs/custom_param_spec.rb +36 -0
  255. data/spec/{unit/models → models}/bxml/verbs/forward_spec.rb +0 -2
  256. data/spec/{unit/models → models}/bxml/verbs/gather_spec.rb +0 -2
  257. data/spec/{unit/models → models}/bxml/verbs/hangup_spec.rb +0 -2
  258. data/spec/{unit/models → models}/bxml/verbs/pause_recording_spec.rb +0 -2
  259. data/spec/{unit/models → models}/bxml/verbs/pause_spec.rb +0 -2
  260. data/spec/{unit/models → models}/bxml/verbs/phone_number_spec.rb +0 -2
  261. data/spec/{unit/models → models}/bxml/verbs/play_audio_spec.rb +0 -2
  262. data/spec/{unit/models → models}/bxml/verbs/record_spec.rb +0 -2
  263. data/spec/{unit/models → models}/bxml/verbs/redirect_spec.rb +0 -2
  264. data/spec/{unit/models → models}/bxml/verbs/resume_recording_spec.rb +0 -2
  265. data/spec/{unit/models → models}/bxml/verbs/ring_spec.rb +0 -2
  266. data/spec/{unit/models → models}/bxml/verbs/send_dtmf_spec.rb +0 -2
  267. data/spec/{unit/models → models}/bxml/verbs/sip_uri_spec.rb +0 -2
  268. data/spec/{unit/models → models}/bxml/verbs/speak_sentence_spec.rb +0 -2
  269. data/spec/{unit/models → models}/bxml/verbs/start_gather_spec.rb +0 -2
  270. data/spec/{unit/models → models}/bxml/verbs/start_recording_spec.rb +0 -2
  271. data/spec/{unit/models → models}/bxml/verbs/start_stream_spec.rb +2 -4
  272. data/spec/models/bxml/verbs/start_transcription_spec.rb +74 -0
  273. data/spec/{unit/models → models}/bxml/verbs/stop_gather_spec.rb +0 -2
  274. data/spec/{unit/models → models}/bxml/verbs/stop_recording_spec.rb +0 -2
  275. data/spec/{unit/models → models}/bxml/verbs/stop_stream_spec.rb +0 -2
  276. data/spec/models/bxml/verbs/stop_transcription_spec.rb +34 -0
  277. data/spec/{unit/models → models}/bxml/verbs/stream_param_spec.rb +0 -2
  278. data/spec/{unit/models → models}/bxml/verbs/tag_spec.rb +0 -2
  279. data/spec/{unit/models → models}/bxml/verbs/transfer_spec.rb +0 -2
  280. data/spec/models/call_state_enum_spec.rb +16 -0
  281. data/spec/models/call_state_spec.rb +181 -0
  282. data/spec/models/deferred_result_spec.rb +87 -0
  283. data/spec/models/message_spec.rb +145 -0
  284. data/spec/models/verify_code_request_spec.rb +134 -0
  285. data/spec/spec_helper.rb +48 -31
  286. metadata +146 -254
  287. data/spec/unit/api/calls_api_spec.rb +0 -89
  288. data/spec/unit/api/conferences_api_spec.rb +0 -163
  289. data/spec/unit/api/media_api_spec.rb +0 -90
  290. data/spec/unit/api/messages_api_spec.rb +0 -73
  291. data/spec/unit/api/mfa_api_spec.rb +0 -74
  292. data/spec/unit/api/phone_number_lookup_api_spec.rb +0 -61
  293. data/spec/unit/api/recordings_api_spec.rb +0 -177
  294. data/spec/unit/api/statistics_api_spec.rb +0 -47
  295. data/spec/unit/models/account_statistics_spec.rb +0 -40
  296. data/spec/unit/models/answer_callback_spec.rb +0 -112
  297. data/spec/unit/models/bridge_complete_callback_spec.rb +0 -124
  298. data/spec/unit/models/bridge_target_complete_callback_spec.rb +0 -106
  299. data/spec/unit/models/call_direction_enum_spec.rb +0 -28
  300. data/spec/unit/models/call_recording_metadata_spec.rb +0 -136
  301. data/spec/unit/models/call_state_enum_spec.rb +0 -28
  302. data/spec/unit/models/call_state_spec.rb +0 -136
  303. data/spec/unit/models/callback_method_enum_spec.rb +0 -28
  304. data/spec/unit/models/code_request_spec.rb +0 -64
  305. data/spec/unit/models/conference_completed_callback_spec.rb +0 -58
  306. data/spec/unit/models/conference_created_callback_spec.rb +0 -58
  307. data/spec/unit/models/conference_member_exit_callback_spec.rb +0 -76
  308. data/spec/unit/models/conference_member_join_callback_spec.rb +0 -76
  309. data/spec/unit/models/conference_member_spec.rb +0 -64
  310. data/spec/unit/models/conference_recording_available_callback_spec.rb +0 -112
  311. data/spec/unit/models/conference_recording_metadata_spec.rb +0 -94
  312. data/spec/unit/models/conference_redirect_callback_spec.rb +0 -58
  313. data/spec/unit/models/conference_spec.rb +0 -76
  314. data/spec/unit/models/conference_state_enum_spec.rb +0 -28
  315. data/spec/unit/models/create_call_response_spec.rb +0 -154
  316. data/spec/unit/models/create_call_spec.rb +0 -142
  317. data/spec/unit/models/create_lookup_response_spec.rb +0 -40
  318. data/spec/unit/models/create_message_request_error_spec.rb +0 -46
  319. data/spec/unit/models/deferred_result_spec.rb +0 -40
  320. data/spec/unit/models/disconnect_callback_spec.rb +0 -130
  321. data/spec/unit/models/diversion_spec.rb +0 -70
  322. data/spec/unit/models/dtmf_callback_spec.rb +0 -130
  323. data/spec/unit/models/field_error_spec.rb +0 -40
  324. data/spec/unit/models/file_format_enum_spec.rb +0 -28
  325. data/spec/unit/models/gather_callback_spec.rb +0 -136
  326. data/spec/unit/models/inbound_message_callback_message_spec.rb +0 -100
  327. data/spec/unit/models/inbound_message_callback_spec.rb +0 -58
  328. data/spec/unit/models/initiate_callback_spec.rb +0 -100
  329. data/spec/unit/models/list_message_direction_enum_spec.rb +0 -28
  330. data/spec/unit/models/list_message_item_spec.rb +0 -124
  331. data/spec/unit/models/lookup_request_spec.rb +0 -34
  332. data/spec/unit/models/lookup_result_spec.rb +0 -82
  333. data/spec/unit/models/lookup_status_enum_spec.rb +0 -28
  334. data/spec/unit/models/lookup_status_spec.rb +0 -52
  335. data/spec/unit/models/machine_detection_complete_callback_spec.rb +0 -112
  336. data/spec/unit/models/machine_detection_configuration_spec.rb +0 -118
  337. data/spec/unit/models/machine_detection_mode_enum_spec.rb +0 -28
  338. data/spec/unit/models/media_spec.rb +0 -46
  339. data/spec/unit/models/message_delivered_callback_message_spec.rb +0 -100
  340. data/spec/unit/models/message_delivered_callback_spec.rb +0 -58
  341. data/spec/unit/models/message_direction_enum_spec.rb +0 -28
  342. data/spec/unit/models/message_failed_callback_message_spec.rb +0 -100
  343. data/spec/unit/models/message_failed_callback_spec.rb +0 -64
  344. data/spec/unit/models/message_request_spec.rb +0 -76
  345. data/spec/unit/models/message_sending_callback_message_spec.rb +0 -100
  346. data/spec/unit/models/message_sending_callback_spec.rb +0 -58
  347. data/spec/unit/models/message_spec.rb +0 -100
  348. data/spec/unit/models/message_status_enum_spec.rb +0 -28
  349. data/spec/unit/models/message_type_enum_spec.rb +0 -28
  350. data/spec/unit/models/messages_list_spec.rb +0 -46
  351. data/spec/unit/models/messaging_code_response_spec.rb +0 -34
  352. data/spec/unit/models/messaging_request_error_spec.rb +0 -40
  353. data/spec/unit/models/mfa_forbidden_request_error_spec.rb +0 -34
  354. data/spec/unit/models/mfa_request_error_spec.rb +0 -40
  355. data/spec/unit/models/mfa_unauthorized_request_error_spec.rb +0 -34
  356. data/spec/unit/models/page_info_spec.rb +0 -52
  357. data/spec/unit/models/priority_enum_spec.rb +0 -28
  358. data/spec/unit/models/recording_available_callback_spec.rb +0 -160
  359. data/spec/unit/models/recording_complete_callback_spec.rb +0 -160
  360. data/spec/unit/models/recording_state_enum_spec.rb +0 -28
  361. data/spec/unit/models/redirect_callback_spec.rb +0 -124
  362. data/spec/unit/models/redirect_method_enum_spec.rb +0 -28
  363. data/spec/unit/models/stir_shaken_spec.rb +0 -46
  364. data/spec/unit/models/tag_spec.rb +0 -40
  365. data/spec/unit/models/tn_lookup_request_error_spec.rb +0 -34
  366. data/spec/unit/models/transcribe_recording_spec.rb +0 -64
  367. data/spec/unit/models/transcription_available_callback_spec.rb +0 -154
  368. data/spec/unit/models/transcription_list_spec.rb +0 -34
  369. data/spec/unit/models/transcription_metadata_spec.rb +0 -52
  370. data/spec/unit/models/transcription_spec.rb +0 -40
  371. data/spec/unit/models/transfer_answer_callback_spec.rb +0 -118
  372. data/spec/unit/models/transfer_complete_callback_spec.rb +0 -136
  373. data/spec/unit/models/transfer_disconnect_callback_spec.rb +0 -148
  374. data/spec/unit/models/update_call_recording_spec.rb +0 -34
  375. data/spec/unit/models/update_call_spec.rb +0 -88
  376. data/spec/unit/models/update_conference_member_spec.rb +0 -46
  377. data/spec/unit/models/update_conference_spec.rb +0 -82
  378. data/spec/unit/models/verify_code_request_spec.rb +0 -52
  379. data/spec/unit/models/verify_code_response_spec.rb +0 -34
  380. data/spec/unit/models/voice_api_error_spec.rb +0 -46
  381. data/spec/unit/models/voice_code_response_spec.rb +0 -34
@@ -0,0 +1,229 @@
1
+ =begin
2
+ #Bandwidth
3
+
4
+ #Bandwidth's Communication APIs
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: letstalk@bandwidth.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.5.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Bandwidth
17
+ # (optional) if machine detection was requested in sync mode, the result will be specified here. Possible values are the same as the async counterpart: Machine Detection Complete
18
+ class MachineDetectionResult
19
+ # Possible values are answering-machine, human, silence, timeout, or error.
20
+ attr_accessor :value
21
+
22
+ # The amount of time it took to determine the result.
23
+ attr_accessor :duration
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'value' => :'value',
29
+ :'duration' => :'duration'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'value' => :'String',
42
+ :'duration' => :'String'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionResult` initialize method'
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::MachineDetectionResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'value')
68
+ self.value = attributes[:'value']
69
+ end
70
+
71
+ if attributes.key?(:'duration')
72
+ self.duration = attributes[:'duration']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ invalid_properties
81
+ end
82
+
83
+ # Check to see if the all the properties in the model are valid
84
+ # @return true if the model is valid
85
+ def valid?
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ value == o.value &&
95
+ duration == o.duration
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ def hash
107
+ [value, duration].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def self.build_from_hash(attributes)
114
+ new.build_from_hash(attributes)
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ attributes = attributes.transform_keys(&:to_sym)
123
+ self.class.openapi_types.each_pair do |key, type|
124
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
125
+ self.send("#{key}=", nil)
126
+ elsif type =~ /\AArray<(.*)>/i
127
+ # check to ensure the input is an array given that the attribute
128
+ # is documented as an array but the input is not
129
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
130
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
131
+ end
132
+ elsif !attributes[self.class.attribute_map[key]].nil?
133
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
134
+ end
135
+ end
136
+
137
+ self
138
+ end
139
+
140
+ # Deserializes the data based on type
141
+ # @param string type Data type
142
+ # @param string value Value to be deserialized
143
+ # @return [Object] Deserialized data
144
+ def _deserialize(type, value)
145
+ case type.to_sym
146
+ when :Time
147
+ Time.parse(value)
148
+ when :Date
149
+ Date.parse(value)
150
+ when :String
151
+ value.to_s
152
+ when :Integer
153
+ value.to_i
154
+ when :Float
155
+ value.to_f
156
+ when :Boolean
157
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
158
+ true
159
+ else
160
+ false
161
+ end
162
+ when :Object
163
+ # generic object (usually a Hash), return directly
164
+ value
165
+ when /\AArray<(?<inner_type>.+)>\z/
166
+ inner_type = Regexp.last_match[:inner_type]
167
+ value.map { |v| _deserialize(inner_type, v) }
168
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
169
+ k_type = Regexp.last_match[:k_type]
170
+ v_type = Regexp.last_match[:v_type]
171
+ {}.tap do |hash|
172
+ value.each do |k, v|
173
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
174
+ end
175
+ end
176
+ else # model
177
+ # models (e.g. Pet) or oneOf
178
+ klass = Bandwidth.const_get(type)
179
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
180
+ end
181
+ end
182
+
183
+ # Returns the string representation of the object
184
+ # @return [String] String presentation of the object
185
+ def to_s
186
+ to_hash.to_s
187
+ end
188
+
189
+ # to_body is an alias to to_hash (backward compatibility)
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_body
192
+ to_hash
193
+ end
194
+
195
+ # Returns the object in the form of hash
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_hash
198
+ hash = {}
199
+ self.class.attribute_map.each_pair do |attr, param|
200
+ value = self.send(attr)
201
+ if value.nil?
202
+ is_nullable = self.class.openapi_nullable.include?(attr)
203
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
204
+ end
205
+
206
+ hash[param] = _to_hash(value)
207
+ end
208
+ hash
209
+ end
210
+
211
+ # Outputs non-array value in the form of hash
212
+ # For object, use to_hash. Otherwise, just return the value
213
+ # @param [Object] value Any valid value
214
+ # @return [Hash] Returns the value in the form of hash
215
+ def _to_hash(value)
216
+ if value.is_a?(Array)
217
+ value.compact.map { |v| _to_hash(v) }
218
+ elsif value.is_a?(Hash)
219
+ {}.tap do |hash|
220
+ value.each { |k, v| hash[k] = _to_hash(v) }
221
+ end
222
+ elsif value.respond_to? :to_hash
223
+ value.to_hash
224
+ else
225
+ value
226
+ end
227
+ end
228
+ end
229
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -54,7 +54,7 @@ module Bandwidth
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Media` initialize method"
57
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Media` initialize method'
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -231,7 +231,5 @@ module Bandwidth
231
231
  value
232
232
  end
233
233
  end
234
-
235
234
  end
236
-
237
235
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -49,6 +49,9 @@ module Bandwidth
49
49
 
50
50
  attr_accessor :priority
51
51
 
52
+ # The expiration date-time set by the user.
53
+ attr_accessor :expiration
54
+
52
55
  class EnumAttributeValidator
53
56
  attr_reader :datatype
54
57
  attr_reader :allowable_values
@@ -85,7 +88,8 @@ module Bandwidth
85
88
  :'media' => :'media',
86
89
  :'text' => :'text',
87
90
  :'tag' => :'tag',
88
- :'priority' => :'priority'
91
+ :'priority' => :'priority',
92
+ :'expiration' => :'expiration'
89
93
  }
90
94
  end
91
95
 
@@ -100,7 +104,7 @@ module Bandwidth
100
104
  :'id' => :'String',
101
105
  :'owner' => :'String',
102
106
  :'application_id' => :'String',
103
- :'time' => :'String',
107
+ :'time' => :'Time',
104
108
  :'segment_count' => :'Integer',
105
109
  :'direction' => :'MessageDirectionEnum',
106
110
  :'to' => :'Array<String>',
@@ -108,7 +112,8 @@ module Bandwidth
108
112
  :'media' => :'Array<String>',
109
113
  :'text' => :'String',
110
114
  :'tag' => :'String',
111
- :'priority' => :'PriorityEnum'
115
+ :'priority' => :'PriorityEnum',
116
+ :'expiration' => :'Time'
112
117
  }
113
118
  end
114
119
 
@@ -122,7 +127,7 @@ module Bandwidth
122
127
  # @param [Hash] attributes Model attributes in the form of hash
123
128
  def initialize(attributes = {})
124
129
  if (!attributes.is_a?(Hash))
125
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Message` initialize method"
130
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Message` initialize method'
126
131
  end
127
132
 
128
133
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -184,6 +189,10 @@ module Bandwidth
184
189
  if attributes.key?(:'priority')
185
190
  self.priority = attributes[:'priority']
186
191
  end
192
+
193
+ if attributes.key?(:'expiration')
194
+ self.expiration = attributes[:'expiration']
195
+ end
187
196
  end
188
197
 
189
198
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -227,7 +236,8 @@ module Bandwidth
227
236
  media == o.media &&
228
237
  text == o.text &&
229
238
  tag == o.tag &&
230
- priority == o.priority
239
+ priority == o.priority &&
240
+ expiration == o.expiration
231
241
  end
232
242
 
233
243
  # @see the `==` method
@@ -239,7 +249,7 @@ module Bandwidth
239
249
  # Calculates hash code according to all attributes.
240
250
  # @return [Integer] Hash code
241
251
  def hash
242
- [id, owner, application_id, time, segment_count, direction, to, from, media, text, tag, priority].hash
252
+ [id, owner, application_id, time, segment_count, direction, to, from, media, text, tag, priority, expiration].hash
243
253
  end
244
254
 
245
255
  # Builds the object from hash
@@ -360,7 +370,5 @@ module Bandwidth
360
370
  value
361
371
  end
362
372
  end
363
-
364
373
  end
365
-
366
374
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -63,7 +63,7 @@ module Bandwidth
63
63
  # @param [Hash] attributes Model attributes in the form of hash
64
64
  def initialize(attributes = {})
65
65
  if (!attributes.is_a?(Hash))
66
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallback` initialize method"
66
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallback` initialize method'
67
67
  end
68
68
 
69
69
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -275,7 +275,5 @@ module Bandwidth
275
275
  value
276
276
  end
277
277
  end
278
-
279
278
  end
280
-
281
279
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Bandwidth
17
+ # Message Delivered Callback Message Schema
17
18
  class MessageDeliveredCallbackMessage
18
19
  attr_accessor :id
19
20
 
@@ -112,7 +113,7 @@ module Bandwidth
112
113
  # @param [Hash] attributes Model attributes in the form of hash
113
114
  def initialize(attributes = {})
114
115
  if (!attributes.is_a?(Hash))
115
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallbackMessage` initialize method"
116
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallbackMessage` initialize method'
116
117
  end
117
118
 
118
119
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -398,7 +399,5 @@ module Bandwidth
398
399
  value
399
400
  end
400
401
  end
401
-
402
402
  end
403
-
404
403
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -15,8 +15,8 @@ require 'time'
15
15
 
16
16
  module Bandwidth
17
17
  class MessageDirectionEnum
18
- IN = "in".freeze
19
- OUT = "out".freeze
18
+ IN = 'in'.freeze
19
+ OUT = 'out'.freeze
20
20
 
21
21
  def self.all_vars
22
22
  @all_vars ||= [IN, OUT].freeze
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -67,7 +67,7 @@ module Bandwidth
67
67
  # @param [Hash] attributes Model attributes in the form of hash
68
68
  def initialize(attributes = {})
69
69
  if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallback` initialize method"
70
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallback` initialize method'
71
71
  end
72
72
 
73
73
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -289,7 +289,5 @@ module Bandwidth
289
289
  value
290
290
  end
291
291
  end
292
-
293
292
  end
294
-
295
293
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Bandwidth
17
+ # Message Failed Callback Message Schema
17
18
  class MessageFailedCallbackMessage
18
19
  attr_accessor :id
19
20
 
@@ -112,7 +113,7 @@ module Bandwidth
112
113
  # @param [Hash] attributes Model attributes in the form of hash
113
114
  def initialize(attributes = {})
114
115
  if (!attributes.is_a?(Hash))
115
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallbackMessage` initialize method"
116
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallbackMessage` initialize method'
116
117
  end
117
118
 
118
119
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -403,7 +404,5 @@ module Bandwidth
403
404
  value
404
405
  end
405
406
  end
406
-
407
407
  end
408
-
409
408
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -35,7 +35,7 @@ module Bandwidth
35
35
 
36
36
  attr_accessor :priority
37
37
 
38
- # A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
38
+ # A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. Not supported on MMS.
39
39
  attr_accessor :expiration
40
40
 
41
41
  class EnumAttributeValidator
@@ -89,7 +89,7 @@ module Bandwidth
89
89
  :'media' => :'Array<String>',
90
90
  :'tag' => :'String',
91
91
  :'priority' => :'PriorityEnum',
92
- :'expiration' => :'String'
92
+ :'expiration' => :'Time'
93
93
  }
94
94
  end
95
95
 
@@ -103,7 +103,7 @@ module Bandwidth
103
103
  # @param [Hash] attributes Model attributes in the form of hash
104
104
  def initialize(attributes = {})
105
105
  if (!attributes.is_a?(Hash))
106
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageRequest` initialize method"
106
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageRequest` initialize method'
107
107
  end
108
108
 
109
109
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -349,7 +349,5 @@ module Bandwidth
349
349
  value
350
350
  end
351
351
  end
352
-
353
352
  end
354
-
355
353
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -63,7 +63,7 @@ module Bandwidth
63
63
  # @param [Hash] attributes Model attributes in the form of hash
64
64
  def initialize(attributes = {})
65
65
  if (!attributes.is_a?(Hash))
66
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallback` initialize method"
66
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallback` initialize method'
67
67
  end
68
68
 
69
69
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -275,7 +275,5 @@ module Bandwidth
275
275
  value
276
276
  end
277
277
  end
278
-
279
278
  end
280
-
281
279
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Bandwidth
17
+ # Message Sending Callback Message Schema
17
18
  class MessageSendingCallbackMessage
18
19
  attr_accessor :id
19
20
 
@@ -112,7 +113,7 @@ module Bandwidth
112
113
  # @param [Hash] attributes Model attributes in the form of hash
113
114
  def initialize(attributes = {})
114
115
  if (!attributes.is_a?(Hash))
115
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallbackMessage` initialize method"
116
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallbackMessage` initialize method'
116
117
  end
117
118
 
118
119
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -403,7 +404,5 @@ module Bandwidth
403
404
  value
404
405
  end
405
406
  end
406
-
407
407
  end
408
-
409
408
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -15,14 +15,14 @@ require 'time'
15
15
 
16
16
  module Bandwidth
17
17
  class MessageStatusEnum
18
- RECEIVED = "RECEIVED".freeze
19
- QUEUED = "QUEUED".freeze
20
- SENDING = "SENDING".freeze
21
- SENT = "SENT".freeze
22
- FAILED = "FAILED".freeze
23
- DELIVERED = "DELIVERED".freeze
24
- ACCEPTED = "ACCEPTED".freeze
25
- UNDELIVERED = "UNDELIVERED".freeze
18
+ RECEIVED = 'RECEIVED'.freeze
19
+ QUEUED = 'QUEUED'.freeze
20
+ SENDING = 'SENDING'.freeze
21
+ SENT = 'SENT'.freeze
22
+ FAILED = 'FAILED'.freeze
23
+ DELIVERED = 'DELIVERED'.freeze
24
+ ACCEPTED = 'ACCEPTED'.freeze
25
+ UNDELIVERED = 'UNDELIVERED'.freeze
26
26
 
27
27
  def self.all_vars
28
28
  @all_vars ||= [RECEIVED, QUEUED, SENDING, SENT, FAILED, DELIVERED, ACCEPTED, UNDELIVERED].freeze
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -15,8 +15,8 @@ require 'time'
15
15
 
16
16
  module Bandwidth
17
17
  class MessageTypeEnum
18
- SMS = "sms".freeze
19
- MMS = "mms".freeze
18
+ SMS = 'sms'.freeze
19
+ MMS = 'mms'.freeze
20
20
 
21
21
  def self.all_vars
22
22
  @all_vars ||= [SMS, MMS].freeze
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: letstalk@bandwidth.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module Bandwidth
17
17
  class MessagesList
18
- # Total number of messages matched by the search.
18
+ # The total number of messages matched by the search. When the request has limitTotalCount set to true this value is limited to 10,000.
19
19
  attr_accessor :total_count
20
20
 
21
21
  attr_accessor :page_info
@@ -55,7 +55,7 @@ module Bandwidth
55
55
  # @param [Hash] attributes Model attributes in the form of hash
56
56
  def initialize(attributes = {})
57
57
  if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessagesList` initialize method"
58
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessagesList` initialize method'
59
59
  end
60
60
 
61
61
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -234,7 +234,5 @@ module Bandwidth
234
234
  value
235
235
  end
236
236
  end
237
-
238
237
  end
239
-
240
238
  end