sunshine-conversations-client 13.1.0 → 13.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (329) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG_RB.md +7 -0
  3. data/README.md +7 -5
  4. data/docs/Apple.md +2 -0
  5. data/docs/AppleAllOf.md +3 -1
  6. data/docs/AppleMessageOverridePayload.md +19 -0
  7. data/docs/AppleUpdate.md +6 -1
  8. data/docs/AppleUpdateAllOf.md +17 -0
  9. data/docs/IntegrationUpdate.md +2 -0
  10. data/docs/MessageOverride.md +1 -1
  11. data/docs/MessageOverrideApple.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/devices_api.rb +1 -1
  20. data/lib/sunshine-conversations-client/api/integrations_api.rb +1 -1
  21. data/lib/sunshine-conversations-client/api/messages_api.rb +1 -1
  22. data/lib/sunshine-conversations-client/api/o_auth_endpoints_api.rb +1 -1
  23. data/lib/sunshine-conversations-client/api/participants_api.rb +1 -1
  24. data/lib/sunshine-conversations-client/api/switchboard_actions_api.rb +1 -1
  25. data/lib/sunshine-conversations-client/api/switchboard_integrations_api.rb +1 -1
  26. data/lib/sunshine-conversations-client/api/switchboards_api.rb +1 -1
  27. data/lib/sunshine-conversations-client/api/users_api.rb +1 -1
  28. data/lib/sunshine-conversations-client/api/webhooks_api.rb +1 -1
  29. data/lib/sunshine-conversations-client/api_client.rb +1 -1
  30. data/lib/sunshine-conversations-client/api_error.rb +1 -1
  31. data/lib/sunshine-conversations-client/configuration.rb +1 -1
  32. data/lib/sunshine-conversations-client/models/accept_control_body.rb +1 -1
  33. data/lib/sunshine-conversations-client/models/action.rb +1 -1
  34. data/lib/sunshine-conversations-client/models/action_subset.rb +1 -1
  35. data/lib/sunshine-conversations-client/models/activity.rb +1 -1
  36. data/lib/sunshine-conversations-client/models/activity_all_of.rb +1 -1
  37. data/lib/sunshine-conversations-client/models/activity_post.rb +1 -1
  38. data/lib/sunshine-conversations-client/models/activity_post_all_of.rb +1 -1
  39. data/lib/sunshine-conversations-client/models/activity_types.rb +1 -1
  40. data/lib/sunshine-conversations-client/models/android.rb +1 -1
  41. data/lib/sunshine-conversations-client/models/android_all_of.rb +1 -1
  42. data/lib/sunshine-conversations-client/models/android_update.rb +1 -1
  43. data/lib/sunshine-conversations-client/models/android_update_all_of.rb +1 -1
  44. data/lib/sunshine-conversations-client/models/api_key.rb +1 -1
  45. data/lib/sunshine-conversations-client/models/app.rb +1 -1
  46. data/lib/sunshine-conversations-client/models/app_create_body.rb +1 -1
  47. data/lib/sunshine-conversations-client/models/app_key.rb +1 -1
  48. data/lib/sunshine-conversations-client/models/app_key_create_body.rb +1 -1
  49. data/lib/sunshine-conversations-client/models/app_key_list_response.rb +1 -1
  50. data/lib/sunshine-conversations-client/models/app_key_response.rb +1 -1
  51. data/lib/sunshine-conversations-client/models/app_list_filter.rb +1 -1
  52. data/lib/sunshine-conversations-client/models/app_list_response.rb +1 -1
  53. data/lib/sunshine-conversations-client/models/app_response.rb +1 -1
  54. data/lib/sunshine-conversations-client/models/app_settings.rb +1 -1
  55. data/lib/sunshine-conversations-client/models/app_sub_schema.rb +1 -1
  56. data/lib/sunshine-conversations-client/models/app_update_body.rb +1 -1
  57. data/lib/sunshine-conversations-client/models/apple.rb +27 -2
  58. data/lib/sunshine-conversations-client/models/apple_all_of.rb +30 -5
  59. data/lib/sunshine-conversations-client/models/apple_message_override_payload.rb +235 -0
  60. data/lib/sunshine-conversations-client/models/apple_update.rb +78 -10
  61. data/lib/sunshine-conversations-client/models/apple_update_all_of.rb +219 -0
  62. data/lib/sunshine-conversations-client/models/attachment_delete_body.rb +1 -1
  63. data/lib/sunshine-conversations-client/models/attachment_response.rb +1 -1
  64. data/lib/sunshine-conversations-client/models/attachment_schema.rb +1 -1
  65. data/lib/sunshine-conversations-client/models/attachment_upload_body.rb +1 -1
  66. data/lib/sunshine-conversations-client/models/author.rb +1 -1
  67. data/lib/sunshine-conversations-client/models/author_webhook.rb +1 -1
  68. data/lib/sunshine-conversations-client/models/buy.rb +1 -1
  69. data/lib/sunshine-conversations-client/models/campaign.rb +1 -1
  70. data/lib/sunshine-conversations-client/models/carousel_message.rb +1 -1
  71. data/lib/sunshine-conversations-client/models/carousel_message_display_settings.rb +1 -1
  72. data/lib/sunshine-conversations-client/models/client.rb +1 -1
  73. data/lib/sunshine-conversations-client/models/client_add_event.rb +1 -1
  74. data/lib/sunshine-conversations-client/models/client_add_event_all_of.rb +1 -1
  75. data/lib/sunshine-conversations-client/models/client_add_event_all_of_payload.rb +1 -1
  76. data/lib/sunshine-conversations-client/models/client_association.rb +1 -1
  77. data/lib/sunshine-conversations-client/models/client_create.rb +1 -1
  78. data/lib/sunshine-conversations-client/models/client_list_response.rb +1 -1
  79. data/lib/sunshine-conversations-client/models/client_remove_event.rb +1 -1
  80. data/lib/sunshine-conversations-client/models/client_remove_event_all_of.rb +1 -1
  81. data/lib/sunshine-conversations-client/models/client_remove_event_all_of_payload.rb +1 -1
  82. data/lib/sunshine-conversations-client/models/client_response.rb +1 -1
  83. data/lib/sunshine-conversations-client/models/client_type.rb +1 -1
  84. data/lib/sunshine-conversations-client/models/client_update_event.rb +1 -1
  85. data/lib/sunshine-conversations-client/models/client_update_event_all_of.rb +1 -1
  86. data/lib/sunshine-conversations-client/models/client_update_event_all_of_payload.rb +1 -1
  87. data/lib/sunshine-conversations-client/models/confirmation.rb +1 -1
  88. data/lib/sunshine-conversations-client/models/content.rb +1 -1
  89. data/lib/sunshine-conversations-client/models/conversation.rb +1 -1
  90. data/lib/sunshine-conversations-client/models/conversation_all_of.rb +1 -1
  91. data/lib/sunshine-conversations-client/models/conversation_create_body.rb +1 -1
  92. data/lib/sunshine-conversations-client/models/conversation_create_event.rb +1 -1
  93. data/lib/sunshine-conversations-client/models/conversation_create_event_all_of.rb +1 -1
  94. data/lib/sunshine-conversations-client/models/conversation_create_event_all_of_payload.rb +1 -1
  95. data/lib/sunshine-conversations-client/models/conversation_join_event.rb +1 -1
  96. data/lib/sunshine-conversations-client/models/conversation_join_event_all_of.rb +1 -1
  97. data/lib/sunshine-conversations-client/models/conversation_join_event_all_of_payload.rb +1 -1
  98. data/lib/sunshine-conversations-client/models/conversation_leave_event.rb +1 -1
  99. data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of.rb +1 -1
  100. data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of_payload.rb +1 -1
  101. data/lib/sunshine-conversations-client/models/conversation_list_filter.rb +1 -1
  102. data/lib/sunshine-conversations-client/models/conversation_list_response.rb +1 -1
  103. data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event.rb +1 -1
  104. data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event_all_of.rb +1 -1
  105. data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event.rb +1 -1
  106. data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event_all_of.rb +1 -1
  107. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload.rb +1 -1
  108. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_destination.rb +1 -1
  109. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_external_messages.rb +1 -1
  110. data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_message.rb +1 -1
  111. data/lib/sunshine-conversations-client/models/conversation_message_delivery_user_event.rb +1 -1
  112. data/lib/sunshine-conversations-client/models/conversation_message_event.rb +1 -1
  113. data/lib/sunshine-conversations-client/models/conversation_message_event_all_of.rb +1 -1
  114. data/lib/sunshine-conversations-client/models/conversation_message_event_all_of_payload.rb +1 -1
  115. data/lib/sunshine-conversations-client/models/conversation_postback_event.rb +1 -1
  116. data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of.rb +1 -1
  117. data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of_payload.rb +1 -1
  118. data/lib/sunshine-conversations-client/models/conversation_read_event.rb +1 -1
  119. data/lib/sunshine-conversations-client/models/conversation_read_event_all_of.rb +1 -1
  120. data/lib/sunshine-conversations-client/models/conversation_read_event_all_of_payload.rb +1 -1
  121. data/lib/sunshine-conversations-client/models/conversation_referral_event.rb +1 -1
  122. data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of.rb +1 -1
  123. data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of_payload.rb +1 -1
  124. data/lib/sunshine-conversations-client/models/conversation_remove_event.rb +1 -1
  125. data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of.rb +1 -1
  126. data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of_payload.rb +1 -1
  127. data/lib/sunshine-conversations-client/models/conversation_response.rb +1 -1
  128. data/lib/sunshine-conversations-client/models/conversation_truncated.rb +1 -1
  129. data/lib/sunshine-conversations-client/models/conversation_type.rb +1 -1
  130. data/lib/sunshine-conversations-client/models/conversation_typing_event.rb +1 -1
  131. data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of.rb +1 -1
  132. data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of_payload.rb +1 -1
  133. data/lib/sunshine-conversations-client/models/conversation_update_body.rb +1 -1
  134. data/lib/sunshine-conversations-client/models/custom.rb +1 -1
  135. data/lib/sunshine-conversations-client/models/custom_all_of.rb +1 -1
  136. data/lib/sunshine-conversations-client/models/custom_update.rb +1 -1
  137. data/lib/sunshine-conversations-client/models/custom_update_all_of.rb +1 -1
  138. data/lib/sunshine-conversations-client/models/default_responder.rb +1 -1
  139. data/lib/sunshine-conversations-client/models/default_responder_default_responder.rb +1 -1
  140. data/lib/sunshine-conversations-client/models/default_responder_id.rb +1 -1
  141. data/lib/sunshine-conversations-client/models/destination.rb +1 -1
  142. data/lib/sunshine-conversations-client/models/device.rb +1 -1
  143. data/lib/sunshine-conversations-client/models/device_list_response.rb +1 -1
  144. data/lib/sunshine-conversations-client/models/device_response.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 +27 -2
  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 +1 -1
  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 +3 -3
  207. data/lib/sunshine-conversations-client/models/message_override_apple.rb +2 -2
  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/twilio.rb +1 -1
  281. data/lib/sunshine-conversations-client/models/twilio_all_of.rb +1 -1
  282. data/lib/sunshine-conversations-client/models/twilio_update.rb +1 -1
  283. data/lib/sunshine-conversations-client/models/twitter.rb +1 -1
  284. data/lib/sunshine-conversations-client/models/twitter_all_of.rb +1 -1
  285. data/lib/sunshine-conversations-client/models/twitter_update.rb +1 -1
  286. data/lib/sunshine-conversations-client/models/unity.rb +1 -1
  287. data/lib/sunshine-conversations-client/models/unity_all_of.rb +1 -1
  288. data/lib/sunshine-conversations-client/models/unity_update.rb +1 -1
  289. data/lib/sunshine-conversations-client/models/unity_update_all_of.rb +1 -1
  290. data/lib/sunshine-conversations-client/models/user.rb +1 -1
  291. data/lib/sunshine-conversations-client/models/user_all_of.rb +1 -1
  292. data/lib/sunshine-conversations-client/models/user_create_body.rb +1 -1
  293. data/lib/sunshine-conversations-client/models/user_merge_event.rb +1 -1
  294. data/lib/sunshine-conversations-client/models/user_merge_event_all_of.rb +1 -1
  295. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload.rb +1 -1
  296. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_clients.rb +1 -1
  297. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_conversations.rb +1 -1
  298. data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_users.rb +1 -1
  299. data/lib/sunshine-conversations-client/models/user_response.rb +1 -1
  300. data/lib/sunshine-conversations-client/models/user_truncated.rb +1 -1
  301. data/lib/sunshine-conversations-client/models/user_update_body.rb +1 -1
  302. data/lib/sunshine-conversations-client/models/user_update_event.rb +1 -1
  303. data/lib/sunshine-conversations-client/models/user_update_event_all_of.rb +1 -1
  304. data/lib/sunshine-conversations-client/models/user_update_event_all_of_payload.rb +1 -1
  305. data/lib/sunshine-conversations-client/models/viber.rb +1 -1
  306. data/lib/sunshine-conversations-client/models/viber_all_of.rb +1 -1
  307. data/lib/sunshine-conversations-client/models/viber_update.rb +1 -1
  308. data/lib/sunshine-conversations-client/models/web.rb +1 -1
  309. data/lib/sunshine-conversations-client/models/web_all_of.rb +1 -1
  310. data/lib/sunshine-conversations-client/models/web_update.rb +1 -1
  311. data/lib/sunshine-conversations-client/models/web_update_all_of.rb +1 -1
  312. data/lib/sunshine-conversations-client/models/webhook.rb +1 -1
  313. data/lib/sunshine-conversations-client/models/webhook_body.rb +1 -1
  314. data/lib/sunshine-conversations-client/models/webhook_create_body.rb +1 -1
  315. data/lib/sunshine-conversations-client/models/webhook_list_response.rb +1 -1
  316. data/lib/sunshine-conversations-client/models/webhook_response.rb +1 -1
  317. data/lib/sunshine-conversations-client/models/webhook_sub_schema.rb +1 -1
  318. data/lib/sunshine-conversations-client/models/webview.rb +1 -1
  319. data/lib/sunshine-conversations-client/models/whats_app_update.rb +1 -1
  320. data/lib/sunshine-conversations-client/models/whats_app_update_all_of.rb +1 -1
  321. data/lib/sunshine-conversations-client/models/whatsapp.rb +1 -1
  322. data/lib/sunshine-conversations-client/models/whatsapp_all_of.rb +1 -1
  323. data/lib/sunshine-conversations-client/version.rb +2 -2
  324. data/lib/sunshine-conversations-client.rb +3 -1
  325. data/spec/api_client_spec.rb +1 -1
  326. data/spec/configuration_spec.rb +1 -1
  327. data/spec/spec_helper.rb +1 -1
  328. data/sunshine-conversations-client.gemspec +1 -1
  329. metadata +6 -2
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 13.1.0
4
+ The version of the OpenAPI document: 13.2.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: 13.1.0
4
+ The version of the OpenAPI document: 13.2.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: 13.1.0
4
+ The version of the OpenAPI document: 13.2.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -23,6 +23,9 @@ module SunshineConversationsClient
23
23
  # Your Messaging Service Provider ID.
