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,86 @@
1
+ # ConstantContactClient::SMSReportingApi
2
+
3
+ All URIs are relative to *https://api.cc.email/v3*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_all_bulk_sms_campaign_summaries**](SMSReportingApi.md#get_all_bulk_sms_campaign_summaries) | **GET** /reports/summary_reports/sms_campaign_summaries | GET an SMS Campaigns Summary Report |
8
+
9
+
10
+ ## get_all_bulk_sms_campaign_summaries
11
+
12
+ > <GetAllBulkSmsCampaignSummaries200Response> get_all_bulk_sms_campaign_summaries(start_at, opts)
13
+
14
+ GET an SMS Campaigns Summary Report
15
+
16
+ Use this method to get SMS campaign summary details, including the total number of times that each contact uniquely interacted with each tracked campaign activity and aggregate tracking statistics. Results are sorted in descending order by the date the SMS was last sent (`last_sent_date`). The `start_at` date is required. Use both the `start_at` and `end_at` date query parameters to return only SMS campaign summary details that occurred within a specified date range. Use the `limit` query parameter to limit the number of results returned per page.
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'constant_contact_client'
23
+ # setup authorization
24
+ ConstantContactClient.configure do |config|
25
+ # Configure OAuth2 access token for authorization: oauth2_access_code
26
+ config.access_token = 'YOUR ACCESS TOKEN'
27
+
28
+ # Configure OAuth2 access token for authorization: oauth2_implicit
29
+ config.access_token = 'YOUR ACCESS TOKEN'
30
+ end
31
+
32
+ api_instance = ConstantContactClient::SMSReportingApi.new
33
+ start_at = '2023-01-27T21:56:37.011Z' # String | Use to limit the results to include SMS campaign summary details for SMS campaigns sent on or after the required `start_at` date you specify. ISO 8601 format.
34
+ opts = {
35
+ limit: '15', # String | Use to limit the number of results to return on a single page (from 1 to 50). The default setting is 50.
36
+ end_at: '2024-01-27T21:56:37.011Z' # String | Use to limit the results to include SMS campaign summary details for SMS campaigns sent on or before the `end_at` date you specify. ISO 8601 format.
37
+ }
38
+
39
+ begin
40
+ # GET an SMS Campaigns Summary Report
41
+ result = api_instance.get_all_bulk_sms_campaign_summaries(start_at, opts)
42
+ p result
43
+ rescue ConstantContactClient::ApiError => e
44
+ puts "Error when calling SMSReportingApi->get_all_bulk_sms_campaign_summaries: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the get_all_bulk_sms_campaign_summaries_with_http_info variant
49
+
50
+ This returns an Array which contains the response data, status code and headers.
51
+
52
+ > <Array(<GetAllBulkSmsCampaignSummaries200Response>, Integer, Hash)> get_all_bulk_sms_campaign_summaries_with_http_info(start_at, opts)
53
+
54
+ ```ruby
55
+ begin
56
+ # GET an SMS Campaigns Summary Report
57
+ data, status_code, headers = api_instance.get_all_bulk_sms_campaign_summaries_with_http_info(start_at, opts)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => <GetAllBulkSmsCampaignSummaries200Response>
61
+ rescue ConstantContactClient::ApiError => e
62
+ puts "Error when calling SMSReportingApi->get_all_bulk_sms_campaign_summaries_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **start_at** | **String** | Use to limit the results to include SMS campaign summary details for SMS campaigns sent on or after the required &#x60;start_at&#x60; date you specify. ISO 8601 format. | |
71
+ | **limit** | **String** | Use to limit the number of results to return on a single page (from 1 to 50). The default setting is 50. | [optional][default to &#39;50&#39;] |
72
+ | **end_at** | **String** | Use to limit the results to include SMS campaign summary details for SMS campaigns sent on or before the &#x60;end_at&#x60; date you specify. ISO 8601 format. | [optional] |
73
+
74
+ ### Return type
75
+
76
+ [**GetAllBulkSmsCampaignSummaries200Response**](GetAllBulkSmsCampaignSummaries200Response.md)
77
+
78
+ ### Authorization
79
+
80
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
81
+
82
+ ### HTTP request headers
83
+
84
+ - **Content-Type**: Not defined
85
+ - **Accept**: application/json
86
+
data/docs/SocialApi.md ADDED
@@ -0,0 +1,302 @@
1
+ # ConstantContactClient::SocialApi
2
+
3
+ All URIs are relative to *https://api.cc.email/v3*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_social_post**](SocialApi.md#create_social_post) | **POST** /social/posts | POST (create) a social media post |
8
+ | [**get_hashtag_groups**](SocialApi.md#get_hashtag_groups) | **GET** /social/hashtags/groups | GET hashtag groups |
9
+ | [**get_social_connections**](SocialApi.md#get_social_connections) | **GET** /social/connections | GET social network connections |
10
+ | [**get_social_profiles**](SocialApi.md#get_social_profiles) | **GET** /social/profiles | GET social media profiles |
11
+
12
+
13
+ ## create_social_post
14
+
15
+ > <CreateSocialPost200Response> create_social_post(create_social_post_request)
16
+
17
+ POST (create) a social media post
18
+
19
+ Creates a new social media post that can be published immediately or scheduled for later publication. A post can target one or more social profiles, and can include text, images, and network-specific settings. Set `status` to `DRAFT` to save without publishing, or `SCHEDULED` to schedule for publication. Scheduled posts require a `scheduled_time` in ISO-8601 format. Post content and settings can vary per profile — each `profile_posts` entry can have its own text, images, and network-specific settings (e.g., TikTok-specific settings like `disable_comment`).
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'constant_contact_client'
26
+ # setup authorization
27
+ ConstantContactClient.configure do |config|
28
+ # Configure OAuth2 access token for authorization: oauth2_access_code
29
+ config.access_token = 'YOUR ACCESS TOKEN'
30
+
31
+ # Configure OAuth2 access token for authorization: oauth2_implicit
32
+ config.access_token = 'YOUR ACCESS TOKEN'
33
+ end
34
+
35
+ api_instance = ConstantContactClient::SocialApi.new
36
+ create_social_post_request = ConstantContactClient::CreateSocialPostRequest.new({profile_posts: [ConstantContactClient::CreateSocialPostRequestProfilePostsInner.new({profiles: [ConstantContactClient::CreateSocialPostRequestProfilePostsInnerProfilesInner.new({profile_id: 'profile_id_example'})]})], status: 'SCHEDULED'}) # CreateSocialPostRequest | The social post content and configuration.
37
+
38
+ begin
39
+ # POST (create) a social media post
40
+ result = api_instance.create_social_post(create_social_post_request)
41
+ p result
42
+ rescue ConstantContactClient::ApiError => e
43
+ puts "Error when calling SocialApi->create_social_post: #{e}"
44
+ end
45
+ ```
46
+
47
+ #### Using the create_social_post_with_http_info variant
48
+
49
+ This returns an Array which contains the response data, status code and headers.
50
+
51
+ > <Array(<CreateSocialPost200Response>, Integer, Hash)> create_social_post_with_http_info(create_social_post_request)
52
+
53
+ ```ruby
54
+ begin
55
+ # POST (create) a social media post
56
+ data, status_code, headers = api_instance.create_social_post_with_http_info(create_social_post_request)
57
+ p status_code # => 2xx
58
+ p headers # => { ... }
59
+ p data # => <CreateSocialPost200Response>
60
+ rescue ConstantContactClient::ApiError => e
61
+ puts "Error when calling SocialApi->create_social_post_with_http_info: #{e}"
62
+ end
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ | Name | Type | Description | Notes |
68
+ | ---- | ---- | ----------- | ----- |
69
+ | **create_social_post_request** | [**CreateSocialPostRequest**](CreateSocialPostRequest.md) | The social post content and configuration. | |
70
+
71
+ ### Return type
72
+
73
+ [**CreateSocialPost200Response**](CreateSocialPost200Response.md)
74
+
75
+ ### Authorization
76
+
77
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
78
+
79
+ ### HTTP request headers
80
+
81
+ - **Content-Type**: application/json
82
+ - **Accept**: application/json
83
+
84
+
85
+ ## get_hashtag_groups
86
+
87
+ > <GetHashtagGroups200Response> get_hashtag_groups(opts)
88
+
89
+ GET hashtag groups
90
+
91
+ Retrieves a paginated list of saved hashtag groups for the account. Hashtag groups allow users to save and organize reusable collections of hashtags that can be applied to social posts. Use the `limit` and `page` query parameters to paginate through results. Navigate to the next page using the `_links.next` link in the response.
92
+
93
+ ### Examples
94
+
95
+ ```ruby
96
+ require 'time'
97
+ require 'constant_contact_client'
98
+ # setup authorization
99
+ ConstantContactClient.configure do |config|
100
+ # Configure OAuth2 access token for authorization: oauth2_access_code
101
+ config.access_token = 'YOUR ACCESS TOKEN'
102
+
103
+ # Configure OAuth2 access token for authorization: oauth2_implicit
104
+ config.access_token = 'YOUR ACCESS TOKEN'
105
+ end
106
+
107
+ api_instance = ConstantContactClient::SocialApi.new
108
+ opts = {
109
+ limit: 5, # Integer | Maximum number of hashtag groups to retrieve per page. Default and maximum is `5`.
110
+ page: 0 # Integer | Page number to retrieve (0-based).
111
+ }
112
+
113
+ begin
114
+ # GET hashtag groups
115
+ result = api_instance.get_hashtag_groups(opts)
116
+ p result
117
+ rescue ConstantContactClient::ApiError => e
118
+ puts "Error when calling SocialApi->get_hashtag_groups: #{e}"
119
+ end
120
+ ```
121
+
122
+ #### Using the get_hashtag_groups_with_http_info variant
123
+
124
+ This returns an Array which contains the response data, status code and headers.
125
+
126
+ > <Array(<GetHashtagGroups200Response>, Integer, Hash)> get_hashtag_groups_with_http_info(opts)
127
+
128
+ ```ruby
129
+ begin
130
+ # GET hashtag groups
131
+ data, status_code, headers = api_instance.get_hashtag_groups_with_http_info(opts)
132
+ p status_code # => 2xx
133
+ p headers # => { ... }
134
+ p data # => <GetHashtagGroups200Response>
135
+ rescue ConstantContactClient::ApiError => e
136
+ puts "Error when calling SocialApi->get_hashtag_groups_with_http_info: #{e}"
137
+ end
138
+ ```
139
+
140
+ ### Parameters
141
+
142
+ | Name | Type | Description | Notes |
143
+ | ---- | ---- | ----------- | ----- |
144
+ | **limit** | **Integer** | Maximum number of hashtag groups to retrieve per page. Default and maximum is &#x60;5&#x60;. | [optional][default to 5] |
145
+ | **page** | **Integer** | Page number to retrieve (0-based). | [optional][default to 0] |
146
+
147
+ ### Return type
148
+
149
+ [**GetHashtagGroups200Response**](GetHashtagGroups200Response.md)
150
+
151
+ ### Authorization
152
+
153
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: Not defined
158
+ - **Accept**: application/json
159
+
160
+
161
+ ## get_social_connections
162
+
163
+ > <GetSocialConnections200Response> get_social_connections
164
+
165
+ GET social network connections
166
+
167
+ Retrieves all social network accounts connected to the Constant Contact account, with support for multiple accounts per social network. A connection represents the authorization link between a Constant Contact account and a single account on a social network (Facebook, Instagram, LinkedIn, TikTok, etc.). Each connection includes account information about the connected user on that network (display name, username, image, etc.) and the current status of the connection (whether it's active, rate-limited, or has any errors). Note that a single connection may have multiple profiles (pages) associated with it — use `GET /social/profiles` to retrieve the individual profiles.
168
+
169
+ ### Examples
170
+
171
+ ```ruby
172
+ require 'time'
173
+ require 'constant_contact_client'
174
+ # setup authorization
175
+ ConstantContactClient.configure do |config|
176
+ # Configure OAuth2 access token for authorization: oauth2_access_code
177
+ config.access_token = 'YOUR ACCESS TOKEN'
178
+
179
+ # Configure OAuth2 access token for authorization: oauth2_implicit
180
+ config.access_token = 'YOUR ACCESS TOKEN'
181
+ end
182
+
183
+ api_instance = ConstantContactClient::SocialApi.new
184
+
185
+ begin
186
+ # GET social network connections
187
+ result = api_instance.get_social_connections
188
+ p result
189
+ rescue ConstantContactClient::ApiError => e
190
+ puts "Error when calling SocialApi->get_social_connections: #{e}"
191
+ end
192
+ ```
193
+
194
+ #### Using the get_social_connections_with_http_info variant
195
+
196
+ This returns an Array which contains the response data, status code and headers.
197
+
198
+ > <Array(<GetSocialConnections200Response>, Integer, Hash)> get_social_connections_with_http_info
199
+
200
+ ```ruby
201
+ begin
202
+ # GET social network connections
203
+ data, status_code, headers = api_instance.get_social_connections_with_http_info
204
+ p status_code # => 2xx
205
+ p headers # => { ... }
206
+ p data # => <GetSocialConnections200Response>
207
+ rescue ConstantContactClient::ApiError => e
208
+ puts "Error when calling SocialApi->get_social_connections_with_http_info: #{e}"
209
+ end
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+ This endpoint does not need any parameter.
215
+
216
+ ### Return type
217
+
218
+ [**GetSocialConnections200Response**](GetSocialConnections200Response.md)
219
+
220
+ ### Authorization
221
+
222
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
223
+
224
+ ### HTTP request headers
225
+
226
+ - **Content-Type**: Not defined
227
+ - **Accept**: application/json
228
+
229
+
230
+ ## get_social_profiles
231
+
232
+ > <Array<GetSocialProfiles200ResponseInner>> get_social_profiles(opts)
233
+
234
+ GET social media profiles
235
+
236
+ Retrieves all social media profiles connected to the account. A profile represents a single account on a social network (such as a Facebook Business Page, a LinkedIn Company Page, or an Instagram Business account) that the user has connected to Constant Contact. Use the `include=accessible` query parameter to additionally check whether each profile is currently accessible for posting. Profiles that are not currently accessible will fail if used to publish a post.
237
+
238
+ ### Examples
239
+
240
+ ```ruby
241
+ require 'time'
242
+ require 'constant_contact_client'
243
+ # setup authorization
244
+ ConstantContactClient.configure do |config|
245
+ # Configure OAuth2 access token for authorization: oauth2_access_code
246
+ config.access_token = 'YOUR ACCESS TOKEN'
247
+
248
+ # Configure OAuth2 access token for authorization: oauth2_implicit
249
+ config.access_token = 'YOUR ACCESS TOKEN'
250
+ end
251
+
252
+ api_instance = ConstantContactClient::SocialApi.new
253
+ opts = {
254
+ include: ['inner_example'] # Array<String> | Optional sub-resources to include. Use `accessible` to check if profiles are accessible on the network.
255
+ }
256
+
257
+ begin
258
+ # GET social media profiles
259
+ result = api_instance.get_social_profiles(opts)
260
+ p result
261
+ rescue ConstantContactClient::ApiError => e
262
+ puts "Error when calling SocialApi->get_social_profiles: #{e}"
263
+ end
264
+ ```
265
+
266
+ #### Using the get_social_profiles_with_http_info variant
267
+
268
+ This returns an Array which contains the response data, status code and headers.
269
+
270
+ > <Array(<Array<GetSocialProfiles200ResponseInner>>, Integer, Hash)> get_social_profiles_with_http_info(opts)
271
+
272
+ ```ruby
273
+ begin
274
+ # GET social media profiles
275
+ data, status_code, headers = api_instance.get_social_profiles_with_http_info(opts)
276
+ p status_code # => 2xx
277
+ p headers # => { ... }
278
+ p data # => <Array<GetSocialProfiles200ResponseInner>>
279
+ rescue ConstantContactClient::ApiError => e
280
+ puts "Error when calling SocialApi->get_social_profiles_with_http_info: #{e}"
281
+ end
282
+ ```
283
+
284
+ ### Parameters
285
+
286
+ | Name | Type | Description | Notes |
287
+ | ---- | ---- | ----------- | ----- |
288
+ | **include** | [**Array&lt;String&gt;**](String.md) | Optional sub-resources to include. Use &#x60;accessible&#x60; to check if profiles are accessible on the network. | [optional] |
289
+
290
+ ### Return type
291
+
292
+ [**Array&lt;GetSocialProfiles200ResponseInner&gt;**](GetSocialProfiles200ResponseInner.md)
293
+
294
+ ### Authorization
295
+
296
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
297
+
298
+ ### HTTP request headers
299
+
300
+ - **Content-Type**: Not defined
301
+ - **Accept**: application/json
302
+
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Constant Contact API v3
3
3
 
