sunshine-conversations-client 9.4.4 → 9.5.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG_RB.md +18 -0
  3. data/README.md +15 -5
  4. data/docs/AppSettings.md +2 -2
  5. data/docs/ClientAddEvent.md +23 -0
  6. data/docs/ClientAddEventAllOf.md +17 -0
  7. data/docs/ClientAddEventAllOfPayload.md +25 -0
  8. data/docs/ClientRemoveEvent.md +23 -0
  9. data/docs/ClientRemoveEventAllOf.md +17 -0
  10. data/docs/ClientRemoveEventAllOfPayload.md +27 -0
  11. data/docs/ClientUpdateEvent.md +23 -0
  12. data/docs/ClientUpdateEventAllOf.md +17 -0
  13. data/docs/ClientUpdateEventAllOfPayload.md +23 -0
  14. data/docs/Content.md +1 -1
  15. data/docs/Field.md +4 -4
  16. data/docs/FormMessage.md +1 -1
  17. data/docs/InlineObject.md +2 -2
  18. data/docs/Messenger.md +5 -1
  19. data/docs/MessengerAllOf.md +5 -1
  20. data/docs/User.md +1 -1
  21. data/docs/UserMergeEventAllOfPayload.md +5 -1
  22. data/docs/UserMergeEventAllOfPayloadMergedClients.md +19 -0
  23. data/docs/UserTruncated.md +1 -1
  24. data/docs/Web.md +17 -15
  25. data/docs/WebAllOf.md +17 -15
  26. data/lib/sunshine-conversations-client/api/activities_api.rb +1 -1
  27. data/lib/sunshine-conversations-client/api/app_keys_api.rb +1 -1
  28. data/lib/sunshine-conversations-client/api/apps_api.rb +1 -1
  29. data/lib/sunshine-conversations-client/api/attachments_api.rb +1 -1
  30. data/lib/sunshine-conversations-client/api/clients_api.rb +1 -1
  31. data/lib/sunshine-conversations-client/api/conversations_api.rb +1 -1
  32. data/lib/sunshine-conversations-client/api/custom_integration_api_keys_api.rb +1 -1
  33. data/lib/sunshine-conversations-client/api/integrations_api.rb +1 -1
  34. data/lib/sunshine-conversations-client/api/messages_api.rb +1 -1
  35. data/lib/sunshine-conversations-client/api/o_auth_endpoints_api.rb +1 -1
  36. data/lib/sunshine-conversations-client/api/participants_api.rb +1 -1
  37. data/lib/sunshine-conversations-client/api/switchboard_actions_api.rb +1 -1
  38. data/lib/sunshine-conversations-client/api/switchboard_integrations_api.rb +1 -1
  39. data/lib/sunshine-conversations-client/api/switchboards_api.rb +1 -1
  40. data/lib/sunshine-conversations-client/api/users_api.rb +1 -1
  41. data/lib/sunshine-conversations-client/api/webhooks_api.rb +1 -1
  42. data/lib/sunshine-conversations-client/api_client.rb +1 -1
  43. data/lib/sunshine-conversations-client/api_error.rb +1 -1
  44. data/lib/sunshine-conversations-client/configuration.rb +1 -1
  45. data/lib/sunshine-conversations-client/models/accept_control_body.rb +1 -1
  46. data/lib/sunshine-conversations-client/models/action.rb +1 -1
  47. data/lib/sunshine-conversations-client/models/action_subset.rb +1 -1
  48. data/lib/sunshine-conversations-client/models/activity.rb +1 -1
  49. data/lib/sunshine-conversations-client/models/activity_all_of.rb +1 -1
  50. data/lib/sunshine-conversations-client/models/activity_post.rb +1 -1
  51. data/lib/sunshine-conversations-client/models/activity_post_all_of.rb +1 -1
  52. data/lib/sunshine-conversations-client/models/activity_types.rb +1 -1
  53. data/lib/sunshine-conversations-client/models/android.rb +1 -1
  54. data/lib/sunshine-conversations-client/models/android_all_of.rb +1 -1
  55. data/lib/sunshine-conversations-client/models/android_update.rb +1 -1
  56. data/lib/sunshine-conversations-client/models/android_update_all_of.rb +1 -1
  57. data/lib/sunshine-conversations-client/models/api_key.rb +1 -1
  58. data/lib/sunshine-conversations-client/models/app.rb +1 -1
  59. data/lib/sunshine-conversations-client/models/app_create_body.rb +1 -1
  60. data/lib/sunshine-conversations-client/models/app_key.rb +1 -1
  61. data/lib/sunshine-conversations-client/models/app_key_create_body.rb +1 -1
  62. data/lib/sunshine-conversations-client/models/app_key_list_response.rb +1 -1
  63. data/lib/sunshine-conversations-client/models/app_key_response.rb +1 -1
  64. data/lib/sunshine-conversations-client/models/app_list_filter.rb +1 -1
  65. data/lib/sunshine-conversations-client/models/app_list_response.rb +1 -1
  66. data/lib/sunshine-conversations-client/models/app_response.rb +1 -1
  67. data/lib/sunshine-conversations-client/models/app_settings.rb +3 -3
  68. data/lib/sunshine-conversations-client/models/app_sub_schema.rb +1 -1
  69. data/lib/sunshine-conversations-client/models/app_update_body.rb +1 -1
  70. data/lib/sunshine-conversations-client/models/apple.rb +1 -1
  71. data/lib/sunshine-conversations-client/models/apple_all_of.rb +1 -1
  72. data/lib/sunshine-conversations-client/models/apple_update.rb +1 -1
  73. data/lib/sunshine-conversations-client/models/attachment_delete_body.rb +1 -1
  74. data/lib/sunshine-conversations-client/models/attachment_media_token_body.rb +1 -1
  75. data/lib/sunshine-conversations-client/models/attachment_media_token_response.rb +1 -1
  76. data/lib/sunshine-conversations-client/models/attachment_response.rb +1 -1
  77. data/lib/sunshine-conversations-client/models/attachment_schema.rb +1 -1
  78. data/lib/sunshine-conversations-client/models/attachment_upload_body.rb +1 -1
  79. data/lib/sunshine-conversations-client/models/author.rb +1 -1
  80. data/lib/sunshine-conversations-client/models/author_webhook.rb +1 -1
  81. data/lib/sunshine-conversations-client/models/buy.rb +1 -1
  82. data/lib/sunshine-conversations-client/models/carousel_message.rb +1 -1
  83. data/lib/sunshine-conversations-client/models/carousel_message_display_settings.rb +1 -1
  84. data/lib/sunshine-conversations-client/models/client.rb +1 -1
  85. data/lib/sunshine-conversations-client/models/client_add_event.rb +241 -0
  86. data/lib/sunshine-conversations-client/models/client_add_event_all_of.rb +203 -0
  87. data/lib/sunshine-conversations-client/models/client_add_event_all_of_payload.rb +280 -0
  88. data/lib/sunshine-conversations-client/models/client_association.rb +1 -1
  89. data/lib/sunshine-conversations-client/models/client_create.rb +1 -1
  90. data/lib/sunshine-conversations-client/models/client_list_response.rb +1 -1
  91. data/lib/sunshine-conversations-client/models/client_remove_event.rb +241 -0
  92. data/lib/sunshine-conversations-client/models/client_remove_event_all_of.rb +203 -0
  93. data/lib/sunshine-conversations-client/models/client_remove_event_all_of_payload.rb +291 -0
  94. data/lib/sunshine-conversations-client/models/client_response.rb +1 -1
  95. data/lib/sunshine-conversations-client/models/client_type.rb +1 -1
  96. data/lib/sunshine-conversations-client/models/client_update_event.rb +241 -0
  97. data/lib/sunshine-conversations-client/models/client_update_event_all_of.rb +203 -0
  98. data/lib/sunshine-conversations-client/models/client_update_event_all_of_payload.rb +269 -0
  99. data/lib/sunshine-conversations-client/models/confirmation.rb +1 -1
  100. data/lib/sunshine-conversations-client/models/content.rb +2 -2
  101. data/lib/sunshine-conversations-client/models/conversation.rb +1 -1
  102. data/lib/sunshine-conversations-client/models/conversation_all_of.rb +1 -1
  103. data/lib/sunshine-conversations-client/models/conversation_create_body.rb +1 -1
  104. data/lib/sunshine-conversations-client/models/conversation_create_event.rb +1 -1
  105. data/lib/sunshine-conversations-client/models/conversation_create_event_all_of.rb +1 -1
  106. data/lib/sunshine-conversations-client/models/conversation_create_event_all_of_payload.rb +1 -1
  107. data/lib/sunshine-conversations-client/models/conversation_join_event.rb +1 -1
  108. data/lib/sunshine-conversations-client/models/conversation_join_event_all_of.rb +1 -1
  109. data/lib/sunshine-conversations-client/models/conversation_join_event_all_of_payload.rb +1 -1
  110. data/lib/sunshine-conversations-client/models/conversation_leave_event.rb +1 -1
  111. data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of.rb +1 -1
  112. data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of_payload.rb +1 -1
  113. data/lib/sunshine-conversations-client/models/conversation_list_filter.rb +1 -1
  114. data/lib/sunshine-conversations-client/models/conversation_list_response.rb +1 -1
  115. data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event.rb +1 -1
  116. data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event_all_of.rb +1 -1
  117. data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event.rb +1 -1
  118. data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event_all_of.rb +1 -1
  119. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload.rb +1 -1
  120. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_destination.rb +1 -1
  121. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_external_messages.rb +1 -1
  122. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_message.rb +1 -1
  123. data/lib/sunshine-conversations-client/models/conversation_message_delivery_user_event.rb +1 -1
  124. data/lib/sunshine-conversations-client/models/conversation_message_event.rb +1 -1
  125. data/lib/sunshine-conversations-client/models/conversation_message_event_all_of.rb +1 -1
  126. data/lib/sunshine-conversations-client/models/conversation_message_event_all_of_payload.rb +1 -1
  127. data/lib/sunshine-conversations-client/models/conversation_postback_event.rb +1 -1
  128. data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of.rb +1 -1
  129. data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of_payload.rb +1 -1
  130. data/lib/sunshine-conversations-client/models/conversation_read_event.rb +1 -1
  131. data/lib/sunshine-conversations-client/models/conversation_read_event_all_of.rb +1 -1
  132. data/lib/sunshine-conversations-client/models/conversation_read_event_all_of_payload.rb +1 -1
  133. data/lib/sunshine-conversations-client/models/conversation_remove_event.rb +1 -1
  134. data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of.rb +1 -1
  135. data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of_payload.rb +1 -1
  136. data/lib/sunshine-conversations-client/models/conversation_response.rb +1 -1
  137. data/lib/sunshine-conversations-client/models/conversation_truncated.rb +1 -1
  138. data/lib/sunshine-conversations-client/models/conversation_type.rb +1 -1
  139. data/lib/sunshine-conversations-client/models/conversation_typing_event.rb +1 -1
  140. data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of.rb +1 -1
  141. data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of_payload.rb +1 -1
  142. data/lib/sunshine-conversations-client/models/conversation_update_body.rb +1 -1
  143. data/lib/sunshine-conversations-client/models/custom.rb +1 -1
  144. data/lib/sunshine-conversations-client/models/custom_all_of.rb +1 -1
  145. data/lib/sunshine-conversations-client/models/custom_update.rb +1 -1
  146. data/lib/sunshine-conversations-client/models/destination.rb +1 -1
  147. data/lib/sunshine-conversations-client/models/device.rb +1 -1
  148. data/lib/sunshine-conversations-client/models/event_sub_schema.rb +1 -1
  149. data/lib/sunshine-conversations-client/models/extra_channel_options.rb +1 -1
  150. data/lib/sunshine-conversations-client/models/extra_channel_options_messenger.rb +1 -1
  151. data/lib/sunshine-conversations-client/models/field.rb +5 -5
  152. data/lib/sunshine-conversations-client/models/file_message.rb +1 -1
  153. data/lib/sunshine-conversations-client/models/form_message.rb +3 -3
  154. data/lib/sunshine-conversations-client/models/form_response_message.rb +1 -1
  155. data/lib/sunshine-conversations-client/models/image_message.rb +1 -1
  156. data/lib/sunshine-conversations-client/models/inline_object.rb +2 -2
  157. data/lib/sunshine-conversations-client/models/instagram.rb +1 -1
  158. data/lib/sunshine-conversations-client/models/instagram_all_of.rb +1 -1
  159. data/lib/sunshine-conversations-client/models/instagram_update.rb +1 -1
  160. data/lib/sunshine-conversations-client/models/instagram_update_all_of.rb +1 -1
  161. data/lib/sunshine-conversations-client/models/integration.rb +1 -1
  162. data/lib/sunshine-conversations-client/models/integration_api_key.rb +1 -1
  163. data/lib/sunshine-conversations-client/models/integration_api_key_list_response.rb +1 -1
  164. data/lib/sunshine-conversations-client/models/integration_api_key_response.rb +1 -1
  165. data/lib/sunshine-conversations-client/models/integration_id.rb +1 -1
  166. data/lib/sunshine-conversations-client/models/integration_list_filter.rb +1 -1
  167. data/lib/sunshine-conversations-client/models/integration_list_response.rb +1 -1
  168. data/lib/sunshine-conversations-client/models/integration_response.rb +1 -1
  169. data/lib/sunshine-conversations-client/models/integration_type.rb +1 -1
  170. data/lib/sunshine-conversations-client/models/integration_update.rb +1 -1
  171. data/lib/sunshine-conversations-client/models/integration_update_base.rb +1 -1
  172. data/lib/sunshine-conversations-client/models/ios.rb +1 -1
  173. data/lib/sunshine-conversations-client/models/ios_all_of.rb +1 -1
  174. data/lib/sunshine-conversations-client/models/ios_update.rb +1 -1
  175. data/lib/sunshine-conversations-client/models/ios_update_all_of.rb +1 -1
  176. data/lib/sunshine-conversations-client/models/item.rb +1 -1
  177. data/lib/sunshine-conversations-client/models/line.rb +1 -1
  178. data/lib/sunshine-conversations-client/models/line_all_of.rb +1 -1
  179. data/lib/sunshine-conversations-client/models/line_update.rb +1 -1
  180. data/lib/sunshine-conversations-client/models/link.rb +1 -1
  181. data/lib/sunshine-conversations-client/models/links.rb +1 -1
  182. data/lib/sunshine-conversations-client/models/list_message.rb +1 -1
  183. data/lib/sunshine-conversations-client/models/location_message.rb +1 -1
  184. data/lib/sunshine-conversations-client/models/location_message_coordinates.rb +1 -1
  185. data/lib/sunshine-conversations-client/models/location_message_location.rb +1 -1
  186. data/lib/sunshine-conversations-client/models/location_request.rb +1 -1
  187. data/lib/sunshine-conversations-client/models/mailgun.rb +1 -1
  188. data/lib/sunshine-conversations-client/models/mailgun_all_of.rb +1 -1
  189. data/lib/sunshine-conversations-client/models/mailgun_update.rb +1 -1
  190. data/lib/sunshine-conversations-client/models/mailgun_update_all_of.rb +1 -1
  191. data/lib/sunshine-conversations-client/models/match_criteria.rb +1 -1
  192. data/lib/sunshine-conversations-client/models/match_criteria_base.rb +1 -1
  193. data/lib/sunshine-conversations-client/models/match_criteria_mailgun.rb +1 -1
  194. data/lib/sunshine-conversations-client/models/match_criteria_mailgun_all_of.rb +1 -1
  195. data/lib/sunshine-conversations-client/models/match_criteria_messagebird.rb +1 -1
  196. data/lib/sunshine-conversations-client/models/match_criteria_messagebird_all_of.rb +1 -1
  197. data/lib/sunshine-conversations-client/models/match_criteria_twilio.rb +1 -1
  198. data/lib/sunshine-conversations-client/models/match_criteria_twilio_all_of.rb +1 -1
  199. data/lib/sunshine-conversations-client/models/match_criteria_whatsapp.rb +1 -1
  200. data/lib/sunshine-conversations-client/models/match_criteria_whatsapp_all_of.rb +1 -1
  201. data/lib/sunshine-conversations-client/models/message.rb +1 -1
  202. data/lib/sunshine-conversations-client/models/message_bird_update.rb +1 -1
  203. data/lib/sunshine-conversations-client/models/message_list_response.rb +1 -1
  204. data/lib/sunshine-conversations-client/models/message_override.rb +1 -1
  205. data/lib/sunshine-conversations-client/models/message_override_apple.rb +1 -1
  206. data/lib/sunshine-conversations-client/models/message_override_line.rb +1 -1
  207. data/lib/sunshine-conversations-client/models/message_override_messenger.rb +1 -1
  208. data/lib/sunshine-conversations-client/models/message_override_payload.rb +1 -1
  209. data/lib/sunshine-conversations-client/models/message_override_whatsapp.rb +1 -1
  210. data/lib/sunshine-conversations-client/models/message_post.rb +1 -1
  211. data/lib/sunshine-conversations-client/models/message_post_response.rb +1 -1
  212. data/lib/sunshine-conversations-client/models/message_webhook.rb +1 -1
  213. data/lib/sunshine-conversations-client/models/messagebird.rb +1 -1
  214. data/lib/sunshine-conversations-client/models/messagebird_all_of.rb +1 -1
  215. data/lib/sunshine-conversations-client/models/messenger.rb +25 -5
  216. data/lib/sunshine-conversations-client/models/messenger_all_of.rb +25 -5
  217. data/lib/sunshine-conversations-client/models/messenger_update.rb +1 -1
  218. data/lib/sunshine-conversations-client/models/meta.rb +1 -1
  219. data/lib/sunshine-conversations-client/models/offer_control_body.rb +1 -1
  220. data/lib/sunshine-conversations-client/models/page.rb +54 -6
  221. data/lib/sunshine-conversations-client/models/participant.rb +1 -1
  222. data/lib/sunshine-conversations-client/models/participant_join_body.rb +1 -1
  223. data/lib/sunshine-conversations-client/models/participant_leave_body.rb +1 -1
  224. data/lib/sunshine-conversations-client/models/participant_leave_body_participant_id.rb +1 -1
  225. data/lib/sunshine-conversations-client/models/participant_leave_body_user_external_id.rb +1 -1
  226. data/lib/sunshine-conversations-client/models/participant_leave_body_user_id.rb +1 -1
  227. data/lib/sunshine-conversations-client/models/participant_list_response.rb +1 -1
  228. data/lib/sunshine-conversations-client/models/participant_response.rb +1 -1
  229. data/lib/sunshine-conversations-client/models/participant_sub_schema.rb +1 -1
  230. data/lib/sunshine-conversations-client/models/participant_with_user_external_id.rb +1 -1
  231. data/lib/sunshine-conversations-client/models/participant_with_user_id.rb +1 -1
  232. data/lib/sunshine-conversations-client/models/pass_control_body.rb +1 -1
  233. data/lib/sunshine-conversations-client/models/postback.rb +1 -1
  234. data/lib/sunshine-conversations-client/models/postback_webhook.rb +1 -1
  235. data/lib/sunshine-conversations-client/models/prechat_capture.rb +1 -1
  236. data/lib/sunshine-conversations-client/models/profile.rb +1 -1
  237. data/lib/sunshine-conversations-client/models/quoted_message.rb +1 -1
  238. data/lib/sunshine-conversations-client/models/quoted_message_external_message_id.rb +1 -1
  239. data/lib/sunshine-conversations-client/models/quoted_message_message.rb +1 -1
  240. data/lib/sunshine-conversations-client/models/referral.rb +1 -1
  241. data/lib/sunshine-conversations-client/models/referral_details.rb +1 -1
  242. data/lib/sunshine-conversations-client/models/reply.rb +1 -1
  243. data/lib/sunshine-conversations-client/models/source.rb +1 -1
  244. data/lib/sunshine-conversations-client/models/source_webhook.rb +1 -1
  245. data/lib/sunshine-conversations-client/models/status.rb +1 -1
  246. data/lib/sunshine-conversations-client/models/switchboard.rb +1 -1
  247. data/lib/sunshine-conversations-client/models/switchboard_accept_control.rb +1 -1
  248. data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of.rb +1 -1
  249. data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of_payload.rb +1 -1
  250. data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure.rb +1 -1
  251. data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of.rb +1 -1
  252. data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of_payload.rb +1 -1
  253. data/lib/sunshine-conversations-client/models/switchboard_integration.rb +1 -1
  254. data/lib/sunshine-conversations-client/models/switchboard_integration_create_body.rb +1 -1
  255. data/lib/sunshine-conversations-client/models/switchboard_integration_list_response.rb +1 -1
  256. data/lib/sunshine-conversations-client/models/switchboard_integration_response.rb +1 -1
  257. data/lib/sunshine-conversations-client/models/switchboard_integration_update_body.rb +1 -1
  258. data/lib/sunshine-conversations-client/models/switchboard_integration_webhook.rb +1 -1
  259. data/lib/sunshine-conversations-client/models/switchboard_list_response.rb +1 -1
  260. data/lib/sunshine-conversations-client/models/switchboard_offer_control.rb +1 -1
  261. data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of.rb +1 -1
  262. data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of_payload.rb +1 -1
  263. data/lib/sunshine-conversations-client/models/switchboard_offer_control_failure.rb +1 -1
  264. data/lib/sunshine-conversations-client/models/switchboard_pass_control.rb +1 -1
  265. data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of.rb +1 -1
  266. data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of_payload.rb +1 -1
  267. data/lib/sunshine-conversations-client/models/switchboard_pass_control_failure.rb +1 -1
  268. data/lib/sunshine-conversations-client/models/switchboard_response.rb +1 -1
  269. data/lib/sunshine-conversations-client/models/switchboard_update_body.rb +1 -1
  270. data/lib/sunshine-conversations-client/models/target.rb +1 -1
  271. data/lib/sunshine-conversations-client/models/telegram.rb +1 -1
  272. data/lib/sunshine-conversations-client/models/telegram_all_of.rb +1 -1
  273. data/lib/sunshine-conversations-client/models/telegram_update.rb +1 -1
  274. data/lib/sunshine-conversations-client/models/template_message.rb +1 -1
  275. data/lib/sunshine-conversations-client/models/text_message.rb +1 -1
  276. data/lib/sunshine-conversations-client/models/twilio.rb +1 -1
  277. data/lib/sunshine-conversations-client/models/twilio_all_of.rb +1 -1
  278. data/lib/sunshine-conversations-client/models/twilio_update.rb +1 -1
  279. data/lib/sunshine-conversations-client/models/twitter.rb +1 -1
  280. data/lib/sunshine-conversations-client/models/twitter_all_of.rb +1 -1
  281. data/lib/sunshine-conversations-client/models/twitter_update.rb +1 -1
  282. data/lib/sunshine-conversations-client/models/user.rb +2 -2
  283. data/lib/sunshine-conversations-client/models/user_all_of.rb +1 -1
  284. data/lib/sunshine-conversations-client/models/user_create_body.rb +1 -1
  285. data/lib/sunshine-conversations-client/models/user_merge_event.rb +1 -1
  286. data/lib/sunshine-conversations-client/models/user_merge_event_all_of.rb +1 -1
  287. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload.rb +60 -6
  288. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_clients.rb +215 -0
  289. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_conversations.rb +1 -1
  290. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_users.rb +1 -1
  291. data/lib/sunshine-conversations-client/models/user_response.rb +1 -1
  292. data/lib/sunshine-conversations-client/models/user_truncated.rb +2 -2
  293. data/lib/sunshine-conversations-client/models/user_update_body.rb +1 -1
  294. data/lib/sunshine-conversations-client/models/viber.rb +1 -1
  295. data/lib/sunshine-conversations-client/models/viber_all_of.rb +1 -1
  296. data/lib/sunshine-conversations-client/models/viber_update.rb +1 -1
  297. data/lib/sunshine-conversations-client/models/web.rb +25 -15
  298. data/lib/sunshine-conversations-client/models/web_all_of.rb +25 -15
  299. data/lib/sunshine-conversations-client/models/web_update.rb +1 -1
  300. data/lib/sunshine-conversations-client/models/web_update_all_of.rb +1 -1
  301. data/lib/sunshine-conversations-client/models/webhook.rb +1 -1
  302. data/lib/sunshine-conversations-client/models/webhook_body.rb +1 -1
  303. data/lib/sunshine-conversations-client/models/webhook_create_body.rb +1 -1
  304. data/lib/sunshine-conversations-client/models/webhook_list_response.rb +1 -1
  305. data/lib/sunshine-conversations-client/models/webhook_response.rb +1 -1
  306. data/lib/sunshine-conversations-client/models/webhook_sub_schema.rb +1 -1
  307. data/lib/sunshine-conversations-client/models/webview.rb +1 -1
  308. data/lib/sunshine-conversations-client/models/whats_app_update.rb +1 -1
  309. data/lib/sunshine-conversations-client/models/whats_app_update_all_of.rb +1 -1
  310. data/lib/sunshine-conversations-client/models/whatsapp.rb +1 -1
  311. data/lib/sunshine-conversations-client/models/whatsapp_all_of.rb +1 -1
  312. data/lib/sunshine-conversations-client/version.rb +2 -2
  313. data/lib/sunshine-conversations-client.rb +11 -1
  314. data/spec/api_client_spec.rb +1 -1
  315. data/spec/configuration_spec.rb +1 -1
  316. data/spec/spec_helper.rb +1 -1
  317. data/sunshine-conversations-client.gemspec +1 -1
  318. metadata +22 -2
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -14,7 +14,7 @@ module SunshineConversationsClient
14
14
  # The unique ID of the user.