24
24
  attr_accessor :msp_id
25
25
 
26
+ # A secret used to create the state value when sending Apple authentication 2.0 messages
27
+ attr_accessor :authentication_message_secret
28
+
26
29
  # The default responder ID for the integration. This is the ID of the responder that will be used to send messages to the user. For more information, refer to <a href=\"https://docs.smooch.io/guide/switchboard/#per-channel-default-responder\">Per-channel default responder</a> guide.
27
30
  attr_accessor :default_responder_id
28
31
 
@@ -35,6 +38,7 @@ module SunshineConversationsClient
35
38
  :'business_id' => :'businessId',
36
39
  :'api_secret' => :'apiSecret',
37
40
  :'msp_id' => :'mspId',
41
+ :'authentication_message_secret' => :'authenticationMessageSecret',
38
42
  :'default_responder_id' => :'defaultResponderId',
39
43
  :'default_responder' => :'defaultResponder'
40
44
  }
@@ -47,6 +51,7 @@ module SunshineConversationsClient
47
51
  :'business_id' => :'String',
48
52
  :'api_secret' => :'String',
49
53
  :'msp_id' => :'String',
54
+ :'authentication_message_secret' => :'String',
50
55
  :'default_responder_id' => :'String',
51
56
  :'default_responder' => :'DefaultResponderDefaultResponder'