4
- #Swagger build version 3.0.2475
4
+ #Swagger build version 3.0.161
5
5
 
6
- The version of the OpenAPI document: 1.0.109
6
+ The version of the OpenAPI document: 1.0.220
7
7
  Contact: webservices@constantcontact.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -89,7 +89,7 @@ module ConstantContactClient
89
89
 
90
90
  # POST the Physical Address for the Account
91
91
  # Use this method to add the address where the account's organization physically resides. The physical address is required to send emails and displays on the footer of every email that is sent from the account. The country (<code>country_code</code>) where the account organization resides determines whether you use the <code>state_code</code> to specify United States (<code>US</code>) and Canada (<code>CA</code>) addresses, or use the <code>state_name</code> to specify all other countries.
92
- # @param get_account_details200_response_physical_address [GetAccountDetails200ResponsePhysicalAddress] Include all &#x60;AccountPhysicalAddress&#x60; properties required for the specified &#x60;country_code&#x60; and then update only those properties that you want to change. Excluding a non-read only field from the request body removes it from the physical address.
92
+ # @param get_account_details200_response_physical_address [GetAccountDetails200ResponsePhysicalAddress] Include all &#x60;AccountPhysicalAddress&#x60; properties required for the specified &#x60;country_code&#x60;. If a required property is not included or incorrectly formatted, a 400 error message is returned. If the address already exists, a 409 error message is returned.
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @return [GetAccountDetails200ResponsePhysicalAddress]
95
95
  def add_physical_address(get_account_details200_response_physical_address, opts = {})
