bandwidth-sdk 18.1.2 → 18.1.4

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 (394) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +54 -8
  3. data/UPDATING_MODEL_TESTS.md +17 -2
  4. data/bandwidth-sdk.gemspec +2 -2
  5. data/bandwidth.yml +161 -55
  6. data/coverage/.last_run.json +1 -1
  7. data/coverage/.resultset.json +149 -69
  8. data/coverage/index.html +2892 -2040
  9. data/custom_templates/gemspec.mustache +1 -1
  10. data/docs/AnswerCallback.md +3 -1
  11. data/docs/DisconnectCallback.md +5 -1
  12. data/docs/InitiateCallback.md +5 -1
  13. data/docs/MediaApi.md +8 -8
  14. data/docs/MessagesApi.md +4 -4
  15. data/docs/MultiChannelApi.md +2 -2
  16. data/docs/RbmActionBase.md +1 -1
  17. data/docs/RbmSuggestionResponse.md +1 -1
  18. data/docs/StatusCallback.md +1 -1
  19. data/lib/bandwidth-sdk/api/calls_api.rb +6 -6
  20. data/lib/bandwidth-sdk/api/conferences_api.rb +10 -10
  21. data/lib/bandwidth-sdk/api/endpoints_api.rb +6 -6
  22. data/lib/bandwidth-sdk/api/media_api.rb +13 -13
  23. data/lib/bandwidth-sdk/api/messages_api.rb +7 -7
  24. data/lib/bandwidth-sdk/api/mfa_api.rb +4 -4
  25. data/lib/bandwidth-sdk/api/multi_channel_api.rb +4 -4
  26. data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +4 -4
  27. data/lib/bandwidth-sdk/api/recordings_api.rb +11 -11
  28. data/lib/bandwidth-sdk/api/statistics_api.rb +2 -2
  29. data/lib/bandwidth-sdk/api/toll_free_verification_api.rb +9 -9
  30. data/lib/bandwidth-sdk/api/transcriptions_api.rb +4 -4
  31. data/lib/bandwidth-sdk/api_client.rb +1 -1
  32. data/lib/bandwidth-sdk/api_error.rb +1 -1
  33. data/lib/bandwidth-sdk/api_model_base.rb +1 -1
  34. data/lib/bandwidth-sdk/configuration.rb +1 -1
  35. data/lib/bandwidth-sdk/models/account_statistics.rb +1 -1
  36. data/lib/bandwidth-sdk/models/additional_denial_reason.rb +1 -1
  37. data/lib/bandwidth-sdk/models/address.rb +1 -1
  38. data/lib/bandwidth-sdk/models/answer_callback.rb +16 -6
  39. data/lib/bandwidth-sdk/models/async_lookup_request.rb +1 -1
  40. data/lib/bandwidth-sdk/models/blocked_webhook.rb +1 -1
  41. data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +1 -1
  42. data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +1 -1
  43. data/lib/bandwidth-sdk/models/brtc_error.rb +1 -1
  44. data/lib/bandwidth-sdk/models/brtc_error_response.rb +1 -1
  45. data/lib/bandwidth-sdk/models/brtc_error_source.rb +1 -1
  46. data/lib/bandwidth-sdk/models/brtc_link.rb +1 -1
  47. data/lib/bandwidth-sdk/models/business_entity_type_enum.rb +1 -1
  48. data/lib/bandwidth-sdk/models/business_registration_type_enum.rb +1 -1
  49. data/lib/bandwidth-sdk/models/bxml/root.rb +1 -1
  50. data/lib/bandwidth-sdk/models/bxml/verb.rb +1 -1
  51. data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +1 -1
  52. data/lib/bandwidth-sdk/models/bxml/verbs/speak_sentence.rb +1 -1
  53. data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
  54. data/lib/bandwidth-sdk/models/call_recording_metadata.rb +1 -1
  55. data/lib/bandwidth-sdk/models/call_state.rb +1 -1
  56. data/lib/bandwidth-sdk/models/call_state_enum.rb +1 -1
  57. data/lib/bandwidth-sdk/models/call_transcription.rb +1 -1
  58. data/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +1 -1
  59. data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +1 -1
  60. data/lib/bandwidth-sdk/models/call_transcription_response.rb +1 -1
  61. data/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +1 -1
  62. data/lib/bandwidth-sdk/models/callback.rb +1 -1
  63. data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
  64. data/lib/bandwidth-sdk/models/card_width_enum.rb +1 -1
  65. data/lib/bandwidth-sdk/models/code_request.rb +1 -1
  66. data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +1 -1
  67. data/lib/bandwidth-sdk/models/conference.rb +1 -1
  68. data/lib/bandwidth-sdk/models/conference_completed_callback.rb +1 -1
  69. data/lib/bandwidth-sdk/models/conference_created_callback.rb +1 -1
  70. data/lib/bandwidth-sdk/models/conference_member.rb +1 -1
  71. data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +1 -1
  72. data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +1 -1
  73. data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +1 -1
  74. data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +1 -1
  75. data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +1 -1
  76. data/lib/bandwidth-sdk/models/conference_state_enum.rb +1 -1
  77. data/lib/bandwidth-sdk/models/contact.rb +1 -1
  78. data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +1 -1
  79. data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response_data.rb +1 -1
  80. data/lib/bandwidth-sdk/models/create_call.rb +1 -1
  81. data/lib/bandwidth-sdk/models/create_call_response.rb +1 -1
  82. data/lib/bandwidth-sdk/models/create_endpoint_request_base.rb +1 -1
  83. data/lib/bandwidth-sdk/models/create_endpoint_response.rb +1 -1
  84. data/lib/bandwidth-sdk/models/create_endpoint_response_data.rb +1 -1
  85. data/lib/bandwidth-sdk/models/create_message_request_error.rb +1 -1
  86. data/lib/bandwidth-sdk/models/create_multi_channel_message_response.rb +1 -1
  87. data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +1 -1
  88. data/lib/bandwidth-sdk/models/create_sync_lookup_response_data.rb +1 -1
  89. data/lib/bandwidth-sdk/models/create_web_rtc_connection_request.rb +1 -1
  90. data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +1 -1
  91. data/lib/bandwidth-sdk/models/device.rb +1 -1
  92. data/lib/bandwidth-sdk/models/device_status_enum.rb +1 -1
  93. data/lib/bandwidth-sdk/models/disconnect_callback.rb +26 -6
  94. data/lib/bandwidth-sdk/models/diversion.rb +1 -1
  95. data/lib/bandwidth-sdk/models/dtmf_callback.rb +1 -1
  96. data/lib/bandwidth-sdk/models/endpoint.rb +1 -1
  97. data/lib/bandwidth-sdk/models/endpoint_direction_enum.rb +1 -1
  98. data/lib/bandwidth-sdk/models/endpoint_event.rb +1 -1
  99. data/lib/bandwidth-sdk/models/endpoint_event_type_enum.rb +1 -1
  100. data/lib/bandwidth-sdk/models/endpoint_response.rb +1 -1
  101. data/lib/bandwidth-sdk/models/endpoint_status_enum.rb +1 -1
  102. data/lib/bandwidth-sdk/models/endpoint_type_enum.rb +1 -1
  103. data/lib/bandwidth-sdk/models/endpoints.rb +1 -1
  104. data/lib/bandwidth-sdk/models/error_object.rb +1 -1
  105. data/lib/bandwidth-sdk/models/error_source.rb +1 -1
  106. data/lib/bandwidth-sdk/models/failure_webhook.rb +1 -1
  107. data/lib/bandwidth-sdk/models/field_error.rb +1 -1
  108. data/lib/bandwidth-sdk/models/file_format_enum.rb +1 -1
  109. data/lib/bandwidth-sdk/models/gather_callback.rb +1 -1
  110. data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +1 -1
  111. data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +1 -1
  112. data/lib/bandwidth-sdk/models/in_progress_lookup_status_enum.rb +1 -1
  113. data/lib/bandwidth-sdk/models/inbound_callback.rb +1 -1
  114. data/lib/bandwidth-sdk/models/inbound_callback_message.rb +1 -1
  115. data/lib/bandwidth-sdk/models/inbound_callback_type_enum.rb +1 -1
  116. data/lib/bandwidth-sdk/models/initiate_callback.rb +27 -5
  117. data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +1 -1
  118. data/lib/bandwidth-sdk/models/line_type_enum.rb +1 -1
  119. data/lib/bandwidth-sdk/models/link.rb +1 -1
  120. data/lib/bandwidth-sdk/models/link_schema.rb +1 -1
  121. data/lib/bandwidth-sdk/models/links_object.rb +1 -1
  122. data/lib/bandwidth-sdk/models/list_endpoints_response.rb +1 -1
  123. data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +1 -1
  124. data/lib/bandwidth-sdk/models/list_message_item.rb +1 -1
  125. data/lib/bandwidth-sdk/models/lookup_error_response.rb +1 -1
  126. data/lib/bandwidth-sdk/models/lookup_error_schema.rb +1 -1
  127. data/lib/bandwidth-sdk/models/lookup_error_schema_meta.rb +1 -1
  128. data/lib/bandwidth-sdk/models/lookup_result.rb +1 -1
  129. data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +1 -1
  130. data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +1 -1
  131. data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +1 -1
  132. data/lib/bandwidth-sdk/models/machine_detection_result.rb +1 -1
  133. data/lib/bandwidth-sdk/models/media.rb +1 -1
  134. data/lib/bandwidth-sdk/models/message.rb +1 -1
  135. data/lib/bandwidth-sdk/models/message_direction_enum.rb +1 -1
  136. data/lib/bandwidth-sdk/models/message_request.rb +1 -1
  137. data/lib/bandwidth-sdk/models/message_status_enum.rb +1 -1
  138. data/lib/bandwidth-sdk/models/message_type_enum.rb +1 -1
  139. data/lib/bandwidth-sdk/models/messages_list.rb +1 -1
  140. data/lib/bandwidth-sdk/models/messaging_code_response.rb +1 -1
  141. data/lib/bandwidth-sdk/models/messaging_request_error.rb +1 -1
  142. data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +1 -1
  143. data/lib/bandwidth-sdk/models/mfa_request_error.rb +1 -1
  144. data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +1 -1
  145. data/lib/bandwidth-sdk/models/mms_message_content.rb +1 -1
  146. data/lib/bandwidth-sdk/models/mms_message_content_file.rb +1 -1
  147. data/lib/bandwidth-sdk/models/multi_channel_action.rb +1 -1
  148. data/lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb +1 -1
  149. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_object.rb +1 -1
  150. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_response_object.rb +1 -1
  151. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +1 -1
  152. data/lib/bandwidth-sdk/models/multi_channel_channel_list_owner_object.rb +1 -1
  153. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +1 -1
  154. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object_all_of_content.rb +1 -1
  155. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +1 -1
  156. data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +1 -1
  157. data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +1 -1
  158. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +1 -1
  159. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +1 -1
  160. data/lib/bandwidth-sdk/models/multi_channel_error.rb +1 -1
  161. data/lib/bandwidth-sdk/models/multi_channel_message_channel_enum.rb +1 -1
  162. data/lib/bandwidth-sdk/models/multi_channel_message_content.rb +1 -1
  163. data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +1 -1
  164. data/lib/bandwidth-sdk/models/multi_channel_message_response_data.rb +1 -1
  165. data/lib/bandwidth-sdk/models/opt_in_workflow.rb +1 -1
  166. data/lib/bandwidth-sdk/models/page.rb +1 -1
  167. data/lib/bandwidth-sdk/models/page_info.rb +1 -1
  168. data/lib/bandwidth-sdk/models/priority_enum.rb +1 -1
  169. data/lib/bandwidth-sdk/models/product_type_enum.rb +1 -1
  170. data/lib/bandwidth-sdk/models/rbm_action_base.rb +1 -1
  171. data/lib/bandwidth-sdk/models/rbm_action_dial.rb +1 -1
  172. data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +1 -1
  173. data/lib/bandwidth-sdk/models/rbm_action_type_enum.rb +1 -1
  174. data/lib/bandwidth-sdk/models/rbm_action_view_location.rb +1 -1
  175. data/lib/bandwidth-sdk/models/rbm_card_content.rb +1 -1
  176. data/lib/bandwidth-sdk/models/rbm_card_content_media.rb +1 -1
  177. data/lib/bandwidth-sdk/models/rbm_location_response.rb +1 -1
  178. data/lib/bandwidth-sdk/models/rbm_media_height_enum.rb +1 -1
  179. data/lib/bandwidth-sdk/models/rbm_message_carousel_card.rb +1 -1
  180. data/lib/bandwidth-sdk/models/rbm_message_content_file.rb +1 -1
  181. data/lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb +1 -1
  182. data/lib/bandwidth-sdk/models/rbm_message_content_text.rb +1 -1
  183. data/lib/bandwidth-sdk/models/rbm_message_media.rb +1 -1
  184. data/lib/bandwidth-sdk/models/rbm_open_url_enum.rb +1 -1
  185. data/lib/bandwidth-sdk/models/rbm_standalone_card.rb +1 -1
  186. data/lib/bandwidth-sdk/models/rbm_suggestion_response.rb +1 -1
  187. data/lib/bandwidth-sdk/models/rbm_web_view_enum.rb +1 -1
  188. data/lib/bandwidth-sdk/models/recording_available_callback.rb +1 -1
  189. data/lib/bandwidth-sdk/models/recording_complete_callback.rb +1 -1
  190. data/lib/bandwidth-sdk/models/recording_state_enum.rb +1 -1
  191. data/lib/bandwidth-sdk/models/recording_transcription_clip.rb +1 -1
  192. data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +1 -1
  193. data/lib/bandwidth-sdk/models/recording_transcriptions.rb +1 -1
  194. data/lib/bandwidth-sdk/models/redirect_callback.rb +1 -1
  195. data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
  196. data/lib/bandwidth-sdk/models/sip_connection_metadata.rb +1 -1
  197. data/lib/bandwidth-sdk/models/sip_credentials.rb +1 -1
  198. data/lib/bandwidth-sdk/models/sms_message_content.rb +1 -1
  199. data/lib/bandwidth-sdk/models/standalone_card_orientation_enum.rb +1 -1
  200. data/lib/bandwidth-sdk/models/status_callback.rb +1 -1
  201. data/lib/bandwidth-sdk/models/status_callback_message.rb +1 -1
  202. data/lib/bandwidth-sdk/models/status_callback_type_enum.rb +3 -2
  203. data/lib/bandwidth-sdk/models/stir_shaken.rb +1 -1
  204. data/lib/bandwidth-sdk/models/sync_lookup_request.rb +1 -1
  205. data/lib/bandwidth-sdk/models/telephone_number.rb +1 -1
  206. data/lib/bandwidth-sdk/models/tfv_basic_authentication.rb +1 -1
  207. data/lib/bandwidth-sdk/models/tfv_callback_status_enum.rb +1 -1
  208. data/lib/bandwidth-sdk/models/tfv_error.rb +1 -1
  209. data/lib/bandwidth-sdk/models/tfv_status.rb +1 -1
  210. data/lib/bandwidth-sdk/models/tfv_status_enum.rb +1 -1
  211. data/lib/bandwidth-sdk/models/tfv_submission_info.rb +1 -1
  212. data/lib/bandwidth-sdk/models/tfv_submission_wrapper.rb +1 -1
  213. data/lib/bandwidth-sdk/models/thumbnail_alignment_enum.rb +1 -1
  214. data/lib/bandwidth-sdk/models/transcribe_recording.rb +1 -1
  215. data/lib/bandwidth-sdk/models/transcription.rb +1 -1
  216. data/lib/bandwidth-sdk/models/transcription_available_callback.rb +1 -1
  217. data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +1 -1
  218. data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +1 -1
  219. data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +1 -1
  220. data/lib/bandwidth-sdk/models/update_call.rb +1 -1
  221. data/lib/bandwidth-sdk/models/update_call_recording.rb +1 -1
  222. data/lib/bandwidth-sdk/models/update_conference.rb +1 -1
  223. data/lib/bandwidth-sdk/models/update_conference_member.rb +1 -1
  224. data/lib/bandwidth-sdk/models/verification_denial_webhook.rb +1 -1
  225. data/lib/bandwidth-sdk/models/verification_request.rb +1 -1
  226. data/lib/bandwidth-sdk/models/verification_update_request.rb +1 -1
  227. data/lib/bandwidth-sdk/models/verification_webhook.rb +1 -1
  228. data/lib/bandwidth-sdk/models/verify_code_request.rb +1 -1
  229. data/lib/bandwidth-sdk/models/verify_code_response.rb +1 -1
  230. data/lib/bandwidth-sdk/models/voice_api_error.rb +1 -1
  231. data/lib/bandwidth-sdk/models/voice_code_response.rb +1 -1
  232. data/lib/bandwidth-sdk/models/webhook_subscription.rb +1 -1
  233. data/lib/bandwidth-sdk/models/webhook_subscription_basic_authentication.rb +1 -1
  234. data/lib/bandwidth-sdk/models/webhook_subscription_error.rb +1 -1
  235. data/lib/bandwidth-sdk/models/webhook_subscription_request_schema.rb +1 -1
  236. data/lib/bandwidth-sdk/models/webhook_subscription_type_enum.rb +1 -1
  237. data/lib/bandwidth-sdk/models/webhook_subscriptions_list_body.rb +1 -1
  238. data/lib/bandwidth-sdk/version.rb +2 -2
  239. data/lib/bandwidth-sdk.rb +1 -1
  240. data/openapitools.json +1 -1
  241. data/spec/unit/models/account_statistics_spec.rb +1 -1
  242. data/spec/unit/models/additional_denial_reason_spec.rb +1 -1
  243. data/spec/unit/models/address_spec.rb +1 -1
  244. data/spec/unit/models/answer_callback_spec.rb +8 -4
  245. data/spec/unit/models/async_lookup_request_spec.rb +1 -1
  246. data/spec/unit/models/blocked_webhook_spec.rb +1 -1
  247. data/spec/unit/models/bridge_complete_callback_spec.rb +1 -1
  248. data/spec/unit/models/bridge_target_complete_callback_spec.rb +1 -1
  249. data/spec/unit/models/brtc_error_response_spec.rb +1 -1
  250. data/spec/unit/models/brtc_error_source_spec.rb +1 -1
  251. data/spec/unit/models/brtc_error_spec.rb +1 -1
  252. data/spec/unit/models/brtc_link_spec.rb +1 -1
  253. data/spec/unit/models/call_recording_metadata_spec.rb +1 -1
  254. data/spec/unit/models/call_state_spec.rb +1 -1
  255. data/spec/unit/models/call_transcription_metadata_spec.rb +1 -1
  256. data/spec/unit/models/call_transcription_response_spec.rb +1 -1
  257. data/spec/unit/models/call_transcription_spec.rb +1 -1
  258. data/spec/unit/models/code_request_spec.rb +1 -1
  259. data/spec/unit/models/conference_completed_callback_spec.rb +1 -1
  260. data/spec/unit/models/conference_created_callback_spec.rb +1 -1
  261. data/spec/unit/models/conference_member_exit_callback_spec.rb +1 -1
  262. data/spec/unit/models/conference_member_join_callback_spec.rb +1 -1
  263. data/spec/unit/models/conference_member_spec.rb +1 -1
  264. data/spec/unit/models/conference_recording_available_callback_spec.rb +1 -1
  265. data/spec/unit/models/conference_recording_metadata_spec.rb +1 -1
  266. data/spec/unit/models/conference_redirect_callback_spec.rb +1 -1
  267. data/spec/unit/models/conference_spec.rb +1 -1
  268. data/spec/unit/models/contact_spec.rb +1 -1
  269. data/spec/unit/models/create_async_bulk_lookup_response_data_spec.rb +1 -1
  270. data/spec/unit/models/create_async_bulk_lookup_response_spec.rb +1 -1
  271. data/spec/unit/models/create_call_response_spec.rb +1 -1
  272. data/spec/unit/models/create_call_spec.rb +1 -1
  273. data/spec/unit/models/create_endpoint_request_base_spec.rb +1 -1
  274. data/spec/unit/models/create_endpoint_response_data_spec.rb +1 -1
  275. data/spec/unit/models/create_endpoint_response_spec.rb +1 -1
  276. data/spec/unit/models/create_message_request_error_spec.rb +1 -1
  277. data/spec/unit/models/create_multi_channel_message_response_spec.rb +1 -1
  278. data/spec/unit/models/create_sync_lookup_response_data_spec.rb +1 -1
  279. data/spec/unit/models/create_sync_lookup_response_spec.rb +1 -1
  280. data/spec/unit/models/create_web_rtc_connection_request_spec.rb +1 -1
  281. data/spec/unit/models/device_spec.rb +1 -1
  282. data/spec/unit/models/disconnect_callback_spec.rb +12 -4
  283. data/spec/unit/models/diversion_spec.rb +1 -1
  284. data/spec/unit/models/dtmf_callback_spec.rb +1 -1
  285. data/spec/unit/models/endpoint_event_spec.rb +1 -1
  286. data/spec/unit/models/endpoint_response_spec.rb +1 -1
  287. data/spec/unit/models/endpoint_spec.rb +1 -1
  288. data/spec/unit/models/endpoints_spec.rb +1 -1
  289. data/spec/unit/models/error_object_spec.rb +1 -1
  290. data/spec/unit/models/error_source_spec.rb +1 -1
  291. data/spec/unit/models/failure_webhook_spec.rb +1 -1
  292. data/spec/unit/models/field_error_spec.rb +1 -1
  293. data/spec/unit/models/gather_callback_spec.rb +1 -1
  294. data/spec/unit/models/get_async_bulk_lookup_response_data_spec.rb +1 -1
  295. data/spec/unit/models/get_async_bulk_lookup_response_spec.rb +1 -1
  296. data/spec/unit/models/inbound_callback_message_spec.rb +1 -1
  297. data/spec/unit/models/inbound_callback_spec.rb +1 -1
  298. data/spec/unit/models/initiate_callback_spec.rb +13 -4
  299. data/spec/unit/models/link_schema_spec.rb +1 -1
  300. data/spec/unit/models/link_spec.rb +1 -1
  301. data/spec/unit/models/links_object_spec.rb +1 -1
  302. data/spec/unit/models/list_endpoints_response_spec.rb +1 -1
  303. data/spec/unit/models/list_message_item_spec.rb +1 -1
  304. data/spec/unit/models/lookup_error_response_spec.rb +1 -1
  305. data/spec/unit/models/lookup_error_schema_meta_spec.rb +1 -1
  306. data/spec/unit/models/lookup_error_schema_spec.rb +1 -1
  307. data/spec/unit/models/lookup_result_spec.rb +1 -1
  308. data/spec/unit/models/machine_detection_complete_callback_spec.rb +1 -1
  309. data/spec/unit/models/machine_detection_configuration_spec.rb +1 -1
  310. data/spec/unit/models/machine_detection_result_spec.rb +1 -1
  311. data/spec/unit/models/media_spec.rb +1 -1
  312. data/spec/unit/models/message_request_spec.rb +1 -1
  313. data/spec/unit/models/message_spec.rb +1 -1
  314. data/spec/unit/models/messages_list_spec.rb +1 -1
  315. data/spec/unit/models/messaging_code_response_spec.rb +1 -1
  316. data/spec/unit/models/messaging_request_error_spec.rb +1 -1
  317. data/spec/unit/models/mfa_forbidden_request_error_spec.rb +1 -1
  318. data/spec/unit/models/mfa_request_error_spec.rb +1 -1
  319. data/spec/unit/models/mfa_unauthorized_request_error_spec.rb +1 -1
  320. data/spec/unit/models/mms_message_content_file_spec.rb +1 -1
  321. data/spec/unit/models/mms_message_content_spec.rb +1 -1
  322. data/spec/unit/models/multi_channel_action_calendar_event_spec.rb +1 -1
  323. data/spec/unit/models/multi_channel_channel_list_mms_object_spec.rb +1 -1
  324. data/spec/unit/models/multi_channel_channel_list_mms_response_object_spec.rb +1 -1
  325. data/spec/unit/models/multi_channel_channel_list_object_base_spec.rb +1 -1
  326. data/spec/unit/models/multi_channel_channel_list_owner_object_spec.rb +1 -1
  327. data/spec/unit/models/multi_channel_channel_list_rbm_object_spec.rb +1 -1
  328. data/spec/unit/models/multi_channel_channel_list_rbm_response_object_spec.rb +1 -1
  329. data/spec/unit/models/multi_channel_channel_list_sms_object_spec.rb +1 -1
  330. data/spec/unit/models/multi_channel_channel_list_sms_response_object_spec.rb +1 -1
  331. data/spec/unit/models/multi_channel_error_spec.rb +1 -1
  332. data/spec/unit/models/multi_channel_message_content_spec.rb +1 -1
  333. data/spec/unit/models/multi_channel_message_request_spec.rb +1 -1
  334. data/spec/unit/models/multi_channel_message_response_data_spec.rb +1 -1
  335. data/spec/unit/models/opt_in_workflow_spec.rb +1 -1
  336. data/spec/unit/models/page_info_spec.rb +1 -1
  337. data/spec/unit/models/page_spec.rb +1 -1
  338. data/spec/unit/models/rbm_action_base_spec.rb +1 -1
  339. data/spec/unit/models/rbm_action_dial_spec.rb +1 -1
  340. data/spec/unit/models/rbm_action_open_url_spec.rb +1 -1
  341. data/spec/unit/models/rbm_action_view_location_spec.rb +1 -1
  342. data/spec/unit/models/rbm_card_content_media_spec.rb +1 -1
  343. data/spec/unit/models/rbm_card_content_spec.rb +1 -1
  344. data/spec/unit/models/rbm_location_response_spec.rb +1 -1
  345. data/spec/unit/models/rbm_message_carousel_card_spec.rb +1 -1
  346. data/spec/unit/models/rbm_message_content_file_spec.rb +1 -1
  347. data/spec/unit/models/rbm_message_content_text_spec.rb +1 -1
  348. data/spec/unit/models/rbm_message_media_spec.rb +1 -1
  349. data/spec/unit/models/rbm_standalone_card_spec.rb +1 -1
  350. data/spec/unit/models/rbm_suggestion_response_spec.rb +1 -1
  351. data/spec/unit/models/recording_available_callback_spec.rb +1 -1
  352. data/spec/unit/models/recording_complete_callback_spec.rb +1 -1
  353. data/spec/unit/models/recording_transcription_clip_spec.rb +1 -1
  354. data/spec/unit/models/recording_transcription_metadata_spec.rb +1 -1
  355. data/spec/unit/models/recording_transcriptions_spec.rb +1 -1
  356. data/spec/unit/models/redirect_callback_spec.rb +1 -1
  357. data/spec/unit/models/sip_connection_metadata_spec.rb +1 -1
  358. data/spec/unit/models/sip_credentials_spec.rb +1 -1
  359. data/spec/unit/models/sms_message_content_spec.rb +1 -1
  360. data/spec/unit/models/status_callback_message_spec.rb +1 -1
  361. data/spec/unit/models/status_callback_spec.rb +1 -1
  362. data/spec/unit/models/status_callback_type_enum_spec.rb +6 -0
  363. data/spec/unit/models/stir_shaken_spec.rb +1 -1
  364. data/spec/unit/models/sync_lookup_request_spec.rb +1 -1
  365. data/spec/unit/models/telephone_number_spec.rb +1 -1
  366. data/spec/unit/models/tfv_basic_authentication_spec.rb +1 -1
  367. data/spec/unit/models/tfv_error_spec.rb +1 -1
  368. data/spec/unit/models/tfv_status_spec.rb +1 -1
  369. data/spec/unit/models/tfv_submission_info_spec.rb +1 -1
  370. data/spec/unit/models/tfv_submission_wrapper_spec.rb +1 -1
  371. data/spec/unit/models/transcribe_recording_spec.rb +1 -1
  372. data/spec/unit/models/transcription_available_callback_spec.rb +1 -1
  373. data/spec/unit/models/transcription_spec.rb +1 -1
  374. data/spec/unit/models/transfer_answer_callback_spec.rb +1 -1
  375. data/spec/unit/models/transfer_complete_callback_spec.rb +1 -1
  376. data/spec/unit/models/transfer_disconnect_callback_spec.rb +1 -1
  377. data/spec/unit/models/update_call_recording_spec.rb +1 -1
  378. data/spec/unit/models/update_call_spec.rb +1 -1
  379. data/spec/unit/models/update_conference_member_spec.rb +1 -1
  380. data/spec/unit/models/update_conference_spec.rb +1 -1
  381. data/spec/unit/models/verification_denial_webhook_spec.rb +1 -1
  382. data/spec/unit/models/verification_request_spec.rb +1 -1
  383. data/spec/unit/models/verification_update_request_spec.rb +1 -1
  384. data/spec/unit/models/verification_webhook_spec.rb +1 -1
  385. data/spec/unit/models/verify_code_request_spec.rb +1 -1
  386. data/spec/unit/models/verify_code_response_spec.rb +1 -1
  387. data/spec/unit/models/voice_api_error_spec.rb +1 -1
  388. data/spec/unit/models/voice_code_response_spec.rb +1 -1
  389. data/spec/unit/models/webhook_subscription_basic_authentication_spec.rb +1 -1
  390. data/spec/unit/models/webhook_subscription_error_spec.rb +1 -1
  391. data/spec/unit/models/webhook_subscription_request_schema_spec.rb +1 -1
  392. data/spec/unit/models/webhook_subscription_spec.rb +1 -1
  393. data/spec/unit/models/webhook_subscriptions_list_body_spec.rb +1 -1
  394. metadata +230 -227