15
15
  attr_accessor :id
16
16
 
17
- # An optional ID that if specified can also be used to retrieve the user.
17
+ # An optional ID that can also be used to retrieve the user.
18
18
  attr_accessor :external_id
19
19
 
20
20
  attr_accessor :signed_up_at
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -16,15 +16,44 @@ module SunshineConversationsClient
16
16
 
17
17
  attr_accessor :merged_conversations
18
18
 
19
+ attr_accessor :merged_clients
20
+
19
21
  # A flat object with the set of metadata properties that were discarded when merging the two users. This should contain values only if the combined metadata fields exceed the 4KB limit.
20
22
  attr_accessor :discarded_metadata
21
23
 
24
+ # The reason for which the users merged. * `api` - The users were merged using the API. * `channelLinking` - The users were merged as a result of initiating a channel link. * `sdkLogin` - The users were merged as a result of logging into an SDK device.
25
+ attr_accessor :reason
26
+
27
+ class EnumAttributeValidator
28
+ attr_reader :datatype
29
+ attr_reader :allowable_values
30
+
31
+ def initialize(datatype, allowable_values)
32
+ @allowable_values = allowable_values.map do |value|
33
+ case datatype.to_s
34
+ when /Integer/i
35
+ value.to_i
36
+ when /Float/i
37
+ value.to_f
38
+ else
39
+ value
40
+ end
41
+ end
42
+ end
43
+
44
+ def valid?(value)
45
+ !value || allowable_values.include?(value)
46
+ end
47
+ end
48
+
22
49
  # Attribute mapping from ruby-style variable name to JSON key.