@@ -99,7 +99,7 @@ module ConstantContactClient
99
99
 
100
100
  # POST the Physical Address for the Account
101
101
  # Use this method to add the address where the account&#39;s organization physically resides. The physical address is required to send emails and displays on the footer of every email that is sent from the account. The country (&lt;code&gt;country_code&lt;/code&gt;) where the account organization resides determines whether you use the &lt;code&gt;state_code&lt;/code&gt; to specify United States (&lt;code&gt;US&lt;/code&gt;) and Canada (&lt;code&gt;CA&lt;/code&gt;) addresses, or use the &lt;code&gt;state_name&lt;/code&gt; to specify all other countries.
102
- # @param get_account_details200_response_physical_address [GetAccountDetails200ResponsePhysicalAddress] Include all &#x60;AccountPhysicalAddress&#x60; properties required for the specified &#x60;country_code&#x60; and then update only those properties that you want to change. Excluding a non-read only field from the request body removes it from the physical address.
102
+ # @param get_account_details200_response_physical_address [GetAccountDetails200ResponsePhysicalAddress] Include all &#x60;AccountPhysicalAddress&#x60; properties required for the specified &#x60;country_code&#x60;. If a required property is not included or incorrectly formatted, a 400 error message is returned. If the address already exists, a 409 error message is returned.
103
103
  # @param [Hash] opts the optional parameters