@@ -46,7 +46,7 @@ describe Bandwidth::MfaRequestError do
46
46
 
47
47
  describe '#to_s' do
48
48
  it 'returns a string representation of the object' do
49
- expect(mfa_request_error_values.to_s).to eq('{:error=>"Invalid request", :requestId=>"req-abc-123"}')
49
+ expect(mfa_request_error_values.to_s).to eq({ :error => 'Invalid request', :requestId => 'req-abc-123' }.to_s)
50
50
  end
51
51
  end
52
52
 
@@ -43,7 +43,7 @@ describe Bandwidth::MfaUnauthorizedRequestError do
43
43
 
44
44
  describe '#to_s' do
45
45
  it 'returns a string representation of the object' do
46
- expect(mfa_unauthorized_request_error_values.to_s).to eq('{:message=>"Unauthorized"}')
46
+ expect(mfa_unauthorized_request_error_values.to_s).to eq({ :message => 'Unauthorized' }.to_s)
47
47
  end
48
48
  end
49
49
 
@@ -45,7 +45,7 @@ describe Bandwidth::MmsMessageContentFile do
45
45
 
46
46
  describe '#to_s' do
47
47
  it 'returns a string representation of the object' do
48
- expect(mms_message_content_file_values.to_s).to eq('{:fileUrl=>"https://example.com/image.jpg"}')
48
+ expect(mms_message_content_file_values.to_s).to eq({ :fileUrl => 'https://example.com/image.jpg' }.to_s)
49
49
  end