23
50
  def self.attribute_map
24
51
  {
25
52
  :'merged_users' => :'mergedUsers',
26
53
  :'merged_conversations' => :'mergedConversations',
27
- :'discarded_metadata' => :'discardedMetadata'
54
+ :'merged_clients' => :'mergedClients',
55
+ :'discarded_metadata' => :'discardedMetadata',
56
+ :'reason' => :'reason'
28
57
  }
29
58
  end
30
59
 
@@ -33,7 +62,9 @@ module SunshineConversationsClient
33
62
  {
34
63
  :'merged_users' => :'UserMergeEventAllOfPayloadMergedUsers',
35
64
  :'merged_conversations' => :'UserMergeEventAllOfPayloadMergedConversations',
36
- :'discarded_metadata' => :'Object'
65
+ :'merged_clients' => :'UserMergeEventAllOfPayloadMergedClients',
66
+ :'discarded_metadata' => :'Object',
67
+ :'reason' => :'String'
37
68
  }
38
69
  end
39
70
 
@@ -41,7 +72,8 @@ module SunshineConversationsClient
41
72
  def self.openapi_nullable
42
73
  Set.new([
43
74
  :'merged_conversations',
44
- :'discarded_metadata'
75
+ :'merged_clients',
76
+ :'discarded_metadata',
45
77
  ])
