sunshine-conversations-client 14.2.0 → 14.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG_RB.md +10 -0
  3. data/README.md +8 -5
  4. data/docs/ActivityMessage.md +19 -0
  5. data/docs/Message.md +2 -0
  6. data/docs/TicketClosed.md +19 -0
  7. data/docs/TransferToEmail.md +19 -0
  8. data/lib/sunshine-conversations-client/api/activities_api.rb +1 -1
  9. data/lib/sunshine-conversations-client/api/app_keys_api.rb +1 -1
  10. data/lib/sunshine-conversations-client/api/apps_api.rb +1 -1
  11. data/lib/sunshine-conversations-client/api/attachments_api.rb +1 -1
  12. data/lib/sunshine-conversations-client/api/clients_api.rb +1 -1
  13. data/lib/sunshine-conversations-client/api/conversations_api.rb +1 -1
  14. data/lib/sunshine-conversations-client/api/custom_integration_api_keys_api.rb +1 -1
  15. data/lib/sunshine-conversations-client/api/devices_api.rb +1 -1
  16. data/lib/sunshine-conversations-client/api/integrations_api.rb +1 -1
  17. data/lib/sunshine-conversations-client/api/messages_api.rb +1 -1
  18. data/lib/sunshine-conversations-client/api/o_auth_endpoints_api.rb +1 -1
  19. data/lib/sunshine-conversations-client/api/participants_api.rb +1 -1
  20. data/lib/sunshine-conversations-client/api/switchboard_actions_api.rb +1 -1
  21. data/lib/sunshine-conversations-client/api/switchboard_integrations_api.rb +1 -1
  22. data/lib/sunshine-conversations-client/api/switchboards_api.rb +1 -1
  23. data/lib/sunshine-conversations-client/api/users_api.rb +1 -1
  24. data/lib/sunshine-conversations-client/api/webhooks_api.rb +1 -1
  25. data/lib/sunshine-conversations-client/api_client.rb +1 -1
  26. data/lib/sunshine-conversations-client/api_error.rb +1 -1
  27. data/lib/sunshine-conversations-client/configuration.rb +1 -1
  28. data/lib/sunshine-conversations-client/models/accept_control_body.rb +1 -1
  29. data/lib/sunshine-conversations-client/models/action.rb +1 -1
  30. data/lib/sunshine-conversations-client/models/action_subset.rb +1 -1
  31. data/lib/sunshine-conversations-client/models/activity.rb +1 -1
  32. data/lib/sunshine-conversations-client/models/activity_all_of.rb +1 -1
  33. data/lib/sunshine-conversations-client/models/activity_message.rb +249 -0
  34. data/lib/sunshine-conversations-client/models/activity_post.rb +1 -1
  35. data/lib/sunshine-conversations-client/models/activity_post_all_of.rb +1 -1
  36. data/lib/sunshine-conversations-client/models/activity_types.rb +1 -1
  37. data/lib/sunshine-conversations-client/models/android.rb +1 -1
  38. data/lib/sunshine-conversations-client/models/android_all_of.rb +1 -1
  39. data/lib/sunshine-conversations-client/models/android_update.rb +1 -1
  40. data/lib/sunshine-conversations-client/models/android_update_all_of.rb +1 -1
  41. data/lib/sunshine-conversations-client/models/api_key.rb +1 -1
  42. data/lib/sunshine-conversations-client/models/app.rb +1 -1
  43. data/lib/sunshine-conversations-client/models/app_create_body.rb +1 -1
  44. data/lib/sunshine-conversations-client/models/app_key.rb +1 -1
  45. data/lib/sunshine-conversations-client/models/app_key_create_body.rb +1 -1
  46. data/lib/sunshine-conversations-client/models/app_key_list_response.rb +1 -1
  47. data/lib/sunshine-conversations-client/models/app_key_response.rb +1 -1
  48. data/lib/sunshine-conversations-client/models/app_list_filter.rb +1 -1
  49. data/lib/sunshine-conversations-client/models/app_list_response.rb +1 -1
  50. data/lib/sunshine-conversations-client/models/app_response.rb +1 -1
  51. data/lib/sunshine-conversations-client/models/app_settings.rb +1 -1
  52. data/lib/sunshine-conversations-client/models/app_sub_schema.rb +1 -1
  53. data/lib/sunshine-conversations-client/models/app_update_body.rb +1 -1
  54. data/lib/sunshine-conversations-client/models/apple.rb +1 -1
  55. data/lib/sunshine-conversations-client/models/apple_all_of.rb +1 -1
  56. data/lib/sunshine-conversations-client/models/apple_message_override_payload.rb +1 -1
  57. data/lib/sunshine-conversations-client/models/apple_update.rb +1 -1
  58. data/lib/sunshine-conversations-client/models/apple_update_all_of.rb +1 -1
  59. data/lib/sunshine-conversations-client/models/attachment_delete_body.rb +1 -1
  60. data/lib/sunshine-conversations-client/models/attachment_response.rb +1 -1
  61. data/lib/sunshine-conversations-client/models/attachment_schema.rb +1 -1
  62. data/lib/sunshine-conversations-client/models/attachment_upload_body.rb +1 -1
  63. data/lib/sunshine-conversations-client/models/author.rb +1 -1
  64. data/lib/sunshine-conversations-client/models/author_webhook.rb +1 -1
  65. data/lib/sunshine-conversations-client/models/buy.rb +1 -1
  66. data/lib/sunshine-conversations-client/models/campaign.rb +1 -1
  67. data/lib/sunshine-conversations-client/models/carousel_message.rb +1 -1
  68. data/lib/sunshine-conversations-client/models/carousel_message_display_settings.rb +1 -1
  69. data/lib/sunshine-conversations-client/models/client.rb +1 -1
  70. data/lib/sunshine-conversations-client/models/client_add_event.rb +1 -1
  71. data/lib/sunshine-conversations-client/models/client_add_event_all_of.rb +1 -1
  72. data/lib/sunshine-conversations-client/models/client_add_event_all_of_payload.rb +1 -1
  73. data/lib/sunshine-conversations-client/models/client_association.rb +1 -1
  74. data/lib/sunshine-conversations-client/models/client_create.rb +1 -1
  75. data/lib/sunshine-conversations-client/models/client_list_response.rb +1 -1
  76. data/lib/sunshine-conversations-client/models/client_remove_event.rb +1 -1
  77. data/lib/sunshine-conversations-client/models/client_remove_event_all_of.rb +1 -1
  78. data/lib/sunshine-conversations-client/models/client_remove_event_all_of_payload.rb +1 -1
  79. data/lib/sunshine-conversations-client/models/client_response.rb +1 -1
  80. data/lib/sunshine-conversations-client/models/client_type.rb +1 -1
  81. data/lib/sunshine-conversations-client/models/client_update_event.rb +1 -1
  82. data/lib/sunshine-conversations-client/models/client_update_event_all_of.rb +1 -1
  83. data/lib/sunshine-conversations-client/models/client_update_event_all_of_payload.rb +1 -1
  84. data/lib/sunshine-conversations-client/models/confirmation.rb +1 -1
  85. data/lib/sunshine-conversations-client/models/content.rb +1 -1
  86. data/lib/sunshine-conversations-client/models/conversation.rb +1 -1
  87. data/lib/sunshine-conversations-client/models/conversation_all_of.rb +1 -1
  88. data/lib/sunshine-conversations-client/models/conversation_create_body.rb +1 -1
  89. data/lib/sunshine-conversations-client/models/conversation_create_event.rb +1 -1
  90. data/lib/sunshine-conversations-client/models/conversation_create_event_all_of.rb +1 -1
  91. data/lib/sunshine-conversations-client/models/conversation_create_event_all_of_payload.rb +1 -1
  92. data/lib/sunshine-conversations-client/models/conversation_join_event.rb +1 -1
  93. data/lib/sunshine-conversations-client/models/conversation_join_event_all_of.rb +1 -1
  94. data/lib/sunshine-conversations-client/models/conversation_join_event_all_of_payload.rb +1 -1
  95. data/lib/sunshine-conversations-client/models/conversation_leave_event.rb +1 -1
  96. data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of.rb +1 -1
  97. data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of_payload.rb +1 -1
  98. data/lib/sunshine-conversations-client/models/conversation_list_filter.rb +1 -1
  99. data/lib/sunshine-conversations-client/models/conversation_list_response.rb +1 -1
  100. data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event.rb +1 -1
  101. data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event_all_of.rb +1 -1
  102. data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event.rb +1 -1
  103. data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event_all_of.rb +1 -1
  104. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload.rb +1 -1
  105. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_destination.rb +1 -1
  106. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_external_messages.rb +1 -1
  107. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_message.rb +1 -1
  108. data/lib/sunshine-conversations-client/models/conversation_message_delivery_user_event.rb +1 -1
  109. data/lib/sunshine-conversations-client/models/conversation_message_event.rb +1 -1
  110. data/lib/sunshine-conversations-client/models/conversation_message_event_all_of.rb +1 -1
  111. data/lib/sunshine-conversations-client/models/conversation_message_event_all_of_payload.rb +1 -1
  112. data/lib/sunshine-conversations-client/models/conversation_postback_event.rb +1 -1
  113. data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of.rb +1 -1
  114. data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of_payload.rb +1 -1
  115. data/lib/sunshine-conversations-client/models/conversation_read_event.rb +1 -1
  116. data/lib/sunshine-conversations-client/models/conversation_read_event_all_of.rb +1 -1
  117. data/lib/sunshine-conversations-client/models/conversation_read_event_all_of_payload.rb +1 -1
  118. data/lib/sunshine-conversations-client/models/conversation_referral_event.rb +1 -1
  119. data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of.rb +1 -1
  120. data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of_payload.rb +1 -1
  121. data/lib/sunshine-conversations-client/models/conversation_remove_event.rb +1 -1
  122. data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of.rb +1 -1
  123. data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of_payload.rb +1 -1
  124. data/lib/sunshine-conversations-client/models/conversation_response.rb +1 -1
  125. data/lib/sunshine-conversations-client/models/conversation_truncated.rb +1 -1
  126. data/lib/sunshine-conversations-client/models/conversation_type.rb +1 -1
  127. data/lib/sunshine-conversations-client/models/conversation_typing_event.rb +1 -1
  128. data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of.rb +1 -1
  129. data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of_payload.rb +1 -1
  130. data/lib/sunshine-conversations-client/models/conversation_update_body.rb +1 -1
  131. data/lib/sunshine-conversations-client/models/custom.rb +1 -1
  132. data/lib/sunshine-conversations-client/models/custom_all_of.rb +1 -1
  133. data/lib/sunshine-conversations-client/models/custom_update.rb +1 -1
  134. data/lib/sunshine-conversations-client/models/default_responder.rb +1 -1
  135. data/lib/sunshine-conversations-client/models/default_responder_default_responder.rb +1 -1
  136. data/lib/sunshine-conversations-client/models/default_responder_id.rb +1 -1
  137. data/lib/sunshine-conversations-client/models/destination.rb +1 -1
  138. data/lib/sunshine-conversations-client/models/device.rb +1 -1
  139. data/lib/sunshine-conversations-client/models/device_list_response.rb +1 -1
  140. data/lib/sunshine-conversations-client/models/device_response.rb +1 -1
  141. data/lib/sunshine-conversations-client/models/download_message_ref_body.rb +1 -1
  142. data/lib/sunshine-conversations-client/models/download_message_ref_body_all_of.rb +1 -1
  143. data/lib/sunshine-conversations-client/models/download_message_ref_body_all_of_apple.rb +1 -1
  144. data/lib/sunshine-conversations-client/models/download_message_ref_body_all_of_apple_interactive_data_ref.rb +1 -1
  145. data/lib/sunshine-conversations-client/models/event_sub_schema.rb +1 -1
  146. data/lib/sunshine-conversations-client/models/extra_channel_options.rb +1 -1
  147. data/lib/sunshine-conversations-client/models/extra_channel_options_messenger.rb +1 -1
  148. data/lib/sunshine-conversations-client/models/field.rb +1 -1
  149. data/lib/sunshine-conversations-client/models/file_message.rb +1 -1
  150. data/lib/sunshine-conversations-client/models/form_message.rb +1 -1
  151. data/lib/sunshine-conversations-client/models/form_message_field.rb +1 -1
  152. data/lib/sunshine-conversations-client/models/form_message_field_all_of.rb +1 -1
  153. data/lib/sunshine-conversations-client/models/form_response_message.rb +1 -1
  154. data/lib/sunshine-conversations-client/models/form_response_message_field.rb +1 -1
  155. data/lib/sunshine-conversations-client/models/form_response_message_field_all_of.rb +1 -1
  156. data/lib/sunshine-conversations-client/models/identity.rb +1 -1
  157. data/lib/sunshine-conversations-client/models/image_message.rb +1 -1
  158. data/lib/sunshine-conversations-client/models/inline_object.rb +1 -1
  159. data/lib/sunshine-conversations-client/models/instagram.rb +1 -1
  160. data/lib/sunshine-conversations-client/models/instagram_all_of.rb +1 -1
  161. data/lib/sunshine-conversations-client/models/instagram_update.rb +1 -1
  162. data/lib/sunshine-conversations-client/models/instagram_update_all_of.rb +1 -1
  163. data/lib/sunshine-conversations-client/models/integration.rb +1 -1
  164. data/lib/sunshine-conversations-client/models/integration_api_key.rb +1 -1
  165. data/lib/sunshine-conversations-client/models/integration_api_key_list_response.rb +1 -1
  166. data/lib/sunshine-conversations-client/models/integration_api_key_response.rb +1 -1
  167. data/lib/sunshine-conversations-client/models/integration_id.rb +1 -1
  168. data/lib/sunshine-conversations-client/models/integration_list_filter.rb +1 -1
  169. data/lib/sunshine-conversations-client/models/integration_list_response.rb +1 -1
  170. data/lib/sunshine-conversations-client/models/integration_response.rb +1 -1
  171. data/lib/sunshine-conversations-client/models/integration_type.rb +1 -1
  172. data/lib/sunshine-conversations-client/models/integration_update.rb +1 -1
  173. data/lib/sunshine-conversations-client/models/integration_update_base.rb +1 -1
  174. data/lib/sunshine-conversations-client/models/ios.rb +1 -1
  175. data/lib/sunshine-conversations-client/models/ios_all_of.rb +1 -1
  176. data/lib/sunshine-conversations-client/models/ios_update.rb +1 -1
  177. data/lib/sunshine-conversations-client/models/ios_update_all_of.rb +1 -1
  178. data/lib/sunshine-conversations-client/models/item.rb +1 -1
  179. data/lib/sunshine-conversations-client/models/line.rb +1 -1
  180. data/lib/sunshine-conversations-client/models/line_all_of.rb +1 -1
  181. data/lib/sunshine-conversations-client/models/line_update.rb +1 -1
  182. data/lib/sunshine-conversations-client/models/link.rb +1 -1
  183. data/lib/sunshine-conversations-client/models/links.rb +1 -1
  184. data/lib/sunshine-conversations-client/models/list_message.rb +1 -1
  185. data/lib/sunshine-conversations-client/models/location_message.rb +1 -1
  186. data/lib/sunshine-conversations-client/models/location_message_coordinates.rb +1 -1
  187. data/lib/sunshine-conversations-client/models/location_message_location.rb +1 -1
  188. data/lib/sunshine-conversations-client/models/location_request.rb +1 -1
  189. data/lib/sunshine-conversations-client/models/mailgun.rb +1 -1
  190. data/lib/sunshine-conversations-client/models/mailgun_all_of.rb +1 -1
  191. data/lib/sunshine-conversations-client/models/mailgun_update.rb +1 -1
  192. data/lib/sunshine-conversations-client/models/mailgun_update_all_of.rb +1 -1
  193. data/lib/sunshine-conversations-client/models/match_criteria.rb +1 -1
  194. data/lib/sunshine-conversations-client/models/match_criteria_base.rb +1 -1
  195. data/lib/sunshine-conversations-client/models/match_criteria_mailgun.rb +1 -1
  196. data/lib/sunshine-conversations-client/models/match_criteria_mailgun_all_of.rb +1 -1
  197. data/lib/sunshine-conversations-client/models/match_criteria_messagebird.rb +1 -1
  198. data/lib/sunshine-conversations-client/models/match_criteria_messagebird_all_of.rb +1 -1
  199. data/lib/sunshine-conversations-client/models/match_criteria_twilio.rb +1 -1
  200. data/lib/sunshine-conversations-client/models/match_criteria_twilio_all_of.rb +1 -1
  201. data/lib/sunshine-conversations-client/models/match_criteria_whatsapp.rb +1 -1
  202. data/lib/sunshine-conversations-client/models/match_criteria_whatsapp_all_of.rb +1 -1
  203. data/lib/sunshine-conversations-client/models/message.rb +12 -2
  204. data/lib/sunshine-conversations-client/models/message_bird_update.rb +1 -1
  205. data/lib/sunshine-conversations-client/models/message_list_response.rb +1 -1
  206. data/lib/sunshine-conversations-client/models/message_override.rb +1 -1
  207. data/lib/sunshine-conversations-client/models/message_override_apple.rb +1 -1
  208. data/lib/sunshine-conversations-client/models/message_override_line.rb +1 -1
  209. data/lib/sunshine-conversations-client/models/message_override_messenger.rb +1 -1
  210. data/lib/sunshine-conversations-client/models/message_override_payload.rb +1 -1
  211. data/lib/sunshine-conversations-client/models/message_override_whatsapp.rb +1 -1
  212. data/lib/sunshine-conversations-client/models/message_post.rb +1 -1
  213. data/lib/sunshine-conversations-client/models/message_post_response.rb +1 -1
  214. data/lib/sunshine-conversations-client/models/message_webhook.rb +1 -1
  215. data/lib/sunshine-conversations-client/models/messagebird.rb +1 -1
  216. data/lib/sunshine-conversations-client/models/messagebird_all_of.rb +1 -1
  217. data/lib/sunshine-conversations-client/models/messenger.rb +1 -1
  218. data/lib/sunshine-conversations-client/models/messenger_all_of.rb +1 -1
  219. data/lib/sunshine-conversations-client/models/messenger_update.rb +1 -1
  220. data/lib/sunshine-conversations-client/models/meta.rb +1 -1
  221. data/lib/sunshine-conversations-client/models/offer_control_body.rb +1 -1
  222. data/lib/sunshine-conversations-client/models/page.rb +1 -1
  223. data/lib/sunshine-conversations-client/models/participant.rb +1 -1
  224. data/lib/sunshine-conversations-client/models/participant_join_body.rb +1 -1
  225. data/lib/sunshine-conversations-client/models/participant_leave_body.rb +1 -1
  226. data/lib/sunshine-conversations-client/models/participant_leave_body_participant_id.rb +1 -1
  227. data/lib/sunshine-conversations-client/models/participant_leave_body_user_external_id.rb +1 -1
  228. data/lib/sunshine-conversations-client/models/participant_leave_body_user_id.rb +1 -1
  229. data/lib/sunshine-conversations-client/models/participant_list_response.rb +1 -1
  230. data/lib/sunshine-conversations-client/models/participant_response.rb +1 -1
  231. data/lib/sunshine-conversations-client/models/participant_sub_schema.rb +1 -1
  232. data/lib/sunshine-conversations-client/models/participant_with_user_external_id.rb +1 -1
  233. data/lib/sunshine-conversations-client/models/participant_with_user_id.rb +1 -1
  234. data/lib/sunshine-conversations-client/models/pass_control_body.rb +1 -1
  235. data/lib/sunshine-conversations-client/models/postback.rb +1 -1
  236. data/lib/sunshine-conversations-client/models/postback_webhook.rb +1 -1
  237. data/lib/sunshine-conversations-client/models/prechat_capture.rb +1 -1
  238. data/lib/sunshine-conversations-client/models/profile.rb +1 -1
  239. data/lib/sunshine-conversations-client/models/quoted_message.rb +1 -1
  240. data/lib/sunshine-conversations-client/models/quoted_message_external_message_id.rb +1 -1
  241. data/lib/sunshine-conversations-client/models/quoted_message_message.rb +1 -1
  242. data/lib/sunshine-conversations-client/models/referral.rb +1 -1
  243. data/lib/sunshine-conversations-client/models/referral_details.rb +1 -1
  244. data/lib/sunshine-conversations-client/models/reply.rb +1 -1
  245. data/lib/sunshine-conversations-client/models/source.rb +1 -1
  246. data/lib/sunshine-conversations-client/models/source_webhook.rb +1 -1
  247. data/lib/sunshine-conversations-client/models/source_with_campaign_webhook.rb +1 -1
  248. data/lib/sunshine-conversations-client/models/source_with_campaign_webhook_all_of.rb +1 -1
  249. data/lib/sunshine-conversations-client/models/status.rb +1 -1
  250. data/lib/sunshine-conversations-client/models/switchboard.rb +1 -1
  251. data/lib/sunshine-conversations-client/models/switchboard_accept_control.rb +1 -1
  252. data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of.rb +1 -1
  253. data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of_payload.rb +1 -1
  254. data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure.rb +1 -1
  255. data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of.rb +1 -1
  256. data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of_payload.rb +1 -1
  257. data/lib/sunshine-conversations-client/models/switchboard_integration.rb +1 -1
  258. data/lib/sunshine-conversations-client/models/switchboard_integration_create_body.rb +1 -1
  259. data/lib/sunshine-conversations-client/models/switchboard_integration_list_response.rb +1 -1
  260. data/lib/sunshine-conversations-client/models/switchboard_integration_response.rb +1 -1
  261. data/lib/sunshine-conversations-client/models/switchboard_integration_update_body.rb +1 -1
  262. data/lib/sunshine-conversations-client/models/switchboard_integration_webhook.rb +1 -1
  263. data/lib/sunshine-conversations-client/models/switchboard_list_response.rb +1 -1
  264. data/lib/sunshine-conversations-client/models/switchboard_offer_control.rb +1 -1
  265. data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of.rb +1 -1
  266. data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of_payload.rb +1 -1
  267. data/lib/sunshine-conversations-client/models/switchboard_offer_control_failure.rb +1 -1
  268. data/lib/sunshine-conversations-client/models/switchboard_pass_control.rb +1 -1
  269. data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of.rb +1 -1
  270. data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of_payload.rb +1 -1
  271. data/lib/sunshine-conversations-client/models/switchboard_pass_control_failure.rb +1 -1
  272. data/lib/sunshine-conversations-client/models/switchboard_response.rb +1 -1
  273. data/lib/sunshine-conversations-client/models/switchboard_update_body.rb +1 -1
  274. data/lib/sunshine-conversations-client/models/target.rb +1 -1
  275. data/lib/sunshine-conversations-client/models/telegram.rb +1 -1
  276. data/lib/sunshine-conversations-client/models/telegram_all_of.rb +1 -1
  277. data/lib/sunshine-conversations-client/models/telegram_update.rb +1 -1
  278. data/lib/sunshine-conversations-client/models/template_message.rb +1 -1
  279. data/lib/sunshine-conversations-client/models/text_message.rb +1 -1
  280. data/lib/sunshine-conversations-client/models/ticket_closed.rb +220 -0
  281. data/lib/sunshine-conversations-client/models/transfer_to_email.rb +220 -0
  282. data/lib/sunshine-conversations-client/models/twilio.rb +1 -1
  283. data/lib/sunshine-conversations-client/models/twilio_all_of.rb +1 -1
  284. data/lib/sunshine-conversations-client/models/twilio_update.rb +1 -1
  285. data/lib/sunshine-conversations-client/models/twitter.rb +1 -1
  286. data/lib/sunshine-conversations-client/models/twitter_all_of.rb +1 -1
  287. data/lib/sunshine-conversations-client/models/twitter_update.rb +1 -1
  288. data/lib/sunshine-conversations-client/models/unity.rb +1 -1
  289. data/lib/sunshine-conversations-client/models/unity_all_of.rb +1 -1
  290. data/lib/sunshine-conversations-client/models/unity_update.rb +1 -1
  291. data/lib/sunshine-conversations-client/models/unity_update_all_of.rb +1 -1
  292. data/lib/sunshine-conversations-client/models/user.rb +1 -1
  293. data/lib/sunshine-conversations-client/models/user_all_of.rb +1 -1
  294. data/lib/sunshine-conversations-client/models/user_create_body.rb +1 -1
  295. data/lib/sunshine-conversations-client/models/user_merge_event.rb +1 -1
  296. data/lib/sunshine-conversations-client/models/user_merge_event_all_of.rb +1 -1
  297. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload.rb +1 -1
  298. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_clients.rb +1 -1
  299. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_conversations.rb +1 -1
  300. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_users.rb +1 -1
  301. data/lib/sunshine-conversations-client/models/user_remove_event.rb +1 -1
  302. data/lib/sunshine-conversations-client/models/user_remove_event_all_of.rb +1 -1
  303. data/lib/sunshine-conversations-client/models/user_remove_event_all_of_payload.rb +1 -1
  304. data/lib/sunshine-conversations-client/models/user_response.rb +1 -1
  305. data/lib/sunshine-conversations-client/models/user_truncated.rb +1 -1
  306. data/lib/sunshine-conversations-client/models/user_update_body.rb +1 -1
  307. data/lib/sunshine-conversations-client/models/user_update_event.rb +1 -1
  308. data/lib/sunshine-conversations-client/models/user_update_event_all_of.rb +1 -1
  309. data/lib/sunshine-conversations-client/models/user_update_event_all_of_payload.rb +1 -1
  310. data/lib/sunshine-conversations-client/models/viber.rb +1 -1
  311. data/lib/sunshine-conversations-client/models/viber_all_of.rb +1 -1
  312. data/lib/sunshine-conversations-client/models/viber_update.rb +1 -1
  313. data/lib/sunshine-conversations-client/models/web.rb +1 -1
  314. data/lib/sunshine-conversations-client/models/web_all_of.rb +1 -1
  315. data/lib/sunshine-conversations-client/models/web_update.rb +1 -1
  316. data/lib/sunshine-conversations-client/models/web_update_all_of.rb +1 -1
  317. data/lib/sunshine-conversations-client/models/webhook.rb +1 -1
  318. data/lib/sunshine-conversations-client/models/webhook_body.rb +1 -1
  319. data/lib/sunshine-conversations-client/models/webhook_create_body.rb +1 -1
  320. data/lib/sunshine-conversations-client/models/webhook_list_response.rb +1 -1
  321. data/lib/sunshine-conversations-client/models/webhook_response.rb +1 -1
  322. data/lib/sunshine-conversations-client/models/webhook_sub_schema.rb +1 -1
  323. data/lib/sunshine-conversations-client/models/webview.rb +1 -1
  324. data/lib/sunshine-conversations-client/models/whats_app_update.rb +1 -1
  325. data/lib/sunshine-conversations-client/models/whats_app_update_all_of.rb +1 -1
  326. data/lib/sunshine-conversations-client/models/whatsapp.rb +1 -1
  327. data/lib/sunshine-conversations-client/models/whatsapp_all_of.rb +1 -1
  328. data/lib/sunshine-conversations-client/version.rb +2 -2
  329. data/lib/sunshine-conversations-client.rb +4 -1
  330. data/spec/api_client_spec.rb +1 -1
  331. data/spec/configuration_spec.rb +1 -1
  332. data/spec/spec_helper.rb +1 -1
  333. data/sunshine-conversations-client.gemspec +1 -1
  334. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f7a8e74f530c53848d2751001ddb96d522340213f8e1d902126328f82ec1e29