50
50
  end
51
51
 
@@ -48,7 +48,7 @@ describe Bandwidth::MmsMessageContent do
48
48
 
49
49
  describe '#to_s' do
50
50
  it 'returns a string representation of the object' do
51
- expect(mms_message_content_values.to_s).to eq('{:text=>"Hello world", :media=>[{:fileUrl=>"https://dev.bandwidth.com/images/bandwidth-logo.png"}]}')
51
+ expect(mms_message_content_values.to_s).to eq({ :text => 'Hello world', :media => [{ :fileUrl => 'https://dev.bandwidth.com/images/bandwidth-logo.png' }] }.to_s)
52
52
  end
53
53
  end
54
54
 
@@ -68,7 +68,7 @@ describe Bandwidth::MultiChannelActionCalendarEvent do
68
68
 
69
69
  describe '#to_s' do
70
70
  it 'returns a string representation of the object' do
71
- expect(multi_channel_action_calendar_event_values.to_s).to eq('{:type=>"CREATE_CALENDAR_EVENT", :text=>"Add to calendar", :postbackData=>"calendar_postback", :title=>"Bandwidth Demo", :startTime=>"2024-06-16T13:15:07.160Z", :endTime=>"2024-06-16T14:15:07.160Z", :description=>"A demo of the Bandwidth API"}')
71
+ expect(multi_channel_action_calendar_event_values.to_s).to eq({ :type => 'CREATE_CALENDAR_EVENT', :text => 'Add to calendar', :postbackData => 'calendar_postback', :title => 'Bandwidth Demo', :startTime => '2024-06-16T13:15:07.160Z', :endTime => '2024-06-16T14:15:07.160Z', :description => 'A demo of the Bandwidth API' }.to_s)
72
72
  end