46
78
  end
47
79
 
@@ -68,9 +100,17 @@ module SunshineConversationsClient
68
100
  self.merged_conversations = attributes[:'merged_conversations']
69
101
  end
70
102
 
103
+ if attributes.key?(:'merged_clients')
104
+ self.merged_clients = attributes[:'merged_clients']
105
+ end
106
+
71
107
  if attributes.key?(:'discarded_metadata')
72
108
  self.discarded_metadata = attributes[:'discarded_metadata']
73
109
  end
110
+
111
+ if attributes.key?(:'reason')
112
+ self.reason = attributes[:'reason']
113
+ end
74
114
  end
75
115
 
76
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -83,9 +123,21 @@ module SunshineConversationsClient
83
123
  # Check to see if the all the properties in the model are valid
84
124
  # @return true if the model is valid
85
125
  def valid?
126
+ reason_validator = EnumAttributeValidator.new('String', ["api", "channelLinking", "sdkLogin"])
127
+ return false unless reason_validator.valid?(@reason)
86
128
  true
87
129
  end
88
130
 
131
+ # Custom attribute writer method checking allowed values (enum).
132
+ # @param [Object] reason Object to be assigned
133
+ def reason=(reason)
134
+ validator = EnumAttributeValidator.new('String', ["api", "channelLinking", "sdkLogin"])
135
+ unless validator.valid?(reason)
136
+ fail ArgumentError, "invalid value for \"reason\", must be one of #{validator.allowable_values}."
137
+ end
138
+ @reason = reason
139
+ end
140
+
89
141
  # Checks equality by comparing each attribute.