4
- data.tar.gz: 7e0d1da8330e9f02fc20d39fc1f2b23a280e34bafb27a0fc56d8309a4bc16a0f
3
+ metadata.gz: fd3e054871f2ea1032f9012a001a00727416e395629f37bb466f2fdb0930b92d
4
+ data.tar.gz: bb9bb33f4b23a1f917cca2cc71ce9cf0771f3275772f907439d9b495fe6f42f1
5
5
  SHA512:
6
- metadata.gz: f01d4a61598e3790f57fe7d2ab8fd6e3a8b32744f8bbd33afeeb495be4d8d4fbbef22146d1fe39a5f96194e74471d2bf85555a424de0e7f642fc977a23272c9c
7
- data.tar.gz: 85872d15aa4a4c0db5562764340e4e065150acac0a925b9c040eb496abb9eb5fdeeae190d919003c72f9f8508b5d8ad8ecf3746aa8d29afa46ebdd52ba4a21a7
6
+ metadata.gz: 10547c4274f6afc3e9bbd88be425cf7013633208b4e8715853d0d827e4cc55fbacb581ef86af353ef6d4e3710df0eeb4ae2f0364abe75b54990e6350a754dca7
7
+ data.tar.gz: cfbc4e5f3bc2fb31c5278b8ec7ed4884a2763efaa4b03499bc8a9eeb06a733ae316fa572175cc009b776fd5aa6597c52f59e5169a8726fe07841c7ee0f710b2b
data/CHANGELOG_RB.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [14.3.1] - 2025-1-7
4
+
5
+ - Fixed errors that prevented publishing language wrappers for the new version.
6
+
7
+ ## [14.3.0] - 2024-12-30
8
+
9
+ ### Added
10
+
11
+ - Added new read-only `activity` property to [Messages](http://127.0.0.1:8081/#tag/Messages/operation/listMessages) to denote system activities.
12
+
3
13
  ## [14.2.0] - 2024-12-11
4
14
 
5
15
  ### Added
data/README.md CHANGED
@@ -4,8 +4,8 @@ SunshineConversationsClient - the Ruby gem for the Sunshine Conversations API
4
4
 
5
5
  This SDK is automatically generated by the [OpenAPI Generator Codegen](https://github.com/OpenAPITools/openapi-generator) project using the [Sunshine Conversations API spec](https://github.com/zendesk/sunshine-conversations-api-spec).
6
6
 
7
- - API version: 14.2.0
8
- - Package version: 14.2.0
7
+ - API version: 14.3.0
8
+ - Package version: 14.3.1
9
9
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
10
10
 
11
11
  ## Sunshine Conversations API Version
@@ -32,16 +32,16 @@ gem build sunshine-conversations-client.gemspec
32
32
  Then either install the gem locally:
33
33
 
34
34
  ```shell
35
- gem install ./sunshine-conversations-client-14.2.0.gem
35
+ gem install ./sunshine-conversations-client-14.3.1.gem
36
36
  ```
37
37
 
38
- (for development, run `gem install --dev ./sunshine-conversations-client-14.2.0.gem` to install the development dependencies)
38
+ (for development, run `gem install --dev ./sunshine-conversations-client-14.3.1.gem` to install the development dependencies)
39
39
 
40
40
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
41
41
 
42
42
  Finally add this to the Gemfile:
43
43
 
44
- gem 'sunshine-conversations-client', '~> 14.2.0'
44
+ gem 'sunshine-conversations-client', '~> 14.3.1'
45
45
 
46
46
  ### Install from Git
47
47
 
@@ -204,6 +204,7 @@ Class | Method | HTTP request | Description
204
204
  - [SunshineConversationsClient::ActionSubset](docs/ActionSubset.md)
205
205
  - [SunshineConversationsClient::Activity](docs/Activity.md)
206
206
  - [SunshineConversationsClient::ActivityAllOf](docs/ActivityAllOf.md)
207
+ - [SunshineConversationsClient::ActivityMessage](docs/ActivityMessage.md)
207
208
  - [SunshineConversationsClient::ActivityPost](docs/ActivityPost.md)
208
209
  - [SunshineConversationsClient::ActivityPostAllOf](docs/ActivityPostAllOf.md)
209
210
  - [SunshineConversationsClient::ActivityTypes](docs/ActivityTypes.md)
@@ -450,6 +451,8 @@ Class | Method | HTTP request | Description
450
451
  - [SunshineConversationsClient::TelegramUpdate](docs/TelegramUpdate.md)
451
452
  - [SunshineConversationsClient::TemplateMessage](docs/TemplateMessage.md)
452
453
  - [SunshineConversationsClient::TextMessage](docs/TextMessage.md)
454
+ - [SunshineConversationsClient::TicketClosed](docs/TicketClosed.md)
455
+ - [SunshineConversationsClient::TransferToEmail](docs/TransferToEmail.md)
453
456
  - [SunshineConversationsClient::Twilio](docs/Twilio.md)
454
457
  - [SunshineConversationsClient::TwilioAllOf](docs/TwilioAllOf.md)
455
458
  - [SunshineConversationsClient::TwilioUpdate](docs/TwilioUpdate.md)
@@ -0,0 +1,19 @@
1
+ # SunshineConversationsClient::ActivityMessage
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **type** | **String** | The type of system activity that generated the message. The value of this field determines the dynamic content that is rendered to the end-user / agent when viewing this message. Each `type` value will have a set of pre-defined, localized strings that describe the activity. | [default to 'transferToEmail']
8
+ **data** | **Hash<String, Object>** | No additional data is supplied with the \"transferToEmail\" activity type at this time. | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'SunshineConversationsClient'
14
+
15
+ instance = SunshineConversationsClient::ActivityMessage.new(type: null,
16
+ data: null)
17
+ ```
18
+
19
+
data/docs/Message.md CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **id** | **String** | The unique ID of the message. | [optional]
8
8
  **received** | **String** | A datetime string with the format `YYYY-MM-DDThh:mm:ss.SSSZ` representing when Sunshine Conversations received the message. | [optional]
9
9
  **author** | [**Author**](Author.md) | | [optional]
10
+ **activity** | [**ActivityMessage**](ActivityMessage.md) | Details of the system activity that generated this message. This field is used when actions taken by the system generate a persisted message to notify the user or agent of an event that occurred. For example, when a user's Ticket gets closed. This property applies only to informational text messages generated via system events. | [optional]
10
11
  **content** | [**Content**](Content.md) | The content of the message. | [optional]
11
12
  **source** | [**Source**](Source.md) | | [optional]
12
13
  **quoted_message** | [**QuotedMessage**](QuotedMessage.md) | The quoted message is currently only available for WhatsApp and Web Messenger `formResponse` messages. | [optional]
@@ -21,6 +22,7 @@ require 'SunshineConversationsClient'
21
22
  instance = SunshineConversationsClient::Message.new(id: 5e552ef595e5206375bb835d,
22
23
  received: 2019-03-21T18:48:52.760Z,
23
24
  author: null,
25
+ activity: null,
24
26
  content: null,
25
27
  source: null,
26
28
  quoted_message: null,
@@ -0,0 +1,19 @@
1
+ # SunshineConversationsClient::TicketClosed
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **type** | **String** | The type of system activity that generated the message. The value of this field determines the dynamic content that is rendered to the end-user / agent when viewing this message. Each `type` value will have a set of pre-defined, localized strings that describe the activity. | [default to 'ticketClosed']
8
+ **data** | **Hash<String, Object>** | No additional data is supplied with the \"ticketClosed\" activity type at this time. | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'SunshineConversationsClient'
14
+
15
+ instance = SunshineConversationsClient::TicketClosed.new(type: null,
16
+ data: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # SunshineConversationsClient::TransferToEmail
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **type** | **String** | The type of system activity that generated the message. The value of this field determines the dynamic content that is rendered to the end-user / agent when viewing this message. Each `type` value will have a set of pre-defined, localized strings that describe the activity. | [default to 'transferToEmail']
8
+ **data** | **Hash<String, Object>** | No additional data is supplied with the \"transferToEmail\" activity type at this time. | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'SunshineConversationsClient'
14
+
15
+ instance = SunshineConversationsClient::TransferToEmail.new(type: null,
16
+ data: null)
17
+ ```
18
+
19
+
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -0,0 +1,249 @@
1
+ =begin
2
+ #Sunshine Conversations API
3
+
4
+ The version of the OpenAPI document: 14.3.0
5
+
6
+ Generated by: https://openapi-generator.tech
7
+ OpenAPI Generator version: 4.3.1
8
+ =end
9
+
10
+ require 'date'
11
+
12
+ module SunshineConversationsClient
13
+ class ActivityMessage
14
+ # The type of system activity that generated the message. The value of this field determines the dynamic content that is rendered to the end-user / agent when viewing this message. Each `type` value will have a set of pre-defined, localized strings that describe the activity.
15
+ attr_accessor :type
16
+
17
+ # No additional data is supplied with the \"transferToEmail\" activity type at this time.
18
+ attr_accessor :data
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'type' => :'type',
24
+ :'data' => :'data'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.openapi_types
30
+ {
31
+ :'type' => :'String',
32
+ :'data' => :'Hash<String, Object>'
33
+ }
34
+ end
35
+
36
+ # List of attributes with nullable: true
37
+ def self.openapi_nullable
38
+ Set.new([
39
+ ])
40
+ end
41
+
42
+ # List of class defined in oneOf (OpenAPI v3)
43
+ def self.openapi_one_of
44
+ [
45
+ :'TicketClosed',
46
+ :'TransferToEmail'
47
+ ]
48
+ end
49
+
50
+ # discriminator's property name in OpenAPI v3
51
+ def self.openapi_discriminator_name
52
+ :'type'
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::ActivityMessage` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!self.class.attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::ActivityMessage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'type')
71
+ self.type = attributes[:'type']
72
+ else
73
+ self.type = 'transferToEmail'
74
+ end
75
+
76
+ if attributes.key?(:'data')
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ invalid_properties = Array.new
84
+ if @type.nil?
85
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
86
+ end
87
+
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ return false if @type.nil?
95
+ _one_of_found = false
96
+ self.class.openapi_one_of.each do |_class|
97
+ _one_of = SunshineConversationsClient.const_get(_class).build_from_hash(self.to_hash)
98
+ if _one_of.valid?
99
+ if _one_of_found
100
+ return false
101
+ else
102
+ _one_of_found = true
103
+ end
104
+ end
105
+ end
106
+
107
+ if !_one_of_found
108
+ return false
109
+ end
110
+
111
+ true
112
+ end
113
+
114
+ # Checks equality by comparing each attribute.
115
+ # @param [Object] Object to be compared
116
+ def ==(o)
117
+ return true if self.equal?(o)
118
+ self.class == o.class &&
119
+ type == o.type &&
120
+ data == o.data
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Integer] Hash code
131
+ def hash
132
+ [type, data].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def self.build_from_hash(attributes)
139
+ new.build_from_hash(attributes)
140
+ end
141
+
142
+ # Builds the object from hash
143
+ # @param [Hash] attributes Model attributes in the form of hash
144
+ # @return [Object] Returns the model itself
145
+ def build_from_hash(attributes)
146
+ return nil unless attributes.is_a?(Hash)
147
+ self.class.openapi_types.each_pair do |key, type|
148
+ if type =~ /\AArray<(.*)>/i
149
+ # check to ensure the input is an array given that the attribute
150
+ # is documented as an array but the input is not
151
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
152
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
153
+ end
154
+ elsif !attributes[self.class.attribute_map[key]].nil?
155
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
157
+ end
158
+
159
+ self
160
+ end
161
+
162
+ # Deserializes the data based on type
163
+ # @param string type Data type
164
+ # @param string value Value to be deserialized
165
+ # @return [Object] Deserialized data
166
+ def _deserialize(type, value)
167
+ case type.to_sym
168
+ when :DateTime
169
+ DateTime.parse(value)
170
+ when :Date
171
+ Date.parse(value)
172
+ when :String
173
+ value.to_s
174
+ when :Integer
175
+ value.to_i
176
+ when :Float
177
+ value.to_f
178
+ when :Boolean
179
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
180
+ true
181
+ else
182
+ false
183
+ end
184
+ when :Object
185
+ # generic object (usually a Hash), return directly
186
+ value
187
+ when /\AArray<(?<inner_type>.+)>\z/
188
+ inner_type = Regexp.last_match[:inner_type]
189
+ value.map { |v| _deserialize(inner_type, v) }
190
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
191
+ k_type = Regexp.last_match[:k_type]
192
+ v_type = Regexp.last_match[:v_type]
193
+ {}.tap do |hash|
194
+ value.each do |k, v|
195
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
196
+ end
197
+ end
198
+ else # model
199
+ SunshineConversationsClient.const_get(type).build_from_hash(value)
200
+ end
201
+ end
202
+
203
+ # Returns the string representation of the object
204
+ # @return [String] String presentation of the object
205
+ def to_s
206
+ to_hash.to_s
207
+ end
208
+
209
+ # to_body is an alias to to_hash (backward compatibility)
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_body
212
+ to_hash
213
+ end
214
+
215
+ # Returns the object in the form of hash
216
+ # @return [Hash] Returns the object in the form of hash
217
+ def to_hash
218
+ hash = {}
219
+ self.class.attribute_map.each_pair do |attr, param|
220
+ value = self.send(attr)
221
+ if value.nil?
222
+ is_nullable = self.class.openapi_nullable.include?(attr)
223
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
224
+ end
225
+
226
+ hash[param] = _to_hash(value)
227
+ end
228
+ hash
229
+ end
230
+
231
+ # Outputs non-array value in the form of hash
232
+ # For object, use to_hash. Otherwise, just return the value
233
+ # @param [Object] value Any valid value
234
+ # @return [Hash] Returns the value in the form of hash
235
+ def _to_hash(value)
236
+ if value.is_a?(Array)
237
+ value.compact.map { |v| _to_hash(v) }
238
+ elsif value.is_a?(Hash)
239
+ {}.tap do |hash|
240
+ value.each { |k, v| hash[k] = _to_hash(v) }
241
+ end
242
+ elsif value.respond_to? :to_hash
243
+ value.to_hash
244
+ else
245
+ value
246
+ end
247
+ end
248
+ end
249
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 14.2.0
4
+ The version of the OpenAPI document: 14.3.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1