104
104
  # @return [Array<(GetAccountDetails200ResponsePhysicalAddress, Integer, Hash)>] GetAccountDetails200ResponsePhysicalAddress data, response status code and response headers
105
105
  def add_physical_address_with_http_info(get_account_details200_response_physical_address, opts = {})
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Constant Contact API v3
3
3
 
4
- #Swagger build version 3.0.2475
4
+ #Swagger build version 3.0.161
5
5
 
6
- The version of the OpenAPI document: 1.0.109
6
+ The version of the OpenAPI document: 1.0.220
7
7
  Contact: webservices@constantcontact.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -20,10 +20,11 @@ module ConstantContactClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Import Contacts using a CSV File
23
- # This multipart method creates an asynchronous background job that adds or updates contacts by importing a CSV file containing contact information. Do not use a Content-Type header value with this method. Importing a new contact automatically sets the contact's `permission_to_send` property as `implicit` and the `opt_in_source` property as `Account`. Importing an existing contact only updates the contact properties you include in the request. The CSV file has a maximum of 40,000 lines including the header row (39,999 contacts) and a maximum file size of 4 megabytes (MB). Lines above the 40,000 line maximum are not processed. If the request body exceeds 4 MB, only the contacts contained in the first 4 MB are imported and the remaining data is dropped.
24
- # @param file [File] The CSV file you are importing. The column headings that you can use in the file are: &#x60;first_name&#x60;, &#x60;last_name&#x60;, &#x60;email&#x60;, &#x60;phone&#x60;, &#x60;job_title&#x60;, &#x60;anniversary&#x60;, &#x60;birthday_day&#x60;, &#x60;birthday_month&#x60;, &#x60;company_name&#x60;, &#x60;street&#x60;, &#x60;street2&#x60;, &#x60;city&#x60;, &#x60;state&#x60;, &#x60;zip&#x60;, and &#x60;country&#x60;. The only required column heading is &#x60;email&#x60;. You can also use custom fields as column headings. Enter the custom field name prefixed with &#x60;cf:&#x60; as the column heading. For example, use &#x60;cf:first_name&#x60; as the header name if you have a custom field named \\\&quot;first_name\\\&quot;. The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
25
- # @param list_ids [Array<String>] Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact &#x60;list_id&#x60; values.
23
+ # This multipart method creates an asynchronous background job that adds or updates contacts by importing a CSV file containing contact information. Do not use a Content-Type header value with this method. Importing a new contact email address automatically sets the contact's `permission_to_send` property as `implicit` and the `opt_in_source` property as `Account`. Importing an existing contact only updates the contact properties you include in the request. Importing contacts with `sms_number`s requires using the `sms_permission_to_send` parameter to specify permissions for all contacts being imported. Set to `explicit` to specify that all contacts either provided explicit permission. Set to `not_set` if permission was not provided. If `explicit`, you must also include the `sms_consent_date` as a column header to include the date the contact consented to receiving SMS messages. Contacts must have either an email address or an SMS number defined. The CSV file has a maximum of 40,000 lines including the header row (39,999 contacts) and a maximum file size of 4 megabytes (MB). Lines above the 40,000 line maximum are not processed. If the request body exceeds 4 MB, only the contacts contained in the first 4 MB are imported and the remaining data is dropped.
24
+ # @param file [File] The CSV file you are importing must include either &#x60;email&#x60; or &#x60;sms_number&#x60; as a column heading. Other properties you can include using column headings are: &#x60;first_name&#x60;. &#x60;last_name&#x60;, &#x60;phone&#x60;, &#x60;job_title&#x60;, &#x60;anniversary&#x60;, &#x60;birthday_day&#x60;, &#x60;birthday_month&#x60;, &#x60;company_name&#x60;, &#x60;street&#x60;, &#x60;street2&#x60;, &#x60;city&#x60;, &#x60;state&#x60;, &#x60;zip&#x60;, &#x60;country&#x60;, and &#x60;sms_consent_date&#x60;. If adding an &#x60;sms_number&#x60;, you must also include the &#x60;sms_permission_to_send&#x60; parameter and set it to either &#x60;not_set&#x60; or &#x60;explicit&#x60;. If &#x60;explicit&#x60;, requires including &#x60;sms_consent_date&#x60; as a column header to specify the date the contact consented to receiving SMS messages. You can also use custom fields as column headings. Enter the custom field name prefixed with &#x60;cf:&#x60; as the column heading. For example, use &#x60;cf:first_name&#x60; as the header name if you have a custom field named \\\&quot;first_name\\\&quot;. The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
25
+ # @param list_ids [String] Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact &#x60;list_id&#x60; values.
26
26
  # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :sms_permission_to_send If importing contact &#x60;sms_number&#x60;s, use this parameter to specify how SMS consent was provided. If all contacts in the file provided their consent, set to &#x60;explicit&#x60; and include each contact&#39;s &#x60;sms_consent_date&#x60;. If all contacts in the file have not yet provided consent, set to &#x60;not_set&#x60; (&#x60;sms_consent_date&#x60; is not required). You cannot message a contact that does not have a sms consent date set.