52
57
  }
@@ -105,6 +110,10 @@ module SunshineConversationsClient
105
110
  self.msp_id = attributes[:'msp_id']
106
111
  end
107
112
 
113
+ if attributes.key?(:'authentication_message_secret')
114
+ self.authentication_message_secret = attributes[:'authentication_message_secret']
115
+ end
116
+
108
117
  if attributes.key?(:'default_responder_id')
109
118
  self.default_responder_id = attributes[:'default_responder_id']
110
119
  end
@@ -130,6 +139,10 @@ module SunshineConversationsClient
130
139
  invalid_properties.push('invalid value for "msp_id", msp_id cannot be nil.')
131
140
  end
132
141
 
142
+ if !@authentication_message_secret.nil? && @authentication_message_secret.to_s.length < 88
143
+ invalid_properties.push('invalid value for "authentication_message_secret", the character length must be great than or equal to 88.')
144
+ end
145
+
133
146
  invalid_properties
134
147
  end
135
148
 
@@ -139,9 +152,20 @@ module SunshineConversationsClient
139
152
  return false if @business_id.nil?
140
153
  return false if @api_secret.nil?
141
154
  return false if @msp_id.nil?
155
+ return false if !@authentication_message_secret.nil? && @authentication_message_secret.to_s.length < 88
142
156
  true && super