73
73
  end
74
74
 
@@ -58,7 +58,7 @@ describe Bandwidth::MultiChannelChannelListMMSObject do
58
58
 
59
59
  describe '#to_s' do
60
60
  it 'returns a string representation of the object' do
61
- expect(multi_channel_channel_list_mms_object_values.to_s).to eq('{:from=>"+19195554321", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :channel=>"MMS", :content=>{:text=>"Hello world"}}')
61
+ expect(multi_channel_channel_list_mms_object_values.to_s).to eq({ :from => '+19195554321', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :channel => 'MMS', :content => { :text => 'Hello world' } }.to_s)
62
62
  end
63
63
  end
64
64
 
@@ -62,7 +62,7 @@ describe Bandwidth::MultiChannelChannelListMMSResponseObject do
62
62
 
63
63
  describe '#to_s' do
64
64
  it 'returns a string representation of the object' do
65
- expect(multi_channel_channel_list_mms_response_object_values.to_s).to eq('{:from=>"+19195554321", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :channel=>"MMS", :content=>{:text=>"Hello world"}, :owner=>"+19195554321"}')
65
+ expect(multi_channel_channel_list_mms_response_object_values.to_s).to eq({ :from => '+19195554321', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :channel => 'MMS', :content => { :text => 'Hello world' }, :owner => '+19195554321' }.to_s)
66
66
  end
67
67
  end
68
68
 
@@ -53,7 +53,7 @@ describe Bandwidth::MultiChannelChannelListObjectBase do
53
53
 
54
54
  describe '#to_s' do
55
55
  it 'returns a string representation of the object' do
56
- expect(multi_channel_channel_list_object_base_values.to_s).to eq('{:from=>"+19195554321", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :channel=>"MMS"}')
56
+ expect(multi_channel_channel_list_object_base_values.to_s).to eq({ :from => '+19195554321', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :channel => 'MMS' }.to_s)
57
57
  end
58
58
  end
59
59
 
@@ -45,7 +45,7 @@ describe Bandwidth::MultiChannelChannelListOwnerObject do
45
45
 
46
46
  describe '#to_s' do
47
47
  it 'returns a string representation of the object' do
48
- expect(multi_channel_channel_list_owner_object_values.to_s).to eq('{:owner=>"+19195554321"}')
48
+ expect(multi_channel_channel_list_owner_object_values.to_s).to eq({ :owner => '+19195554321' }.to_s)
49
49
  end
50
50
  end
51
51
 
