constant_contact_client 1.2.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (545) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +669 -57
  3. data/Gemfile.lock +40 -31
  4. data/README.md +23 -6
  5. data/constant_contact_client.gemspec +3 -3
  6. data/docs/AccountServicesApi.md +2 -2
  7. data/docs/BulkActivitiesApi.md +16 -12
  8. data/docs/ContactListsApi.md +5 -1
  9. data/docs/ContactsApi.md +84 -10
  10. data/docs/ContactsCustomFieldsApi.md +22 -22
  11. data/docs/EmailCampaignsApi.md +1 -1
  12. data/docs/EmailSchedulingApi.md +1 -1
  13. data/docs/EventsApi.md +881 -0
  14. data/docs/SMSReportingApi.md +86 -0
  15. data/docs/SocialApi.md +302 -0
  16. data/lib/constant_contact_client/api/account_services_api.rb +4 -4
  17. data/lib/constant_contact_client/api/bulk_activities_api.rb +19 -16
  18. data/lib/constant_contact_client/api/contact_lists_api.rb +12 -2
  19. data/lib/constant_contact_client/api/contact_tags_api.rb +2 -2
  20. data/lib/constant_contact_client/api/contacts_api.rb +89 -17
  21. data/lib/constant_contact_client/api/contacts_custom_fields_api.rb +29 -29
  22. data/lib/constant_contact_client/api/contacts_reporting_api.rb +2 -2
  23. data/lib/constant_contact_client/api/email_campaigns_ab_tests_api.rb +2 -2
  24. data/lib/constant_contact_client/api/email_campaigns_api.rb +4 -4
  25. data/lib/constant_contact_client/api/email_reporting_api.rb +2 -2
  26. data/lib/constant_contact_client/api/email_scheduling_api.rb +4 -4
  27. data/lib/constant_contact_client/api/events_api.rb +881 -0
  28. data/lib/constant_contact_client/api/landing_pages_reporting_api.rb +2 -2
  29. data/lib/constant_contact_client/api/segments_api.rb +2 -2
  30. data/lib/constant_contact_client/api/sms_reporting_api.rb +92 -0
  31. data/lib/constant_contact_client/api/social_api.rb +286 -0
  32. data/lib/constant_contact_client/api_client.rb +3 -3
  33. data/lib/constant_contact_client/api_error.rb +2 -2
  34. data/lib/constant_contact_client/configuration.rb +2 -2
  35. data/lib/constant_contact_client/models/ab_test_data.rb +2 -2
  36. data/lib/constant_contact_client/models/access_token_response.rb +2 -2
  37. data/lib/constant_contact_client/models/account_cancellation.rb +2 -2
  38. data/lib/constant_contact_client/models/account_email_create_response.rb +2 -2
  39. data/lib/constant_contact_client/models/account_email_input.rb +2 -2
  40. data/lib/constant_contact_client/models/account_info_dto.rb +266 -0
  41. data/lib/constant_contact_client/models/account_physical_address.rb +2 -2
  42. data/lib/constant_contact_client/models/account_suspension.rb +2 -2
  43. data/lib/constant_contact_client/models/activities.rb +2 -2
  44. data/lib/constant_contact_client/models/activity.rb +2 -2
  45. data/lib/constant_contact_client/models/activity_delete_custom_fields.rb +2 -2
  46. data/lib/constant_contact_client/models/activity_delete_list_response.rb +3 -3
  47. data/lib/constant_contact_client/models/activity_delete_lists_response.rb +2 -2
  48. data/lib/constant_contact_client/models/activity_delete_status.rb +2 -2
  49. data/lib/constant_contact_client/models/activity_errors.rb +2 -2
  50. data/lib/constant_contact_client/models/activity_export_status.rb +2 -2
  51. data/lib/constant_contact_client/models/activity_generic.rb +2 -2
  52. data/lib/constant_contact_client/models/activity_generic_status.rb +2 -2
  53. data/lib/constant_contact_client/models/activity_import.rb +2 -2
  54. data/lib/constant_contact_client/models/activity_links.rb +2 -2
  55. data/lib/constant_contact_client/models/activity_lists_membership.rb +2 -2
  56. data/lib/constant_contact_client/models/activity_reference.rb +2 -2
  57. data/lib/constant_contact_client/models/activity_status.rb +2 -2
  58. data/lib/constant_contact_client/models/activity_status_export_link.rb +2 -2
  59. data/lib/constant_contact_client/models/activity_status_link.rb +2 -2
  60. data/lib/constant_contact_client/models/activity_tagging.rb +2 -2
  61. data/lib/constant_contact_client/models/activity_tagging_status.rb +2 -2
  62. data/lib/constant_contact_client/models/add_account_email_address201_response.rb +2 -2
  63. data/lib/constant_contact_client/models/add_account_email_address_request.rb +2 -2
  64. data/lib/constant_contact_client/models/address_dto.rb +604 -0
  65. data/lib/constant_contact_client/models/address_dto1.rb +604 -0
  66. data/lib/constant_contact_client/models/api_error_schema_inner.rb +2 -2
  67. data/lib/constant_contact_client/models/attribute_dto.rb +323 -0
  68. data/lib/constant_contact_client/models/attribute_dto1.rb +323 -0
  69. data/lib/constant_contact_client/models/authorization_error_schema.rb +2 -2
  70. data/lib/constant_contact_client/models/automation_campaign.rb +274 -0
  71. data/lib/constant_contact_client/models/automation_campaign_active_definition.rb +235 -0
  72. data/lib/constant_contact_client/models/automation_campaign_structured_tags_inner.rb +232 -0
  73. data/lib/constant_contact_client/models/automation_flow.rb +215 -0
  74. data/lib/constant_contact_client/models/automation_flow_workflow_def.rb +262 -0
  75. data/lib/constant_contact_client/models/automation_structured_tag.rb +232 -0
  76. data/lib/constant_contact_client/models/automation_workflow_def.rb +262 -0
  77. data/lib/constant_contact_client/models/automation_workflow_definition.rb +235 -0
  78. data/lib/constant_contact_client/models/automation_workflow_definition_workflow.rb +215 -0
  79. data/lib/constant_contact_client/models/bounces_tracking_activities_page.rb +2 -2
  80. data/lib/constant_contact_client/models/bounces_tracking_activity.rb +2 -2
  81. data/lib/constant_contact_client/models/bulk_campaign_summary.rb +289 -0
  82. data/lib/constant_contact_client/models/bulk_email_campaign_summaries_page.rb +2 -16
  83. data/lib/constant_contact_client/models/bulk_email_campaign_summaries_percents.rb +2 -2
  84. data/lib/constant_contact_client/models/bulk_email_campaign_summary.rb +2 -23
  85. data/lib/constant_contact_client/models/bulk_sms_campaign_summaries_percents.rb +245 -0
  86. data/lib/constant_contact_client/models/campaign_activity_stats_query_result_email.rb +2 -2
  87. data/lib/constant_contact_client/models/campaign_activity_stats_result_generic_stats_email_activity.rb +2 -2
  88. data/lib/constant_contact_client/models/campaign_activity_summary.rb +2 -2
  89. data/lib/constant_contact_client/models/campaign_stats_query_result_email.rb +2 -2
  90. data/lib/constant_contact_client/models/campaign_stats_result_generic_stats_email_percents_email.rb +2 -2
  91. data/lib/constant_contact_client/models/check_in_tickets_request.rb +225 -0
  92. data/lib/constant_contact_client/models/clicks_tracking_activities_page.rb +2 -2
  93. data/lib/constant_contact_client/models/clicks_tracking_activity.rb +2 -2
  94. data/lib/constant_contact_client/models/company_logo.rb +2 -2
  95. data/lib/constant_contact_client/models/connection_dto.rb +224 -0
  96. data/lib/constant_contact_client/models/connection_response_dto.rb +218 -0
  97. data/lib/constant_contact_client/models/connection_status_dto.rb +276 -0
  98. data/lib/constant_contact_client/models/contact_campaign_activities_summary.rb +2 -2
  99. data/lib/constant_contact_client/models/contact_create_or_update_input.rb +17 -15
  100. data/lib/constant_contact_client/models/contact_create_or_update_response.rb +2 -2
  101. data/lib/constant_contact_client/models/contact_custom_field.rb +22 -17
  102. data/lib/constant_contact_client/models/contact_delete.rb +2 -2
  103. data/lib/constant_contact_client/models/contact_dto.rb +429 -0
  104. data/lib/constant_contact_client/models/contact_dto1.rb +430 -0
  105. data/lib/constant_contact_client/models/contact_list.rb +2 -2
  106. data/lib/constant_contact_client/models/contact_list_array.rb +2 -2
  107. data/lib/constant_contact_client/models/contact_list_put_post.rb +2 -2
  108. data/lib/constant_contact_client/models/contact_open_and_click_rates.rb +2 -2
  109. data/lib/constant_contact_client/models/contact_post_request.rb +15 -6
  110. data/lib/constant_contact_client/models/contact_put_request.rb +15 -6
  111. data/lib/constant_contact_client/models/contact_resource.rb +2 -2
  112. data/lib/constant_contact_client/models/contact_resubscribe_request.rb +224 -0
  113. data/lib/constant_contact_client/models/contact_sms_channel.rb +241 -0
  114. data/lib/constant_contact_client/models/contact_sms_channel_consents.rb +249 -0
  115. data/lib/constant_contact_client/models/contact_tracking_activities_page.rb +2 -2
  116. data/lib/constant_contact_client/models/contact_tracking_activity.rb +2 -2
  117. data/lib/constant_contact_client/models/contact_xref.rb +2 -2
  118. data/lib/constant_contact_client/models/contact_xrefs.rb +2 -2
  119. data/lib/constant_contact_client/models/contacts.rb +2 -2
  120. data/lib/constant_contact_client/models/contacts_counts.rb +2 -2
  121. data/lib/constant_contact_client/models/contacts_export.rb +62 -12
  122. data/lib/constant_contact_client/models/contacts_json_import.rb +2 -2
  123. data/lib/constant_contact_client/models/copy_event_request.rb +235 -0
  124. data/lib/constant_contact_client/models/create_contact_request.rb +15 -6
  125. data/lib/constant_contact_client/models/create_contact_request_email_address.rb +2 -2
  126. data/lib/constant_contact_client/models/create_csv_import_activity201_response.rb +2 -2
  127. data/lib/constant_contact_client/models/create_csv_import_activity201_response_links.rb +2 -2
  128. data/lib/constant_contact_client/models/create_csv_import_activity201_response_status.rb +2 -2
  129. data/lib/constant_contact_client/models/create_custom_fields_request.rb +313 -0
  130. data/lib/constant_contact_client/models/create_custom_fields_request_choices_inner.rb +245 -0
  131. data/lib/constant_contact_client/models/create_delete_activity201_response.rb +2 -2
  132. data/lib/constant_contact_client/models/create_delete_activity201_response_links.rb +2 -2
  133. data/lib/constant_contact_client/models/create_delete_activity201_response_links_self.rb +2 -2
  134. data/lib/constant_contact_client/models/create_delete_activity201_response_status.rb +2 -2
  135. data/lib/constant_contact_client/models/create_delete_activity_request.rb +2 -2
  136. data/lib/constant_contact_client/models/create_email_campaign200_response.rb +2 -2
  137. data/lib/constant_contact_client/models/create_email_campaign200_response_campaign_activities_inner.rb +2 -2
  138. data/lib/constant_contact_client/models/create_email_campaign_request.rb +2 -2
  139. data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner.rb +21 -2
  140. data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner_physical_address_in_footer.rb +2 -2
  141. data/lib/constant_contact_client/models/create_event201_response.rb +708 -0
  142. data/lib/constant_contact_client/models/create_event201_response_event_promotions_inner.rb +256 -0
  143. data/lib/constant_contact_client/models/create_event201_response_event_settings.rb +265 -0
  144. data/lib/constant_contact_client/models/create_export_activity201_response.rb +2 -2
  145. data/lib/constant_contact_client/models/create_export_activity201_response_status.rb +2 -2
  146. data/lib/constant_contact_client/models/create_export_activity_request.rb +62 -12
  147. data/lib/constant_contact_client/models/create_export_activity_request_exclude.rb +217 -0
  148. data/lib/constant_contact_client/models/create_import_json_activity_request.rb +2 -2
  149. data/lib/constant_contact_client/models/create_import_json_activity_request_import_data_inner.rb +7 -14
  150. data/lib/constant_contact_client/models/create_list_add_activity_request.rb +2 -2
  151. data/lib/constant_contact_client/models/create_list_add_activity_request_exclude.rb +2 -2
  152. data/lib/constant_contact_client/models/create_list_add_activity_request_source.rb +2 -2
  153. data/lib/constant_contact_client/models/create_list_delete_activity201_response.rb +2 -2
  154. data/lib/constant_contact_client/models/create_list_delete_activity201_response_links.rb +2 -2
  155. data/lib/constant_contact_client/models/create_list_delete_activity201_response_links_self.rb +2 -2
  156. data/lib/constant_contact_client/models/create_list_delete_activity201_response_status.rb +2 -2
  157. data/lib/constant_contact_client/models/create_list_delete_activity_request.rb +2 -2
  158. data/lib/constant_contact_client/models/create_list_remove_activity201_response.rb +2 -2
  159. data/lib/constant_contact_client/models/create_list_remove_activity201_response_status.rb +2 -2
  160. data/lib/constant_contact_client/models/create_list_remove_activity_request.rb +2 -2
  161. data/lib/constant_contact_client/models/create_list_remove_activity_request_exclude.rb +2 -2
  162. data/lib/constant_contact_client/models/create_list_remove_activity_request_source.rb +2 -2
  163. data/lib/constant_contact_client/models/create_or_update_contact200_response.rb +2 -2
  164. data/lib/constant_contact_client/models/create_or_update_contact_custom_field.rb +2 -2
  165. data/lib/constant_contact_client/models/create_or_update_contact_request.rb +17 -15
  166. data/lib/constant_contact_client/models/create_or_update_contact_request_custom_fields_inner.rb +2 -2
  167. data/lib/constant_contact_client/models/create_or_update_contact_request_sms_channel.rb +276 -0
  168. data/lib/constant_contact_client/models/create_or_update_contact_request_sms_channel_sms_channel_consents_inner.rb +310 -0
  169. data/lib/constant_contact_client/models/create_or_update_contact_request_street_address.rb +2 -2
  170. data/lib/constant_contact_client/models/create_resend_email_campaign201_response.rb +2 -2
  171. data/lib/constant_contact_client/models/create_resend_email_campaign_request.rb +2 -2
  172. data/lib/constant_contact_client/models/create_segment201_response.rb +2 -2
  173. data/lib/constant_contact_client/models/create_segment_request.rb +2 -2
  174. data/lib/constant_contact_client/models/create_social_post200_response.rb +272 -0
  175. data/lib/constant_contact_client/models/create_social_post_request.rb +262 -0
  176. data/lib/constant_contact_client/models/create_social_post_request_profile_posts_inner.rb +269 -0
  177. data/lib/constant_contact_client/models/create_social_post_request_profile_posts_inner_images_inner.rb +233 -0
  178. data/lib/constant_contact_client/models/create_social_post_request_profile_posts_inner_profiles_inner.rb +323 -0
  179. data/lib/constant_contact_client/models/create_tag_delete_activity_request.rb +2 -2
  180. data/lib/constant_contact_client/models/create_tag_remove_activity201_response.rb +2 -2
  181. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links.rb +2 -2
  182. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_results.rb +2 -2
  183. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_self.rb +2 -2
  184. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_status.rb +2 -2
  185. data/lib/constant_contact_client/models/create_tag_remove_activity_request.rb +2 -2
  186. data/lib/constant_contact_client/models/create_tag_remove_activity_request_exclude.rb +2 -2
  187. data/lib/constant_contact_client/models/create_tag_remove_activity_request_source.rb +2 -2
  188. data/lib/constant_contact_client/models/cross_reference.rb +2 -2
  189. data/lib/constant_contact_client/models/cross_reference_response.rb +2 -2
  190. data/lib/constant_contact_client/models/{custom_field_resource.rb → custom_field.rb} +80 -11
  191. data/lib/constant_contact_client/models/custom_field_choice.rb +295 -0
  192. data/lib/constant_contact_client/models/custom_field_choice_put_request.rb +255 -0
  193. data/lib/constant_contact_client/models/custom_field_choice_request.rb +245 -0
  194. data/lib/constant_contact_client/models/custom_field_id100.rb +2 -2
  195. data/lib/constant_contact_client/models/custom_field_metadata.rb +266 -0
  196. data/lib/constant_contact_client/models/{custom_field_input.rb → custom_field_put_request.rb} +35 -28
  197. data/lib/constant_contact_client/models/custom_field_request.rb +313 -0
  198. data/lib/constant_contact_client/models/custom_fields.rb +2 -3
  199. data/lib/constant_contact_client/models/customer.rb +13 -3
  200. data/lib/constant_contact_client/models/customer_put.rb +2 -2
  201. data/lib/constant_contact_client/models/delete_list202_response.rb +3 -3
  202. data/lib/constant_contact_client/models/delete_tag202_response.rb +2 -2
  203. data/lib/constant_contact_client/models/delete_tag202_response_activity_errors_inner.rb +2 -2
  204. data/lib/constant_contact_client/models/delete_tag202_response_links.rb +2 -2
  205. data/lib/constant_contact_client/models/delete_tag202_response_links_self.rb +2 -2
  206. data/lib/constant_contact_client/models/delete_tag202_response_status.rb +2 -2
  207. data/lib/constant_contact_client/models/detailed_registration_dto.rb +316 -0
  208. data/lib/constant_contact_client/models/device_flow_response.rb +2 -2
  209. data/lib/constant_contact_client/models/did_not_opens_tracking_activities_page.rb +2 -2
  210. data/lib/constant_contact_client/models/did_not_opens_tracking_activity.rb +2 -2
  211. data/lib/constant_contact_client/models/email_address.rb +2 -2
  212. data/lib/constant_contact_client/models/email_address_post.rb +2 -2
  213. data/lib/constant_contact_client/models/email_address_put.rb +2 -2
  214. data/lib/constant_contact_client/models/email_campaign.rb +2 -2
  215. data/lib/constant_contact_client/models/email_campaign_account_information.rb +417 -0
  216. data/lib/constant_contact_client/models/email_campaign_account_information_message_settings.rb +256 -0
  217. data/lib/constant_contact_client/models/email_campaign_account_information_physical_address.rb +336 -0
  218. data/lib/constant_contact_client/models/email_campaign_activity.rb +2 -2
  219. data/lib/constant_contact_client/models/email_campaign_activity_input.rb +21 -2
  220. data/lib/constant_contact_client/models/email_campaign_activity_preview.rb +2 -2
  221. data/lib/constant_contact_client/models/email_campaign_complete.rb +2 -2
  222. data/lib/constant_contact_client/models/email_campaign_name.rb +2 -2
  223. data/lib/constant_contact_client/models/email_campaigns.rb +2 -2
  224. data/lib/constant_contact_client/models/email_link_click_count.rb +2 -2
  225. data/lib/constant_contact_client/models/email_links.rb +2 -2
  226. data/lib/constant_contact_client/models/email_physical_address.rb +2 -2
  227. data/lib/constant_contact_client/models/email_schedule_input.rb +2 -2
  228. data/lib/constant_contact_client/models/email_test_send_input.rb +2 -2
  229. data/lib/constant_contact_client/models/emails_link.rb +2 -2
  230. data/lib/constant_contact_client/models/emails_paging_links.rb +2 -2
  231. data/lib/constant_contact_client/models/event_copy_request_dto.rb +235 -0
  232. data/lib/constant_contact_client/models/event_dto.rb +708 -0
  233. data/lib/constant_contact_client/models/event_listing_dto.rb +344 -0
  234. data/lib/constant_contact_client/models/event_media_asset_dto.rb +265 -0
  235. data/lib/constant_contact_client/models/event_media_asset_dto1.rb +265 -0
  236. data/lib/constant_contact_client/models/event_meta_data_dto.rb +236 -0
  237. data/lib/constant_contact_client/models/event_meta_data_dto1.rb +236 -0
  238. data/lib/constant_contact_client/models/event_promotion_dto.rb +256 -0
  239. data/lib/constant_contact_client/models/event_registration_summary_metric_dto.rb +235 -0
  240. data/lib/constant_contact_client/models/event_settings_dto.rb +265 -0
  241. data/lib/constant_contact_client/models/file_object.rb +2 -2
  242. data/lib/constant_contact_client/models/file_status_array_inner.rb +2 -2
  243. data/lib/constant_contact_client/models/find_events200_response.rb +256 -0
  244. data/lib/constant_contact_client/models/find_events200_response_links.rb +233 -0
  245. data/lib/constant_contact_client/models/find_events200_response_records_inner.rb +344 -0
  246. data/lib/constant_contact_client/models/find_events200_response_records_inner_event_registration_summary_metrics.rb +235 -0
  247. data/lib/constant_contact_client/models/find_registrations_using_get200_response.rb +255 -0
  248. data/lib/constant_contact_client/models/find_registrations_using_get200_response_links.rb +232 -0
  249. data/lib/constant_contact_client/models/find_registrations_using_get200_response_records_inner.rb +345 -0
  250. data/lib/constant_contact_client/models/forwards_tracking_activities_page.rb +2 -2
  251. data/lib/constant_contact_client/models/forwards_tracking_activity.rb +2 -2
  252. data/lib/constant_contact_client/models/get_ab_test_email_campaign200_response.rb +2 -2
  253. data/lib/constant_contact_client/models/get_account_details200_response.rb +13 -3
  254. data/lib/constant_contact_client/models/get_account_details200_response_company_logo.rb +2 -2
  255. data/lib/constant_contact_client/models/get_account_details200_response_physical_address.rb +2 -2
  256. data/lib/constant_contact_client/models/get_activity_by_id200_response.rb +2 -2
  257. data/lib/constant_contact_client/models/get_all_account_email_addresses200_response_inner.rb +2 -2
  258. data/lib/constant_contact_client/models/get_all_activities200_response.rb +2 -2
  259. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner.rb +2 -2
  260. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links.rb +2 -2
  261. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_results.rb +2 -2
  262. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_self.rb +2 -2
  263. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_status.rb +2 -2
  264. data/lib/constant_contact_client/models/get_all_activities200_response_links.rb +2 -2
  265. data/lib/constant_contact_client/models/get_all_activities200_response_links_next.rb +2 -2
  266. data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response.rb +235 -0
  267. data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_aggregate_percents.rb +246 -0
  268. data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_bulk_sms_campaign_summaries_inner.rb +289 -0
  269. data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_bulk_sms_campaign_summaries_inner_unique_counts.rb +284 -0
  270. data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_links.rb +215 -0
  271. data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_links_next.rb +223 -0
  272. data/lib/constant_contact_client/models/get_all_contacts200_response.rb +2 -2
  273. data/lib/constant_contact_client/models/get_all_custom_fields200_response.rb +2 -3
  274. data/lib/constant_contact_client/models/get_all_email_campaigns200_response.rb +2 -2
  275. data/lib/constant_contact_client/models/get_all_email_campaigns200_response_campaigns_inner.rb +2 -2
  276. data/lib/constant_contact_client/models/get_all_email_campaigns200_response_links.rb +2 -2
  277. data/lib/constant_contact_client/models/get_all_lists200_response.rb +2 -2
  278. data/lib/constant_contact_client/models/get_all_segments200_response.rb +2 -2
  279. data/lib/constant_contact_client/models/get_all_segments200_response_links.rb +2 -2
  280. data/lib/constant_contact_client/models/get_all_segments200_response_links_next.rb +2 -2
  281. data/lib/constant_contact_client/models/get_all_segments200_response_segments_inner.rb +2 -2
  282. data/lib/constant_contact_client/models/get_all_tags200_response.rb +2 -2
  283. data/lib/constant_contact_client/models/get_all_tags200_response_links.rb +2 -2
  284. data/lib/constant_contact_client/models/get_all_tags200_response_links_next.rb +2 -2
  285. data/lib/constant_contact_client/models/get_all_tags200_response_links_next_next.rb +2 -9
  286. data/lib/constant_contact_client/models/get_bounces_report200_response.rb +2 -2
  287. data/lib/constant_contact_client/models/get_bounces_report200_response_links.rb +2 -9
  288. data/lib/constant_contact_client/models/get_bounces_report200_response_tracking_activities_inner.rb +2 -2
  289. data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response.rb +2 -2
  290. data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response_link_click_counts_inner.rb +2 -2
  291. data/lib/constant_contact_client/models/get_clicks_report200_response.rb +2 -2
  292. data/lib/constant_contact_client/models/get_clicks_report200_response_links.rb +2 -9
  293. data/lib/constant_contact_client/models/get_clicks_report200_response_tracking_activities_inner.rb +2 -2
  294. data/lib/constant_contact_client/models/get_contact_adds200_response.rb +2 -2
  295. data/lib/constant_contact_client/models/get_contact_adds200_response_tracking_activities_inner.rb +2 -2
  296. data/lib/constant_contact_client/models/get_contact_by_id200_response.rb +2 -2
  297. data/lib/constant_contact_client/models/get_contact_by_id200_response_custom_fields_inner.rb +22 -17
  298. data/lib/constant_contact_client/models/get_contact_by_id200_response_email_address.rb +2 -2
  299. data/lib/constant_contact_client/models/get_contact_by_id200_response_notes_inner.rb +2 -2
  300. data/lib/constant_contact_client/models/get_contact_by_id200_response_phone_numbers_inner.rb +2 -2
  301. data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel.rb +2 -2
  302. data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel_sms_channel_consents_inner.rb +3 -2
  303. data/lib/constant_contact_client/models/get_contact_by_id200_response_street_addresses_inner.rb +2 -2
  304. data/lib/constant_contact_client/models/get_contact_counts200_response.rb +2 -2
  305. data/lib/constant_contact_client/models/get_contact_id_xrefs200_response.rb +2 -2
  306. data/lib/constant_contact_client/models/get_contact_id_xrefs200_response_xrefs_inner.rb +2 -2
  307. data/lib/constant_contact_client/models/get_contact_open_click_rate_report200_response.rb +2 -2
  308. data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response.rb +2 -2
  309. data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_campaign_activities_inner.rb +2 -2
  310. data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_links.rb +2 -9
  311. data/lib/constant_contact_client/models/get_contact_tracking_report200_response.rb +2 -2
  312. data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links.rb +2 -9
  313. data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links_next.rb +2 -9
  314. data/lib/constant_contact_client/models/get_contact_tracking_report200_response_tracking_activities_inner.rb +2 -2
  315. data/lib/constant_contact_client/models/get_custom_field200_response.rb +77 -8
  316. data/lib/constant_contact_client/models/get_custom_field200_response_choices_inner.rb +295 -0
  317. data/lib/constant_contact_client/models/get_custom_field200_response_metadata.rb +266 -0
  318. data/lib/constant_contact_client/models/get_did_not_opens_report200_response.rb +2 -2
  319. data/lib/constant_contact_client/models/get_did_not_opens_report200_response_tracking_activities_inner.rb +2 -2
  320. data/lib/constant_contact_client/models/get_email_campaign_activity200_response.rb +2 -2
  321. data/lib/constant_contact_client/models/get_email_campaign_activity200_response_document_properties.rb +2 -2
  322. data/lib/constant_contact_client/models/get_email_campaign_activity200_response_physical_address_in_footer.rb +2 -2
  323. data/lib/constant_contact_client/models/get_email_campaign_activity_preview200_response.rb +2 -2
  324. data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response.rb +2 -2
  325. data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner.rb +2 -2
  326. data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner_stats.rb +2 -2
  327. data/lib/constant_contact_client/models/get_email_campaign_activity_schedule200_response_inner.rb +2 -2
  328. data/lib/constant_contact_client/models/get_email_campaign_activity_send_history200_response_inner.rb +2 -2
  329. data/lib/constant_contact_client/models/get_email_campaign_report200_response.rb +2 -16
  330. data/lib/constant_contact_client/models/get_email_campaign_report200_response_aggregate_percents.rb +2 -2
  331. data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner.rb +2 -23
  332. data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner_unique_counts.rb +2 -58
  333. data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response.rb +2 -2
  334. data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response_xrefs_inner.rb +2 -2
  335. data/lib/constant_contact_client/models/get_email_opens_report200_response.rb +2 -2
  336. data/lib/constant_contact_client/models/get_email_opens_report200_response_tracking_activities_inner.rb +2 -2
  337. data/lib/constant_contact_client/models/get_email_sends_report200_response.rb +2 -2
  338. data/lib/constant_contact_client/models/get_email_sends_report200_response_links.rb +2 -9
  339. data/lib/constant_contact_client/models/get_email_sends_report200_response_tracking_activities_inner.rb +2 -2
  340. data/lib/constant_contact_client/models/get_email_stats_report200_response.rb +2 -2
  341. data/lib/constant_contact_client/models/get_email_stats_report200_response_errors_inner.rb +2 -2
  342. data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner.rb +2 -2
  343. data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_percents.rb +2 -2
  344. data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_stats.rb +2 -2
  345. data/lib/constant_contact_client/models/get_forwards_report200_response.rb +2 -2
  346. data/lib/constant_contact_client/models/get_forwards_report200_response_tracking_activities_inner.rb +2 -2
  347. data/lib/constant_contact_client/models/get_hashtag_groups200_response.rb +257 -0
  348. data/lib/constant_contact_client/models/get_hashtag_groups200_response_hashtag_groups_inner.rb +252 -0
  349. data/lib/constant_contact_client/models/get_hashtag_groups200_response_links.rb +215 -0
  350. data/lib/constant_contact_client/models/get_hashtag_groups200_response_links_next.rb +223 -0
  351. data/lib/constant_contact_client/models/get_hashtag_groups200_response_page.rb +274 -0
  352. data/lib/constant_contact_client/models/get_list200_response.rb +2 -2
  353. data/lib/constant_contact_client/models/get_list_id_xrefs200_response.rb +2 -2
  354. data/lib/constant_contact_client/models/get_list_id_xrefs200_response_xrefs_inner.rb +2 -2
  355. data/lib/constant_contact_client/models/get_optouts_report200_response.rb +2 -2
  356. data/lib/constant_contact_client/models/get_optouts_report200_response_tracking_activities_inner.rb +2 -2
  357. data/lib/constant_contact_client/models/get_registration_info200_response.rb +316 -0
  358. data/lib/constant_contact_client/models/get_registration_info200_response_contact_inner.rb +278 -0
  359. data/lib/constant_contact_client/models/get_registration_info200_response_order_summary.rb +296 -0
  360. data/lib/constant_contact_client/models/get_registration_info200_response_order_summary_details_inner.rb +245 -0
  361. data/lib/constant_contact_client/models/get_registration_info200_response_tickets_inner.rb +266 -0
  362. data/lib/constant_contact_client/models/get_resend_email_campaign200_response_inner.rb +2 -2
  363. data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner.rb +2 -2
  364. data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner_history_details.rb +3 -13
  365. data/lib/constant_contact_client/models/get_social_connections200_response.rb +218 -0
  366. data/lib/constant_contact_client/models/get_social_connections200_response_connections_inner.rb +224 -0
  367. data/lib/constant_contact_client/models/get_social_connections200_response_connections_inner_account_info.rb +266 -0
  368. data/lib/constant_contact_client/models/get_social_connections200_response_connections_inner_connection_status.rb +276 -0
  369. data/lib/constant_contact_client/models/get_social_profiles200_response_inner.rb +348 -0
  370. data/lib/constant_contact_client/models/get_social_profiles200_response_inner_account_info.rb +266 -0
  371. data/lib/constant_contact_client/models/get_tag200_response.rb +2 -2
  372. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response.rb +2 -2
  373. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links.rb +2 -2
  374. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links_next.rb +2 -2
  375. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner.rb +2 -2
  376. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner_sms_channel.rb +2 -2
  377. data/lib/constant_contact_client/models/get_unique_contact_opens200_response.rb +2 -2
  378. data/lib/constant_contact_client/models/get_unique_contact_opens200_response_tracking_activities_inner.rb +2 -2
  379. data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response.rb +2 -2
  380. data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response_tracking_activities_inner.rb +2 -2
  381. data/lib/constant_contact_client/models/get_unique_contact_updates200_response.rb +2 -2
  382. data/lib/constant_contact_client/models/get_unique_contact_updates200_response_tracking_activities_inner.rb +2 -2
  383. data/lib/constant_contact_client/models/get_user_privileges200_response_inner.rb +2 -2
  384. data/lib/constant_contact_client/models/hashtag_group_dto.rb +252 -0
  385. data/lib/constant_contact_client/models/headers_object.rb +2 -2
  386. data/lib/constant_contact_client/models/history_details.rb +3 -13
  387. data/lib/constant_contact_client/models/href.rb +214 -0
  388. data/lib/constant_contact_client/models/image_dto.rb +233 -0
  389. data/lib/constant_contact_client/models/item_dto.rb +444 -0
  390. data/lib/constant_contact_client/models/item_dto1.rb +444 -0
  391. data/lib/constant_contact_client/models/item_summary_dto.rb +263 -0
  392. data/lib/constant_contact_client/models/item_summary_dto1.rb +263 -0
  393. data/lib/constant_contact_client/models/jmml_sms_channel.rb +276 -0
  394. data/lib/constant_contact_client/models/jmml_sms_channel_consents.rb +310 -0
  395. data/lib/constant_contact_client/models/json_import_contact.rb +7 -14
  396. data/lib/constant_contact_client/models/line_item_details_dto.rb +245 -0
  397. data/lib/constant_contact_client/models/link.rb +2 -2
  398. data/lib/constant_contact_client/models/links.rb +25 -13
  399. data/lib/constant_contact_client/models/list_activity_add_contacts.rb +2 -2
  400. data/lib/constant_contact_client/models/list_activity_remove_contacts.rb +2 -2
  401. data/lib/constant_contact_client/models/list_id_list100.rb +2 -2
  402. data/lib/constant_contact_client/models/list_input.rb +2 -2
  403. data/lib/constant_contact_client/models/list_xref.rb +2 -2
  404. data/lib/constant_contact_client/models/list_xrefs.rb +2 -2
  405. data/lib/constant_contact_client/models/lpreporting_links.rb +2 -2
  406. data/lib/constant_contact_client/models/lpreporting_next.rb +2 -2
  407. data/lib/constant_contact_client/models/model_next.rb +2 -2
  408. data/lib/constant_contact_client/models/my_library_file_collection_inner.rb +2 -2
  409. data/lib/constant_contact_client/models/my_library_file_collection_inner_thumbnail.rb +2 -2
  410. data/lib/constant_contact_client/models/note.rb +2 -2
  411. data/lib/constant_contact_client/models/o_auth_error.rb +2 -2
  412. data/lib/constant_contact_client/models/online_meeting_dto.rb +272 -0
  413. data/lib/constant_contact_client/models/online_meeting_dto1.rb +273 -0
  414. data/lib/constant_contact_client/models/opens_tracking_activities_page.rb +2 -2
  415. data/lib/constant_contact_client/models/opens_tracking_activity.rb +2 -2
  416. data/lib/constant_contact_client/models/optouts_tracking_activities_page.rb +2 -2
  417. data/lib/constant_contact_client/models/optouts_tracking_activity.rb +2 -2
  418. data/lib/constant_contact_client/models/order_details_dto.rb +296 -0
  419. data/lib/constant_contact_client/models/order_ticket_keys_request_dto.rb +225 -0
  420. data/lib/constant_contact_client/models/p_contact_add_tracking_activities_page.rb +2 -2
  421. data/lib/constant_contact_client/models/p_contact_add_tracking_activity.rb +2 -2
  422. data/lib/constant_contact_client/models/p_contact_click_tracking_activities_page.rb +2 -2
  423. data/lib/constant_contact_client/models/p_contact_click_tracking_activity.rb +2 -2
  424. data/lib/constant_contact_client/models/p_contact_open_tracking_activity.rb +2 -2
  425. data/lib/constant_contact_client/models/p_contact_opens_tracking_activities_page.rb +2 -2
  426. data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activities_page.rb +2 -2
  427. data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activity.rb +2 -2
  428. data/lib/constant_contact_client/models/p_contact_update_tracking_activities_page.rb +2 -2
  429. data/lib/constant_contact_client/models/p_contact_update_tracking_activity.rb +2 -2
  430. data/lib/constant_contact_client/models/page_metadata_dto.rb +274 -0
  431. data/lib/constant_contact_client/models/paged_email_campaign_response.rb +2 -2
  432. data/lib/constant_contact_client/models/paged_hashtag_groups_dto.rb +257 -0
  433. data/lib/constant_contact_client/models/paged_response_link_rel_dto.rb +223 -0
  434. data/lib/constant_contact_client/models/paged_response_links_dto.rb +215 -0
  435. data/lib/constant_contact_client/models/paginated_registrations.rb +255 -0
  436. data/lib/constant_contact_client/models/pagination_dto_event_listing_dto.rb +256 -0
  437. data/lib/constant_contact_client/models/pagination_links.rb +2 -2
  438. data/lib/constant_contact_client/models/pagination_links_next.rb +2 -2
  439. data/lib/constant_contact_client/models/paging_links.rb +2 -2
  440. data/lib/constant_contact_client/models/partner_account.rb +2 -2
  441. data/lib/constant_contact_client/models/partner_account_links.rb +2 -2
  442. data/lib/constant_contact_client/models/partner_account_operations_request.rb +2 -2
  443. data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_headers_inner.rb +2 -2
  444. data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_path_parameters_inner.rb +2 -2
  445. data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_query_parameters_inner.rb +2 -2
  446. data/lib/constant_contact_client/models/partner_account_site_owner_list_inner.rb +2 -2
  447. data/lib/constant_contact_client/models/partner_unsubscribe_response.rb +216 -0
  448. data/lib/constant_contact_client/models/partners_link.rb +2 -2
  449. data/lib/constant_contact_client/models/patch_email_campaign_name_request.rb +2 -2
  450. data/lib/constant_contact_client/models/path_param_object.rb +2 -2
  451. data/lib/constant_contact_client/models/payment_status_update_request_dto.rb +242 -0
  452. data/lib/constant_contact_client/models/percents_email.rb +2 -2
  453. data/lib/constant_contact_client/models/phone_number.rb +2 -2
  454. data/lib/constant_contact_client/models/phone_number_put.rb +2 -2
  455. data/lib/constant_contact_client/models/plan_info.rb +2 -2
  456. data/lib/constant_contact_client/models/plan_tiers_object.rb +2 -2
  457. data/lib/constant_contact_client/models/plan_tiers_object_current_tiers_inner.rb +2 -2
  458. data/lib/constant_contact_client/models/post_create_dto.rb +262 -0
  459. data/lib/constant_contact_client/models/post_custom_field_delete201_response.rb +2 -2
  460. data/lib/constant_contact_client/models/post_custom_field_delete_request.rb +2 -2
  461. data/lib/constant_contact_client/models/post_dto.rb +272 -0
  462. data/lib/constant_contact_client/models/post_tag_request.rb +2 -2
  463. data/lib/constant_contact_client/models/profile_dto.rb +348 -0
  464. data/lib/constant_contact_client/models/profile_post_dto.rb +269 -0
  465. data/lib/constant_contact_client/models/profile_post_profile_dto.rb +323 -0
  466. data/lib/constant_contact_client/models/promo_code_dto.rb +408 -0
  467. data/lib/constant_contact_client/models/promo_code_dto1.rb +408 -0
  468. data/lib/constant_contact_client/models/provision.rb +2 -2
  469. data/lib/constant_contact_client/models/provision_response.rb +2 -2
  470. data/lib/constant_contact_client/models/put_tag_request.rb +2 -2
  471. data/lib/constant_contact_client/models/query_param_object.rb +2 -2
  472. data/lib/constant_contact_client/models/registrant_information_lite_dto.rb +345 -0
  473. data/lib/constant_contact_client/models/registration_status_update_request_dto.rb +242 -0
  474. data/lib/constant_contact_client/models/registration_status_update_response_dto.rb +218 -0
  475. data/lib/constant_contact_client/models/registration_ticket_dto.rb +266 -0
  476. data/lib/constant_contact_client/models/registrations_links.rb +232 -0
  477. data/lib/constant_contact_client/models/reporting_links.rb +2 -9
  478. data/lib/constant_contact_client/models/reporting_next.rb +2 -9
  479. data/lib/constant_contact_client/models/reportingsms_links.rb +214 -0
  480. data/lib/constant_contact_client/models/reportingsms_next.rb +222 -0
  481. data/lib/constant_contact_client/models/resend_to_non_openers_input.rb +2 -2
  482. data/lib/constant_contact_client/models/resend_to_non_openers_object.rb +2 -2
  483. data/lib/constant_contact_client/models/resubscribe_contact_request.rb +224 -0
  484. data/lib/constant_contact_client/models/schedule_email_campaign_activity_request.rb +2 -2
  485. data/lib/constant_contact_client/models/segment_data.rb +2 -2
  486. data/lib/constant_contact_client/models/segment_detail.rb +2 -2
  487. data/lib/constant_contact_client/models/segment_master.rb +2 -2
  488. data/lib/constant_contact_client/models/segment_name.rb +2 -2
  489. data/lib/constant_contact_client/models/segments_dto.rb +2 -2
  490. data/lib/constant_contact_client/models/segments_links.rb +221 -0
  491. data/lib/constant_contact_client/models/sends_tracking_activities_page.rb +2 -2
  492. data/lib/constant_contact_client/models/sends_tracking_activity.rb +2 -2
  493. data/lib/constant_contact_client/models/simple_field_dto.rb +278 -0
  494. data/lib/constant_contact_client/models/sms_campaign_summaries_page.rb +235 -0
  495. data/lib/constant_contact_client/models/sms_channel_consent_details.rb +3 -2
  496. data/lib/constant_contact_client/models/sso_user.rb +3 -3
  497. data/lib/constant_contact_client/models/stats_email.rb +2 -2
  498. data/lib/constant_contact_client/models/stats_email_activity.rb +2 -2
  499. data/lib/constant_contact_client/models/stats_error.rb +2 -2
  500. data/lib/constant_contact_client/models/status_display_label_dto.rb +226 -0
  501. data/lib/constant_contact_client/models/status_display_label_dto1.rb +226 -0
  502. data/lib/constant_contact_client/models/street_address.rb +2 -2
  503. data/lib/constant_contact_client/models/street_address_put.rb +2 -2
  504. data/lib/constant_contact_client/models/tag.rb +2 -2
  505. data/lib/constant_contact_client/models/tag_add_remove_contacts.rb +2 -2
  506. data/lib/constant_contact_client/models/tag_id_list500_limit.rb +2 -2
  507. data/lib/constant_contact_client/models/tag_post.rb +2 -2
  508. data/lib/constant_contact_client/models/tag_put.rb +2 -2
  509. data/lib/constant_contact_client/models/tags.rb +2 -2
  510. data/lib/constant_contact_client/models/tags_activity_links.rb +2 -2
  511. data/lib/constant_contact_client/models/tags_links.rb +2 -2
  512. data/lib/constant_contact_client/models/tags_paging_links.rb +2 -2
  513. data/lib/constant_contact_client/models/test_send_email_campaign_activity_request.rb +2 -2
  514. data/lib/constant_contact_client/models/ticket_summary_dto.rb +279 -0
  515. data/lib/constant_contact_client/models/ticket_summary_dto1.rb +279 -0
  516. data/lib/constant_contact_client/models/tier_object.rb +2 -2
  517. data/lib/constant_contact_client/models/track_dto.rb +377 -0
  518. data/lib/constant_contact_client/models/track_dto1.rb +377 -0
  519. data/lib/constant_contact_client/models/tracking_activity_sms_channel_dto.rb +2 -2
  520. data/lib/constant_contact_client/models/unique_email_counts.rb +2 -58
  521. data/lib/constant_contact_client/models/unique_sms_counts.rb +283 -0
  522. data/lib/constant_contact_client/models/update_account_request.rb +2 -2
  523. data/lib/constant_contact_client/models/update_contact_request.rb +15 -6
  524. data/lib/constant_contact_client/models/update_contact_request_email_address.rb +2 -2
  525. data/lib/constant_contact_client/models/update_contact_request_phone_numbers_inner.rb +2 -2
  526. data/lib/constant_contact_client/models/update_contact_request_sms_channel.rb +241 -0
  527. data/lib/constant_contact_client/models/update_contact_request_sms_channel_sms_channel_consents_inner.rb +249 -0
  528. data/lib/constant_contact_client/models/update_contact_request_street_addresses_inner.rb +2 -2
  529. data/lib/constant_contact_client/models/update_custom_field_request.rb +32 -25
  530. data/lib/constant_contact_client/models/update_custom_field_request_choices_inner.rb +255 -0
  531. data/lib/constant_contact_client/models/update_list200_response.rb +2 -2
  532. data/lib/constant_contact_client/models/update_list_request.rb +2 -2
  533. data/lib/constant_contact_client/models/update_registration_payment_status_using_put_request.rb +242 -0
  534. data/lib/constant_contact_client/models/update_registration_status_using_put207_response.rb +218 -0
  535. data/lib/constant_contact_client/models/update_registration_status_using_put_request.rb +242 -0
  536. data/lib/constant_contact_client/models/update_segment_name_request.rb +2 -2
  537. data/lib/constant_contact_client/models/webhooks_subscription_body.rb +2 -2
  538. data/lib/constant_contact_client/models/webhooks_subscription_collection_inner.rb +2 -2
  539. data/lib/constant_contact_client/models/webhooks_subscription_put_resp.rb +2 -2
  540. data/lib/constant_contact_client/models/webhooks_subscription_response.rb +2 -2
  541. data/lib/constant_contact_client/models/webhooks_test_send.rb +2 -2
  542. data/lib/constant_contact_client/version.rb +3 -3
  543. data/lib/constant_contact_client.rb +149 -4
  544. data/spec/spec_helper.rb +2 -2
  545. metadata +156 -8