27
28
  # @return [CreateCSVImportActivity201Response]
28
29
  def create_csv_import_activity(file, list_ids, opts = {})
29
30
  data, _status_code, _headers = create_csv_import_activity_with_http_info(file, list_ids, opts)
@@ -31,10 +32,11 @@ module ConstantContactClient
31
32
  end
32
33
 
33
34
  # Import Contacts using a CSV File
34
- # This multipart method creates an asynchronous background job that adds or updates contacts by importing a CSV file containing contact information. Do not use a Content-Type header value with this method. Importing a new contact automatically sets the contact&#39;s &#x60;permission_to_send&#x60; property as &#x60;implicit&#x60; and the &#x60;opt_in_source&#x60; property as &#x60;Account&#x60;. Importing an existing contact only updates the contact properties you include in the request. The CSV file has a maximum of 40,000 lines including the header row (39,999 contacts) and a maximum file size of 4 megabytes (MB). Lines above the 40,000 line maximum are not processed. If the request body exceeds 4 MB, only the contacts contained in the first 4 MB are imported and the remaining data is dropped.
35
- # @param file [File] The CSV file you are importing. The column headings that you can use in the file are: &#x60;first_name&#x60;, &#x60;last_name&#x60;, &#x60;email&#x60;, &#x60;phone&#x60;, &#x60;job_title&#x60;, &#x60;anniversary&#x60;, &#x60;birthday_day&#x60;, &#x60;birthday_month&#x60;, &#x60;company_name&#x60;, &#x60;street&#x60;, &#x60;street2&#x60;, &#x60;city&#x60;, &#x60;state&#x60;, &#x60;zip&#x60;, and &#x60;country&#x60;. The only required column heading is &#x60;email&#x60;. You can also use custom fields as column headings. Enter the custom field name prefixed with &#x60;cf:&#x60; as the column heading. For example, use &#x60;cf:first_name&#x60; as the header name if you have a custom field named \\\&quot;first_name\\\&quot;. The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
36
- # @param list_ids [Array<String>] Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact &#x60;list_id&#x60; values.
35
+ # This multipart method creates an asynchronous background job that adds or updates contacts by importing a CSV file containing contact information. Do not use a Content-Type header value with this method. Importing a new contact email address automatically sets the contact&#39;s &#x60;permission_to_send&#x60; property as &#x60;implicit&#x60; and the &#x60;opt_in_source&#x60; property as &#x60;Account&#x60;. Importing an existing contact only updates the contact properties you include in the request. Importing contacts with &#x60;sms_number&#x60;s requires using the &#x60;sms_permission_to_send&#x60; parameter to specify permissions for all contacts being imported. Set to &#x60;explicit&#x60; to specify that all contacts either provided explicit permission. Set to &#x60;not_set&#x60; if permission was not provided. If &#x60;explicit&#x60;, you must also include the &#x60;sms_consent_date&#x60; as a column header to include the date the contact consented to receiving SMS messages. Contacts must have either an email address or an SMS number defined. The CSV file has a maximum of 40,000 lines including the header row (39,999 contacts) and a maximum file size of 4 megabytes (MB). Lines above the 40,000 line maximum are not processed. If the request body exceeds 4 MB, only the contacts contained in the first 4 MB are imported and the remaining data is dropped.
36
+ # @param file [File] The CSV file you are importing must include either &#x60;email&#x60; or &#x60;sms_number&#x60; as a column heading. Other properties you can include using column headings are: &#x60;first_name&#x60;. &#x60;last_name&#x60;, &#x60;phone&#x60;, &#x60;job_title&#x60;, &#x60;anniversary&#x60;, &#x60;birthday_day&#x60;, &#x60;birthday_month&#x60;, &#x60;company_name&#x60;, &#x60;street&#x60;, &#x60;street2&#x60;, &#x60;city&#x60;, &#x60;state&#x60;, &#x60;zip&#x60;, &#x60;country&#x60;, and &#x60;sms_consent_date&#x60;. If adding an &#x60;sms_number&#x60;, you must also include the &#x60;sms_permission_to_send&#x60; parameter and set it to either &#x60;not_set&#x60; or &#x60;explicit&#x60;. If &#x60;explicit&#x60;, requires including &#x60;sms_consent_date&#x60; as a column header to specify the date the contact consented to receiving SMS messages. You can also use custom fields as column headings. Enter the custom field name prefixed with &#x60;cf:&#x60; as the column heading. For example, use &#x60;cf:first_name&#x60; as the header name if you have a custom field named \\\&quot;first_name\\\&quot;. The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
37
+ # @param list_ids [String] Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact &#x60;list_id&#x60; values.
37
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :sms_permission_to_send If importing contact &#x60;sms_number&#x60;s, use this parameter to specify how SMS consent was provided. If all contacts in the file provided their consent, set to &#x60;explicit&#x60; and include each contact&#39;s &#x60;sms_consent_date&#x60;. If all contacts in the file have not yet provided consent, set to &#x60;not_set&#x60; (&#x60;sms_consent_date&#x60; is not required). You cannot message a contact that does not have a sms consent date set.
38
40
  # @return [Array<(CreateCSVImportActivity201Response, Integer, Hash)>] CreateCSVImportActivity201Response data, response status code and response headers