@@ -58,7 +58,7 @@ describe Bandwidth::MultiChannelChannelListRBMObject do
58
58
 
59
59
  describe '#to_s' do
60
60
  it 'returns a string representation of the object' do
61
- expect(multi_channel_channel_list_rbm_object_values.to_s).to eq('{:from=>"BANDWIDTH", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :channel=>"RBM", :content=>{:text=>"Hello world"}}')
61
+ expect(multi_channel_channel_list_rbm_object_values.to_s).to eq({ :from => 'BANDWIDTH', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :channel => 'RBM', :content => { :text => 'Hello world' } }.to_s)
62
62
  end
63
63
  end
64
64
 
@@ -62,7 +62,7 @@ describe Bandwidth::MultiChannelChannelListRBMResponseObject do
62
62
 
63
63
  describe '#to_s' do
64
64
  it 'returns a string representation of the object' do
65
- expect(multi_channel_channel_list_rbm_response_object_values.to_s).to eq('{:from=>"BANDWIDTH", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :channel=>"RBM", :content=>{:text=>"Hello world"}, :owner=>"BANDWIDTH"}')
65
+ expect(multi_channel_channel_list_rbm_response_object_values.to_s).to eq({ :from => 'BANDWIDTH', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :channel => 'RBM', :content => { :text => 'Hello world' }, :owner => 'BANDWIDTH' }.to_s)
66
66
  end
67
67
  end
68
68
 
@@ -58,7 +58,7 @@ describe Bandwidth::MultiChannelChannelListSMSObject do
58
58
 
59
59
  describe '#to_s' do
60
60
  it 'returns a string representation of the object' do
61
- expect(multi_channel_channel_list_sms_object_values.to_s).to eq('{:from=>"+19195554321", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :channel=>"SMS", :content=>{:text=>"Hello world"}}')
61
+ expect(multi_channel_channel_list_sms_object_values.to_s).to eq({ :from => '+19195554321', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :channel => 'SMS', :content => { :text => 'Hello world' } }.to_s)
62
62
  end
63
63
  end
64
64
 
@@ -62,7 +62,7 @@ describe Bandwidth::MultiChannelChannelListSMSResponseObject do
62
62
 
63
63
  describe '#to_s' do
64
64
  it 'returns a string representation of the object' do
65
- expect(multi_channel_channel_list_sms_response_object_values.to_s).to eq('{:from=>"+19195554321", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :channel=>"SMS", :content=>{:text=>"Hello world"}, :owner=>"+19195554321"}')
65
+ expect(multi_channel_channel_list_sms_response_object_values.to_s).to eq({ :from => '+19195554321', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :channel => 'SMS', :content => { :text => 'Hello world' }, :owner => '+19195554321' }.to_s)
66
66
  end
67
67
  end
68
68
 
@@ -53,7 +53,7 @@ describe Bandwidth::MultiChannelError do
53
53
 
54
54
  describe '#to_s' do
55
55
  it 'returns a string representation of the object' do
56
- expect(multi_channel_error_values.to_s).to eq('{:links=>[{:rel=>"next", :href=>"https://example.com/next"}], :data=>{:someKey=>"someValue"}, :errors=>[{:type=>"invalid", :description=>"Something went wrong", :source=>{:parameter=>"foo"}}]}')
56
+ expect(multi_channel_error_values.to_s).to eq({ :links => [{ :rel => 'next', :href => 'https://example.com/next' }], :data => { :someKey => 'someValue' }, :errors => [{ :type => 'invalid', :description => 'Something went wrong', :source => { :parameter => 'foo' } }] }.to_s)
57
57
  end
58
58
  end
59
59
 
@@ -47,7 +47,7 @@ describe Bandwidth::MultiChannelMessageContent do
47
47
 
48
48
  describe '#to_s' do
49
49
  it 'returns a string representation of the object' do
50
- expect(multi_channel_message_content_values.to_s).to eq('{:text=>"Hello world", :media=>{:fileUrl=>"https://dev.bandwidth.com/images/bandwidth-logo.png"}}')
50
+ expect(multi_channel_message_content_values.to_s).to eq({ :text => 'Hello world', :media => { :fileUrl => 'https://dev.bandwidth.com/images/bandwidth-logo.png' } }.to_s)
51
51
  end
52
52
  end
53
53
 
@@ -69,7 +69,7 @@ describe Bandwidth::MultiChannelMessageRequest do
69
69
 
70
70
  describe '#to_s' do
71
71
  it 'returns a string representation of the object' do
72
- expect(multi_channel_message_request_values.to_s).to eq('{:to=>"+19195551234", :channelList=>[{:from=>"+19195554321", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :channel=>"SMS", :content=>{:text=>"Hello world"}}], :tag=>"custom tag", :priority=>"default", :expiration=>"2024-06-16T13:45:07.160Z"}')
72
+ expect(multi_channel_message_request_values.to_s).to eq({ :to => '+19195551234', :channelList => [{ :from => '+19195554321', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :channel => 'SMS', :content => { :text => 'Hello world' } }], :tag => 'custom tag', :priority => 'default', :expiration => '2024-06-16T13:45:07.160Z' }.to_s)
73
73
  end
74
74
  end
75
75
 
@@ -83,7 +83,7 @@ describe Bandwidth::MultiChannelMessageResponseData do
83
83
 
84
84
  describe '#to_s' do
85
85
  it 'returns a string representation of the object' do
86
- expect(multi_channel_message_response_data_values.to_s).to eq('{:id=>"1589228074636lm4k2je7j7jklbn2", :time=>"2024-06-16T13:15:07.160Z", :direction=>"out", :to=>["+19195551234"], :channelList=>[{:from=>"+19195554321", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :channel=>"SMS", :content=>{:text=>"Hello world"}, :owner=>"+19195554321"}], :tag=>"custom tag", :priority=>"default", :expiration=>"2024-06-16T13:45:07.160Z"}')
86
+ expect(multi_channel_message_response_data_values.to_s).to eq({ :id => '1589228074636lm4k2je7j7jklbn2', :time => '2024-06-16T13:15:07.160Z', :direction => 'out', :to => ['+19195551234'], :channelList => [{ :from => '+19195554321', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :channel => 'SMS', :content => { :text => 'Hello world' }, :owner => '+19195554321' }], :tag => 'custom tag', :priority => 'default', :expiration => '2024-06-16T13:45:07.160Z' }.to_s)
87
87
  end
88
88
  end
89
89
 
@@ -52,7 +52,7 @@ describe Bandwidth::OptInWorkflow do
52
52
 
53
53
  describe '#to_s' do
54
54
  it 'returns a string representation of the object' do
55
- expect(opt_in_workflow_values.to_s).to eq('{:description=>"A description of the opt in workflow", :imageUrls=>["https://example.com/image1.png", "https://example.com/image2.png"], :confirmationResponse=>"Thanks for opting in!"}')
55
+ expect(opt_in_workflow_values.to_s).to eq({ :description => 'A description of the opt in workflow', :imageUrls => ['https://example.com/image1.png', 'https://example.com/image2.png'], :confirmationResponse => 'Thanks for opting in!' }.to_s)
56
56
  end
57
57
  end
58
58
 
@@ -52,7 +52,7 @@ describe Bandwidth::PageInfo do
52
52
 
53
53
  describe '#to_s' do
54
54
  it 'returns a string representation of the object' do
55
- expect(page_info_values.to_s).to eq('{:prevPage=>"https://example.com/prev", :nextPage=>"https://example.com/next", :prevPageToken=>"prev-token", :nextPageToken=>"next-token"}')
55
+ expect(page_info_values.to_s).to eq({ :prevPage => 'https://example.com/prev', :nextPage => 'https://example.com/next', :prevPageToken => 'prev-token', :nextPageToken => 'next-token' }.to_s)
56
56
  end
57
57
  end
58
58
 
@@ -54,7 +54,7 @@ describe Bandwidth::Page do
54
54
 
55
55
  describe '#to_s' do
56
56
  it 'returns a string representation of the object' do
57
- expect(page_values.to_s).to eq('{:pageSize=>100, :totalElements=>250, :totalPages=>3, :pageNumber=>1}')
57
+ expect(page_values.to_s).to eq({ :pageSize => 100, :totalElements => 250, :totalPages => 3, :pageNumber => 1 }.to_s)
58
58
  end
59
59
  end
60
60
 
@@ -53,7 +53,7 @@ describe Bandwidth::RbmActionBase do
53
53
 
54
54
  describe '#to_s' do
55
55
  it 'returns a string representation of the object' do
56
- expect(rbm_action_base_values.to_s).to eq('{:type=>"REPLY", :text=>"Yes", :postbackData=>"reply_yes"}')
56
+ expect(rbm_action_base_values.to_s).to eq({ :type => 'REPLY', :text => 'Yes', :postbackData => 'reply_yes' }.to_s)
57
57
  end
58
58
  end
59
59
 
@@ -57,7 +57,7 @@ describe Bandwidth::RbmActionDial do
57
57
 
58
58
  describe '#to_s' do