143
157
  end
144
158
 
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] authentication_message_secret Value to be assigned
161
+ def authentication_message_secret=(authentication_message_secret)
162
+ if !authentication_message_secret.nil? && authentication_message_secret.to_s.length < 88
163
+ fail ArgumentError, 'invalid value for "authentication_message_secret", the character length must be great than or equal to 88.'
164
+ end
165
+
166
+ @authentication_message_secret = authentication_message_secret
167
+ end
168
+
145
169
  # Checks equality by comparing each attribute.
146
170
  # @param [Object] Object to be compared
147
171
  def ==(o)
@@ -151,6 +175,7 @@ module SunshineConversationsClient
151
175
  business_id == o.business_id &&
152
176
  api_secret == o.api_secret &&
153
177
  msp_id == o.msp_id &&
178
+ authentication_message_secret == o.authentication_message_secret &&
154
179
  default_responder_id == o.default_responder_id &&
155
180
  default_responder == o.default_responder && super(o)
156
181
  end
@@ -164,7 +189,7 @@ module SunshineConversationsClient
164
189
  # Calculates hash code according to all attributes.
165
190
  # @return [Integer] Hash code
166
191
  def hash
167
- [type, business_id, api_secret, msp_id, default_responder_id, default_responder].hash
192
+ [type, business_id, api_secret, msp_id, authentication_message_secret, default_responder_id, default_responder].hash
168
193
  end
