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
|
@@ -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
|
|
@@ -50,6 +50,8 @@ module ConstantContactClient
|
|
|
50
50
|
|
|
51
51
|
attr_accessor :street_address
|
|
52
52
|
|
|
53
|
+
attr_accessor :sms_channel
|
|
54
|
+
|
|
53
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
54
56
|
def self.attribute_map
|
|
55
57
|
{
|
|
@@ -64,7 +66,8 @@ module ConstantContactClient
|
|
|
64
66
|
:'anniversary' => :'anniversary',
|
|
65
67
|
:'birthday_month' => :'birthday_month',
|
|
66
68
|
:'birthday_day' => :'birthday_day',
|
|
67
|
-
:'street_address' => :'street_address'
|
|
69
|
+
:'street_address' => :'street_address',
|
|
70
|
+
:'sms_channel' => :'sms_channel'
|
|
68
71
|
}
|
|
69
72
|
end
|
|
70
73
|
|
|
@@ -87,7 +90,8 @@ module ConstantContactClient
|
|
|
87
90
|
:'anniversary' => :'String',
|
|
88
91
|
:'birthday_month' => :'Integer',
|
|
89
92
|
:'birthday_day' => :'Integer',
|
|
90
|
-
:'street_address' => :'CreateOrUpdateContactRequestStreetAddress'
|
|
93
|
+
:'street_address' => :'CreateOrUpdateContactRequestStreetAddress',
|
|
94
|
+
:'sms_channel' => :'CreateOrUpdateContactRequestSmsChannel'
|
|
91
95
|
}
|
|
92
96
|
end
|
|
93
97
|
|
|
@@ -114,8 +118,6 @@ module ConstantContactClient
|
|
|
114
118
|
|
|
115
119
|
if attributes.key?(:'email_address')
|
|
116
120
|
self.email_address = attributes[:'email_address']
|
|
117
|
-
else
|
|
118
|
-
self.email_address = nil
|
|
119
121
|
end
|
|
120
122
|
|
|
121
123
|
if attributes.key?(:'first_name')
|
|
@@ -167,6 +169,10 @@ module ConstantContactClient
|
|
|
167
169
|
if attributes.key?(:'street_address')
|
|
168
170
|
self.street_address = attributes[:'street_address']
|
|
169
171
|
end
|
|
172
|
+
|
|
173
|
+
if attributes.key?(:'sms_channel')
|
|
174
|
+
self.sms_channel = attributes[:'sms_channel']
|
|
175
|
+
end
|
|
170
176
|
end
|
|
171
177
|
|
|
172
178
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -174,11 +180,7 @@ module ConstantContactClient
|
|
|
174
180
|
def list_invalid_properties
|
|
175
181
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
176
182
|
invalid_properties = Array.new
|
|
177
|
-
if
|
|
178
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
if @email_address.to_s.length > 50
|
|
183
|
+
if !@email_address.nil? && @email_address.to_s.length > 50
|
|
182
184
|
invalid_properties.push('invalid value for "email_address", the character length must be smaller than or equal to 50.')
|
|
183
185
|
end
|
|
184
186
|
|
|
@@ -225,8 +227,7 @@ module ConstantContactClient
|
|
|
225
227
|
# @return true if the model is valid
|
|
226
228
|
def valid?
|
|
227
229
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
228
|
-
return false if
|
|
229
|
-
return false if @email_address.to_s.length > 50
|
|
230
|
+
return false if !@email_address.nil? && @email_address.to_s.length > 50
|
|
230
231
|
return false if !@first_name.nil? && @first_name.to_s.length > 50
|
|
231
232
|
return false if !@last_name.nil? && @last_name.to_s.length > 50
|
|
232
233
|
return false if !@job_title.nil? && @job_title.to_s.length > 50
|
|
@@ -371,7 +372,8 @@ module ConstantContactClient
|
|
|
371
372
|
anniversary == o.anniversary &&
|
|
372
373
|
birthday_month == o.birthday_month &&
|
|
373
374
|
birthday_day == o.birthday_day &&
|
|
374
|
-
street_address == o.street_address
|
|
375
|
+
street_address == o.street_address &&
|
|
376
|
+
sms_channel == o.sms_channel
|
|
375
377
|
end
|
|
376
378
|
|
|
377
379
|
# @see the `==` method
|
|
@@ -383,7 +385,7 @@ module ConstantContactClient
|
|
|
383
385
|
# Calculates hash code according to all attributes.
|
|
384
386
|
# @return [Integer] Hash code
|
|
385
387
|
def hash
|
|
386
|
-
[email_address, first_name, last_name, job_title, company_name, phone_number, list_memberships, custom_fields, anniversary, birthday_month, birthday_day, street_address].hash
|
|
388
|
+
[email_address, first_name, last_name, job_title, company_name, phone_number, list_memberships, custom_fields, anniversary, birthday_month, birthday_day, street_address, sms_channel].hash
|
|
387
389
|
end
|
|
388
390
|
|
|
389
391
|
# Builds the object from hash
|
data/lib/constant_contact_client/models/create_or_update_contact_request_custom_fields_inner.rb
CHANGED
|
@@ -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,276 @@
|
|
|
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
|
+
# The contact's SMS details.
|
|
18
|
+
class CreateOrUpdateContactRequestSmsChannel
|
|
19
|
+
# The contact's SMS-capable phone number, excluding the country code.
|
|
20
|
+
attr_accessor :sms_address
|
|
21
|
+
|
|
22
|
+
# The dial code the country uses. For example, use <code>1</code> for the United States dial code.
|
|
23
|
+
attr_accessor :dial_code
|
|
24
|
+
|
|
25
|
+
# The two-digit code that identifies the country.
|
|
26
|
+
attr_accessor :country_code
|
|
27
|
+
|
|
28
|
+
# The consents provided for the SMS Channel.
|
|
29
|
+
attr_accessor :sms_channel_consents
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'sms_address' => :'sms_address',
|
|
35
|
+
:'dial_code' => :'dial_code',
|
|
36
|
+
:'country_code' => :'country_code',
|
|
37
|
+
:'sms_channel_consents' => :'sms_channel_consents'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'sms_address' => :'String',
|
|
50
|
+
:'dial_code' => :'String',
|
|
51
|
+
:'country_code' => :'String',
|
|
52
|
+
:'sms_channel_consents' => :'Array<CreateOrUpdateContactRequestSmsChannelSmsChannelConsentsInner>'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ConstantContactClient::CreateOrUpdateContactRequestSmsChannel` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ConstantContactClient::CreateOrUpdateContactRequestSmsChannel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'sms_address')
|
|
78
|
+
self.sms_address = attributes[:'sms_address']
|
|
79
|
+
else
|
|
80
|
+
self.sms_address = nil
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'dial_code')
|
|
84
|
+
self.dial_code = attributes[:'dial_code']
|
|
85
|
+
else
|
|
86
|
+
self.dial_code = nil
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'country_code')
|
|
90
|
+
self.country_code = attributes[:'country_code']
|
|
91
|
+
else
|
|
92
|
+
self.country_code = nil
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'sms_channel_consents')
|
|
96
|
+
if (value = attributes[:'sms_channel_consents']).is_a?(Array)
|
|
97
|
+
self.sms_channel_consents = value
|
|
98
|
+
end
|
|
99
|
+
else
|
|
100
|
+
self.sms_channel_consents = nil
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
105
|
+
# @return Array for valid properties with the reasons
|
|
106
|
+
def list_invalid_properties
|
|
107
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
108
|
+
invalid_properties = Array.new
|
|
109
|
+
if @sms_address.nil?
|
|
110
|
+
invalid_properties.push('invalid value for "sms_address", sms_address cannot be nil.')
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if @dial_code.nil?
|
|
114
|
+
invalid_properties.push('invalid value for "dial_code", dial_code cannot be nil.')
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if @country_code.nil?
|
|
118
|
+
invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if @sms_channel_consents.nil?
|
|
122
|
+
invalid_properties.push('invalid value for "sms_channel_consents", sms_channel_consents cannot be nil.')
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
invalid_properties
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Check to see if the all the properties in the model are valid
|
|
129
|
+
# @return true if the model is valid
|
|
130
|
+
def valid?
|
|
131
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
132
|
+
return false if @sms_address.nil?
|
|
133
|
+
return false if @dial_code.nil?
|
|
134
|
+
return false if @country_code.nil?
|
|
135
|
+
return false if @sms_channel_consents.nil?
|
|
136
|
+
true
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Checks equality by comparing each attribute.
|
|
140
|
+
# @param [Object] Object to be compared
|
|
141
|
+
def ==(o)
|
|
142
|
+
return true if self.equal?(o)
|
|
143
|
+
self.class == o.class &&
|
|
144
|
+
sms_address == o.sms_address &&
|
|
145
|
+
dial_code == o.dial_code &&
|
|
146
|
+
country_code == o.country_code &&
|
|
147
|
+
sms_channel_consents == o.sms_channel_consents
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# @see the `==` method
|
|
151
|
+
# @param [Object] Object to be compared
|
|
152
|
+
def eql?(o)
|
|
153
|
+
self == o
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Calculates hash code according to all attributes.
|
|
157
|
+
# @return [Integer] Hash code
|
|
158
|
+
def hash
|
|
159
|
+
[sms_address, dial_code, country_code, sms_channel_consents].hash
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Builds the object from hash
|
|
163
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
164
|
+
# @return [Object] Returns the model itself
|
|
165
|
+
def self.build_from_hash(attributes)
|
|
166
|
+
return nil unless attributes.is_a?(Hash)
|
|
167
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
168
|
+
transformed_hash = {}
|
|
169
|
+
openapi_types.each_pair do |key, type|
|
|
170
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
171
|
+
transformed_hash["#{key}"] = nil
|
|
172
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
173
|
+
# check to ensure the input is an array given that the attribute
|
|
174
|
+
# is documented as an array but the input is not
|
|
175
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
176
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
177
|
+
end
|
|
178
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
179
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
new(transformed_hash)
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Deserializes the data based on type
|
|
186
|
+
# @param string type Data type
|
|
187
|
+
# @param string value Value to be deserialized
|
|
188
|
+
# @return [Object] Deserialized data
|
|
189
|
+
def self._deserialize(type, value)
|
|
190
|
+
case type.to_sym
|
|
191
|
+
when :Time
|
|
192
|
+
Time.parse(value)
|
|
193
|
+
when :Date
|
|
194
|
+
Date.parse(value)
|
|
195
|
+
when :String
|
|
196
|
+
value.to_s
|
|
197
|
+
when :Integer
|
|
198
|
+
value.to_i
|
|
199
|
+
when :Float
|
|
200
|
+
value.to_f
|
|
201
|
+
when :Boolean
|
|
202
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
203
|
+
true
|
|
204
|
+
else
|
|
205
|
+
false
|
|
206
|
+
end
|
|
207
|
+
when :Object
|
|
208
|
+
# generic object (usually a Hash), return directly
|
|
209
|
+
value
|
|
210
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
211
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
212
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
213
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
214
|
+
k_type = Regexp.last_match[:k_type]
|
|
215
|
+
v_type = Regexp.last_match[:v_type]
|
|
216
|
+
{}.tap do |hash|
|
|
217
|
+
value.each do |k, v|
|
|
218
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
else # model
|
|
222
|
+
# models (e.g. Pet) or oneOf
|
|
223
|
+
klass = ConstantContactClient.const_get(type)
|
|
224
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Returns the string representation of the object
|
|
229
|
+
# @return [String] String presentation of the object
|
|
230
|
+
def to_s
|
|
231
|
+
to_hash.to_s
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
|
236
|
+
def to_body
|
|
237
|
+
to_hash
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Returns the object in the form of hash
|
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
|
242
|
+
def to_hash
|
|
243
|
+
hash = {}
|
|
244
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
245
|
+
value = self.send(attr)
|
|
246
|
+
if value.nil?
|
|
247
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
248
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
hash[param] = _to_hash(value)
|
|
252
|
+
end
|
|
253
|
+
hash
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Outputs non-array value in the form of hash
|
|
257
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
258
|
+
# @param [Object] value Any valid value
|
|
259
|
+
# @return [Hash] Returns the value in the form of hash
|
|
260
|
+
def _to_hash(value)
|
|
261
|
+
if value.is_a?(Array)
|
|
262
|
+
value.compact.map { |v| _to_hash(v) }
|
|
263
|
+
elsif value.is_a?(Hash)
|
|
264
|
+
{}.tap do |hash|
|
|
265
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
266
|
+
end
|
|
267
|
+
elsif value.respond_to? :to_hash
|
|
268
|
+
value.to_hash
|
|
269
|
+
else
|
|
270
|
+
value
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
end
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Constant Contact API v3
|
|
3
|
+
|
|
4
|
+
#Swagger build version 3.0.161
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.220
|
|
7
|
+
Contact: webservices@constantcontact.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 7.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module ConstantContactClient
|
|
17
|
+
class CreateOrUpdateContactRequestSmsChannelSmsChannelConsentsInner
|
|
18
|
+
# The current consent status of the SMS Channel.
|
|
19
|
+
attr_accessor :sms_consent_permission
|
|
20
|
+
|
|
21
|
+
# The type of consent provided.
|
|
22
|
+
attr_accessor :consent_type
|
|
23
|
+
|
|
24
|
+
# A code representing where the consent was retrieved.
|
|
25
|
+
attr_accessor :consent_medium_type
|
|
26
|
+
|
|
27
|
+
# The URL for which the consent was gathered, such as a landing page.
|
|
28
|
+
attr_accessor :consent_medium_url
|
|
29
|
+
|
|
30
|
+
# Additional information for the consent
|
|
31
|
+
attr_accessor :consent_medium_details
|
|
32
|
+
|
|
33
|
+
# The numeric component used to indicate how often to send advertising. For example, <code>1</code> indicates once. Use with <code>advertised_internal</code> property to indicate when on the calender to send it. For example, to send once (<code>1</code>) daily, weekly, or monthly.
|
|
34
|
+
attr_accessor :advertised_frequency
|
|
35
|
+
|
|
36
|
+
# The calender interval used to indicate when advertising is sent. For example <code>weekly</code>.
|
|
37
|
+
attr_accessor :advertised_interval
|
|
38
|
+
|
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'sms_consent_permission' => :'sms_consent_permission',
|
|
43
|
+
:'consent_type' => :'consent_type',
|
|
44
|
+
:'consent_medium_type' => :'consent_medium_type',
|
|
45
|
+
:'consent_medium_url' => :'consent_medium_url',
|
|
46
|
+
:'consent_medium_details' => :'consent_medium_details',
|
|
47
|
+
:'advertised_frequency' => :'advertised_frequency',
|
|
48
|
+
:'advertised_interval' => :'advertised_interval'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns all the JSON keys this model knows about
|
|
53
|
+
def self.acceptable_attributes
|
|
54
|
+
attribute_map.values
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Attribute type mapping.
|
|
58
|
+
def self.openapi_types
|
|
59
|
+
{
|
|
60
|
+
:'sms_consent_permission' => :'String',
|
|
61
|
+
:'consent_type' => :'String',
|
|
62
|
+
:'consent_medium_type' => :'String',
|
|
63
|
+
:'consent_medium_url' => :'String',
|
|
64
|
+
:'consent_medium_details' => :'String',
|
|
65
|
+
:'advertised_frequency' => :'Integer',
|
|
66
|
+
:'advertised_interval' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ConstantContactClient::CreateOrUpdateContactRequestSmsChannelSmsChannelConsentsInner` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
85
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ConstantContactClient::CreateOrUpdateContactRequestSmsChannelSmsChannelConsentsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
87
|
+
end
|
|
88
|
+
h[k.to_sym] = v
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'sms_consent_permission')
|
|
92
|
+
self.sms_consent_permission = attributes[:'sms_consent_permission']
|
|
93
|
+
else
|
|
94
|
+
self.sms_consent_permission = nil
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'consent_type')
|
|
98
|
+
self.consent_type = attributes[:'consent_type']
|
|
99
|
+
else
|
|
100
|
+
self.consent_type = nil
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'consent_medium_type')
|
|
104
|
+
self.consent_medium_type = attributes[:'consent_medium_type']
|
|
105
|
+
else
|
|
106
|
+
self.consent_medium_type = nil
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'consent_medium_url')
|
|
110
|
+
self.consent_medium_url = attributes[:'consent_medium_url']
|
|
111
|
+
else
|
|
112
|
+
self.consent_medium_url = nil
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'consent_medium_details')
|
|
116
|
+
self.consent_medium_details = attributes[:'consent_medium_details']
|
|
117
|
+
else
|
|
118
|
+
self.consent_medium_details = nil
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'advertised_frequency')
|
|
122
|
+
self.advertised_frequency = attributes[:'advertised_frequency']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'advertised_interval')
|
|
126
|
+
self.advertised_interval = attributes[:'advertised_interval']
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
131
|
+
# @return Array for valid properties with the reasons
|
|
132
|
+
def list_invalid_properties
|
|
133
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
134
|
+
invalid_properties = Array.new
|
|
135
|
+
if @sms_consent_permission.nil?
|
|
136
|
+
invalid_properties.push('invalid value for "sms_consent_permission", sms_consent_permission cannot be nil.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if @consent_type.nil?
|
|
140
|
+
invalid_properties.push('invalid value for "consent_type", consent_type cannot be nil.')
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if @consent_medium_type.nil?
|
|
144
|
+
invalid_properties.push('invalid value for "consent_medium_type", consent_medium_type cannot be nil.')
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if @consent_medium_url.nil?
|
|
148
|
+
invalid_properties.push('invalid value for "consent_medium_url", consent_medium_url cannot be nil.')
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if @consent_medium_details.nil?
|
|
152
|
+
invalid_properties.push('invalid value for "consent_medium_details", consent_medium_details cannot be nil.')
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
invalid_properties
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Check to see if the all the properties in the model are valid
|
|
159
|
+
# @return true if the model is valid
|
|
160
|
+
def valid?
|
|
161
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
162
|
+
return false if @sms_consent_permission.nil?
|
|
163
|
+
return false if @consent_type.nil?
|
|
164
|
+
return false if @consent_medium_type.nil?
|
|
165
|
+
return false if @consent_medium_url.nil?
|
|
166
|
+
return false if @consent_medium_details.nil?
|
|
167
|
+
true
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Checks equality by comparing each attribute.
|
|
171
|
+
# @param [Object] Object to be compared
|
|
172
|
+
def ==(o)
|
|
173
|
+
return true if self.equal?(o)
|
|
174
|
+
self.class == o.class &&
|
|
175
|
+
sms_consent_permission == o.sms_consent_permission &&
|
|
176
|
+
consent_type == o.consent_type &&
|
|
177
|
+
consent_medium_type == o.consent_medium_type &&
|
|
178
|
+
consent_medium_url == o.consent_medium_url &&
|
|
179
|
+
consent_medium_details == o.consent_medium_details &&
|
|
180
|
+
advertised_frequency == o.advertised_frequency &&
|
|
181
|
+
advertised_interval == o.advertised_interval
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# @see the `==` method
|
|
185
|
+
# @param [Object] Object to be compared
|
|
186
|
+
def eql?(o)
|
|
187
|
+
self == o
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Calculates hash code according to all attributes.
|
|
191
|
+
# @return [Integer] Hash code
|
|
192
|
+
def hash
|
|
193
|
+
[sms_consent_permission, consent_type, consent_medium_type, consent_medium_url, consent_medium_details, advertised_frequency, advertised_interval].hash
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Builds the object from hash
|
|
197
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
198
|
+
# @return [Object] Returns the model itself
|
|
199
|
+
def self.build_from_hash(attributes)
|
|
200
|
+
return nil unless attributes.is_a?(Hash)
|
|
201
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
202
|
+
transformed_hash = {}
|
|
203
|
+
openapi_types.each_pair do |key, type|
|
|
204
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
205
|
+
transformed_hash["#{key}"] = nil
|
|
206
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
207
|
+
# check to ensure the input is an array given that the attribute
|
|
208
|
+
# is documented as an array but the input is not
|
|
209
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
210
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
211
|
+
end
|
|
212
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
213
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
new(transformed_hash)
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Deserializes the data based on type
|
|
220
|
+
# @param string type Data type
|
|
221
|
+
# @param string value Value to be deserialized
|
|
222
|
+
# @return [Object] Deserialized data
|
|
223
|
+
def self._deserialize(type, value)
|
|
224
|
+
case type.to_sym
|
|
225
|
+
when :Time
|
|
226
|
+
Time.parse(value)
|
|
227
|
+
when :Date
|
|
228
|
+
Date.parse(value)
|
|
229
|
+
when :String
|
|
230
|
+
value.to_s
|
|
231
|
+
when :Integer
|
|
232
|
+
value.to_i
|
|
233
|
+
when :Float
|
|
234
|
+
value.to_f
|
|
235
|
+
when :Boolean
|
|
236
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
237
|
+
true
|
|
238
|
+
else
|
|
239
|
+
false
|
|
240
|
+
end
|
|
241
|
+
when :Object
|
|
242
|
+
# generic object (usually a Hash), return directly
|
|
243
|
+
value
|
|
244
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
245
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
246
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
247
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
248
|
+
k_type = Regexp.last_match[:k_type]
|
|
249
|
+
v_type = Regexp.last_match[:v_type]
|
|
250
|
+
{}.tap do |hash|
|
|
251
|
+
value.each do |k, v|
|
|
252
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
else # model
|
|
256
|
+
# models (e.g. Pet) or oneOf
|
|
257
|
+
klass = ConstantContactClient.const_get(type)
|
|
258
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Returns the string representation of the object
|
|
263
|
+
# @return [String] String presentation of the object
|
|
264
|
+
def to_s
|
|
265
|
+
to_hash.to_s
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
269
|
+
# @return [Hash] Returns the object in the form of hash
|
|
270
|
+
def to_body
|
|
271
|
+
to_hash
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Returns the object in the form of hash
|
|
275
|
+
# @return [Hash] Returns the object in the form of hash
|
|
276
|
+
def to_hash
|
|
277
|
+
hash = {}
|
|
278
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
279
|
+
value = self.send(attr)
|
|
280
|
+
if value.nil?
|
|
281
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
282
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
hash[param] = _to_hash(value)
|
|
286
|
+
end
|
|
287
|
+
hash
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Outputs non-array value in the form of hash
|
|
291
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
292
|
+
# @param [Object] value Any valid value
|
|
293
|
+
# @return [Hash] Returns the value in the form of hash
|
|
294
|
+
def _to_hash(value)
|
|
295
|
+
if value.is_a?(Array)
|
|
296
|
+
value.compact.map { |v| _to_hash(v) }
|
|
297
|
+
elsif value.is_a?(Hash)
|
|
298
|
+
{}.tap do |hash|
|
|
299
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
300
|
+
end
|
|
301
|
+
elsif value.respond_to? :to_hash
|
|
302
|
+
value.to_hash
|
|
303
|
+
else
|
|
304
|
+
value
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
end
|