90
142
  # @param [Object] Object to be compared
91
143
  def ==(o)
@@ -93,7 +145,9 @@ module SunshineConversationsClient
93
145
  self.class == o.class &&
94
146
  merged_users == o.merged_users &&
95
147
  merged_conversations == o.merged_conversations &&
96
- discarded_metadata == o.discarded_metadata
148
+ merged_clients == o.merged_clients &&
149
+ discarded_metadata == o.discarded_metadata &&
150
+ reason == o.reason
97
151
  end
98
152
 
99
153
  # @see the `==` method
@@ -105,7 +159,7 @@ module SunshineConversationsClient
105
159
  # Calculates hash code according to all attributes.
106
160
  # @return [Integer] Hash code
107
161
  def hash
108
- [merged_users, merged_conversations, discarded_metadata].hash
162
+ [merged_users, merged_conversations, merged_clients, discarded_metadata, reason].hash
109
163
  end
110
164
 
111
165
  # Builds the object from hash
@@ -0,0 +1,215 @@
1
+ =begin
2
+ #Sunshine Conversations API
3
+
4
+ The version of the OpenAPI document: 9.4.6
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
+ # Contains information about the clients that were merged together as a result of the operation, if applicable. If no clients were merged, this property is omitted.
14
+ class UserMergeEventAllOfPayloadMergedClients
15
+ # The client that already existed before the merge started.
16
+ attr_accessor :surviving
17
+
18
+ # The pending client that was discarded during the merge event.
19
+ attr_accessor :discarded
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'surviving' => :'surviving',
25
+ :'discarded' => :'discarded'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'surviving' => :'Client',
33
+ :'discarded' => :'Client'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::UserMergeEventAllOfPayloadMergedClients` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::UserMergeEventAllOfPayloadMergedClients`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'surviving')
59
+ self.surviving = attributes[:'surviving']
60
+ end
61
+
62
+ if attributes.key?(:'discarded')
63
+ self.discarded = attributes[:'discarded']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ surviving == o.surviving &&
86
+ discarded == o.discarded
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ def hash
98
+ [surviving, discarded].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def self.build_from_hash(attributes)
105
+ new.build_from_hash(attributes)
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ SunshineConversationsClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+ end
215
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
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: 9.4.3
4
+ The version of the OpenAPI document: 9.4.6
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1