169
194
 
170
195
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 13.1.0
4
+ The version of the OpenAPI document: 13.2.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -23,13 +23,17 @@ module SunshineConversationsClient
23
23
  # Your Messaging Service Provider ID.
24
24
  attr_accessor :msp_id
25
25
 
26
+ # A secret used to create the state value when sending Apple authentication 2.0 messages
27
+ attr_accessor :authentication_message_secret
28
+
26
29
  # Attribute mapping from ruby-style variable name to JSON key.
27
30
  def self.attribute_map
28
31
  {
29
32
  :'type' => :'type',
30
33
  :'business_id' => :'businessId',
31
34
  :'api_secret' => :'apiSecret',
32
- :'msp_id' => :'mspId'
35
+ :'msp_id' => :'mspId',
36
+ :'authentication_message_secret' => :'authenticationMessageSecret'
33
37
  }
34
38
  end
35
39
 
@@ -39,7 +43,8 @@ module SunshineConversationsClient
39
43
  :'type' => :'String',
40
44
  :'business_id' => :'String',
41
45
  :'api_secret' => :'String',
42
- :'msp_id' => :'String'
46
+ :'msp_id' => :'String',
47
+ :'authentication_message_secret' => :'String'
43
48
  }
44
49
  end
45
50
 
@@ -81,6 +86,10 @@ module SunshineConversationsClient
81
86
  if attributes.key?(:'msp_id')
82
87
  self.msp_id = attributes[:'msp_id']
83
88
  end