39
41
  def create_csv_import_activity_with_http_info(file, list_ids, opts = {})
40
42
  if @api_client.config.debugging
@@ -48,10 +50,10 @@ module ConstantContactClient
48
50
  if @api_client.config.client_side_validation && list_ids.nil?
49
51
  fail ArgumentError, "Missing the required parameter 'list_ids' when calling BulkActivitiesApi.create_csv_import_activity"
50
52
  end
51
- if @api_client.config.client_side_validation && list_ids.length > 50
52
- fail ArgumentError, 'invalid value for "list_ids" when calling BulkActivitiesApi.create_csv_import_activity, number of items must be less than or equal to 50.'
53
+ allowable_values = ["not_set", "explicit"]
54
+ if @api_client.config.client_side_validation && opts[:'sms_permission_to_send'] && !allowable_values.include?(opts[:'sms_permission_to_send'])
55
+ fail ArgumentError, "invalid value for \"sms_permission_to_send\", must be one of #{allowable_values}"
53
56
  end
54
-
55
57
  # resource path
56
58
  local_var_path = '/activities/contacts_file_import'
57
59
 
@@ -71,7 +73,8 @@ module ConstantContactClient
71
73
  # form parameters
72
74
  form_params = opts[:form_params] || {}
73
75
  form_params['file'] = file
74
- form_params['list_ids'] = @api_client.build_collection_param(list_ids, :csv)
76
+ form_params['list_ids'] = list_ids
77
+ form_params['sms_permission_to_send'] = opts[:'sms_permission_to_send'] if !opts[:'sms_permission_to_send'].nil?
75
78
 
76
79
  # http body (model)
77
80
  post_body = opts[:debug_body]
@@ -168,7 +171,7 @@ module ConstantContactClient
168
171
  end
169
172
 
170
173
  # Export Contacts to a File
171
- # Use this method to create an activity that exports contacts and contact details to a CSV file. By default, all contacts are exported. To filter contacts to export, specify the source to use, `contact_id`, `list_id`, or `segment_id` (all mutually exclusive). By default, all contact related fields are exported. Use the fields array to only export specific contact fields. You must export `email_address` to successfully export `email_optin_source`, `email_optin_date`, `email_optout_source`, `email_optout_date`, or `email_optout_reason`. After Constant Contact finishes processing the activity, use the `results` link in the response body to retrieve the CSV file.
174
+ # Use this method to create an activity that exports contacts and contact details to a CSV file. You can choose to export all contacts in your account (default) or you can use parameters to filter on which contacts to export. After Constant Contact finishes processing the activity, use the `results` link in the response body to retrieve the CSV file.
172
175
  # @param create_export_activity_request [CreateExportActivityRequest] A JSON payload that specifies the contacts (rows in the CSV file) and contact properties (columns in the CSV file) you want to export.
173
176
  # @param [Hash] opts the optional parameters
174
177
  # @return [CreateExportActivity201Response]
@@ -178,7 +181,7 @@ module ConstantContactClient
178
181
  end
179
182
 
180
183
  # Export Contacts to a File
181
- # Use this method to create an activity that exports contacts and contact details to a CSV file. By default, all contacts are exported. To filter contacts to export, specify the source to use, &#x60;contact_id&#x60;, &#x60;list_id&#x60;, or &#x60;segment_id&#x60; (all mutually exclusive). By default, all contact related fields are exported. Use the fields array to only export specific contact fields. You must export &#x60;email_address&#x60; to successfully export &#x60;email_optin_source&#x60;, &#x60;email_optin_date&#x60;, &#x60;email_optout_source&#x60;, &#x60;email_optout_date&#x60;, or &#x60;email_optout_reason&#x60;. After Constant Contact finishes processing the activity, use the &#x60;results&#x60; link in the response body to retrieve the CSV file.
184
+ # Use this method to create an activity that exports contacts and contact details to a CSV file. You can choose to export all contacts in your account (default) or you can use parameters to filter on which contacts to export. After Constant Contact finishes processing the activity, use the &#x60;results&#x60; link in the response body to retrieve the CSV file.
182
185
  # @param create_export_activity_request [CreateExportActivityRequest] A JSON payload that specifies the contacts (rows in the CSV file) and contact properties (columns in the CSV file) you want to export.
