sunshine-conversations-client 9.11.0 → 9.13.0

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