59
59
  it 'returns a string representation of the object' do
60
- expect(rbm_action_dial_values.to_s).to eq('{:type=>"DIAL_PHONE", :text=>"Call us", :postbackData=>"dial_postback", :phoneNumber=>"+19195554321"}')
60
+ expect(rbm_action_dial_values.to_s).to eq({ :type => 'DIAL_PHONE', :text => 'Call us', :postbackData => 'dial_postback', :phoneNumber => '+19195554321' }.to_s)
61
61
  end
62
62
  end
63
63
 
@@ -63,7 +63,7 @@ describe Bandwidth::RbmActionOpenUrl do
63
63
 
64
64
  describe '#to_s' do
65
65
  it 'returns a string representation of the object' do
66
- expect(rbm_action_open_url_values.to_s).to eq('{:type=>"OPEN_URL", :text=>"Open URL", :postbackData=>"open_url_postback", :url=>"https://example.com", :application=>"BROWSER", :webviewViewMode=>"FULL"}')
66
+ expect(rbm_action_open_url_values.to_s).to eq({ :type => 'OPEN_URL', :text => 'Open URL', :postbackData => 'open_url_postback', :url => 'https://example.com', :application => 'BROWSER', :webviewViewMode => 'FULL' }.to_s)
67
67
  end
68
68
  end
69
69
 
@@ -64,7 +64,7 @@ describe Bandwidth::RbmActionViewLocation do
64
64
 
65
65
  describe '#to_s' do
66
66
  it 'returns a string representation of the object' do
67
- expect(rbm_action_view_location_values.to_s).to eq('{:type=>"SHOW_LOCATION", :text=>"View location", :postbackData=>"location_postback", :latitude=>35.7796, :longitude=>-78.6382, :label=>"Bandwidth HQ"}')
67
+ expect(rbm_action_view_location_values.to_s).to eq({ :type => 'SHOW_LOCATION', :text => 'View location', :postbackData => 'location_postback', :latitude => 35.7796, :longitude => -78.6382, :label => 'Bandwidth HQ' }.to_s)
68
68
  end
69
69
  end
70
70
 
@@ -52,7 +52,7 @@ describe Bandwidth::RbmCardContentMedia do
52
52
 
53
53
  describe '#to_s' do
54
54
  it 'returns a string representation of the object' do
55
- expect(rbm_card_content_media_values.to_s).to eq('{:fileUrl=>"https://dev.bandwidth.com/images/bandwidth-logo.png", :thumbnailUrl=>"https://dev.bandwidth.com/images/bandwidth-logo-thumb.png", :height=>"MEDIUM"}')
55
+ expect(rbm_card_content_media_values.to_s).to eq({ :fileUrl => 'https://dev.bandwidth.com/images/bandwidth-logo.png', :thumbnailUrl => 'https://dev.bandwidth.com/images/bandwidth-logo-thumb.png', :height => 'MEDIUM' }.to_s)
56
56
  end
57
57
  end
58
58
 
@@ -63,7 +63,7 @@ describe Bandwidth::RbmCardContent do
63
63
 
64
64
  describe '#to_s' do
65
65
  it 'returns a string representation of the object' do
66
- expect(rbm_card_content_values.to_s).to eq('{:title=>"Card Title", :description=>"Card Description", :media=>{:fileUrl=>"https://dev.bandwidth.com/images/bandwidth-logo.png", :height=>"MEDIUM"}, :suggestions=>[{:type=>"REPLY", :text=>"Yes", :postbackData=>"reply_yes"}]}')
66
+ expect(rbm_card_content_values.to_s).to eq({ :title => 'Card Title', :description => 'Card Description', :media => { :fileUrl => 'https://dev.bandwidth.com/images/bandwidth-logo.png', :height => 'MEDIUM' }, :suggestions => [{ :type => 'REPLY', :text => 'Yes', :postbackData => 'reply_yes' }] }.to_s)
67
67
  end
68
68
  end
69
69
 
@@ -46,7 +46,7 @@ describe Bandwidth::RbmLocationResponse do
46
46
 
47
47
  describe '#to_s' do
48
48
  it 'returns a string representation of the object' do
49
- expect(rbm_location_response_values.to_s).to eq('{:latitude=>35.7796, :longitude=>-78.6382}')
49
+ expect(rbm_location_response_values.to_s).to eq({ :latitude => 35.7796, :longitude => -78.6382 }.to_s)
50
50
  end
51
51
  end
52
52
 
@@ -61,7 +61,7 @@ describe Bandwidth::RbmMessageCarouselCard do
61
61
 
62
62
  describe '#to_s' do
63
63
  it 'returns a string representation of the object' do
64
- expect(rbm_message_carousel_card_values.to_s).to eq('{:cardWidth=>"MEDIUM", :cardContents=>[{:title=>"Card Title", :description=>"Card Description"}, {:title=>"Card Title", :description=>"Card Description"}], :suggestions=>[{:type=>"REPLY", :text=>"Yes", :postbackData=>"reply_yes"}]}')
64
+ expect(rbm_message_carousel_card_values.to_s).to eq({ :cardWidth => 'MEDIUM', :cardContents => [{ :title => 'Card Title', :description => 'Card Description' }, { :title => 'Card Title', :description => 'Card Description' }], :suggestions => [{ :type => 'REPLY', :text => 'Yes', :postbackData => 'reply_yes' }] }.to_s)
65
65
  end
66
66
  end
67
67
 
@@ -48,7 +48,7 @@ describe Bandwidth::RbmMessageContentFile do
48
48
 
49
49
  describe '#to_s' do
50
50
  it 'returns a string representation of the object' do
51
- expect(rbm_message_content_file_values.to_s).to eq('{:fileUrl=>"https://dev.bandwidth.com/images/bandwidth-logo.png", :thumbnailUrl=>"https://dev.bandwidth.com/images/bandwidth-logo-thumb.png"}')
51
+ expect(rbm_message_content_file_values.to_s).to eq({ :fileUrl => 'https://dev.bandwidth.com/images/bandwidth-logo.png', :thumbnailUrl => 'https://dev.bandwidth.com/images/bandwidth-logo-thumb.png' }.to_s)
52
52
  end
53
53
  end
54
54
 
@@ -53,7 +53,7 @@ describe Bandwidth::RbmMessageContentText do
53
53
 
54
54
  describe '#to_s' do
55
55
  it 'returns a string representation of the object' do
56
- expect(rbm_message_content_text_values.to_s).to eq('{:text=>"Hello world", :suggestions=>[{:type=>"REPLY", :text=>"Yes", :postbackData=>"reply_yes"}]}')
56
+ expect(rbm_message_content_text_values.to_s).to eq({ :text => 'Hello world', :suggestions => [{ :type => 'REPLY', :text => 'Yes', :postbackData => 'reply_yes' }] }.to_s)
57
57
  end
58
58
  end
59
59
 
@@ -56,7 +56,7 @@ describe Bandwidth::RbmMessageMedia do
56
56
 
57
57
  describe '#to_s' do
58
58
  it 'returns a string representation of the object' do
59
- expect(rbm_message_media_values.to_s).to eq('{:media=>[{:fileUrl=>"https://dev.bandwidth.com/images/bandwidth-logo.png"}], :suggestions=>[{:type=>"REPLY", :text=>"Yes", :postbackData=>"reply_yes"}]}')
59
+ expect(rbm_message_media_values.to_s).to eq({ :media => [{ :fileUrl => 'https://dev.bandwidth.com/images/bandwidth-logo.png' }], :suggestions => [{ :type => 'REPLY', :text => 'Yes', :postbackData => 'reply_yes' }] }.to_s)
60
60
  end
61
61
  end
62
62
 
@@ -65,7 +65,7 @@ describe Bandwidth::RbmStandaloneCard do
65
65
 
66
66
  describe '#to_s' do
67
67
  it 'returns a string representation of the object' do
68
- expect(rbm_standalone_card_values.to_s).to eq('{:orientation=>"VERTICAL", :thumbnailImageAlignment=>"RIGHT", :cardContent=>{:title=>"Card Title", :description=>"Card Description"}, :suggestions=>[{:type=>"REPLY", :text=>"Yes", :postbackData=>"reply_yes"}]}')
68
+ expect(rbm_standalone_card_values.to_s).to eq({ :orientation => 'VERTICAL', :thumbnailImageAlignment => 'RIGHT', :cardContent => { :title => 'Card Title', :description => 'Card Description' }, :suggestions => [{ :type => 'REPLY', :text => 'Yes', :postbackData => 'reply_yes' }] }.to_s)
69
69
  end
70
70
  end
71
71
 
@@ -49,7 +49,7 @@ describe Bandwidth::RbmSuggestionResponse do
49
49
 
50
50
  describe '#to_s' do
51
51
  it 'returns a string representation of the object' do