183
186
  # @param [Hash] opts the optional parameters
184
187
  # @return [Array<(CreateExportActivity201Response, Integer, Hash)>] CreateExportActivity201Response data, response status code and response headers
@@ -236,7 +239,7 @@ module ConstantContactClient
236
239
  end
237
240
 
238
241
  # Import Contacts using a JSON Payload
239
- # Use this method to create an asynchronous background job that adds new contacts or updates existing contacts by importing a JSON payload. This method requires a request body that contains the contact data you are importing and the contact lists to which you want to add the imported contacts. Importing a new contact automatically sets the contact's `permission_to_send` property as `implicit` and the `opt_in_source` property as `Account`. Importing an existing contact only updates the contact properties you include in the request. For each contact, you can import up to three addresses and three phone numbers. International phone numbers are currently not supported. To import custom fields, prefix the custom field name with `cf:` and add it as a contact property. For example, use the property name `cf:first_name` if you have a custom field named first_name. The custom field must already exist in the Constant Contact account you are using. Each contact can contain up to 25 custom fields. The request body payload has a maximum size of 4 megabytes (MB). If the request body exceeds 4 MB, this method only imports the first 4 MB and drops the remaining data. Use the activity URL to check the status of the import activity request.
242
+ # Use this method to create an asynchronous background job that adds new contacts or updates existing contacts by importing a JSON payload. This method requires a request body that contains the contact data you are importing and the contact lists to which you want to add the imported contacts. A contact's data must include an `email` address and/or `sms_number`. The `sms_number` must be a US phone number to associate with the contact's SMS-enabled phone. Valid formats are <code>1231231234</code> or <code>123-123-1234</code> (the country code must be valid). Importing a new contact using this method automatically sets the contact's email `permission_to_send` property to `implicit` and the `opt_in_source` property as `Account`. Importing an existing contact only updates the contact properties you include in the request. For each contact, you can import up to three addresses and three phone numbers. International phone numbers are currently not supported. To import custom fields, prefix the custom field name with `cf:` and add it as a contact property. For example, use the property name `cf:first_name` if you have a custom field named `first_name`. The custom field must already exist in the Constant Contact account you are using. Each contact can contain up to 25 custom fields. To include a contact's `sms_number`, if the contact provided explicit permission to receive SMS messages, you must set the `sms_permission_to_send` property to `explicit` and specify the date of consent using the `sms_consent_date` column header. If explicit permission was not provided, set `sms_permission_to_send` to `not_set` (the `sms_consent_date` is not required). If the `sms_consent_date` is not set, SMS messages cannot be sent to contacts and `sms_permission_to_send` defaults to `not_set`. Valid value formats for `sms_consent_date` include MM/DD/YYYY, M/D/YYYY, YYYY/MM/DD, YYYY/M/D, YYYY-MM-DD, YYYY-M-D,M-D-YYYY, or M-DD-YYYY. The request body payload has a maximum size of 4 megabytes (MB). If the request body exceeds 4 MB, this method only imports the first 4 MB and drops the remaining data. Use the activity URL to check the status of the import activity request.
240
243
  # @param create_import_json_activity_request [CreateImportJSONActivityRequest] The JSON request payload that contains the contact data and contact lists for the import.
241
244
  # @param [Hash] opts the optional parameters
242
245
  # @return [CreateCSVImportActivity201Response]
@@ -246,7 +249,7 @@ module ConstantContactClient
246
249
  end
247
250
 
248
251
  # Import Contacts using a JSON Payload
249
- # Use this method to create an asynchronous background job that adds new contacts or updates existing contacts by importing a JSON payload. This method requires a request body that contains the contact data you are importing and the contact lists to which you want to add the imported contacts. Importing a new contact automatically sets the contact&#39;s &#x60;permission_to_send&#x60; property as &#x60;implicit&#x60; and the &#x60;opt_in_source&#x60; property as &#x60;Account&#x60;. Importing an existing contact only updates the contact properties you include in the request. For each contact, you can import up to three addresses and three phone numbers. International phone numbers are currently not supported. To import custom fields, prefix the custom field name with &#x60;cf:&#x60; and add it as a contact property. For example, use the property name &#x60;cf:first_name&#x60; if you have a custom field named first_name. The custom field must already exist in the Constant Contact account you are using. Each contact can contain up to 25 custom fields. The request body payload has a maximum size of 4 megabytes (MB). If the request body exceeds 4 MB, this method only imports the first 4 MB and drops the remaining data. Use the activity URL to check the status of the import activity request.
252
+ # Use this method to create an asynchronous background job that adds new contacts or updates existing contacts by importing a JSON payload. This method requires a request body that contains the contact data you are importing and the contact lists to which you want to add the imported contacts. A contact&#39;s data must include an &#x60;email&#x60; address and/or &#x60;sms_number&#x60;. The &#x60;sms_number&#x60; must be a US phone number to associate with the contact&#39;s SMS-enabled phone. Valid formats are &lt;code&gt;1231231234&lt;/code&gt; or &lt;code&gt;123-123-1234&lt;/code&gt; (the country code must be valid). Importing a new contact using this method automatically sets the contact&#39;s email &#x60;permission_to_send&#x60; property to &#x60;implicit&#x60; and the &#x60;opt_in_source&#x60; property as &#x60;Account&#x60;. Importing an existing contact only updates the contact properties you include in the request. For each contact, you can import up to three addresses and three phone numbers. International phone numbers are currently not supported. To import custom fields, prefix the custom field name with &#x60;cf:&#x60; and add it as a contact property. For example, use the property name &#x60;cf:first_name&#x60; if you have a custom field named &#x60;first_name&#x60;. The custom field must already exist in the Constant Contact account you are using. Each contact can contain up to 25 custom fields. To include a contact&#39;s &#x60;sms_number&#x60;, if the contact provided explicit permission to receive SMS messages, you must set the &#x60;sms_permission_to_send&#x60; property to &#x60;explicit&#x60; and specify the date of consent using the &#x60;sms_consent_date&#x60; column header. If explicit permission was not provided, set &#x60;sms_permission_to_send&#x60; to &#x60;not_set&#x60; (the &#x60;sms_consent_date&#x60; is not required). If the &#x60;sms_consent_date&#x60; is not set, SMS messages cannot be sent to contacts and &#x60;sms_permission_to_send&#x60; defaults to &#x60;not_set&#x60;. Valid value formats for &#x60;sms_consent_date&#x60; include MM/DD/YYYY, M/D/YYYY, YYYY/MM/DD, YYYY/M/D, YYYY-MM-DD, YYYY-M-D,M-D-YYYY, or M-DD-YYYY. The request body payload has a maximum size of 4 megabytes (MB). If the request body exceeds 4 MB, this method only imports the first 4 MB and drops the remaining data. Use the activity URL to check the status of the import activity request.
250
253
  # @param create_import_json_activity_request [CreateImportJSONActivityRequest] The JSON request payload that contains the contact data and contact lists for the import.