@@ -0,0 +1,708 @@
1
+ =begin
2
+ #Constant Contact API v3
3
+
4
+ #Swagger build version 3.0.161
5
+
6
+ The version of the OpenAPI document: 1.0.220
7
+ Contact: webservices@constantcontact.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module ConstantContactClient
17
+ class CreateEvent201Response
18
+ # Provides the event description.
19
+ attr_accessor :description
20
+
21
+ # The title for the event. The title does not have to be unique for an account.
22
+ attr_accessor :title
23
+
24
+ # The name of the event, has to be unique for the account.
25
+ attr_accessor :name
26
+
27
+ # The ID that uniquely identifies the event.
28
+ attr_accessor :event_id
29
+
30
+ # The system assigned ID that uniquely identifies the event and is identical to the `event_id`.
31
+ attr_accessor :campaign_id
32
+
33
+ # The date the event starts.
34
+ attr_accessor :event_start
35
+
36
+ # The date the event ends.
37
+ attr_accessor :event_end
38
+
39
+ # Identifies the event type.
40
+ attr_accessor :event_type
41
+
42
+ # The encrypted SOId.
43
+ attr_accessor :eso
44
+
45
+ attr_accessor :contact
46
+
47
+ # The time the event was created, in ISO format. Read-only.
48
+ attr_accessor :create_time
49
+
50
+ # The time the event was published, in ISO format.
51
+ attr_accessor :active_time
52
+
53
+ # The time the event was cancelled, in ISO format. Read-only.
54
+ attr_accessor :cancelled_time
55
+
56
+ # The time the event was deleted, in ISO format. Read-only.
57
+ attr_accessor :deleted_time
58
+
59
+ # The date and time the event was last modified.
60
+ attr_accessor :last_update_time
61
+
62
+ attr_accessor :address
63
+
64
+ # The accepted currency for payments. Required for events collecting payments ['AUD','BRL','CAD','CHF','CZK','DKK','EUR','GBP','HKD','HUF','ILS','JPY','MXN','MYR','NOK','NZD','PHP','PLN','RUB','SEK','SGD','THB','TRY','TWD','USD']
65
+ attr_accessor :currency_type
66
+
67
+ attr_accessor :default_track
68
+
69
+ # Display or hide event contact information on the registration form and registration confirmation message.
70
+ attr_accessor :display_contact_flag
71
+
72
+ # Display or hide the event end time on the registration form and registration confirmation message.
73
+ attr_accessor :display_end_time_flag
74
+
75
+ # Display the event on the Event Calendar.
76
+ attr_accessor :display_on_calendar_flag
77
+
78
+ # Display the time zone on the registration form and registration confirmation message.
79
+ attr_accessor :display_time_zone_flag
80
+
81
+ # The event calendar URL.
82
+ attr_accessor :event_calendar_url
83
+
84
+ attr_accessor :event_metadata
85
+
86
+ # The short code to use for the event.
87
+ attr_accessor :event_code
88
+
89
+ # List of event promotions.
90
+ attr_accessor :event_promotions
91
+
92
+ attr_accessor :event_settings
93
+
94
+ # The event widget URL.
95
+ attr_accessor :event_widget_url
96
+
97
+ # List of failed campaign activities.
98
+ attr_accessor :failed_campaign_activities
99
+
100
+ # Specifies if the event is physical and/or virtual, or to be determined.
101
+ attr_accessor :location_type
102
+
103
+ # If `true`, sends an email to the event owner when a registration is made.
104
+ attr_accessor :notify_owner_on_reg
105
+
106
+ attr_accessor :online_meeting
107
+
108
+ # The event registration URL.
109
+ attr_accessor :registration_url
110
+
111
+ # Specifies the event's current status.
112
+ attr_accessor :status
113
+
114
+ # The time zone where the event takes place.
115
+ attr_accessor :time_zone
116
+
117
+ # The abbreviation to use to indicate the time zone where the event takes place.
118
+ attr_accessor :time_zone_abbreviation
119
+
120
+ # Attribute mapping from ruby-style variable name to JSON key.
121
+ def self.attribute_map
122
+ {
123
+ :'description' => :'description',
124
+ :'title' => :'title',
125
+ :'name' => :'name',
126
+ :'event_id' => :'event_id',
127
+ :'campaign_id' => :'campaign_id',
128
+ :'event_start' => :'event_start',
129
+ :'event_end' => :'event_end',
130
+ :'event_type' => :'event_type',
131
+ :'eso' => :'eso',
132
+ :'contact' => :'contact',
133
+ :'create_time' => :'create_time',
134
+ :'active_time' => :'active_time',
135
+ :'cancelled_time' => :'cancelled_time',
136
+ :'deleted_time' => :'deleted_time',
137
+ :'last_update_time' => :'last_update_time',
138
+ :'address' => :'address',
139
+ :'currency_type' => :'currency_type',
140
+ :'default_track' => :'default_track',
141
+ :'display_contact_flag' => :'display_contact_flag',
142
+ :'display_end_time_flag' => :'display_end_time_flag',
143
+ :'display_on_calendar_flag' => :'display_on_calendar_flag',
144
+ :'display_time_zone_flag' => :'display_time_zone_flag',
145
+ :'event_calendar_url' => :'event_calendar_url',
146
+ :'event_metadata' => :'event_metadata',
147
+ :'event_code' => :'event_code',
148
+ :'event_promotions' => :'event_promotions',
149
+ :'event_settings' => :'event_settings',
150
+ :'event_widget_url' => :'event_widget_url',
151
+ :'failed_campaign_activities' => :'failed_campaign_activities',
152
+ :'location_type' => :'location_type',
153
+ :'notify_owner_on_reg' => :'notify_owner_on_reg',
154
+ :'online_meeting' => :'online_meeting',
155
+ :'registration_url' => :'registration_url',
156
+ :'status' => :'status',
157
+ :'time_zone' => :'time_zone',
158
+ :'time_zone_abbreviation' => :'time_zone_abbreviation'
159
+ }
160
+ end
161
+
162
+ # Returns all the JSON keys this model knows about
163
+ def self.acceptable_attributes
164
+ attribute_map.values
165
+ end
166
+
167
+ # Attribute type mapping.
168
+ def self.openapi_types
169
+ {
170
+ :'description' => :'String',
171
+ :'title' => :'String',
172
+ :'name' => :'String',
173
+ :'event_id' => :'String',
174
+ :'campaign_id' => :'String',
175
+ :'event_start' => :'String',
176
+ :'event_end' => :'String',
177
+ :'event_type' => :'String',
178
+ :'eso' => :'String',
179
+ :'contact' => :'ContactDto1',
180
+ :'create_time' => :'String',
181
+ :'active_time' => :'String',
182
+ :'cancelled_time' => :'String',
183
+ :'deleted_time' => :'String',
184
+ :'last_update_time' => :'String',
185
+ :'address' => :'AddressDto1',
186
+ :'currency_type' => :'String',
187
+ :'default_track' => :'TrackDto1',
188
+ :'display_contact_flag' => :'Boolean',
189
+ :'display_end_time_flag' => :'Boolean',
190
+ :'display_on_calendar_flag' => :'Boolean',
191
+ :'display_time_zone_flag' => :'Boolean',
192
+ :'event_calendar_url' => :'String',
193
+ :'event_metadata' => :'EventMetaDataDto1',
194
+ :'event_code' => :'String',
195
+ :'event_promotions' => :'Array<CreateEvent201ResponseEventPromotionsInner>',
196
+ :'event_settings' => :'CreateEvent201ResponseEventSettings',
197
+ :'event_widget_url' => :'String',
198
+ :'failed_campaign_activities' => :'Array<String>',
199
+ :'location_type' => :'String',
200
+ :'notify_owner_on_reg' => :'Boolean',
201
+ :'online_meeting' => :'OnlineMeetingDto1',
202
+ :'registration_url' => :'String',
203
+ :'status' => :'String',
204
+ :'time_zone' => :'String',
205
+ :'time_zone_abbreviation' => :'String'
206
+ }
207
+ end
208
+
209
+ # List of attributes with nullable: true
210
+ def self.openapi_nullable
211
+ Set.new([
212
+ ])
213
+ end
214
+
215
+ # Initializes the object
216
+ # @param [Hash] attributes Model attributes in the form of hash
217
+ def initialize(attributes = {})
218
+ if (!attributes.is_a?(Hash))
219
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ConstantContactClient::CreateEvent201Response` initialize method"
220
+ end
221
+
222
+ # check to see if the attribute exists and convert string to symbol for hash key
223
+ attributes = attributes.each_with_object({}) { |(k, v), h|
224
+ if (!self.class.attribute_map.key?(k.to_sym))
225
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ConstantContactClient::CreateEvent201Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
226
+ end
227
+ h[k.to_sym] = v
228
+ }
229
+
230
+ if attributes.key?(:'description')
231
+ self.description = attributes[:'description']
232
+ else
233
+ self.description = nil
234
+ end
235
+
236
+ if attributes.key?(:'title')
237
+ self.title = attributes[:'title']
238
+ else
239
+ self.title = nil
240
+ end
241
+
242
+ if attributes.key?(:'name')
243
+ self.name = attributes[:'name']
244
+ else
245
+ self.name = nil
246
+ end
247
+
248
+ if attributes.key?(:'event_id')
249
+ self.event_id = attributes[:'event_id']
250
+ end
251
+
252
+ if attributes.key?(:'campaign_id')
253
+ self.campaign_id = attributes[:'campaign_id']
254
+ else
255
+ self.campaign_id = nil
256
+ end
257
+
258
+ if attributes.key?(:'event_start')
259
+ self.event_start = attributes[:'event_start']
260
+ else
261
+ self.event_start = nil
262
+ end
263
+
264
+ if attributes.key?(:'event_end')
265
+ self.event_end = attributes[:'event_end']
266
+ else
267
+ self.event_end = nil
268
+ end
269
+
270
+ if attributes.key?(:'event_type')
271
+ self.event_type = attributes[:'event_type']
272
+ else
273
+ self.event_type = nil
274
+ end
275
+
276
+ if attributes.key?(:'eso')
277
+ self.eso = attributes[:'eso']
278
+ end
279
+
280
+ if attributes.key?(:'contact')
281
+ self.contact = attributes[:'contact']
282
+ end
283
+
284
+ if attributes.key?(:'create_time')
285
+ self.create_time = attributes[:'create_time']
286
+ end
287
+
288
+ if attributes.key?(:'active_time')
289
+ self.active_time = attributes[:'active_time']
290
+ end
291
+
292
+ if attributes.key?(:'cancelled_time')
293
+ self.cancelled_time = attributes[:'cancelled_time']
294
+ end
295
+
296
+ if attributes.key?(:'deleted_time')
297
+ self.deleted_time = attributes[:'deleted_time']
298
+ end
299
+
300
+ if attributes.key?(:'last_update_time')
301
+ self.last_update_time = attributes[:'last_update_time']
302
+ end
303
+
304
+ if attributes.key?(:'address')
305
+ self.address = attributes[:'address']
306
+ end
307
+
308
+ if attributes.key?(:'currency_type')
309
+ self.currency_type = attributes[:'currency_type']
310
+ end
311
+
312
+ if attributes.key?(:'default_track')
313
+ self.default_track = attributes[:'default_track']
314
+ else
315
+ self.default_track = nil
316
+ end
317
+
318
+ if attributes.key?(:'display_contact_flag')
319
+ self.display_contact_flag = attributes[:'display_contact_flag']
320
+ end
321
+
322
+ if attributes.key?(:'display_end_time_flag')
323
+ self.display_end_time_flag = attributes[:'display_end_time_flag']
324
+ end
325
+
326
+ if attributes.key?(:'display_on_calendar_flag')
327
+ self.display_on_calendar_flag = attributes[:'display_on_calendar_flag']
328
+ end
329
+
330
+ if attributes.key?(:'display_time_zone_flag')
331
+ self.display_time_zone_flag = attributes[:'display_time_zone_flag']
332
+ end
333
+
334
+ if attributes.key?(:'event_calendar_url')
335
+ self.event_calendar_url = attributes[:'event_calendar_url']
336
+ end
337
+
338
+ if attributes.key?(:'event_metadata')
339
+ self.event_metadata = attributes[:'event_metadata']
340
+ end
341
+
342
+ if attributes.key?(:'event_code')
343
+ self.event_code = attributes[:'event_code']
344
+ end
345
+
346
+ if attributes.key?(:'event_promotions')
347
+ if (value = attributes[:'event_promotions']).is_a?(Array)
348
+ self.event_promotions = value
349
+ end
350
+ end
351
+
352
+ if attributes.key?(:'event_settings')
353
+ self.event_settings = attributes[:'event_settings']
354
+ end
355
+
356
+ if attributes.key?(:'event_widget_url')
357
+ self.event_widget_url = attributes[:'event_widget_url']
358
+ end
359
+
360
+ if attributes.key?(:'failed_campaign_activities')
361
+ if (value = attributes[:'failed_campaign_activities']).is_a?(Array)
362
+ self.failed_campaign_activities = value
363
+ end
364
+ end
365
+
366
+ if attributes.key?(:'location_type')
367
+ self.location_type = attributes[:'location_type']
368
+ else
369
+ self.location_type = nil
370
+ end
371
+
372
+ if attributes.key?(:'notify_owner_on_reg')
373
+ self.notify_owner_on_reg = attributes[:'notify_owner_on_reg']
374
+ end
375
+
376
+ if attributes.key?(:'online_meeting')
377
+ self.online_meeting = attributes[:'online_meeting']
378
+ end
379
+
380
+ if attributes.key?(:'registration_url')
381
+ self.registration_url = attributes[:'registration_url']
382
+ end
383
+
384
+ if attributes.key?(:'status')
385
+ self.status = attributes[:'status']
386
+ end
387
+
388
+ if attributes.key?(:'time_zone')
389
+ self.time_zone = attributes[:'time_zone']
390
+ else
391
+ self.time_zone = nil
392
+ end
393
+
394
+ if attributes.key?(:'time_zone_abbreviation')
395
+ self.time_zone_abbreviation = attributes[:'time_zone_abbreviation']
396
+ end
397
+ end
398
+
399
+ # Show invalid properties with the reasons. Usually used together with valid?
400
+ # @return Array for valid properties with the reasons
401
+ def list_invalid_properties
402
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
403
+ invalid_properties = Array.new
404
+ if @description.nil?
405
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
406
+ end
407
+
408
+ if @description.to_s.length > 600
409
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 600.')
410
+ end
411
+
412
+ if @description.to_s.length < 0
413
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 0.')
414
+ end
415
+
416
+ if @title.nil?
417
+ invalid_properties.push('invalid value for "title", title cannot be nil.')
418
+ end
419
+
420
+ if @title.to_s.length > 100
421
+ invalid_properties.push('invalid value for "title", the character length must be smaller than or equal to 100.')
422
+ end
423
+
424
+ if @name.nil?
425
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
426
+ end
427
+
428
+ if @name.to_s.length > 100
429
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
430
+ end
431
+
432
+ if @name.to_s.length < 1
433
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
434
+ end
435
+
436
+ if @campaign_id.nil?
437
+ invalid_properties.push('invalid value for "campaign_id", campaign_id cannot be nil.')
438
+ end
439
+
440
+ if @event_start.nil?
441
+ invalid_properties.push('invalid value for "event_start", event_start cannot be nil.')
442
+ end
443
+
444
+ if @event_end.nil?
445
+ invalid_properties.push('invalid value for "event_end", event_end cannot be nil.')
446
+ end
447
+
448
+ if @event_type.nil?
449
+ invalid_properties.push('invalid value for "event_type", event_type cannot be nil.')
450
+ end
451
+
452
+ if @default_track.nil?
453
+ invalid_properties.push('invalid value for "default_track", default_track cannot be nil.')
454
+ end
455
+
456
+ if @location_type.nil?
457
+ invalid_properties.push('invalid value for "location_type", location_type cannot be nil.')
458
+ end
459
+
460
+ if @time_zone.nil?
461
+ invalid_properties.push('invalid value for "time_zone", time_zone cannot be nil.')
462
+ end
463
+
464
+ invalid_properties
465
+ end
466
+
467
+ # Check to see if the all the properties in the model are valid
468
+ # @return true if the model is valid
469
+ def valid?
470
+ warn '[DEPRECATED] the `valid?` method is obsolete'
471
+ return false if @description.nil?
472
+ return false if @description.to_s.length > 600
473
+ return false if @description.to_s.length < 0
474
+ return false if @title.nil?
475
+ return false if @title.to_s.length > 100
476
+ return false if @name.nil?
477
+ return false if @name.to_s.length > 100
478
+ return false if @name.to_s.length < 1
479
+ return false if @campaign_id.nil?
480
+ return false if @event_start.nil?
481
+ return false if @event_end.nil?
482
+ return false if @event_type.nil?
483
+ return false if @default_track.nil?
484
+ return false if @location_type.nil?
485
+ return false if @time_zone.nil?
486
+ true
487
+ end
488
+
489
+ # Custom attribute writer method with validation
490
+ # @param [Object] description Value to be assigned
491
+ def description=(description)
492
+ if description.nil?
493
+ fail ArgumentError, 'description cannot be nil'
494
+ end
495
+
496
+ if description.to_s.length > 600
497
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 600.'
498
+ end
499
+
500
+ if description.to_s.length < 0
501
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 0.'
502
+ end
503
+
504
+ @description = description
505
+ end
506
+
507
+ # Custom attribute writer method with validation
508
+ # @param [Object] title Value to be assigned
509
+ def title=(title)
510
+ if title.nil?
511
+ fail ArgumentError, 'title cannot be nil'
512
+ end
513
+
514
+ if title.to_s.length > 100
515
+ fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 100.'
516
+ end
517
+
518
+ @title = title
519
+ end
520
+
521
+ # Custom attribute writer method with validation
522
+ # @param [Object] name Value to be assigned
523
+ def name=(name)
524
+ if name.nil?
525
+ fail ArgumentError, 'name cannot be nil'
526
+ end
527
+
528
+ if name.to_s.length > 100
529
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
530
+ end
531
+
532
+ if name.to_s.length < 1
533
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
534
+ end
535
+
536
+ @name = name
537
+ end
538
+
539
+ # Checks equality by comparing each attribute.
540
+ # @param [Object] Object to be compared
541
+ def ==(o)
542
+ return true if self.equal?(o)
543
+ self.class == o.class &&
544
+ description == o.description &&
545
+ title == o.title &&
546
+ name == o.name &&
547
+ event_id == o.event_id &&
548
+ campaign_id == o.campaign_id &&
549
+ event_start == o.event_start &&
550
+ event_end == o.event_end &&
551
+ event_type == o.event_type &&
552
+ eso == o.eso &&
553
+ contact == o.contact &&
554
+ create_time == o.create_time &&
555
+ active_time == o.active_time &&
556
+ cancelled_time == o.cancelled_time &&
557
+ deleted_time == o.deleted_time &&
558
+ last_update_time == o.last_update_time &&
559
+ address == o.address &&
560
+ currency_type == o.currency_type &&
561
+ default_track == o.default_track &&
562
+ display_contact_flag == o.display_contact_flag &&
563
+ display_end_time_flag == o.display_end_time_flag &&
564
+ display_on_calendar_flag == o.display_on_calendar_flag &&
565
+ display_time_zone_flag == o.display_time_zone_flag &&
566
+ event_calendar_url == o.event_calendar_url &&
567
+ event_metadata == o.event_metadata &&
568
+ event_code == o.event_code &&
569
+ event_promotions == o.event_promotions &&
570
+ event_settings == o.event_settings &&
571
+ event_widget_url == o.event_widget_url &&
572
+ failed_campaign_activities == o.failed_campaign_activities &&
573
+ location_type == o.location_type &&
574
+ notify_owner_on_reg == o.notify_owner_on_reg &&
575
+ online_meeting == o.online_meeting &&
576
+ registration_url == o.registration_url &&
577
+ status == o.status &&
578
+ time_zone == o.time_zone &&
579
+ time_zone_abbreviation == o.time_zone_abbreviation
580
+ end
581
+
582
+ # @see the `==` method
583
+ # @param [Object] Object to be compared
584
+ def eql?(o)
585
+ self == o
586
+ end
587
+
588
+ # Calculates hash code according to all attributes.
589
+ # @return [Integer] Hash code
590
+ def hash
591
+ [description, title, name, event_id, campaign_id, event_start, event_end, event_type, eso, contact, create_time, active_time, cancelled_time, deleted_time, last_update_time, address, currency_type, default_track, display_contact_flag, display_end_time_flag, display_on_calendar_flag, display_time_zone_flag, event_calendar_url, event_metadata, event_code, event_promotions, event_settings, event_widget_url, failed_campaign_activities, location_type, notify_owner_on_reg, online_meeting, registration_url, status, time_zone, time_zone_abbreviation].hash
592
+ end
593
+
594
+ # Builds the object from hash
595
+ # @param [Hash] attributes Model attributes in the form of hash
596
+ # @return [Object] Returns the model itself
597
+ def self.build_from_hash(attributes)
598
+ return nil unless attributes.is_a?(Hash)
599
+ attributes = attributes.transform_keys(&:to_sym)
600
+ transformed_hash = {}
601
+ openapi_types.each_pair do |key, type|
602
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
603
+ transformed_hash["#{key}"] = nil
604
+ elsif type =~ /\AArray<(.*)>/i
605
+ # check to ensure the input is an array given that the attribute
606
+ # is documented as an array but the input is not
607
+ if attributes[attribute_map[key]].is_a?(Array)
608
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
609
+ end
610
+ elsif !attributes[attribute_map[key]].nil?
611
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
612
+ end
613
+ end
614
+ new(transformed_hash)
615
+ end
616
+
617
+ # Deserializes the data based on type
618
+ # @param string type Data type
619
+ # @param string value Value to be deserialized
620
+ # @return [Object] Deserialized data
621
+ def self._deserialize(type, value)
622
+ case type.to_sym
623
+ when :Time
624
+ Time.parse(value)
625
+ when :Date
626
+ Date.parse(value)
627
+ when :String
628
+ value.to_s
629
+ when :Integer
630
+ value.to_i
631
+ when :Float
632
+ value.to_f
633
+ when :Boolean
634
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
635
+ true
636
+ else
637
+ false
638
+ end
639
+ when :Object
640
+ # generic object (usually a Hash), return directly
641
+ value
642
+ when /\AArray<(?<inner_type>.+)>\z/
643
+ inner_type = Regexp.last_match[:inner_type]
644
+ value.map { |v| _deserialize(inner_type, v) }
645
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
646
+ k_type = Regexp.last_match[:k_type]
647
+ v_type = Regexp.last_match[:v_type]
648
+ {}.tap do |hash|
649
+ value.each do |k, v|
650
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
651
+ end
652
+ end
653
+ else # model
654
+ # models (e.g. Pet) or oneOf
655
+ klass = ConstantContactClient.const_get(type)
656
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
657
+ end
658
+ end
659
+
660
+ # Returns the string representation of the object
661
+ # @return [String] String presentation of the object
662
+ def to_s
663
+ to_hash.to_s
664
+ end
665
+
666
+ # to_body is an alias to to_hash (backward compatibility)
667
+ # @return [Hash] Returns the object in the form of hash
668
+ def to_body
669
+ to_hash
670
+ end
671
+
672
+ # Returns the object in the form of hash
673
+ # @return [Hash] Returns the object in the form of hash
674
+ def to_hash
675
+ hash = {}
676
+ self.class.attribute_map.each_pair do |attr, param|
677
+ value = self.send(attr)
678
+ if value.nil?
679
+ is_nullable = self.class.openapi_nullable.include?(attr)
680
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
681
+ end
682
+
683
+ hash[param] = _to_hash(value)
684
+ end
685
+ hash
686
+ end
687
+
688
+ # Outputs non-array value in the form of hash
689
+ # For object, use to_hash. Otherwise, just return the value
690
+ # @param [Object] value Any valid value
691
+ # @return [Hash] Returns the value in the form of hash
692
+ def _to_hash(value)
693
+ if value.is_a?(Array)
694
+ value.compact.map { |v| _to_hash(v) }
695
+ elsif value.is_a?(Hash)
696
+ {}.tap do |hash|
697
+ value.each { |k, v| hash[k] = _to_hash(v) }
698
+ end
699
+ elsif value.respond_to? :to_hash
700
+ value.to_hash
701
+ else
702
+ value
703
+ end
704
+ end
705
+
706
+ end
707
+
708
+ end