89
+
90
+ if attributes.key?(:'authentication_message_secret')
91
+ self.authentication_message_secret = attributes[:'authentication_message_secret']
92
+ end
84
93
  end
85
94
 
86
95
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,6 +108,10 @@ module SunshineConversationsClient
99
108
  invalid_properties.push('invalid value for "msp_id", msp_id cannot be nil.')
100
109
  end
101
110
 
111
+ if !@authentication_message_secret.nil? && @authentication_message_secret.to_s.length < 88
112
+ invalid_properties.push('invalid value for "authentication_message_secret", the character length must be great than or equal to 88.')
113
+ end
114
+
102
115
  invalid_properties
103
116
  end
104
117
 
@@ -108,9 +121,20 @@ module SunshineConversationsClient
108
121
  return false if @business_id.nil?
109
122
  return false if @api_secret.nil?
110
123
  return false if @msp_id.nil?
124
+ return false if !@authentication_message_secret.nil? && @authentication_message_secret.to_s.length < 88
111
125
  true
112
126
  end
113
127
 
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] authentication_message_secret Value to be assigned
130
+ def authentication_message_secret=(authentication_message_secret)
131
+ if !authentication_message_secret.nil? && authentication_message_secret.to_s.length < 88
132
+ fail ArgumentError, 'invalid value for "authentication_message_secret", the character length must be great than or equal to 88.'
133
+ end
134
+
135
+ @authentication_message_secret = authentication_message_secret
136
+ end
137
+
114
138
  # Checks equality by comparing each attribute.
115
139
  # @param [Object] Object to be compared
116
140
  def ==(o)
@@ -119,7 +143,8 @@ module SunshineConversationsClient
119
143
  type == o.type &&
120
144
  business_id == o.business_id &&
121
145
  api_secret == o.api_secret &&
122
- msp_id == o.msp_id
146
+ msp_id == o.msp_id &&
147
+ authentication_message_secret == o.authentication_message_secret
123
148
  end
124
149
 
125
150
  # @see the `==` method
@@ -131,7 +156,7 @@ module SunshineConversationsClient
131
156
  # Calculates hash code according to all attributes.
132
157
  # @return [Integer] Hash code
133
158
  def hash
134
- [type, business_id, api_secret, msp_id].hash
159
+ [type, business_id, api_secret, msp_id, authentication_message_secret].hash
135
160
  end
136
161
 
137
162
  # Builds the object from hash
