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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +669 -57
- data/Gemfile.lock +40 -31
- data/README.md +23 -6
- data/constant_contact_client.gemspec +3 -3
- data/docs/AccountServicesApi.md +2 -2
- data/docs/BulkActivitiesApi.md +16 -12
- data/docs/ContactListsApi.md +5 -1
- data/docs/ContactsApi.md +84 -10
- data/docs/ContactsCustomFieldsApi.md +22 -22
- data/docs/EmailCampaignsApi.md +1 -1
- data/docs/EmailSchedulingApi.md +1 -1
- data/docs/EventsApi.md +881 -0
- data/docs/SMSReportingApi.md +86 -0
- data/docs/SocialApi.md +302 -0
- data/lib/constant_contact_client/api/account_services_api.rb +4 -4
- data/lib/constant_contact_client/api/bulk_activities_api.rb +19 -16
- data/lib/constant_contact_client/api/contact_lists_api.rb +12 -2
- data/lib/constant_contact_client/api/contact_tags_api.rb +2 -2
- data/lib/constant_contact_client/api/contacts_api.rb +89 -17
- data/lib/constant_contact_client/api/contacts_custom_fields_api.rb +29 -29
- data/lib/constant_contact_client/api/contacts_reporting_api.rb +2 -2
- data/lib/constant_contact_client/api/email_campaigns_ab_tests_api.rb +2 -2
- data/lib/constant_contact_client/api/email_campaigns_api.rb +4 -4
- data/lib/constant_contact_client/api/email_reporting_api.rb +2 -2
- data/lib/constant_contact_client/api/email_scheduling_api.rb +4 -4
- data/lib/constant_contact_client/api/events_api.rb +881 -0
- data/lib/constant_contact_client/api/landing_pages_reporting_api.rb +2 -2
- data/lib/constant_contact_client/api/segments_api.rb +2 -2
- data/lib/constant_contact_client/api/sms_reporting_api.rb +92 -0
- data/lib/constant_contact_client/api/social_api.rb +286 -0
- data/lib/constant_contact_client/api_client.rb +3 -3
- data/lib/constant_contact_client/api_error.rb +2 -2
- data/lib/constant_contact_client/configuration.rb +2 -2
- data/lib/constant_contact_client/models/ab_test_data.rb +2 -2
- data/lib/constant_contact_client/models/access_token_response.rb +2 -2
- data/lib/constant_contact_client/models/account_cancellation.rb +2 -2
- data/lib/constant_contact_client/models/account_email_create_response.rb +2 -2
- data/lib/constant_contact_client/models/account_email_input.rb +2 -2
- data/lib/constant_contact_client/models/account_info_dto.rb +266 -0
- data/lib/constant_contact_client/models/account_physical_address.rb +2 -2
- data/lib/constant_contact_client/models/account_suspension.rb +2 -2
- data/lib/constant_contact_client/models/activities.rb +2 -2
- data/lib/constant_contact_client/models/activity.rb +2 -2
- data/lib/constant_contact_client/models/activity_delete_custom_fields.rb +2 -2
- data/lib/constant_contact_client/models/activity_delete_list_response.rb +3 -3
- data/lib/constant_contact_client/models/activity_delete_lists_response.rb +2 -2
- data/lib/constant_contact_client/models/activity_delete_status.rb +2 -2
- data/lib/constant_contact_client/models/activity_errors.rb +2 -2
- data/lib/constant_contact_client/models/activity_export_status.rb +2 -2
- data/lib/constant_contact_client/models/activity_generic.rb +2 -2
- data/lib/constant_contact_client/models/activity_generic_status.rb +2 -2
- data/lib/constant_contact_client/models/activity_import.rb +2 -2
- data/lib/constant_contact_client/models/activity_links.rb +2 -2
- data/lib/constant_contact_client/models/activity_lists_membership.rb +2 -2
- data/lib/constant_contact_client/models/activity_reference.rb +2 -2
- data/lib/constant_contact_client/models/activity_status.rb +2 -2
- data/lib/constant_contact_client/models/activity_status_export_link.rb +2 -2
- data/lib/constant_contact_client/models/activity_status_link.rb +2 -2
- data/lib/constant_contact_client/models/activity_tagging.rb +2 -2
- data/lib/constant_contact_client/models/activity_tagging_status.rb +2 -2
- data/lib/constant_contact_client/models/add_account_email_address201_response.rb +2 -2
- data/lib/constant_contact_client/models/add_account_email_address_request.rb +2 -2
- data/lib/constant_contact_client/models/address_dto.rb +604 -0
- data/lib/constant_contact_client/models/address_dto1.rb +604 -0
- data/lib/constant_contact_client/models/api_error_schema_inner.rb +2 -2
- data/lib/constant_contact_client/models/attribute_dto.rb +323 -0
- data/lib/constant_contact_client/models/attribute_dto1.rb +323 -0
- data/lib/constant_contact_client/models/authorization_error_schema.rb +2 -2
- data/lib/constant_contact_client/models/automation_campaign.rb +274 -0
- data/lib/constant_contact_client/models/automation_campaign_active_definition.rb +235 -0
- data/lib/constant_contact_client/models/automation_campaign_structured_tags_inner.rb +232 -0
- data/lib/constant_contact_client/models/automation_flow.rb +215 -0
- data/lib/constant_contact_client/models/automation_flow_workflow_def.rb +262 -0
- data/lib/constant_contact_client/models/automation_structured_tag.rb +232 -0
- data/lib/constant_contact_client/models/automation_workflow_def.rb +262 -0
- data/lib/constant_contact_client/models/automation_workflow_definition.rb +235 -0
- data/lib/constant_contact_client/models/automation_workflow_definition_workflow.rb +215 -0
- data/lib/constant_contact_client/models/bounces_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/bounces_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/bulk_campaign_summary.rb +289 -0
- data/lib/constant_contact_client/models/bulk_email_campaign_summaries_page.rb +2 -16
- data/lib/constant_contact_client/models/bulk_email_campaign_summaries_percents.rb +2 -2
- data/lib/constant_contact_client/models/bulk_email_campaign_summary.rb +2 -23
- data/lib/constant_contact_client/models/bulk_sms_campaign_summaries_percents.rb +245 -0
- data/lib/constant_contact_client/models/campaign_activity_stats_query_result_email.rb +2 -2
- data/lib/constant_contact_client/models/campaign_activity_stats_result_generic_stats_email_activity.rb +2 -2
- data/lib/constant_contact_client/models/campaign_activity_summary.rb +2 -2
- data/lib/constant_contact_client/models/campaign_stats_query_result_email.rb +2 -2
- data/lib/constant_contact_client/models/campaign_stats_result_generic_stats_email_percents_email.rb +2 -2
- data/lib/constant_contact_client/models/check_in_tickets_request.rb +225 -0
- data/lib/constant_contact_client/models/clicks_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/clicks_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/company_logo.rb +2 -2
- data/lib/constant_contact_client/models/connection_dto.rb +224 -0
- data/lib/constant_contact_client/models/connection_response_dto.rb +218 -0
- data/lib/constant_contact_client/models/connection_status_dto.rb +276 -0
- data/lib/constant_contact_client/models/contact_campaign_activities_summary.rb +2 -2
- data/lib/constant_contact_client/models/contact_create_or_update_input.rb +17 -15
- data/lib/constant_contact_client/models/contact_create_or_update_response.rb +2 -2
- data/lib/constant_contact_client/models/contact_custom_field.rb +22 -17
- data/lib/constant_contact_client/models/contact_delete.rb +2 -2
- data/lib/constant_contact_client/models/contact_dto.rb +429 -0
- data/lib/constant_contact_client/models/contact_dto1.rb +430 -0
- data/lib/constant_contact_client/models/contact_list.rb +2 -2
- data/lib/constant_contact_client/models/contact_list_array.rb +2 -2
- data/lib/constant_contact_client/models/contact_list_put_post.rb +2 -2
- data/lib/constant_contact_client/models/contact_open_and_click_rates.rb +2 -2
- data/lib/constant_contact_client/models/contact_post_request.rb +15 -6
- data/lib/constant_contact_client/models/contact_put_request.rb +15 -6
- data/lib/constant_contact_client/models/contact_resource.rb +2 -2
- data/lib/constant_contact_client/models/contact_resubscribe_request.rb +224 -0
- data/lib/constant_contact_client/models/contact_sms_channel.rb +241 -0
- data/lib/constant_contact_client/models/contact_sms_channel_consents.rb +249 -0
- data/lib/constant_contact_client/models/contact_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/contact_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/contact_xref.rb +2 -2
- data/lib/constant_contact_client/models/contact_xrefs.rb +2 -2
- data/lib/constant_contact_client/models/contacts.rb +2 -2
- data/lib/constant_contact_client/models/contacts_counts.rb +2 -2
- data/lib/constant_contact_client/models/contacts_export.rb +62 -12
- data/lib/constant_contact_client/models/contacts_json_import.rb +2 -2
- data/lib/constant_contact_client/models/copy_event_request.rb +235 -0
- data/lib/constant_contact_client/models/create_contact_request.rb +15 -6
- data/lib/constant_contact_client/models/create_contact_request_email_address.rb +2 -2
- data/lib/constant_contact_client/models/create_csv_import_activity201_response.rb +2 -2
- data/lib/constant_contact_client/models/create_csv_import_activity201_response_links.rb +2 -2
- data/lib/constant_contact_client/models/create_csv_import_activity201_response_status.rb +2 -2
- data/lib/constant_contact_client/models/create_custom_fields_request.rb +313 -0
- data/lib/constant_contact_client/models/create_custom_fields_request_choices_inner.rb +245 -0
- data/lib/constant_contact_client/models/create_delete_activity201_response.rb +2 -2
- data/lib/constant_contact_client/models/create_delete_activity201_response_links.rb +2 -2
- data/lib/constant_contact_client/models/create_delete_activity201_response_links_self.rb +2 -2
- data/lib/constant_contact_client/models/create_delete_activity201_response_status.rb +2 -2
- data/lib/constant_contact_client/models/create_delete_activity_request.rb +2 -2
- data/lib/constant_contact_client/models/create_email_campaign200_response.rb +2 -2
- data/lib/constant_contact_client/models/create_email_campaign200_response_campaign_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/create_email_campaign_request.rb +2 -2
- data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner.rb +21 -2
- data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner_physical_address_in_footer.rb +2 -2
- data/lib/constant_contact_client/models/create_event201_response.rb +708 -0
- data/lib/constant_contact_client/models/create_event201_response_event_promotions_inner.rb +256 -0
- data/lib/constant_contact_client/models/create_event201_response_event_settings.rb +265 -0
- data/lib/constant_contact_client/models/create_export_activity201_response.rb +2 -2
- data/lib/constant_contact_client/models/create_export_activity201_response_status.rb +2 -2
- data/lib/constant_contact_client/models/create_export_activity_request.rb +62 -12
- data/lib/constant_contact_client/models/create_export_activity_request_exclude.rb +217 -0
- data/lib/constant_contact_client/models/create_import_json_activity_request.rb +2 -2
- data/lib/constant_contact_client/models/create_import_json_activity_request_import_data_inner.rb +7 -14
- data/lib/constant_contact_client/models/create_list_add_activity_request.rb +2 -2
- data/lib/constant_contact_client/models/create_list_add_activity_request_exclude.rb +2 -2
- data/lib/constant_contact_client/models/create_list_add_activity_request_source.rb +2 -2
- data/lib/constant_contact_client/models/create_list_delete_activity201_response.rb +2 -2
- data/lib/constant_contact_client/models/create_list_delete_activity201_response_links.rb +2 -2
- data/lib/constant_contact_client/models/create_list_delete_activity201_response_links_self.rb +2 -2
- data/lib/constant_contact_client/models/create_list_delete_activity201_response_status.rb +2 -2
- data/lib/constant_contact_client/models/create_list_delete_activity_request.rb +2 -2
- data/lib/constant_contact_client/models/create_list_remove_activity201_response.rb +2 -2
- data/lib/constant_contact_client/models/create_list_remove_activity201_response_status.rb +2 -2
- data/lib/constant_contact_client/models/create_list_remove_activity_request.rb +2 -2
- data/lib/constant_contact_client/models/create_list_remove_activity_request_exclude.rb +2 -2
- data/lib/constant_contact_client/models/create_list_remove_activity_request_source.rb +2 -2
- data/lib/constant_contact_client/models/create_or_update_contact200_response.rb +2 -2
- data/lib/constant_contact_client/models/create_or_update_contact_custom_field.rb +2 -2
- data/lib/constant_contact_client/models/create_or_update_contact_request.rb +17 -15
- data/lib/constant_contact_client/models/create_or_update_contact_request_custom_fields_inner.rb +2 -2
- data/lib/constant_contact_client/models/create_or_update_contact_request_sms_channel.rb +276 -0
- data/lib/constant_contact_client/models/create_or_update_contact_request_sms_channel_sms_channel_consents_inner.rb +310 -0
- data/lib/constant_contact_client/models/create_or_update_contact_request_street_address.rb +2 -2
- data/lib/constant_contact_client/models/create_resend_email_campaign201_response.rb +2 -2
- data/lib/constant_contact_client/models/create_resend_email_campaign_request.rb +2 -2
- data/lib/constant_contact_client/models/create_segment201_response.rb +2 -2
- data/lib/constant_contact_client/models/create_segment_request.rb +2 -2
- data/lib/constant_contact_client/models/create_social_post200_response.rb +272 -0
- data/lib/constant_contact_client/models/create_social_post_request.rb +262 -0
- data/lib/constant_contact_client/models/create_social_post_request_profile_posts_inner.rb +269 -0
- data/lib/constant_contact_client/models/create_social_post_request_profile_posts_inner_images_inner.rb +233 -0
- data/lib/constant_contact_client/models/create_social_post_request_profile_posts_inner_profiles_inner.rb +323 -0
- data/lib/constant_contact_client/models/create_tag_delete_activity_request.rb +2 -2
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response.rb +2 -2
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links.rb +2 -2
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_results.rb +2 -2
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_self.rb +2 -2
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_status.rb +2 -2
- data/lib/constant_contact_client/models/create_tag_remove_activity_request.rb +2 -2
- data/lib/constant_contact_client/models/create_tag_remove_activity_request_exclude.rb +2 -2
- data/lib/constant_contact_client/models/create_tag_remove_activity_request_source.rb +2 -2
- data/lib/constant_contact_client/models/cross_reference.rb +2 -2
- data/lib/constant_contact_client/models/cross_reference_response.rb +2 -2
- data/lib/constant_contact_client/models/{custom_field_resource.rb → custom_field.rb} +80 -11
- data/lib/constant_contact_client/models/custom_field_choice.rb +295 -0
- data/lib/constant_contact_client/models/custom_field_choice_put_request.rb +255 -0
- data/lib/constant_contact_client/models/custom_field_choice_request.rb +245 -0
- data/lib/constant_contact_client/models/custom_field_id100.rb +2 -2
- data/lib/constant_contact_client/models/custom_field_metadata.rb +266 -0
- data/lib/constant_contact_client/models/{custom_field_input.rb → custom_field_put_request.rb} +35 -28
- data/lib/constant_contact_client/models/custom_field_request.rb +313 -0
- data/lib/constant_contact_client/models/custom_fields.rb +2 -3
- data/lib/constant_contact_client/models/customer.rb +13 -3
- data/lib/constant_contact_client/models/customer_put.rb +2 -2
- data/lib/constant_contact_client/models/delete_list202_response.rb +3 -3
- data/lib/constant_contact_client/models/delete_tag202_response.rb +2 -2
- data/lib/constant_contact_client/models/delete_tag202_response_activity_errors_inner.rb +2 -2
- data/lib/constant_contact_client/models/delete_tag202_response_links.rb +2 -2
- data/lib/constant_contact_client/models/delete_tag202_response_links_self.rb +2 -2
- data/lib/constant_contact_client/models/delete_tag202_response_status.rb +2 -2
- data/lib/constant_contact_client/models/detailed_registration_dto.rb +316 -0
- data/lib/constant_contact_client/models/device_flow_response.rb +2 -2
- data/lib/constant_contact_client/models/did_not_opens_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/did_not_opens_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/email_address.rb +2 -2
- data/lib/constant_contact_client/models/email_address_post.rb +2 -2
- data/lib/constant_contact_client/models/email_address_put.rb +2 -2
- data/lib/constant_contact_client/models/email_campaign.rb +2 -2
- data/lib/constant_contact_client/models/email_campaign_account_information.rb +417 -0
- data/lib/constant_contact_client/models/email_campaign_account_information_message_settings.rb +256 -0
- data/lib/constant_contact_client/models/email_campaign_account_information_physical_address.rb +336 -0
- data/lib/constant_contact_client/models/email_campaign_activity.rb +2 -2
- data/lib/constant_contact_client/models/email_campaign_activity_input.rb +21 -2
- data/lib/constant_contact_client/models/email_campaign_activity_preview.rb +2 -2
- data/lib/constant_contact_client/models/email_campaign_complete.rb +2 -2
- data/lib/constant_contact_client/models/email_campaign_name.rb +2 -2
- data/lib/constant_contact_client/models/email_campaigns.rb +2 -2
- data/lib/constant_contact_client/models/email_link_click_count.rb +2 -2
- data/lib/constant_contact_client/models/email_links.rb +2 -2
- data/lib/constant_contact_client/models/email_physical_address.rb +2 -2
- data/lib/constant_contact_client/models/email_schedule_input.rb +2 -2
- data/lib/constant_contact_client/models/email_test_send_input.rb +2 -2
- data/lib/constant_contact_client/models/emails_link.rb +2 -2
- data/lib/constant_contact_client/models/emails_paging_links.rb +2 -2
- data/lib/constant_contact_client/models/event_copy_request_dto.rb +235 -0
- data/lib/constant_contact_client/models/event_dto.rb +708 -0
- data/lib/constant_contact_client/models/event_listing_dto.rb +344 -0
- data/lib/constant_contact_client/models/event_media_asset_dto.rb +265 -0
- data/lib/constant_contact_client/models/event_media_asset_dto1.rb +265 -0
- data/lib/constant_contact_client/models/event_meta_data_dto.rb +236 -0
- data/lib/constant_contact_client/models/event_meta_data_dto1.rb +236 -0
- data/lib/constant_contact_client/models/event_promotion_dto.rb +256 -0
- data/lib/constant_contact_client/models/event_registration_summary_metric_dto.rb +235 -0
- data/lib/constant_contact_client/models/event_settings_dto.rb +265 -0
- data/lib/constant_contact_client/models/file_object.rb +2 -2
- data/lib/constant_contact_client/models/file_status_array_inner.rb +2 -2
- data/lib/constant_contact_client/models/find_events200_response.rb +256 -0
- data/lib/constant_contact_client/models/find_events200_response_links.rb +233 -0
- data/lib/constant_contact_client/models/find_events200_response_records_inner.rb +344 -0
- data/lib/constant_contact_client/models/find_events200_response_records_inner_event_registration_summary_metrics.rb +235 -0
- data/lib/constant_contact_client/models/find_registrations_using_get200_response.rb +255 -0
- data/lib/constant_contact_client/models/find_registrations_using_get200_response_links.rb +232 -0
- data/lib/constant_contact_client/models/find_registrations_using_get200_response_records_inner.rb +345 -0
- data/lib/constant_contact_client/models/forwards_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/forwards_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/get_ab_test_email_campaign200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_account_details200_response.rb +13 -3
- data/lib/constant_contact_client/models/get_account_details200_response_company_logo.rb +2 -2
- data/lib/constant_contact_client/models/get_account_details200_response_physical_address.rb +2 -2
- data/lib/constant_contact_client/models/get_activity_by_id200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_all_account_email_addresses200_response_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_all_activities200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links.rb +2 -2
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_results.rb +2 -2
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_self.rb +2 -2
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_status.rb +2 -2
- data/lib/constant_contact_client/models/get_all_activities200_response_links.rb +2 -2
- data/lib/constant_contact_client/models/get_all_activities200_response_links_next.rb +2 -2
- data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response.rb +235 -0
- data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_aggregate_percents.rb +246 -0
- data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_bulk_sms_campaign_summaries_inner.rb +289 -0
- data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_bulk_sms_campaign_summaries_inner_unique_counts.rb +284 -0
- data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_links.rb +215 -0
- data/lib/constant_contact_client/models/get_all_bulk_sms_campaign_summaries200_response_links_next.rb +223 -0
- data/lib/constant_contact_client/models/get_all_contacts200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_all_custom_fields200_response.rb +2 -3
- data/lib/constant_contact_client/models/get_all_email_campaigns200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_all_email_campaigns200_response_campaigns_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_all_email_campaigns200_response_links.rb +2 -2
- data/lib/constant_contact_client/models/get_all_lists200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_all_segments200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_all_segments200_response_links.rb +2 -2
- data/lib/constant_contact_client/models/get_all_segments200_response_links_next.rb +2 -2
- data/lib/constant_contact_client/models/get_all_segments200_response_segments_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_all_tags200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_all_tags200_response_links.rb +2 -2
- data/lib/constant_contact_client/models/get_all_tags200_response_links_next.rb +2 -2
- data/lib/constant_contact_client/models/get_all_tags200_response_links_next_next.rb +2 -9
- data/lib/constant_contact_client/models/get_bounces_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_bounces_report200_response_links.rb +2 -9
- data/lib/constant_contact_client/models/get_bounces_report200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response_link_click_counts_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_clicks_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_clicks_report200_response_links.rb +2 -9
- data/lib/constant_contact_client/models/get_clicks_report200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_adds200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_adds200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_by_id200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_by_id200_response_custom_fields_inner.rb +22 -17
- data/lib/constant_contact_client/models/get_contact_by_id200_response_email_address.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_by_id200_response_notes_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_by_id200_response_phone_numbers_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel_sms_channel_consents_inner.rb +3 -2
- data/lib/constant_contact_client/models/get_contact_by_id200_response_street_addresses_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_counts200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_id_xrefs200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_id_xrefs200_response_xrefs_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_open_click_rate_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_campaign_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_links.rb +2 -9
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links.rb +2 -9
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links_next.rb +2 -9
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_custom_field200_response.rb +77 -8
- data/lib/constant_contact_client/models/get_custom_field200_response_choices_inner.rb +295 -0
- data/lib/constant_contact_client/models/get_custom_field200_response_metadata.rb +266 -0
- data/lib/constant_contact_client/models/get_did_not_opens_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_did_not_opens_report200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_activity200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_activity200_response_document_properties.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_activity200_response_physical_address_in_footer.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_activity_preview200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner_stats.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_activity_schedule200_response_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_activity_send_history200_response_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_report200_response.rb +2 -16
- data/lib/constant_contact_client/models/get_email_campaign_report200_response_aggregate_percents.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner.rb +2 -23
- data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner_unique_counts.rb +2 -58
- data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response_xrefs_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_email_opens_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_email_opens_report200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_email_sends_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_email_sends_report200_response_links.rb +2 -9
- data/lib/constant_contact_client/models/get_email_sends_report200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_email_stats_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_email_stats_report200_response_errors_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_percents.rb +2 -2
- data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_stats.rb +2 -2
- data/lib/constant_contact_client/models/get_forwards_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_forwards_report200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_hashtag_groups200_response.rb +257 -0
- data/lib/constant_contact_client/models/get_hashtag_groups200_response_hashtag_groups_inner.rb +252 -0
- data/lib/constant_contact_client/models/get_hashtag_groups200_response_links.rb +215 -0
- data/lib/constant_contact_client/models/get_hashtag_groups200_response_links_next.rb +223 -0
- data/lib/constant_contact_client/models/get_hashtag_groups200_response_page.rb +274 -0
- data/lib/constant_contact_client/models/get_list200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_list_id_xrefs200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_list_id_xrefs200_response_xrefs_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_optouts_report200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_optouts_report200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_registration_info200_response.rb +316 -0
- data/lib/constant_contact_client/models/get_registration_info200_response_contact_inner.rb +278 -0
- data/lib/constant_contact_client/models/get_registration_info200_response_order_summary.rb +296 -0
- data/lib/constant_contact_client/models/get_registration_info200_response_order_summary_details_inner.rb +245 -0
- data/lib/constant_contact_client/models/get_registration_info200_response_tickets_inner.rb +266 -0
- data/lib/constant_contact_client/models/get_resend_email_campaign200_response_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner_history_details.rb +3 -13
- data/lib/constant_contact_client/models/get_social_connections200_response.rb +218 -0
- data/lib/constant_contact_client/models/get_social_connections200_response_connections_inner.rb +224 -0
- data/lib/constant_contact_client/models/get_social_connections200_response_connections_inner_account_info.rb +266 -0
- data/lib/constant_contact_client/models/get_social_connections200_response_connections_inner_connection_status.rb +276 -0
- data/lib/constant_contact_client/models/get_social_profiles200_response_inner.rb +348 -0
- data/lib/constant_contact_client/models/get_social_profiles200_response_inner_account_info.rb +266 -0
- data/lib/constant_contact_client/models/get_tag200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links_next.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner_sms_channel.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_opens200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_opens200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_updates200_response.rb +2 -2
- data/lib/constant_contact_client/models/get_unique_contact_updates200_response_tracking_activities_inner.rb +2 -2
- data/lib/constant_contact_client/models/get_user_privileges200_response_inner.rb +2 -2
- data/lib/constant_contact_client/models/hashtag_group_dto.rb +252 -0
- data/lib/constant_contact_client/models/headers_object.rb +2 -2
- data/lib/constant_contact_client/models/history_details.rb +3 -13
- data/lib/constant_contact_client/models/href.rb +214 -0
- data/lib/constant_contact_client/models/image_dto.rb +233 -0
- data/lib/constant_contact_client/models/item_dto.rb +444 -0
- data/lib/constant_contact_client/models/item_dto1.rb +444 -0
- data/lib/constant_contact_client/models/item_summary_dto.rb +263 -0
- data/lib/constant_contact_client/models/item_summary_dto1.rb +263 -0
- data/lib/constant_contact_client/models/jmml_sms_channel.rb +276 -0
- data/lib/constant_contact_client/models/jmml_sms_channel_consents.rb +310 -0
- data/lib/constant_contact_client/models/json_import_contact.rb +7 -14
- data/lib/constant_contact_client/models/line_item_details_dto.rb +245 -0
- data/lib/constant_contact_client/models/link.rb +2 -2
- data/lib/constant_contact_client/models/links.rb +25 -13
- data/lib/constant_contact_client/models/list_activity_add_contacts.rb +2 -2
- data/lib/constant_contact_client/models/list_activity_remove_contacts.rb +2 -2
- data/lib/constant_contact_client/models/list_id_list100.rb +2 -2
- data/lib/constant_contact_client/models/list_input.rb +2 -2
- data/lib/constant_contact_client/models/list_xref.rb +2 -2
- data/lib/constant_contact_client/models/list_xrefs.rb +2 -2
- data/lib/constant_contact_client/models/lpreporting_links.rb +2 -2
- data/lib/constant_contact_client/models/lpreporting_next.rb +2 -2
- data/lib/constant_contact_client/models/model_next.rb +2 -2
- data/lib/constant_contact_client/models/my_library_file_collection_inner.rb +2 -2
- data/lib/constant_contact_client/models/my_library_file_collection_inner_thumbnail.rb +2 -2
- data/lib/constant_contact_client/models/note.rb +2 -2
- data/lib/constant_contact_client/models/o_auth_error.rb +2 -2
- data/lib/constant_contact_client/models/online_meeting_dto.rb +272 -0
- data/lib/constant_contact_client/models/online_meeting_dto1.rb +273 -0
- data/lib/constant_contact_client/models/opens_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/opens_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/optouts_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/optouts_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/order_details_dto.rb +296 -0
- data/lib/constant_contact_client/models/order_ticket_keys_request_dto.rb +225 -0
- data/lib/constant_contact_client/models/p_contact_add_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/p_contact_add_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/p_contact_click_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/p_contact_click_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/p_contact_open_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/p_contact_opens_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/p_contact_update_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/p_contact_update_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/page_metadata_dto.rb +274 -0
- data/lib/constant_contact_client/models/paged_email_campaign_response.rb +2 -2
- data/lib/constant_contact_client/models/paged_hashtag_groups_dto.rb +257 -0
- data/lib/constant_contact_client/models/paged_response_link_rel_dto.rb +223 -0
- data/lib/constant_contact_client/models/paged_response_links_dto.rb +215 -0
- data/lib/constant_contact_client/models/paginated_registrations.rb +255 -0
- data/lib/constant_contact_client/models/pagination_dto_event_listing_dto.rb +256 -0
- data/lib/constant_contact_client/models/pagination_links.rb +2 -2
- data/lib/constant_contact_client/models/pagination_links_next.rb +2 -2
- data/lib/constant_contact_client/models/paging_links.rb +2 -2
- data/lib/constant_contact_client/models/partner_account.rb +2 -2
- data/lib/constant_contact_client/models/partner_account_links.rb +2 -2
- data/lib/constant_contact_client/models/partner_account_operations_request.rb +2 -2
- data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_headers_inner.rb +2 -2
- data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_path_parameters_inner.rb +2 -2
- data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_query_parameters_inner.rb +2 -2
- data/lib/constant_contact_client/models/partner_account_site_owner_list_inner.rb +2 -2
- data/lib/constant_contact_client/models/partner_unsubscribe_response.rb +216 -0
- data/lib/constant_contact_client/models/partners_link.rb +2 -2
- data/lib/constant_contact_client/models/patch_email_campaign_name_request.rb +2 -2
- data/lib/constant_contact_client/models/path_param_object.rb +2 -2
- data/lib/constant_contact_client/models/payment_status_update_request_dto.rb +242 -0
- data/lib/constant_contact_client/models/percents_email.rb +2 -2
- data/lib/constant_contact_client/models/phone_number.rb +2 -2
- data/lib/constant_contact_client/models/phone_number_put.rb +2 -2
- data/lib/constant_contact_client/models/plan_info.rb +2 -2
- data/lib/constant_contact_client/models/plan_tiers_object.rb +2 -2
- data/lib/constant_contact_client/models/plan_tiers_object_current_tiers_inner.rb +2 -2
- data/lib/constant_contact_client/models/post_create_dto.rb +262 -0
- data/lib/constant_contact_client/models/post_custom_field_delete201_response.rb +2 -2
- data/lib/constant_contact_client/models/post_custom_field_delete_request.rb +2 -2
- data/lib/constant_contact_client/models/post_dto.rb +272 -0
- data/lib/constant_contact_client/models/post_tag_request.rb +2 -2
- data/lib/constant_contact_client/models/profile_dto.rb +348 -0
- data/lib/constant_contact_client/models/profile_post_dto.rb +269 -0
- data/lib/constant_contact_client/models/profile_post_profile_dto.rb +323 -0
- data/lib/constant_contact_client/models/promo_code_dto.rb +408 -0
- data/lib/constant_contact_client/models/promo_code_dto1.rb +408 -0
- data/lib/constant_contact_client/models/provision.rb +2 -2
- data/lib/constant_contact_client/models/provision_response.rb +2 -2
- data/lib/constant_contact_client/models/put_tag_request.rb +2 -2
- data/lib/constant_contact_client/models/query_param_object.rb +2 -2
- data/lib/constant_contact_client/models/registrant_information_lite_dto.rb +345 -0
- data/lib/constant_contact_client/models/registration_status_update_request_dto.rb +242 -0
- data/lib/constant_contact_client/models/registration_status_update_response_dto.rb +218 -0
- data/lib/constant_contact_client/models/registration_ticket_dto.rb +266 -0
- data/lib/constant_contact_client/models/registrations_links.rb +232 -0
- data/lib/constant_contact_client/models/reporting_links.rb +2 -9
- data/lib/constant_contact_client/models/reporting_next.rb +2 -9
- data/lib/constant_contact_client/models/reportingsms_links.rb +214 -0
- data/lib/constant_contact_client/models/reportingsms_next.rb +222 -0
- data/lib/constant_contact_client/models/resend_to_non_openers_input.rb +2 -2
- data/lib/constant_contact_client/models/resend_to_non_openers_object.rb +2 -2
- data/lib/constant_contact_client/models/resubscribe_contact_request.rb +224 -0
- data/lib/constant_contact_client/models/schedule_email_campaign_activity_request.rb +2 -2
- data/lib/constant_contact_client/models/segment_data.rb +2 -2
- data/lib/constant_contact_client/models/segment_detail.rb +2 -2
- data/lib/constant_contact_client/models/segment_master.rb +2 -2
- data/lib/constant_contact_client/models/segment_name.rb +2 -2
- data/lib/constant_contact_client/models/segments_dto.rb +2 -2
- data/lib/constant_contact_client/models/segments_links.rb +221 -0
- data/lib/constant_contact_client/models/sends_tracking_activities_page.rb +2 -2
- data/lib/constant_contact_client/models/sends_tracking_activity.rb +2 -2
- data/lib/constant_contact_client/models/simple_field_dto.rb +278 -0
- data/lib/constant_contact_client/models/sms_campaign_summaries_page.rb +235 -0
- data/lib/constant_contact_client/models/sms_channel_consent_details.rb +3 -2
- data/lib/constant_contact_client/models/sso_user.rb +3 -3
- data/lib/constant_contact_client/models/stats_email.rb +2 -2
- data/lib/constant_contact_client/models/stats_email_activity.rb +2 -2
- data/lib/constant_contact_client/models/stats_error.rb +2 -2
- data/lib/constant_contact_client/models/status_display_label_dto.rb +226 -0
- data/lib/constant_contact_client/models/status_display_label_dto1.rb +226 -0
- data/lib/constant_contact_client/models/street_address.rb +2 -2
- data/lib/constant_contact_client/models/street_address_put.rb +2 -2
- data/lib/constant_contact_client/models/tag.rb +2 -2
- data/lib/constant_contact_client/models/tag_add_remove_contacts.rb +2 -2
- data/lib/constant_contact_client/models/tag_id_list500_limit.rb +2 -2
- data/lib/constant_contact_client/models/tag_post.rb +2 -2
- data/lib/constant_contact_client/models/tag_put.rb +2 -2
- data/lib/constant_contact_client/models/tags.rb +2 -2
- data/lib/constant_contact_client/models/tags_activity_links.rb +2 -2
- data/lib/constant_contact_client/models/tags_links.rb +2 -2
- data/lib/constant_contact_client/models/tags_paging_links.rb +2 -2
- data/lib/constant_contact_client/models/test_send_email_campaign_activity_request.rb +2 -2
- data/lib/constant_contact_client/models/ticket_summary_dto.rb +279 -0
- data/lib/constant_contact_client/models/ticket_summary_dto1.rb +279 -0
- data/lib/constant_contact_client/models/tier_object.rb +2 -2
- data/lib/constant_contact_client/models/track_dto.rb +377 -0
- data/lib/constant_contact_client/models/track_dto1.rb +377 -0
- data/lib/constant_contact_client/models/tracking_activity_sms_channel_dto.rb +2 -2
- data/lib/constant_contact_client/models/unique_email_counts.rb +2 -58
- data/lib/constant_contact_client/models/unique_sms_counts.rb +283 -0
- data/lib/constant_contact_client/models/update_account_request.rb +2 -2
- data/lib/constant_contact_client/models/update_contact_request.rb +15 -6
- data/lib/constant_contact_client/models/update_contact_request_email_address.rb +2 -2
- data/lib/constant_contact_client/models/update_contact_request_phone_numbers_inner.rb +2 -2
- data/lib/constant_contact_client/models/update_contact_request_sms_channel.rb +241 -0
- data/lib/constant_contact_client/models/update_contact_request_sms_channel_sms_channel_consents_inner.rb +249 -0
- data/lib/constant_contact_client/models/update_contact_request_street_addresses_inner.rb +2 -2
- data/lib/constant_contact_client/models/update_custom_field_request.rb +32 -25
- data/lib/constant_contact_client/models/update_custom_field_request_choices_inner.rb +255 -0
- data/lib/constant_contact_client/models/update_list200_response.rb +2 -2
- data/lib/constant_contact_client/models/update_list_request.rb +2 -2
- data/lib/constant_contact_client/models/update_registration_payment_status_using_put_request.rb +242 -0
- data/lib/constant_contact_client/models/update_registration_status_using_put207_response.rb +218 -0
- data/lib/constant_contact_client/models/update_registration_status_using_put_request.rb +242 -0
- data/lib/constant_contact_client/models/update_segment_name_request.rb +2 -2
- data/lib/constant_contact_client/models/webhooks_subscription_body.rb +2 -2
- data/lib/constant_contact_client/models/webhooks_subscription_collection_inner.rb +2 -2
- data/lib/constant_contact_client/models/webhooks_subscription_put_resp.rb +2 -2
- data/lib/constant_contact_client/models/webhooks_subscription_response.rb +2 -2
- data/lib/constant_contact_client/models/webhooks_test_send.rb +2 -2
- data/lib/constant_contact_client/version.rb +3 -3
- data/lib/constant_contact_client.rb +149 -4
- data/spec/spec_helper.rb +2 -2
- metadata +156 -8
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Constant Contact API v3
|
|
3
|
+
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.220
|
|
7
|
+
Contact: webservices@constantcontact.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 7.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module ConstantContactClient
|
|
17
|
+
# Account information for a connected social network user.
|
|
18
|
+
class GetSocialProfiles200ResponseInnerAccountInfo
|
|
19
|
+
# The account URL of the connected user's profile. Note: Facebook & Instagram do not support this.
|
|
20
|
+
attr_accessor :account_url
|
|
21
|
+
|
|
22
|
+
# Display name of the connected user.
|
|
23
|
+
attr_accessor :display_name
|
|
24
|
+
|
|
25
|
+
# URL of the connected user's avatar or image.
|
|
26
|
+
attr_accessor :image_url
|
|
27
|
+
|
|
28
|
+
# The social network this account belongs to.
|
|
29
|
+
attr_accessor :network
|
|
30
|
+
|
|
31
|
+
# The user identifier on the given network. Note: this is the network <em>account</em> id, not the <em>profile</em> id.
|
|
32
|
+
attr_accessor :network_account_id
|
|
33
|
+
|
|
34
|
+
# Username of the connected user on the social network.
|
|
35
|
+
attr_accessor :username
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'account_url' => :'account_url',
|
|
41
|
+
:'display_name' => :'display_name',
|
|
42
|
+
:'image_url' => :'image_url',
|
|
43
|
+
:'network' => :'network',
|
|
44
|
+
:'network_account_id' => :'network_account_id',
|
|
45
|
+
:'username' => :'username'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Returns all the JSON keys this model knows about
|
|
50
|
+
def self.acceptable_attributes
|
|
51
|
+
attribute_map.values
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Attribute type mapping.
|
|
55
|
+
def self.openapi_types
|
|
56
|
+
{
|
|
57
|
+
:'account_url' => :'String',
|
|
58
|
+
:'display_name' => :'String',
|
|
59
|
+
:'image_url' => :'String',
|
|
60
|
+
:'network' => :'String',
|
|
61
|
+
:'network_account_id' => :'String',
|
|
62
|
+
:'username' => :'String'
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# List of attributes with nullable: true
|
|
67
|
+
def self.openapi_nullable
|
|
68
|
+
Set.new([
|
|
69
|
+
])
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Initializes the object
|
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
74
|
+
def initialize(attributes = {})
|
|
75
|
+
if (!attributes.is_a?(Hash))
|
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ConstantContactClient::GetSocialProfiles200ResponseInnerAccountInfo` initialize method"
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ConstantContactClient::GetSocialProfiles200ResponseInnerAccountInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
83
|
+
end
|
|
84
|
+
h[k.to_sym] = v
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'account_url')
|
|
88
|
+
self.account_url = attributes[:'account_url']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'display_name')
|
|
92
|
+
self.display_name = attributes[:'display_name']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'image_url')
|
|
96
|
+
self.image_url = attributes[:'image_url']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'network')
|
|
100
|
+
self.network = attributes[:'network']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'network_account_id')
|
|
104
|
+
self.network_account_id = attributes[:'network_account_id']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'username')
|
|
108
|
+
self.username = attributes[:'username']
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
113
|
+
# @return Array for valid properties with the reasons
|
|
114
|
+
def list_invalid_properties
|
|
115
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
116
|
+
invalid_properties = Array.new
|
|
117
|
+
invalid_properties
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Check to see if the all the properties in the model are valid
|
|
121
|
+
# @return true if the model is valid
|
|
122
|
+
def valid?
|
|
123
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
124
|
+
true
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Checks equality by comparing each attribute.
|
|
128
|
+
# @param [Object] Object to be compared
|
|
129
|
+
def ==(o)
|
|
130
|
+
return true if self.equal?(o)
|
|
131
|
+
self.class == o.class &&
|
|
132
|
+
account_url == o.account_url &&
|
|
133
|
+
display_name == o.display_name &&
|
|
134
|
+
image_url == o.image_url &&
|
|
135
|
+
network == o.network &&
|
|
136
|
+
network_account_id == o.network_account_id &&
|
|
137
|
+
username == o.username
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# @see the `==` method
|
|
141
|
+
# @param [Object] Object to be compared
|
|
142
|
+
def eql?(o)
|
|
143
|
+
self == o
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Calculates hash code according to all attributes.
|
|
147
|
+
# @return [Integer] Hash code
|
|
148
|
+
def hash
|
|
149
|
+
[account_url, display_name, image_url, network, network_account_id, username].hash
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Builds the object from hash
|
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
154
|
+
# @return [Object] Returns the model itself
|
|
155
|
+
def self.build_from_hash(attributes)
|
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
|
157
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
158
|
+
transformed_hash = {}
|
|
159
|
+
openapi_types.each_pair do |key, type|
|
|
160
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
161
|
+
transformed_hash["#{key}"] = nil
|
|
162
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
163
|
+
# check to ensure the input is an array given that the attribute
|
|
164
|
+
# is documented as an array but the input is not
|
|
165
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
166
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
167
|
+
end
|
|
168
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
169
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
new(transformed_hash)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Deserializes the data based on type
|
|
176
|
+
# @param string type Data type
|
|
177
|
+
# @param string value Value to be deserialized
|
|
178
|
+
# @return [Object] Deserialized data
|
|
179
|
+
def self._deserialize(type, value)
|
|
180
|
+
case type.to_sym
|
|
181
|
+
when :Time
|
|
182
|
+
Time.parse(value)
|
|
183
|
+
when :Date
|
|
184
|
+
Date.parse(value)
|
|
185
|
+
when :String
|
|
186
|
+
value.to_s
|
|
187
|
+
when :Integer
|
|
188
|
+
value.to_i
|
|
189
|
+
when :Float
|
|
190
|
+
value.to_f
|
|
191
|
+
when :Boolean
|
|
192
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
193
|
+
true
|
|
194
|
+
else
|
|
195
|
+
false
|
|
196
|
+
end
|
|
197
|
+
when :Object
|
|
198
|
+
# generic object (usually a Hash), return directly
|
|
199
|
+
value
|
|
200
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
201
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
202
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
203
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
204
|
+
k_type = Regexp.last_match[:k_type]
|
|
205
|
+
v_type = Regexp.last_match[:v_type]
|
|
206
|
+
{}.tap do |hash|
|
|
207
|
+
value.each do |k, v|
|
|
208
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
else # model
|
|
212
|
+
# models (e.g. Pet) or oneOf
|
|
213
|
+
klass = ConstantContactClient.const_get(type)
|
|
214
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Returns the string representation of the object
|
|
219
|
+
# @return [String] String presentation of the object
|
|
220
|
+
def to_s
|
|
221
|
+
to_hash.to_s
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
225
|
+
# @return [Hash] Returns the object in the form of hash
|
|
226
|
+
def to_body
|
|
227
|
+
to_hash
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Returns the object in the form of hash
|
|
231
|
+
# @return [Hash] Returns the object in the form of hash
|
|
232
|
+
def to_hash
|
|
233
|
+
hash = {}
|
|
234
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
235
|
+
value = self.send(attr)
|
|
236
|
+
if value.nil?
|
|
237
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
238
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
hash[param] = _to_hash(value)
|
|
242
|
+
end
|
|
243
|
+
hash
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Outputs non-array value in the form of hash
|
|
247
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
248
|
+
# @param [Object] value Any valid value
|
|
249
|
+
# @return [Hash] Returns the value in the form of hash
|
|
250
|
+
def _to_hash(value)
|
|
251
|
+
if value.is_a?(Array)
|
|
252
|
+
value.compact.map { |v| _to_hash(v) }
|
|
253
|
+
elsif value.is_a?(Hash)
|
|
254
|
+
{}.tap do |hash|
|
|
255
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
256
|
+
end
|
|
257
|
+
elsif value.respond_to? :to_hash
|
|
258
|
+
value.to_hash
|
|
259
|
+
else
|
|
260
|
+
value
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
end
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Constant Contact API v3
|
|
3
3
|
|
|
4
|
-
#Swagger build version 3.0.
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
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
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Constant Contact API v3
|
|
3
|
+
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.220
|
|
7
|
+
Contact: webservices@constantcontact.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 7.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module ConstantContactClient
|
|
17
|
+
# Represents a named collection of hashtags that can be reused when creating social posts.
|
|
18
|
+
class HashtagGroupDto
|
|
19
|
+
# Unique identifier for this hashtag group. Automatically generated on creation and returned in all responses.
|
|
20
|
+
attr_accessor :hashtag_group_id
|
|
21
|
+
|
|
22
|
+
# The human-readable name for this group. <p>This name will be sanitized before saving, which may include trimming whitespace, truncation, and/or removing invalid characters. If the sanitized name results in a blank string, it will not be able to be saved, and any create or update operation will fail.</p><p>The name is currently limited to a maximum of 150 characters, but the effective length may be shorter, depending on whether special characters (such as emoji) are used.</p>
|
|
23
|
+
attr_accessor :hashtag_group_name
|
|
24
|
+
|
|
25
|
+
# The list of hashtag names for this group. <p>Hashtag <em>names</em> do not include any leading '#' character. They can only consist of alphanumeric characters and '_' (underscore). The hashtag name cannot begin or end with an underscore. Hashtag names may begin with a letter or a number, and may consist of only numbers. Hashtag names are currently limited to a maximum of 30 characters.</p><p>The list order is preserved. If duplicates exist, they will be removed when saving, and the first occurrence will retain its position.</p>
|
|
26
|
+
attr_accessor :hashtag_names
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'hashtag_group_id' => :'hashtag_group_id',
|
|
32
|
+
:'hashtag_group_name' => :'hashtag_group_name',
|
|
33
|
+
:'hashtag_names' => :'hashtag_names'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'hashtag_group_id' => :'String',
|
|
46
|
+
:'hashtag_group_name' => :'String',
|
|
47
|
+
:'hashtag_names' => :'Array<String>'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ConstantContactClient::HashtagGroupDto` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ConstantContactClient::HashtagGroupDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'hashtag_group_id')
|
|
73
|
+
self.hashtag_group_id = attributes[:'hashtag_group_id']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'hashtag_group_name')
|
|
77
|
+
self.hashtag_group_name = attributes[:'hashtag_group_name']
|
|
78
|
+
else
|
|
79
|
+
self.hashtag_group_name = nil
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'hashtag_names')
|
|
83
|
+
if (value = attributes[:'hashtag_names']).is_a?(Array)
|
|
84
|
+
self.hashtag_names = value
|
|
85
|
+
end
|
|
86
|
+
else
|
|
87
|
+
self.hashtag_names = nil
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
92
|
+
# @return Array for valid properties with the reasons
|
|
93
|
+
def list_invalid_properties
|
|
94
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
95
|
+
invalid_properties = Array.new
|
|
96
|
+
if @hashtag_group_name.nil?
|
|
97
|
+
invalid_properties.push('invalid value for "hashtag_group_name", hashtag_group_name cannot be nil.')
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if @hashtag_names.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "hashtag_names", hashtag_names cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
invalid_properties
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Check to see if the all the properties in the model are valid
|
|
108
|
+
# @return true if the model is valid
|
|
109
|
+
def valid?
|
|
110
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
111
|
+
return false if @hashtag_group_name.nil?
|
|
112
|
+
return false if @hashtag_names.nil?
|
|
113
|
+
true
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Checks equality by comparing each attribute.
|
|
117
|
+
# @param [Object] Object to be compared
|
|
118
|
+
def ==(o)
|
|
119
|
+
return true if self.equal?(o)
|
|
120
|
+
self.class == o.class &&
|
|
121
|
+
hashtag_group_id == o.hashtag_group_id &&
|
|
122
|
+
hashtag_group_name == o.hashtag_group_name &&
|
|
123
|
+
hashtag_names == o.hashtag_names
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# @see the `==` method
|
|
127
|
+
# @param [Object] Object to be compared
|
|
128
|
+
def eql?(o)
|
|
129
|
+
self == o
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Calculates hash code according to all attributes.
|
|
133
|
+
# @return [Integer] Hash code
|
|
134
|
+
def hash
|
|
135
|
+
[hashtag_group_id, hashtag_group_name, hashtag_names].hash
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Builds the object from hash
|
|
139
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
140
|
+
# @return [Object] Returns the model itself
|
|
141
|
+
def self.build_from_hash(attributes)
|
|
142
|
+
return nil unless attributes.is_a?(Hash)
|
|
143
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
144
|
+
transformed_hash = {}
|
|
145
|
+
openapi_types.each_pair do |key, type|
|
|
146
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
147
|
+
transformed_hash["#{key}"] = nil
|
|
148
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
149
|
+
# check to ensure the input is an array given that the attribute
|
|
150
|
+
# is documented as an array but the input is not
|
|
151
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
152
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
153
|
+
end
|
|
154
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
155
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
new(transformed_hash)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Deserializes the data based on type
|
|
162
|
+
# @param string type Data type
|
|
163
|
+
# @param string value Value to be deserialized
|
|
164
|
+
# @return [Object] Deserialized data
|
|
165
|
+
def self._deserialize(type, value)
|
|
166
|
+
case type.to_sym
|
|
167
|
+
when :Time
|
|
168
|
+
Time.parse(value)
|
|
169
|
+
when :Date
|
|
170
|
+
Date.parse(value)
|
|
171
|
+
when :String
|
|
172
|
+
value.to_s
|
|
173
|
+
when :Integer
|
|
174
|
+
value.to_i
|
|
175
|
+
when :Float
|
|
176
|
+
value.to_f
|
|
177
|
+
when :Boolean
|
|
178
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
179
|
+
true
|
|
180
|
+
else
|
|
181
|
+
false
|
|
182
|
+
end
|
|
183
|
+
when :Object
|
|
184
|
+
# generic object (usually a Hash), return directly
|
|
185
|
+
value
|
|
186
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
187
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
188
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
189
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
190
|
+
k_type = Regexp.last_match[:k_type]
|
|
191
|
+
v_type = Regexp.last_match[:v_type]
|
|
192
|
+
{}.tap do |hash|
|
|
193
|
+
value.each do |k, v|
|
|
194
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
else # model
|
|
198
|
+
# models (e.g. Pet) or oneOf
|
|
199
|
+
klass = ConstantContactClient.const_get(type)
|
|
200
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Returns the string representation of the object
|
|
205
|
+
# @return [String] String presentation of the object
|
|
206
|
+
def to_s
|
|
207
|
+
to_hash.to_s
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
|
212
|
+
def to_body
|
|
213
|
+
to_hash
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Returns the object in the form of hash
|
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
|
218
|
+
def to_hash
|
|
219
|
+
hash = {}
|
|
220
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
221
|
+
value = self.send(attr)
|
|
222
|
+
if value.nil?
|
|
223
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
224
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
hash[param] = _to_hash(value)
|
|
228
|
+
end
|
|
229
|
+
hash
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Outputs non-array value in the form of hash
|
|
233
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
234
|
+
# @param [Object] value Any valid value
|
|
235
|
+
# @return [Hash] Returns the value in the form of hash
|
|
236
|
+
def _to_hash(value)
|
|
237
|
+
if value.is_a?(Array)
|
|
238
|
+
value.compact.map { |v| _to_hash(v) }
|
|
239
|
+
elsif value.is_a?(Hash)
|
|
240
|
+
{}.tap do |hash|
|
|
241
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
242
|
+
end
|
|
243
|
+
elsif value.respond_to? :to_hash
|
|
244
|
+
value.to_hash
|
|
245
|
+
else
|
|
246
|
+
value
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
end
|