52
- expect(rbm_suggestion_response_values.to_s).to eq('{:text=>"Yes", :postbackData=>"reply_yes", :pairedMessageId=>"paired_message_123"}')
52
+ expect(rbm_suggestion_response_values.to_s).to eq({ :text => 'Yes', :postbackData => 'reply_yes', :pairedMessageId => 'paired_message_123' }.to_s)
53
53
  end
54
54
  end
55
55
 
@@ -110,7 +110,7 @@ describe Bandwidth::RecordingAvailableCallback do
110
110
 
111
111
  describe '#to_s' do
112
112
  it 'returns a string representation of the object' do
113
- expect(recording_available_callback_values.to_s).to eq('{:eventType=>"recordingAvailable", :eventTime=>"2022-06-16T13:15:07.160Z", :accountId=>"9900000", :applicationId=>"04e88489-df02-4e34-a0ee-27a91849555f", :from=>"+19195554321", :to=>"+19195551234", :direction=>"inbound", :callId=>"c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85", :callUrl=>"https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85", :parentCallId=>"c-95ac29a2-1331029c-2cb0-4a07-b215-b22865662d99", :recordingId=>"r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85", :mediaUrl=>"https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/media", :enqueuedTime=>"2022-06-16T13:15:07.160Z", :startTime=>"2022-06-16T13:15:07.160Z", :endTime=>"2022-06-16T13:17:07.160Z", :duration=>"PT2M", :fileFormat=>"wav", :channels=>1, :tag=>"custom tag", :status=>"complete", :transferCallerId=>"+19195554321", :transferTo=>"+19195551234"}')
113
+ expect(recording_available_callback_values.to_s).to eq({ :eventType => 'recordingAvailable', :eventTime => '2022-06-16T13:15:07.160Z', :accountId => '9900000', :applicationId => '04e88489-df02-4e34-a0ee-27a91849555f', :from => '+19195554321', :to => '+19195551234', :direction => 'inbound', :callId => 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :callUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :parentCallId => 'c-95ac29a2-1331029c-2cb0-4a07-b215-b22865662d99', :recordingId => 'r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :mediaUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/media', :enqueuedTime => '2022-06-16T13:15:07.160Z', :startTime => '2022-06-16T13:15:07.160Z', :endTime => '2022-06-16T13:17:07.160Z', :duration => 'PT2M', :fileFormat => 'wav', :channels => 1, :tag => 'custom tag', :status => 'complete', :transferCallerId => '+19195554321', :transferTo => '+19195551234' }.to_s)
114
114
  end
115
115
  end
116
116
 
@@ -111,7 +111,7 @@ describe Bandwidth::RecordingCompleteCallback do
111
111
 
112
112
  describe '#to_s' do
113
113
  it 'returns a string representation of the object' do
114
- expect(recording_complete_callback_values.to_s).to eq('{:eventType=>"recordingComplete", :eventTime=>"2022-06-16T13:15:07.160Z", :accountId=>"9900000", :applicationId=>"04e88489-df02-4e34-a0ee-27a91849555f", :from=>"+19195554321", :to=>"+19195551234", :direction=>"inbound", :callId=>"c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85", :callUrl=>"https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85", :parentCallId=>"c-95ac29a2-1331029c-2cb0-4a07-b215-b22865662d99", :recordingId=>"r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85", :mediaUrl=>"https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/media", :enqueuedTime=>"2022-06-16T13:15:07.160Z", :startTime=>"2022-06-16T13:15:07.160Z", :answerTime=>"2022-06-16T13:15:18.126Z", :endTime=>"2022-06-16T13:17:07.160Z", :duration=>"PT2M", :fileFormat=>"wav", :channels=>1, :tag=>"custom tag", :transferCallerId=>"+19195554321", :transferTo=>"+19195551234"}')
114
+ expect(recording_complete_callback_values.to_s).to eq({ :eventType => 'recordingComplete', :eventTime => '2022-06-16T13:15:07.160Z', :accountId => '9900000', :applicationId => '04e88489-df02-4e34-a0ee-27a91849555f', :from => '+19195554321', :to => '+19195551234', :direction => 'inbound', :callId => 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :callUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :parentCallId => 'c-95ac29a2-1331029c-2cb0-4a07-b215-b22865662d99', :recordingId => 'r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :mediaUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/media', :enqueuedTime => '2022-06-16T13:15:07.160Z', :startTime => '2022-06-16T13:15:07.160Z', :answerTime => '2022-06-16T13:15:18.126Z', :endTime => '2022-06-16T13:17:07.160Z', :duration => 'PT2M', :fileFormat => 'wav', :channels => 1, :tag => 'custom tag', :transferCallerId => '+19195554321', :transferTo => '+19195551234' }.to_s)
115
115
  end
116
116
  end
117
117
 
@@ -55,7 +55,7 @@ describe Bandwidth::RecordingTranscriptionClip do
55
55
 
56
56
  describe '#to_s' do
57
57
  it 'returns a string representation of the object' do
58
- expect(recording_transcription_clip_values.to_s).to eq('{:speaker=>0, :text=>"Hello world", :confidence=>0.9, :startTimeSeconds=>1.5, :endTimeSeconds=>3.2}')
58
+ expect(recording_transcription_clip_values.to_s).to eq({ :speaker => 0, :text => 'Hello world', :confidence => 0.9, :startTimeSeconds => 1.5, :endTimeSeconds => 3.2 }.to_s)
59
59
  end
60
60
  end
61
61
 
@@ -52,7 +52,7 @@ describe Bandwidth::RecordingTranscriptionMetadata do
52
52
 
53
53
  describe '#to_s' do
54
54
  it 'returns a string representation of the object' do