@@ -0,0 +1,235 @@
1
+ =begin
2
+ #Sunshine Conversations API
3
+
4
+ The version of the OpenAPI document: 13.2.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
+ # The exact payload to send to the channel.
14
+ class AppleMessageOverridePayload
15
+ attr_accessor :payload
16
+
17
+ # List of capabilities needed for the override message to be received by the end user. `LIST` : for list picker; `TIME` : for time picker; `FORM` : for form; `QUICK` : for quick reply; `AUTH2` : for authentication
18
+ attr_accessor :with_capabilities
19
+
20
+ class EnumAttributeValidator
21
+ attr_reader :datatype
22
+ attr_reader :allowable_values
23
+
24
+ def initialize(datatype, allowable_values)
25
+ @allowable_values = allowable_values.map do |value|
26
+ case datatype.to_s
27
+ when /Integer/i
28
+ value.to_i
29
+ when /Float/i
30
+ value.to_f
31
+ else
32
+ value
33
+ end
34
+ end
35
+ end
36
+
37
+ def valid?(value)
38
+ !value || allowable_values.include?(value)
39
+ end
40
+ end
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ def self.attribute_map
44
+ {
45
+ :'payload' => :'payload',
46
+ :'with_capabilities' => :'withCapabilities'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'payload' => :'Object',
54
+ :'with_capabilities' => :'Array<String>'
55
+ }
56
+ end
57
+
58
+ # List of attributes with nullable: true
59
+ def self.openapi_nullable
60
+ Set.new([
61
+ ])
62
+ end
63
+
64
+ # Initializes the object
65
+ # @param [Hash] attributes Model attributes in the form of hash
66
+ def initialize(attributes = {})
67
+ if (!attributes.is_a?(Hash))
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::AppleMessageOverridePayload` initialize method"
69
+ end
70
+
71
+ # check to see if the attribute exists and convert string to symbol for hash key
72
+ attributes = attributes.each_with_object({}) { |(k, v), h|
73
+ if (!self.class.attribute_map.key?(k.to_sym))
74
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::AppleMessageOverridePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
75
+ end
76
+ h[k.to_sym] = v
77
+ }
78
+
79
+ if attributes.key?(:'payload')
80
+ self.payload = attributes[:'payload']
81
+ end
82
+
83
+ if attributes.key?(:'with_capabilities')
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ invalid_properties = Array.new
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ true
98
+ end
99
+
100
+ # Checks equality by comparing each attribute.
101
+ # @param [Object] Object to be compared
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ payload == o.payload &&
106
+ with_capabilities == o.with_capabilities
107
+ end
108
+
109
+ # @see the `==` method
110
+ # @param [Object] Object to be compared
111
+ def eql?(o)
112
+ self == o
113
+ end
114
+
115
+ # Calculates hash code according to all attributes.
116
+ # @return [Integer] Hash code
117
+ def hash
118
+ [payload, with_capabilities].hash
119
+ end
120
+
121
+ # Builds the object from hash
122
+ # @param [Hash] attributes Model attributes in the form of hash
123
+ # @return [Object] Returns the model itself
124
+ def self.build_from_hash(attributes)
125
+ new.build_from_hash(attributes)
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.openapi_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :Boolean
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ SunshineConversationsClient.const_get(type).build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.openapi_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+ end
235
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Sunshine Conversations API
3
3
 
4
- The version of the OpenAPI document: 13.1.0
4
+ The version of the OpenAPI document: 13.2.0
5
5
 
6
6
  Generated by: https://openapi-generator.tech
7
7
  OpenAPI Generator version: 4.3.1
@@ -10,28 +10,46 @@ OpenAPI Generator version: 4.3.1
10
10
  require 'date'
11
11
 
12
12
  module SunshineConversationsClient
13
- class AppleUpdate < IntegrationUpdateBase
13
+ class AppleUpdate
14
+ # A human-friendly name used to identify the integration. `displayName` can be unset by changing it to `null`.
15
+ attr_accessor :display_name
16
+
17
+ # The default responder ID for the integration. This is the ID of the responder that will be used to send messages to the user. For more information, refer to <a href=\"https://docs.smooch.io/guide/switchboard/#per-channel-default-responder\">Per-channel default responder</a> guide.
18
+ attr_accessor :default_responder_id
19
+
20
+ # A secret used to create the state value when sending Apple authentication 2.0 messages
21
+ attr_accessor :authentication_message_secret
22
+
14
23
  # Attribute mapping from ruby-style variable name to JSON key.
15
24
  def self.attribute_map
16
25
  {
26
+ :'display_name' => :'displayName',
27
+ :'default_responder_id' => :'defaultResponderId',
28
+ :'authentication_message_secret' => :'authenticationMessageSecret'
17
29
  }
18
30
  end
19
31
 
20
32
  # Attribute type mapping.
21
33
  def self.openapi_types
22
34
  {
35
+ :'display_name' => :'String',
36
+ :'default_responder_id' => :'String',
37
+ :'authentication_message_secret' => :'String'
23
38
  }
24
39
  end
25
40
 
26
41
  # List of attributes with nullable: true
27
42
  def self.openapi_nullable
28
43
  Set.new([
44
+ :'display_name',
45
+ :'default_responder_id',
29
46
  ])
30
47
  end
31
48
 
32
49
  # List of class defined in allOf (OpenAPI v3)
33
50
  def self.openapi_all_of
34
51
  [
52
+ :'AppleUpdateAllOf',
35
53
  :'IntegrationUpdateBase'
36
54
  ]
37
55
  end
@@ -51,28 +69,79 @@ module SunshineConversationsClient
51
69
  h[k.to_sym] = v
52
70
  }
53
71
 
54
- # call parent's initialize
55
- super(attributes)
72
+ if attributes.key?(:'display_name')
73
+ self.display_name = attributes[:'display_name']
74
+ end
75
+
76
+ if attributes.key?(:'default_responder_id')
77
+ self.default_responder_id = attributes[:'default_responder_id']
78
+ end
79
+
80
+ if attributes.key?(:'authentication_message_secret')
81
+ self.authentication_message_secret = attributes[:'authentication_message_secret']
82
+ end
56
83
  end
57
84
 
58
85
  # Show invalid properties with the reasons. Usually used together with valid?
59
86
  # @return Array for valid properties with the reasons
60
87
  def list_invalid_properties
61
- invalid_properties = super
88
+ invalid_properties = Array.new
89
+ if !@display_name.nil? && @display_name.to_s.length > 100
90
+ invalid_properties.push('invalid value for "display_name", the character length must be smaller than or equal to 100.')
91
+ end
92
+
93
+ if !@display_name.nil? && @display_name.to_s.length < 1
94
+ invalid_properties.push('invalid value for "display_name", the character length must be great than or equal to 1.')
95
+ end
96
+
97
+ if !@authentication_message_secret.nil? && @authentication_message_secret.to_s.length < 88
98
+ invalid_properties.push('invalid value for "authentication_message_secret", the character length must be great than or equal to 88.')
99
+ end
100
+
62
101
  invalid_properties
63
102
  end
64
103
 
65
104
  # Check to see if the all the properties in the model are valid
66
105
  # @return true if the model is valid
67
106
  def valid?
68
- true && super
107
+ return false if !@display_name.nil? && @display_name.to_s.length > 100
108
+ return false if !@display_name.nil? && @display_name.to_s.length < 1
109
+ return false if !@authentication_message_secret.nil? && @authentication_message_secret.to_s.length < 88
110
+ true
111
+ end
112
+
113
+ # Custom attribute writer method with validation
114
+ # @param [Object] display_name Value to be assigned
115
+ def display_name=(display_name)
116
+ if !display_name.nil? && display_name.to_s.length > 100
117
+ fail ArgumentError, 'invalid value for "display_name", the character length must be smaller than or equal to 100.'
118
+ end
119
+
120
+ if !display_name.nil? && display_name.to_s.length < 1
121
+ fail ArgumentError, 'invalid value for "display_name", the character length must be great than or equal to 1.'
122
+ end
123
+
124
+ @display_name = display_name
125
+ end
126
+
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] authentication_message_secret Value to be assigned
129
+ def authentication_message_secret=(authentication_message_secret)
130
+ if !authentication_message_secret.nil? && authentication_message_secret.to_s.length < 88
131
+ fail ArgumentError, 'invalid value for "authentication_message_secret", the character length must be great than or equal to 88.'
132
+ end
133
+
134
+ @authentication_message_secret = authentication_message_secret
69
135
  end
70
136
 
71
137
  # Checks equality by comparing each attribute.
72
138
  # @param [Object] Object to be compared
73
139
  def ==(o)
74
140
  return true if self.equal?(o)
75
- self.class == o.class && super(o)
141
+ self.class == o.class &&
142
+ display_name == o.display_name &&
143
+ default_responder_id == o.default_responder_id &&
144
+ authentication_message_secret == o.authentication_message_secret
76
145
  end
77
146
 
78
147
  # @see the `==` method
@@ -84,7 +153,7 @@ module SunshineConversationsClient
84
153
  # Calculates hash code according to all attributes.
85
154
  # @return [Integer] Hash code
86
155
  def hash
87
- [].hash
156
+ [display_name, default_responder_id, authentication_message_secret].hash
88
157
  end
89
158
 
90
159
  # Builds the object from hash
@@ -99,7 +168,6 @@ module SunshineConversationsClient
99
168
  # @return [Object] Returns the model itself
100
169
  def build_from_hash(attributes)
101
170
  return nil unless attributes.is_a?(Hash)
102
- super(attributes)
103
171
  self.class.openapi_types.each_pair do |key, type|
104
172
  if type =~ /\AArray<(.*)>/i
105
173
  # check to ensure the input is an array given that the attribute
@@ -171,7 +239,7 @@ module SunshineConversationsClient
171
239
  # Returns the object in the form of hash
172
240
  # @return [Hash] Returns the object in the form of hash
173
241
  def to_hash
174
- hash = super
242
+ hash = {}
175
243
  self.class.attribute_map.each_pair do |attr, param|
176
244
  value = self.send(attr)
177
245
  if value.nil?