251
254
  # @param [Hash] opts the optional parameters
252
255
  # @return [Array<(CreateCSVImportActivity201Response, Integer, Hash)>] CreateCSVImportActivity201Response data, response status code and response headers
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Constant Contact API v3
3
3
 
4
- #Swagger build version 3.0.2475
4
+ #Swagger build version 3.0.161
5
5
 
6
- The version of the OpenAPI document: 1.0.109
6
+ The version of the OpenAPI document: 1.0.220
7
7
  Contact: webservices@constantcontact.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -158,6 +158,8 @@ module ConstantContactClient
158
158
  # @option opts [String] :include_membership_count Use to include the total number of contacts per list. Set to &#x60;active&#x60;, to count only active (mailable) contacts, or &#x60;all&#x60; to count all contacts.
159
159
  # @option opts [String] :name Use to get details for a single list by entering the full name of the list.
160
160
  # @option opts [String] :status Use to get lists by status. Accepts comma-separated status values.
161
+ # @option opts [String] :channel_type Use to return lists by channel type. The default value is &#x60;email&#x60;.
162
+ # @option opts [Boolean] :include_sms_membership_count Set to &#x60;true&#x60; to return the total number of SMS members in each list. Only applicable when &#x60;channel_type&#x60; is &#x60;sms&#x60;. Default is &#x60;false&#x60;.
161
163
  # @return [GetAllLists200Response]
162
164
  def get_all_lists(opts = {})
163
165
  data, _status_code, _headers = get_all_lists_with_http_info(opts)
@@ -172,6 +174,8 @@ module ConstantContactClient
172
174
  # @option opts [String] :include_membership_count Use to include the total number of contacts per list. Set to &#x60;active&#x60;, to count only active (mailable) contacts, or &#x60;all&#x60; to count all contacts.
173
175
  # @option opts [String] :name Use to get details for a single list by entering the full name of the list.
174
176
  # @option opts [String] :status Use to get lists by status. Accepts comma-separated status values.
177
+ # @option opts [String] :channel_type Use to return lists by channel type. The default value is &#x60;email&#x60;.
178
+ # @option opts [Boolean] :include_sms_membership_count Set to &#x60;true&#x60; to return the total number of SMS members in each list. Only applicable when &#x60;channel_type&#x60; is &#x60;sms&#x60;. Default is &#x60;false&#x60;.
175
179
  # @return [Array<(GetAllLists200Response, Integer, Hash)>] GetAllLists200Response data, response status code and response headers
176
180
  def get_all_lists_with_http_info(opts = {})
177
181
  if @api_client.config.debugging
@@ -193,6 +197,10 @@ module ConstantContactClient
193
197
  if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
194
198
  fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
195
199
  end
200
+ allowable_values = ["email", "sms"]
201
+ if @api_client.config.client_side_validation && opts[:'channel_type'] && !allowable_values.include?(opts[:'channel_type'])
202
+ fail ArgumentError, "invalid value for \"channel_type\", must be one of #{allowable_values}"
203
+ end
196
204
  # resource path
197
205
  local_var_path = '/contact_lists'
198
206
 
@@ -203,6 +211,8 @@ module ConstantContactClient
203
211
  query_params[:'include_membership_count'] = opts[:'include_membership_count'] if !opts[:'include_membership_count'].nil?
204
212
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
205
213
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
214
+ query_params[:'channel_type'] = opts[:'channel_type'] if !opts[:'channel_type'].nil?
215
+ query_params[:'include_sms_membership_count'] = opts[:'include_sms_membership_count'] if !opts[:'include_sms_membership_count'].nil?
206
216
 
207
217
  # header parameters
208
218
  header_params = opts[:header_params] || {}
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Constant Contact API v3
3
3
 
4
- #Swagger build version 3.0.2475
4
+ #Swagger build version 3.0.161
5
5
 
6
- The version of the OpenAPI document: 1.0.109
6
+ The version of the OpenAPI document: 1.0.220
7
7
  Contact: webservices@constantcontact.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0