55
- expect(recording_transcription_metadata_values.to_s).to eq('{:id=>"t-3f758f24-c7a2fdac-7c2e-4d83-bf28-c7c1ed29563c", :status=>"available", :completedTime=>"2022-06-17T22:21:30Z", :url=>"https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/transcriptions/t-3f758f24-c7a2fdac-7c2e-4d83-bf28-c7c1ed29563c"}')
55
+ expect(recording_transcription_metadata_values.to_s).to eq({ :id => 't-3f758f24-c7a2fdac-7c2e-4d83-bf28-c7c1ed29563c', :status => 'available', :completedTime => '2022-06-17T22:21:30Z', :url => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/transcriptions/t-3f758f24-c7a2fdac-7c2e-4d83-bf28-c7c1ed29563c' }.to_s)
56
56
  end
57
57
  end
58
58
 
@@ -70,7 +70,7 @@ describe Bandwidth::RecordingTranscriptions do
70
70
 
71
71
  describe '#to_s' do
72
72
  it 'returns a string representation of the object' do
73
- expect(recording_transcriptions_values.to_s).to eq('{:transcripts=>[{:speaker=>1, :text=>"Hello World! Thank you for calling.", :confidence=>0.9}], :clips=>[{:speaker=>1, :text=>"Hello World! Thank you for calling.", :confidence=>0.9, :startTimeSeconds=>1.0, :endTimeSeconds=>5.0}]}')
73
+ expect(recording_transcriptions_values.to_s).to eq({ :transcripts => [{ :speaker => 1, :text => 'Hello World! Thank you for calling.', :confidence => 0.9 }], :clips => [{ :speaker => 1, :text => 'Hello World! Thank you for calling.', :confidence => 0.9, :startTimeSeconds => 1.0, :endTimeSeconds => 5.0 }] }.to_s)
74
74
  end
75
75
  end
76
76
 
@@ -92,7 +92,7 @@ describe Bandwidth::RedirectCallback do
92
92
 
93
93
  describe '#to_s' do
94
94
  it 'returns a string representation of the object' do
95
- expect(redirect_callback_values.to_s).to eq('{:eventType=>"redirect", :eventTime=>"2022-06-16T13:15:07.160Z", :accountId=>"9900000", :applicationId=>"04e88489-df02-4e34-a0ee-27a91849555f", :from=>"+19195554321", :to=>"+19195551234", :direction=>"inbound", :callId=>"c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85", :callUrl=>"https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85", :parentCallId=>"c-95ac29a2-1331029c-2cb0-4a07-b215-b22865662d99", :enqueuedTime=>"2022-06-16T13:15:07.160Z", :startTime=>"2022-06-16T13:15:07.160Z", :answerTime=>"2022-06-16T13:15:18.126Z", :tag=>"custom tag", :transferCallerId=>"+19195554321", :transferTo=>"+19195551234"}')
95
+ expect(redirect_callback_values.to_s).to eq({ :eventType => 'redirect', :eventTime => '2022-06-16T13:15:07.160Z', :accountId => '9900000', :applicationId => '04e88489-df02-4e34-a0ee-27a91849555f', :from => '+19195554321', :to => '+19195551234', :direction => 'inbound', :callId => 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :callUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :parentCallId => 'c-95ac29a2-1331029c-2cb0-4a07-b215-b22865662d99', :enqueuedTime => '2022-06-16T13:15:07.160Z', :startTime => '2022-06-16T13:15:07.160Z', :answerTime => '2022-06-16T13:15:18.126Z', :tag => 'custom tag', :transferCallerId => '+19195554321', :transferTo => '+19195551234' }.to_s)
96
96
  end
97
97
  end
98
98
 
@@ -54,7 +54,7 @@ describe Bandwidth::SipConnectionMetadata do
54
54
 
55
55
  describe '#to_s' do
56
56
  it 'returns a string representation of the object' do
57
- expect(sip_connection_metadata_values.to_s).to eq('{:ipAddress=>"192.168.1.1", :port=>5060, :credentials=>{:username=>"sipUser", :password=>"sipPass"}, :uuiHeader=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9"}')
57
+ expect(sip_connection_metadata_values.to_s).to eq({ :ipAddress => '192.168.1.1', :port => 5060, :credentials => { :username => 'sipUser', :password => 'sipPass' }, :uuiHeader => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9' }.to_s)
58
58
  end
59
59
  end
60
60
 
@@ -46,7 +46,7 @@ describe Bandwidth::SipCredentials do
46
46
 
47
47
  describe '#to_s' do
48
48
  it 'returns a string representation of the object' do
49
- expect(sip_credentials_values.to_s).to eq('{:username=>"sipUser", :password=>"sipPass"}')
49
+ expect(sip_credentials_values.to_s).to eq({ :username => 'sipUser', :password => 'sipPass' }.to_s)
50
50
  end
51
51
  end
52
52
 
@@ -45,7 +45,7 @@ describe Bandwidth::SmsMessageContent do
45
45
 
46
46
  describe '#to_s' do
47
47
  it 'returns a string representation of the object' do
48
- expect(sms_message_content_values.to_s).to eq('{:text=>"Hello world"}')
48
+ expect(sms_message_content_values.to_s).to eq({ :text => 'Hello world' }.to_s)
49
49
  end
50
50
  end
51
51
 
@@ -88,7 +88,7 @@ describe Bandwidth::StatusCallbackMessage do
88
88
 
89
89
  describe '#to_s' do
90
90
  it 'returns a string representation of the object' do
91
- expect(status_callback_message_values.to_s).to eq('{:id=>"1589228074636lm4k2je7j7jklbn2", :owner=>"+19195554321", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :time=>"2022-06-16T13:15:07.160Z", :segmentCount=>2, :direction=>"out", :to=>["+19195551234"], :from=>"+19195554321", :text=>"Hello world", :tag=>"custom tag", :media=>["https://dev.bandwidth.com/images/bandwidth-logo.png"], :priority=>"default", :channel=>"SMS"}')
91
+ expect(status_callback_message_values.to_s).to eq({ :id => '1589228074636lm4k2je7j7jklbn2', :owner => '+19195554321', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :time => '2022-06-16T13:15:07.160Z', :segmentCount => 2, :direction => 'out', :to => ['+19195551234'], :from => '+19195554321', :text => 'Hello world', :tag => 'custom tag', :media => ['https://dev.bandwidth.com/images/bandwidth-logo.png'], :priority => 'default', :channel => 'SMS' }.to_s)
92
92
  end
93
93
  end
94
94
 
@@ -92,7 +92,7 @@ describe Bandwidth::StatusCallback do
92
92
 
93
93
  describe '#to_s' do
94
94
  it 'returns a string representation of the object' do
95
- expect(status_callback_values.to_s).to eq('{:time=>"2022-06-16T13:15:07.160Z", :eventTime=>"2022-06-16T13:16:07.160Z", :type=>"message-delivered", :to=>"+19195551234", :description=>"Message delivered to carrier", :message=>{:id=>"1589228074636lm4k2je7j7jklbn2", :owner=>"+19195554321", :applicationId=>"93de2206-9669-4e07-948d-329f4b722ee2", :time=>"2022-06-16T13:15:07.160Z", :segmentCount=>1, :direction=>"out", :to=>["+19195551234"], :from=>"+19195554321", :text=>"Hello world"}, :errorCode=>0, :carrierName=>"Verizon"}')
95
+ expect(status_callback_values.to_s).to eq({ :time => '2022-06-16T13:15:07.160Z', :eventTime => '2022-06-16T13:16:07.160Z', :type => 'message-delivered', :to => '+19195551234', :description => 'Message delivered to carrier', :message => { :id => '1589228074636lm4k2je7j7jklbn2', :owner => '+19195554321', :applicationId => '93de2206-9669-4e07-948d-329f4b722ee2', :time => '2022-06-16T13:15:07.160Z', :segmentCount => 1, :direction => 'out', :to => ['+19195551234'], :from => '+19195554321', :text => 'Hello world' }, :errorCode => 0, :carrierName => 'Verizon' }.to_s)
96
96
  end
97
97
  end
98
98
 
@@ -5,6 +5,10 @@ describe Bandwidth::StatusCallbackTypeEnum do
5
5
  expect(Bandwidth::StatusCallbackTypeEnum::MESSAGE_SENDING).to eq('message-sending')
6
6
  end
7
7
 
8
+ it 'defines MESSAGE_SENT' do
9
+ expect(Bandwidth::StatusCallbackTypeEnum::MESSAGE_SENT).to eq('message-sent')
10
+ end
11
+
8
12
  it 'defines MESSAGE_DELIVERED' do
9
13
  expect(Bandwidth::StatusCallbackTypeEnum::MESSAGE_DELIVERED).to eq('message-delivered')
10
14
  end
@@ -22,6 +26,7 @@ describe Bandwidth::StatusCallbackTypeEnum do
22
26
  it 'returns every valid enum value' do
23
27
  expect(Bandwidth::StatusCallbackTypeEnum.all_vars).to eq([
24
28
  'message-sending',
29
+ 'message-sent',
25
30
  'message-delivered',
26
31
  'message-failed',
27
32
  'message-read'
@@ -32,6 +37,7 @@ describe Bandwidth::StatusCallbackTypeEnum do
32
37
  describe '.build_from_hash' do
33
38
  it 'returns the value when it matches a valid enum value' do
34
39
  expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-sending')).to eq('message-sending')
40
+ expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-sent')).to eq('message-sent')
35
41
  expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-delivered')).to eq('message-delivered')
36
42
  expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-failed')).to eq('message-failed')
37
43
  expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-read')).to eq('message-read')
@@ -49,7 +49,7 @@ describe Bandwidth::StirShaken do
49
49
 
50
50
  describe '#to_s' do
51
51
  it 'returns a string representation of the object' do
52
- expect(stir_shaken_values.to_s).to eq('{:verstat=>"TN-Validation-Passed", :attestationIndicator=>"A", :originatingId=>"99759086-1335-11ed-9bcf-5f7d464e91af"}')
52
+ expect(stir_shaken_values.to_s).to eq({ :verstat => 'TN-Validation-Passed', :attestationIndicator => 'A', :originatingId => '99759086-1335-11ed-9bcf-5f7d464e91af' }.to_s)
53
53
  end
54
54
  end
55
55
 
@@ -48,7 +48,7 @@ describe Bandwidth::SyncLookupRequest do
48
48
 
49
49
  describe '#to_s' do
50
50
  it 'returns a string representation of the object' do
51
- expect(sync_lookup_request_values.to_s).to eq('{:phoneNumbers=>["+19195551234", "+19195554321"], :rcsAgent=>"my_agent"}')
51
+ expect(sync_lookup_request_values.to_s).to eq({ :phoneNumbers => ['+19195551234', '+19195554321'], :rcsAgent => 'my_agent' }.to_s)
52
52
  end
53
53
  end
54
54
 
@@ -43,7 +43,7 @@ describe Bandwidth::TelephoneNumber do
43
43
 
44
44
  describe '#to_s' do
45
45
  it 'returns a string representation of the object' do
46
- expect(telephone_number_values.to_s).to eq('{:telephoneNumber=>"+19195551234"}')
46
+ expect(telephone_number_values.to_s).to eq({ :telephoneNumber => '+19195551234' }.to_s)
47
47
  end
48
48
  end
49
49
 
@@ -49,7 +49,7 @@ describe Bandwidth::TfvBasicAuthentication do
49
49
 
50
50
  describe '#to_s' do
51
51
  it 'returns a string representation of the object' do
52
- expect(tfv_basic_authentication_values.to_s).to eq('{:username=>"mySecretUsername", :password=>"mySecretPassword"}')
52
+ expect(tfv_basic_authentication_values.to_s).to eq({ :username => 'mySecretUsername', :password => 'mySecretPassword' }.to_s)
53
53
  end
54
54
  end
55
55
 
@@ -49,7 +49,7 @@ describe Bandwidth::TfvError do
49
49
 
50
50
  describe '#to_s' do
51
51
  it 'returns a string representation of the object' do
52
- expect(tfv_error_values.to_s).to eq('{:type=>"type", :description=>"description", :errors=>{:key=>"value"}}')
52
+ expect(tfv_error_values.to_s).to eq({ :type => 'type', :description => 'description', :errors => { :key => 'value' } }.to_s)
53
53
  end
54
54
  end
55
55