constant_contact_client 1.0.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 +7 -0
- data/CHANGELOG.md +56 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +72 -0
- data/LICENSE +29 -0
- data/README.md +201 -0
- data/Rakefile +10 -0
- data/constant_contact_client.gemspec +39 -0
- data/docs/AccountServicesApi.md +593 -0
- data/docs/BulkActivitiesApi.md +1035 -0
- data/docs/ContactListsApi.md +461 -0
- data/docs/ContactTagsApi.md +382 -0
- data/docs/ContactsApi.md +701 -0
- data/docs/ContactsCustomFieldsApi.md +375 -0
- data/docs/ContactsReportingApi.md +244 -0
- data/docs/EmailCampaignsABTestsApi.md +227 -0
- data/docs/EmailCampaignsApi.md +826 -0
- data/docs/EmailReportingApi.md +925 -0
- data/docs/EmailSchedulingApi.md +447 -0
- data/docs/LandingPagesReportingApi.md +481 -0
- data/docs/SegmentsApi.md +452 -0
- data/lib/constant_contact_client/api/account_services_api.rb +546 -0
- data/lib/constant_contact_client/api/bulk_activities_api.rb +983 -0
- data/lib/constant_contact_client/api/contact_lists_api.rb +449 -0
- data/lib/constant_contact_client/api/contact_tags_api.rb +356 -0
- data/lib/constant_contact_client/api/contacts_api.rb +676 -0
- data/lib/constant_contact_client/api/contacts_custom_fields_api.rb +356 -0
- data/lib/constant_contact_client/api/contacts_reporting_api.rb +255 -0
- data/lib/constant_contact_client/api/email_campaigns_ab_tests_api.rb +220 -0
- data/lib/constant_contact_client/api/email_campaigns_api.rb +766 -0
- data/lib/constant_contact_client/api/email_reporting_api.rb +812 -0
- data/lib/constant_contact_client/api/email_scheduling_api.rb +418 -0
- data/lib/constant_contact_client/api/landing_pages_reporting_api.rb +436 -0
- data/lib/constant_contact_client/api/segments_api.rb +425 -0
- data/lib/constant_contact_client/api_client.rb +394 -0
- data/lib/constant_contact_client/api_error.rb +58 -0
- data/lib/constant_contact_client/configuration.rb +305 -0
- data/lib/constant_contact_client/models/ab_test_data.rb +256 -0
- data/lib/constant_contact_client/models/access_token_response.rb +265 -0
- data/lib/constant_contact_client/models/account_cancellation.rb +226 -0
- data/lib/constant_contact_client/models/account_email_create_response.rb +273 -0
- data/lib/constant_contact_client/models/account_email_input.rb +234 -0
- data/lib/constant_contact_client/models/account_physical_address.rb +409 -0
- data/lib/constant_contact_client/models/account_suspension.rb +289 -0
- data/lib/constant_contact_client/models/activities.rb +226 -0
- data/lib/constant_contact_client/models/activity.rb +316 -0
- data/lib/constant_contact_client/models/activity_delete_custom_fields.rb +297 -0
- data/lib/constant_contact_client/models/activity_delete_list_response.rb +276 -0
- data/lib/constant_contact_client/models/activity_delete_lists_response.rb +305 -0
- data/lib/constant_contact_client/models/activity_delete_status.rb +306 -0
- data/lib/constant_contact_client/models/activity_errors.rb +215 -0
- data/lib/constant_contact_client/models/activity_export_status.rb +306 -0
- data/lib/constant_contact_client/models/activity_generic.rb +299 -0
- data/lib/constant_contact_client/models/activity_generic_status.rb +225 -0
- data/lib/constant_contact_client/models/activity_import.rb +316 -0
- data/lib/constant_contact_client/models/activity_links.rb +223 -0
- data/lib/constant_contact_client/models/activity_lists_membership.rb +305 -0
- data/lib/constant_contact_client/models/activity_reference.rb +225 -0
- data/lib/constant_contact_client/models/activity_status.rb +275 -0
- data/lib/constant_contact_client/models/activity_status_export_link.rb +223 -0
- data/lib/constant_contact_client/models/activity_status_link.rb +214 -0
- data/lib/constant_contact_client/models/activity_tagging.rb +319 -0
- data/lib/constant_contact_client/models/activity_tagging_status.rb +226 -0
- data/lib/constant_contact_client/models/add_account_email_address201_response.rb +273 -0
- data/lib/constant_contact_client/models/add_account_email_address_request.rb +234 -0
- data/lib/constant_contact_client/models/api_error_schema_inner.rb +225 -0
- data/lib/constant_contact_client/models/authorization_error_schema.rb +225 -0
- data/lib/constant_contact_client/models/bounces_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/bounces_tracking_activity.rb +347 -0
- data/lib/constant_contact_client/models/bulk_email_campaign_summaries_page.rb +249 -0
- data/lib/constant_contact_client/models/bulk_email_campaign_summaries_percents.rb +255 -0
- data/lib/constant_contact_client/models/bulk_email_campaign_summary.rb +272 -0
- data/lib/constant_contact_client/models/campaign_activity_stats_query_result_email.rb +229 -0
- data/lib/constant_contact_client/models/campaign_activity_stats_result_generic_stats_email_activity.rb +244 -0
- data/lib/constant_contact_client/models/campaign_activity_summary.rb +341 -0
- data/lib/constant_contact_client/models/campaign_stats_query_result_email.rb +229 -0
- data/lib/constant_contact_client/models/campaign_stats_result_generic_stats_email_percents_email.rb +243 -0
- data/lib/constant_contact_client/models/clicks_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/clicks_tracking_activity.rb +364 -0
- data/lib/constant_contact_client/models/company_logo.rb +235 -0
- data/lib/constant_contact_client/models/contact_campaign_activities_summary.rb +250 -0
- data/lib/constant_contact_client/models/contact_create_or_update_input.rb +503 -0
- data/lib/constant_contact_client/models/contact_create_or_update_response.rb +225 -0
- data/lib/constant_contact_client/models/contact_custom_field.rb +259 -0
- data/lib/constant_contact_client/models/contact_delete.rb +267 -0
- data/lib/constant_contact_client/models/contact_list.rb +301 -0
- data/lib/constant_contact_client/models/contact_list_array.rb +235 -0
- data/lib/constant_contact_client/models/contact_list_put_post.rb +291 -0
- data/lib/constant_contact_client/models/contact_open_and_click_rates.rb +274 -0
- data/lib/constant_contact_client/models/contact_post_request.rb +575 -0
- data/lib/constant_contact_client/models/contact_put_request.rb +582 -0
- data/lib/constant_contact_client/models/contact_resource.rb +635 -0
- data/lib/constant_contact_client/models/contact_tracking_activities_page.rb +227 -0
- data/lib/constant_contact_client/models/contact_tracking_activity.rb +270 -0
- data/lib/constant_contact_client/models/contact_xref.rb +226 -0
- data/lib/constant_contact_client/models/contact_xrefs.rb +236 -0
- data/lib/constant_contact_client/models/contacts.rb +246 -0
- data/lib/constant_contact_client/models/contacts_counts.rb +265 -0
- data/lib/constant_contact_client/models/contacts_export.rb +300 -0
- data/lib/constant_contact_client/models/contacts_json_import.rb +281 -0
- data/lib/constant_contact_client/models/create_contact_request.rb +575 -0
- data/lib/constant_contact_client/models/create_contact_request_email_address.rb +252 -0
- data/lib/constant_contact_client/models/create_csv_import_activity201_response.rb +316 -0
- data/lib/constant_contact_client/models/create_csv_import_activity201_response_links.rb +214 -0
- data/lib/constant_contact_client/models/create_csv_import_activity201_response_status.rb +255 -0
- data/lib/constant_contact_client/models/create_delete_activity201_response.rb +306 -0
- data/lib/constant_contact_client/models/create_delete_activity201_response_links.rb +214 -0
- data/lib/constant_contact_client/models/create_delete_activity201_response_links_self.rb +215 -0
- data/lib/constant_contact_client/models/create_delete_activity201_response_status.rb +235 -0
- data/lib/constant_contact_client/models/create_delete_activity_request.rb +267 -0
- data/lib/constant_contact_client/models/create_email_campaign200_response.rb +306 -0
- data/lib/constant_contact_client/models/create_email_campaign200_response_campaign_activities_inner.rb +225 -0
- data/lib/constant_contact_client/models/create_email_campaign_request.rb +260 -0
- data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner.rb +402 -0
- data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner_physical_address_in_footer.rb +347 -0
- data/lib/constant_contact_client/models/create_export_activity201_response.rb +306 -0
- data/lib/constant_contact_client/models/create_export_activity201_response_status.rb +225 -0
- data/lib/constant_contact_client/models/create_export_activity_request.rb +300 -0
- data/lib/constant_contact_client/models/create_import_json_activity_request.rb +281 -0
- data/lib/constant_contact_client/models/create_import_json_activity_request_import_data_inner.rb +1315 -0
- data/lib/constant_contact_client/models/create_list_add_activity_request.rb +268 -0
- data/lib/constant_contact_client/models/create_list_add_activity_request_exclude.rb +217 -0
- data/lib/constant_contact_client/models/create_list_add_activity_request_source.rb +331 -0
- data/lib/constant_contact_client/models/create_list_delete_activity201_response.rb +305 -0
- data/lib/constant_contact_client/models/create_list_delete_activity201_response_links.rb +214 -0
- data/lib/constant_contact_client/models/create_list_delete_activity201_response_links_self.rb +215 -0
- data/lib/constant_contact_client/models/create_list_delete_activity201_response_status.rb +215 -0
- data/lib/constant_contact_client/models/create_list_delete_activity_request.rb +243 -0
- data/lib/constant_contact_client/models/create_list_remove_activity201_response.rb +305 -0
- data/lib/constant_contact_client/models/create_list_remove_activity201_response_status.rb +235 -0
- data/lib/constant_contact_client/models/create_list_remove_activity_request.rb +268 -0
- data/lib/constant_contact_client/models/create_list_remove_activity_request_exclude.rb +217 -0
- data/lib/constant_contact_client/models/create_list_remove_activity_request_source.rb +321 -0
- data/lib/constant_contact_client/models/create_or_update_contact200_response.rb +225 -0
- data/lib/constant_contact_client/models/create_or_update_contact_custom_field.rb +244 -0
- data/lib/constant_contact_client/models/create_or_update_contact_request.rb +503 -0
- data/lib/constant_contact_client/models/create_or_update_contact_request_custom_fields_inner.rb +244 -0
- data/lib/constant_contact_client/models/create_or_update_contact_request_street_address.rb +367 -0
- data/lib/constant_contact_client/models/create_resend_email_campaign201_response.rb +255 -0
- data/lib/constant_contact_client/models/create_resend_email_campaign_request.rb +242 -0
- data/lib/constant_contact_client/models/create_segment201_response.rb +274 -0
- data/lib/constant_contact_client/models/create_segment_request.rb +258 -0
- data/lib/constant_contact_client/models/create_tag_delete_activity_request.rb +243 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response.rb +319 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links.rb +223 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_results.rb +215 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_self.rb +214 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_status.rb +226 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity_request.rb +268 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity_request_exclude.rb +218 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity_request_source.rb +319 -0
- data/lib/constant_contact_client/models/cross_reference.rb +235 -0
- data/lib/constant_contact_client/models/cross_reference_response.rb +217 -0
- data/lib/constant_contact_client/models/custom_field_id100.rb +243 -0
- data/lib/constant_contact_client/models/custom_field_input.rb +258 -0
- data/lib/constant_contact_client/models/custom_field_resource.rb +318 -0
- data/lib/constant_contact_client/models/custom_fields.rb +245 -0
- data/lib/constant_contact_client/models/customer.rb +352 -0
- data/lib/constant_contact_client/models/customer_put.rb +334 -0
- data/lib/constant_contact_client/models/delete_list202_response.rb +276 -0
- data/lib/constant_contact_client/models/delete_tag202_response.rb +299 -0
- data/lib/constant_contact_client/models/delete_tag202_response_activity_errors_inner.rb +215 -0
- data/lib/constant_contact_client/models/delete_tag202_response_links.rb +214 -0
- data/lib/constant_contact_client/models/delete_tag202_response_links_self.rb +215 -0
- data/lib/constant_contact_client/models/delete_tag202_response_status.rb +225 -0
- data/lib/constant_contact_client/models/device_flow_response.rb +265 -0
- data/lib/constant_contact_client/models/did_not_opens_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/did_not_opens_tracking_activity.rb +320 -0
- data/lib/constant_contact_client/models/email_address.rb +351 -0
- data/lib/constant_contact_client/models/email_address_post.rb +252 -0
- data/lib/constant_contact_client/models/email_address_put.rb +341 -0
- data/lib/constant_contact_client/models/email_campaign.rb +306 -0
- data/lib/constant_contact_client/models/email_campaign_activity.rb +405 -0
- data/lib/constant_contact_client/models/email_campaign_activity_input.rb +402 -0
- data/lib/constant_contact_client/models/email_campaign_activity_preview.rb +285 -0
- data/lib/constant_contact_client/models/email_campaign_complete.rb +260 -0
- data/lib/constant_contact_client/models/email_campaign_name.rb +241 -0
- data/lib/constant_contact_client/models/email_campaigns.rb +294 -0
- data/lib/constant_contact_client/models/email_link_click_count.rb +265 -0
- data/lib/constant_contact_client/models/email_links.rb +227 -0
- data/lib/constant_contact_client/models/email_physical_address.rb +346 -0
- data/lib/constant_contact_client/models/email_schedule_input.rb +222 -0
- data/lib/constant_contact_client/models/email_test_send_input.rb +253 -0
- data/lib/constant_contact_client/models/emails_link.rb +214 -0
- data/lib/constant_contact_client/models/emails_paging_links.rb +214 -0
- data/lib/constant_contact_client/models/file_object.rb +384 -0
- data/lib/constant_contact_client/models/file_status_array_inner.rb +235 -0
- data/lib/constant_contact_client/models/forwards_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/forwards_tracking_activity.rb +320 -0
- data/lib/constant_contact_client/models/get_ab_test_email_campaign200_response.rb +256 -0
- data/lib/constant_contact_client/models/get_account_details200_response.rb +352 -0
- data/lib/constant_contact_client/models/get_account_details200_response_company_logo.rb +236 -0
- data/lib/constant_contact_client/models/get_account_details200_response_physical_address.rb +409 -0
- data/lib/constant_contact_client/models/get_activity_by_id200_response.rb +316 -0
- data/lib/constant_contact_client/models/get_all_account_email_addresses200_response_inner.rb +317 -0
- data/lib/constant_contact_client/models/get_all_activities200_response.rb +226 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner.rb +316 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links.rb +223 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_results.rb +215 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_self.rb +215 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_status.rb +275 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_links.rb +214 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_links_next.rb +214 -0
- data/lib/constant_contact_client/models/get_all_contacts200_response.rb +246 -0
- data/lib/constant_contact_client/models/get_all_custom_fields200_response.rb +245 -0
- data/lib/constant_contact_client/models/get_all_email_campaigns200_response.rb +225 -0
- data/lib/constant_contact_client/models/get_all_email_campaigns200_response_campaigns_inner.rb +294 -0
- data/lib/constant_contact_client/models/get_all_email_campaigns200_response_links.rb +214 -0
- data/lib/constant_contact_client/models/get_all_lists200_response.rb +235 -0
- data/lib/constant_contact_client/models/get_all_segments200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_all_segments200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_all_segments200_response_links_next.rb +223 -0
- data/lib/constant_contact_client/models/get_all_segments200_response_segments_inner.rb +245 -0
- data/lib/constant_contact_client/models/get_all_tags200_response.rb +226 -0
- data/lib/constant_contact_client/models/get_all_tags200_response_links.rb +215 -0
- data/lib/constant_contact_client/models/get_all_tags200_response_links_next.rb +224 -0
- data/lib/constant_contact_client/models/get_all_tags200_response_links_next_next.rb +223 -0
- data/lib/constant_contact_client/models/get_bounces_report200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_bounces_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_bounces_report200_response_tracking_activities_inner.rb +347 -0
- data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response.rb +227 -0
- data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response_link_click_counts_inner.rb +265 -0
- data/lib/constant_contact_client/models/get_clicks_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_clicks_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_clicks_report200_response_tracking_activities_inner.rb +364 -0
- data/lib/constant_contact_client/models/get_contact_adds200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_contact_adds200_response_tracking_activities_inner.rb +329 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response.rb +635 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_custom_fields_inner.rb +259 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_email_address.rb +351 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_notes_inner.rb +255 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_phone_numbers_inner.rb +294 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel.rb +278 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel_sms_channel_consents_inner.rb +285 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_street_addresses_inner.rb +397 -0
- data/lib/constant_contact_client/models/get_contact_counts200_response.rb +265 -0
- data/lib/constant_contact_client/models/get_contact_id_xrefs200_response.rb +236 -0
- data/lib/constant_contact_client/models/get_contact_id_xrefs200_response_xrefs_inner.rb +226 -0
- data/lib/constant_contact_client/models/get_contact_open_click_rate_report200_response.rb +274 -0
- data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response.rb +250 -0
- data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_campaign_activities_inner.rb +341 -0
- data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response.rb +227 -0
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links_next.rb +223 -0
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response_tracking_activities_inner.rb +270 -0
- data/lib/constant_contact_client/models/get_custom_field200_response.rb +318 -0
- data/lib/constant_contact_client/models/get_did_not_opens_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_did_not_opens_report200_response_tracking_activities_inner.rb +320 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity200_response.rb +405 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity200_response_document_properties.rb +520 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity200_response_physical_address_in_footer.rb +347 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_preview200_response.rb +285 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response.rb +229 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner.rb +244 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner_stats.rb +476 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_schedule200_response_inner.rb +215 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_send_history200_response_inner.rb +298 -0
- data/lib/constant_contact_client/models/get_email_campaign_report200_response.rb +249 -0
- data/lib/constant_contact_client/models/get_email_campaign_report200_response_aggregate_percents.rb +256 -0
- data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner.rb +272 -0
- data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner_unique_counts.rb +342 -0
- data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response.rb +217 -0
- data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response_xrefs_inner.rb +235 -0
- data/lib/constant_contact_client/models/get_email_opens_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_email_opens_report200_response_tracking_activities_inner.rb +330 -0
- data/lib/constant_contact_client/models/get_email_sends_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_email_sends_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_email_sends_report200_response_tracking_activities_inner.rb +320 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response.rb +229 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response_errors_inner.rb +225 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner.rb +243 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_percents.rb +296 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_stats.rb +396 -0
- data/lib/constant_contact_client/models/get_forwards_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_forwards_report200_response_tracking_activities_inner.rb +320 -0
- data/lib/constant_contact_client/models/get_list200_response.rb +301 -0
- data/lib/constant_contact_client/models/get_list_id_xrefs200_response.rb +236 -0
- data/lib/constant_contact_client/models/get_list_id_xrefs200_response_xrefs_inner.rb +226 -0
- data/lib/constant_contact_client/models/get_optouts_report200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_optouts_report200_response_tracking_activities_inner.rb +330 -0
- data/lib/constant_contact_client/models/get_resend_email_campaign200_response_inner.rb +265 -0
- data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner.rb +255 -0
- data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner_history_details.rb +316 -0
- data/lib/constant_contact_client/models/get_tag200_response.rb +265 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links_next.rb +223 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner.rb +366 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner_sms_channel.rb +246 -0
- data/lib/constant_contact_client/models/get_unique_contact_opens200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_unique_contact_opens200_response_tracking_activities_inner.rb +339 -0
- data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response_tracking_activities_inner.rb +329 -0
- data/lib/constant_contact_client/models/get_unique_contact_updates200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_unique_contact_updates200_response_tracking_activities_inner.rb +329 -0
- data/lib/constant_contact_client/models/get_user_privileges200_response_inner.rb +225 -0
- data/lib/constant_contact_client/models/headers_object.rb +225 -0
- data/lib/constant_contact_client/models/history_details.rb +316 -0
- data/lib/constant_contact_client/models/json_import_contact.rb +1315 -0
- data/lib/constant_contact_client/models/link.rb +214 -0
- data/lib/constant_contact_client/models/links.rb +221 -0
- data/lib/constant_contact_client/models/list_activity_add_contacts.rb +268 -0
- data/lib/constant_contact_client/models/list_activity_remove_contacts.rb +268 -0
- data/lib/constant_contact_client/models/list_id_list100.rb +243 -0
- data/lib/constant_contact_client/models/list_input.rb +263 -0
- data/lib/constant_contact_client/models/list_xref.rb +226 -0
- data/lib/constant_contact_client/models/list_xrefs.rb +236 -0
- data/lib/constant_contact_client/models/lpreporting_links.rb +221 -0
- data/lib/constant_contact_client/models/lpreporting_next.rb +222 -0
- data/lib/constant_contact_client/models/model_next.rb +222 -0
- data/lib/constant_contact_client/models/my_library_file_collection_inner.rb +384 -0
- data/lib/constant_contact_client/models/my_library_file_collection_inner_thumbnail.rb +235 -0
- data/lib/constant_contact_client/models/note.rb +255 -0
- data/lib/constant_contact_client/models/o_auth_error.rb +223 -0
- data/lib/constant_contact_client/models/opens_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/opens_tracking_activity.rb +330 -0
- data/lib/constant_contact_client/models/optouts_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/optouts_tracking_activity.rb +330 -0
- data/lib/constant_contact_client/models/p_contact_add_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_add_tracking_activity.rb +329 -0
- data/lib/constant_contact_client/models/p_contact_click_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_click_tracking_activity.rb +366 -0
- data/lib/constant_contact_client/models/p_contact_open_tracking_activity.rb +339 -0
- data/lib/constant_contact_client/models/p_contact_opens_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activity.rb +329 -0
- data/lib/constant_contact_client/models/p_contact_update_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_update_tracking_activity.rb +329 -0
- data/lib/constant_contact_client/models/paged_email_campaign_response.rb +225 -0
- data/lib/constant_contact_client/models/pagination_links.rb +214 -0
- data/lib/constant_contact_client/models/pagination_links_next.rb +215 -0
- data/lib/constant_contact_client/models/paging_links.rb +214 -0
- data/lib/constant_contact_client/models/partner_account.rb +233 -0
- data/lib/constant_contact_client/models/partner_account_links.rb +215 -0
- data/lib/constant_contact_client/models/partner_account_operations_request.rb +286 -0
- data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_headers_inner.rb +225 -0
- data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_path_parameters_inner.rb +225 -0
- data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_query_parameters_inner.rb +225 -0
- data/lib/constant_contact_client/models/partner_account_site_owner_list_inner.rb +265 -0
- data/lib/constant_contact_client/models/partners_link.rb +214 -0
- data/lib/constant_contact_client/models/patch_email_campaign_name_request.rb +241 -0
- data/lib/constant_contact_client/models/path_param_object.rb +225 -0
- data/lib/constant_contact_client/models/percents_email.rb +295 -0
- data/lib/constant_contact_client/models/phone_number.rb +294 -0
- data/lib/constant_contact_client/models/phone_number_put.rb +244 -0
- data/lib/constant_contact_client/models/plan_info.rb +236 -0
- data/lib/constant_contact_client/models/plan_tiers_object.rb +248 -0
- data/lib/constant_contact_client/models/plan_tiers_object_current_tiers_inner.rb +278 -0
- data/lib/constant_contact_client/models/post_custom_field_delete201_response.rb +297 -0
- data/lib/constant_contact_client/models/post_custom_field_delete_request.rb +243 -0
- data/lib/constant_contact_client/models/post_tag_request.rb +260 -0
- data/lib/constant_contact_client/models/provision.rb +723 -0
- data/lib/constant_contact_client/models/provision_response.rb +225 -0
- data/lib/constant_contact_client/models/put_tag_request.rb +250 -0
- data/lib/constant_contact_client/models/query_param_object.rb +225 -0
- data/lib/constant_contact_client/models/reporting_links.rb +221 -0
- data/lib/constant_contact_client/models/reporting_next.rb +222 -0
- data/lib/constant_contact_client/models/resend_to_non_openers_input.rb +242 -0
- data/lib/constant_contact_client/models/resend_to_non_openers_object.rb +255 -0
- data/lib/constant_contact_client/models/schedule_email_campaign_activity_request.rb +222 -0
- data/lib/constant_contact_client/models/segment_data.rb +258 -0
- data/lib/constant_contact_client/models/segment_detail.rb +274 -0
- data/lib/constant_contact_client/models/segment_master.rb +245 -0
- data/lib/constant_contact_client/models/segment_name.rb +222 -0
- data/lib/constant_contact_client/models/segments_dto.rb +233 -0
- data/lib/constant_contact_client/models/sends_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/sends_tracking_activity.rb +320 -0
- data/lib/constant_contact_client/models/sms_channel_consent_details.rb +285 -0
- data/lib/constant_contact_client/models/sso_user.rb +439 -0
- data/lib/constant_contact_client/models/stats_email.rb +395 -0
- data/lib/constant_contact_client/models/stats_email_activity.rb +475 -0
- data/lib/constant_contact_client/models/stats_error.rb +225 -0
- data/lib/constant_contact_client/models/street_address.rb +397 -0
- data/lib/constant_contact_client/models/street_address_put.rb +367 -0
- data/lib/constant_contact_client/models/tag.rb +265 -0
- data/lib/constant_contact_client/models/tag_add_remove_contacts.rb +268 -0
- data/lib/constant_contact_client/models/tag_id_list500_limit.rb +243 -0
- data/lib/constant_contact_client/models/tag_post.rb +260 -0
- data/lib/constant_contact_client/models/tag_put.rb +250 -0
- data/lib/constant_contact_client/models/tags.rb +226 -0
- data/lib/constant_contact_client/models/tags_activity_links.rb +214 -0
- data/lib/constant_contact_client/models/tags_links.rb +223 -0
- data/lib/constant_contact_client/models/tags_paging_links.rb +214 -0
- data/lib/constant_contact_client/models/test_send_email_campaign_activity_request.rb +253 -0
- data/lib/constant_contact_client/models/tier_object.rb +278 -0
- data/lib/constant_contact_client/models/tracking_activity_sms_channel_dto.rb +245 -0
- data/lib/constant_contact_client/models/unique_email_counts.rb +341 -0
- data/lib/constant_contact_client/models/update_account_request.rb +334 -0
- data/lib/constant_contact_client/models/update_contact_request.rb +582 -0
- data/lib/constant_contact_client/models/update_contact_request_email_address.rb +341 -0
- data/lib/constant_contact_client/models/update_contact_request_phone_numbers_inner.rb +244 -0
- data/lib/constant_contact_client/models/update_contact_request_street_addresses_inner.rb +367 -0
- data/lib/constant_contact_client/models/update_custom_field_request.rb +258 -0
- data/lib/constant_contact_client/models/update_list200_response.rb +291 -0
- data/lib/constant_contact_client/models/update_list_request.rb +263 -0
- data/lib/constant_contact_client/models/update_segment_name_request.rb +222 -0
- data/lib/constant_contact_client/models/webhooks_subscription_body.rb +215 -0
- data/lib/constant_contact_client/models/webhooks_subscription_collection_inner.rb +245 -0
- data/lib/constant_contact_client/models/webhooks_subscription_put_resp.rb +225 -0
- data/lib/constant_contact_client/models/webhooks_subscription_response.rb +245 -0
- data/lib/constant_contact_client/models/webhooks_test_send.rb +245 -0
- data/lib/constant_contact_client/version.rb +15 -0
- data/lib/constant_contact_client.rb +417 -0
- data/spec/spec_helper.rb +111 -0
- metadata +488 -0
@@ -0,0 +1,723 @@
|
|
1
|
+
=begin
|
2
|
+
#Constant Contact API v3
|
3
|
+
|
4
|
+
#Swagger build version 3.0.2475
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.101
|
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 Provision
|
18
|
+
# A valid email address to associate with the client account.
|
19
|
+
attr_accessor :contact_email
|
20
|
+
|
21
|
+
# The contact phone number to associate with the client account.
|
22
|
+
attr_accessor :contact_phone
|
23
|
+
|
24
|
+
# The two-letter country code (ISO 3166-1 code) that specifies the country in which the client resides.
|
25
|
+
attr_accessor :country_code
|
26
|
+
|
27
|
+
# The name of organization that identifies the client account.
|
28
|
+
attr_accessor :organization_name
|
29
|
+
|
30
|
+
# The organization phone number. To set the organization phone number using the user interface, select <b>My Settings</b> and in the <b>Organization Information</b> section, select <b>Edit Organization Information</b>.
|
31
|
+
attr_accessor :organization_phone
|
32
|
+
|
33
|
+
# The two-letter state code that represents the US state (<code>country_code</code> is <code>US</code> ) or Canadian province (<code>country_code</code> is <code>CA</code>) where the client's organization is physically located. Leave the <code>state_code</code> blank for non-US states and Canadian provinces.
|
34
|
+
attr_accessor :state_code
|
35
|
+
|
36
|
+
# The offical time zone to use to represent the physical location associated with the client account.
|
37
|
+
attr_accessor :time_zone_id
|
38
|
+
|
39
|
+
# The client's website URL. Specifying the website URL eliminates the need for clients to provide that information. Requires a valid URL starting with http:// or https://.
|
40
|
+
attr_accessor :website
|
41
|
+
|
42
|
+
# A unique login name to associate with the client account. The name must only contain alphanumeric characters and '-', '_', '@','.','+'.
|
43
|
+
attr_accessor :login_name
|
44
|
+
|
45
|
+
# Required if not using Single Sign On (SSO) or external authenticator. The password to associate with the client account. Passwords must be at least 8 characters and no more than 80 characters in length. Passwords can contain alphabetical letters (A-Z) and (a-z), numbers (0-9), special characters (! @ # $ etc.) and spaces. Passwords should not contain any part of your username and cannot be the same as your last password, or be listed on an industry database; we check for easily guessed or compromised passwords. Your new password is not returned in the response payload for security reasons. If using SSO authentication, use <code>idp_provider</code> and <code>idp_provider_id</code> instead of <code>password</code>.
|
46
|
+
attr_accessor :password
|
47
|
+
|
48
|
+
# The client account owner's first name.
|
49
|
+
attr_accessor :first_name
|
50
|
+
|
51
|
+
# The client account owner's last name.
|
52
|
+
attr_accessor :last_name
|
53
|
+
|
54
|
+
# The unique client account identifier that partners define and use for billing and reporting purposes.
|
55
|
+
attr_accessor :partner_account_id
|
56
|
+
|
57
|
+
# The currency to use when billing the client account. Valid values are: <code>en_US</code> (default, US Dollars) or <code>en_GB</code> (British Pounds).
|
58
|
+
attr_accessor :billing_locale
|
59
|
+
|
60
|
+
# By default, if the client account is setup as a managed account <code>managed_site_owner</code> is automatically set to <code>true</code> and attempting to override the setting with <code>false</code> is ignored. This helps to avoid getting an account into an unknown state.
|
61
|
+
attr_accessor :managed_site_owner
|
62
|
+
|
63
|
+
# If a partner account is setup to allow for single billing and the <code>managed_site_owner</code> property is set to <code>true</code>, use this property to enable the single billing feature for the client account. See your account manager for more information.
|
64
|
+
attr_accessor :enable_single_billing
|
65
|
+
|
66
|
+
# When creating accounts for users who have opted-out of any marketing communications, set the <code> gdpr_opt_out</code> to <code>true</code> so that Constant Contact does not send any marketing communications to the account.
|
67
|
+
attr_accessor :gdpr_opt_out
|
68
|
+
|
69
|
+
# The ID used to uniquely identify the client account for the external authenticator. Do not use the <code>password</code> property when using an external authenticator.
|
70
|
+
attr_accessor :external_id
|
71
|
+
|
72
|
+
# The name of the provider who externally authenticates this customer. For example, PayPal or Yahoo. Do not use the <code>password</code> property when using an external authenticator.
|
73
|
+
attr_accessor :external_provider
|
74
|
+
|
75
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
76
|
+
def self.attribute_map
|
77
|
+
{
|
78
|
+
:'contact_email' => :'contact_email',
|
79
|
+
:'contact_phone' => :'contact_phone',
|
80
|
+
:'country_code' => :'country_code',
|
81
|
+
:'organization_name' => :'organization_name',
|
82
|
+
:'organization_phone' => :'organization_phone',
|
83
|
+
:'state_code' => :'state_code',
|
84
|
+
:'time_zone_id' => :'time_zone_id',
|
85
|
+
:'website' => :'website',
|
86
|
+
:'login_name' => :'login_name',
|
87
|
+
:'password' => :'password',
|
88
|
+
:'first_name' => :'first_name',
|
89
|
+
:'last_name' => :'last_name',
|
90
|
+
:'partner_account_id' => :'partner_account_id',
|
91
|
+
:'billing_locale' => :'billing_locale',
|
92
|
+
:'managed_site_owner' => :'managed_site_owner',
|
93
|
+
:'enable_single_billing' => :'enable_single_billing',
|
94
|
+
:'gdpr_opt_out' => :'gdpr_opt_out',
|
95
|
+
:'external_id' => :'external_id',
|
96
|
+
:'external_provider' => :'external_provider'
|
97
|
+
}
|
98
|
+
end
|
99
|
+
|
100
|
+
# Returns all the JSON keys this model knows about
|
101
|
+
def self.acceptable_attributes
|
102
|
+
attribute_map.values
|
103
|
+
end
|
104
|
+
|
105
|
+
# Attribute type mapping.
|
106
|
+
def self.openapi_types
|
107
|
+
{
|
108
|
+
:'contact_email' => :'String',
|
109
|
+
:'contact_phone' => :'String',
|
110
|
+
:'country_code' => :'String',
|
111
|
+
:'organization_name' => :'String',
|
112
|
+
:'organization_phone' => :'String',
|
113
|
+
:'state_code' => :'String',
|
114
|
+
:'time_zone_id' => :'String',
|
115
|
+
:'website' => :'String',
|
116
|
+
:'login_name' => :'String',
|
117
|
+
:'password' => :'String',
|
118
|
+
:'first_name' => :'String',
|
119
|
+
:'last_name' => :'String',
|
120
|
+
:'partner_account_id' => :'String',
|
121
|
+
:'billing_locale' => :'String',
|
122
|
+
:'managed_site_owner' => :'Boolean',
|
123
|
+
:'enable_single_billing' => :'Boolean',
|
124
|
+
:'gdpr_opt_out' => :'Boolean',
|
125
|
+
:'external_id' => :'String',
|
126
|
+
:'external_provider' => :'String'
|
127
|
+
}
|
128
|
+
end
|
129
|
+
|
130
|
+
# List of attributes with nullable: true
|
131
|
+
def self.openapi_nullable
|
132
|
+
Set.new([
|
133
|
+
])
|
134
|
+
end
|
135
|
+
|
136
|
+
# Initializes the object
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
def initialize(attributes = {})
|
139
|
+
if (!attributes.is_a?(Hash))
|
140
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ConstantContactClient::Provision` initialize method"
|
141
|
+
end
|
142
|
+
|
143
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
144
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
145
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
146
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ConstantContactClient::Provision`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
147
|
+
end
|
148
|
+
h[k.to_sym] = v
|
149
|
+
}
|
150
|
+
|
151
|
+
if attributes.key?(:'contact_email')
|
152
|
+
self.contact_email = attributes[:'contact_email']
|
153
|
+
else
|
154
|
+
self.contact_email = nil
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'contact_phone')
|
158
|
+
self.contact_phone = attributes[:'contact_phone']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.key?(:'country_code')
|
162
|
+
self.country_code = attributes[:'country_code']
|
163
|
+
else
|
164
|
+
self.country_code = nil
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.key?(:'organization_name')
|
168
|
+
self.organization_name = attributes[:'organization_name']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.key?(:'organization_phone')
|
172
|
+
self.organization_phone = attributes[:'organization_phone']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.key?(:'state_code')
|
176
|
+
self.state_code = attributes[:'state_code']
|
177
|
+
else
|
178
|
+
self.state_code = nil
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'time_zone_id')
|
182
|
+
self.time_zone_id = attributes[:'time_zone_id']
|
183
|
+
end
|
184
|
+
|
185
|
+
if attributes.key?(:'website')
|
186
|
+
self.website = attributes[:'website']
|
187
|
+
end
|
188
|
+
|
189
|
+
if attributes.key?(:'login_name')
|
190
|
+
self.login_name = attributes[:'login_name']
|
191
|
+
else
|
192
|
+
self.login_name = nil
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.key?(:'password')
|
196
|
+
self.password = attributes[:'password']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.key?(:'first_name')
|
200
|
+
self.first_name = attributes[:'first_name']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'last_name')
|
204
|
+
self.last_name = attributes[:'last_name']
|
205
|
+
end
|
206
|
+
|
207
|
+
if attributes.key?(:'partner_account_id')
|
208
|
+
self.partner_account_id = attributes[:'partner_account_id']
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.key?(:'billing_locale')
|
212
|
+
self.billing_locale = attributes[:'billing_locale']
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.key?(:'managed_site_owner')
|
216
|
+
self.managed_site_owner = attributes[:'managed_site_owner']
|
217
|
+
end
|
218
|
+
|
219
|
+
if attributes.key?(:'enable_single_billing')
|
220
|
+
self.enable_single_billing = attributes[:'enable_single_billing']
|
221
|
+
end
|
222
|
+
|
223
|
+
if attributes.key?(:'gdpr_opt_out')
|
224
|
+
self.gdpr_opt_out = attributes[:'gdpr_opt_out']
|
225
|
+
end
|
226
|
+
|
227
|
+
if attributes.key?(:'external_id')
|
228
|
+
self.external_id = attributes[:'external_id']
|
229
|
+
end
|
230
|
+
|
231
|
+
if attributes.key?(:'external_provider')
|
232
|
+
self.external_provider = attributes[:'external_provider']
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
237
|
+
# @return Array for valid properties with the reasons
|
238
|
+
def list_invalid_properties
|
239
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
240
|
+
invalid_properties = Array.new
|
241
|
+
if @contact_email.nil?
|
242
|
+
invalid_properties.push('invalid value for "contact_email", contact_email cannot be nil.')
|
243
|
+
end
|
244
|
+
|
245
|
+
if @contact_email.to_s.length > 80
|
246
|
+
invalid_properties.push('invalid value for "contact_email", the character length must be smaller than or equal to 80.')
|
247
|
+
end
|
248
|
+
|
249
|
+
if !@contact_phone.nil? && @contact_phone.to_s.length > 25
|
250
|
+
invalid_properties.push('invalid value for "contact_phone", the character length must be smaller than or equal to 25.')
|
251
|
+
end
|
252
|
+
|
253
|
+
if !@contact_phone.nil? && @contact_phone.to_s.length < 5
|
254
|
+
invalid_properties.push('invalid value for "contact_phone", the character length must be great than or equal to 5.')
|
255
|
+
end
|
256
|
+
|
257
|
+
if @country_code.nil?
|
258
|
+
invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
|
259
|
+
end
|
260
|
+
|
261
|
+
if @country_code.to_s.length > 3
|
262
|
+
invalid_properties.push('invalid value for "country_code", the character length must be smaller than or equal to 3.')
|
263
|
+
end
|
264
|
+
|
265
|
+
if @country_code.to_s.length < 2
|
266
|
+
invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 2.')
|
267
|
+
end
|
268
|
+
|
269
|
+
if !@organization_name.nil? && @organization_name.to_s.length > 50
|
270
|
+
invalid_properties.push('invalid value for "organization_name", the character length must be smaller than or equal to 50.')
|
271
|
+
end
|
272
|
+
|
273
|
+
if !@organization_name.nil? && @organization_name.to_s.length < 1
|
274
|
+
invalid_properties.push('invalid value for "organization_name", the character length must be great than or equal to 1.')
|
275
|
+
end
|
276
|
+
|
277
|
+
if !@organization_phone.nil? && @organization_phone.to_s.length > 25
|
278
|
+
invalid_properties.push('invalid value for "organization_phone", the character length must be smaller than or equal to 25.')
|
279
|
+
end
|
280
|
+
|
281
|
+
if !@organization_phone.nil? && @organization_phone.to_s.length < 5
|
282
|
+
invalid_properties.push('invalid value for "organization_phone", the character length must be great than or equal to 5.')
|
283
|
+
end
|
284
|
+
|
285
|
+
if @state_code.nil?
|
286
|
+
invalid_properties.push('invalid value for "state_code", state_code cannot be nil.')
|
287
|
+
end
|
288
|
+
|
289
|
+
if @login_name.nil?
|
290
|
+
invalid_properties.push('invalid value for "login_name", login_name cannot be nil.')
|
291
|
+
end
|
292
|
+
|
293
|
+
if @login_name.to_s.length > 50
|
294
|
+
invalid_properties.push('invalid value for "login_name", the character length must be smaller than or equal to 50.')
|
295
|
+
end
|
296
|
+
|
297
|
+
if @login_name.to_s.length < 6
|
298
|
+
invalid_properties.push('invalid value for "login_name", the character length must be great than or equal to 6.')
|
299
|
+
end
|
300
|
+
|
301
|
+
if !@password.nil? && @password.to_s.length > 80
|
302
|
+
invalid_properties.push('invalid value for "password", the character length must be smaller than or equal to 80.')
|
303
|
+
end
|
304
|
+
|
305
|
+
if !@password.nil? && @password.to_s.length < 8
|
306
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 8.')
|
307
|
+
end
|
308
|
+
|
309
|
+
if !@first_name.nil? && @first_name.to_s.length > 80
|
310
|
+
invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 80.')
|
311
|
+
end
|
312
|
+
|
313
|
+
if !@first_name.nil? && @first_name.to_s.length < 2
|
314
|
+
invalid_properties.push('invalid value for "first_name", the character length must be great than or equal to 2.')
|
315
|
+
end
|
316
|
+
|
317
|
+
if !@last_name.nil? && @last_name.to_s.length > 80
|
318
|
+
invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 80.')
|
319
|
+
end
|
320
|
+
|
321
|
+
if !@last_name.nil? && @last_name.to_s.length < 2
|
322
|
+
invalid_properties.push('invalid value for "last_name", the character length must be great than or equal to 2.')
|
323
|
+
end
|
324
|
+
|
325
|
+
if !@partner_account_id.nil? && @partner_account_id.to_s.length > 80
|
326
|
+
invalid_properties.push('invalid value for "partner_account_id", the character length must be smaller than or equal to 80.')
|
327
|
+
end
|
328
|
+
|
329
|
+
if !@external_id.nil? && @external_id.to_s.length > 255
|
330
|
+
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 255.')
|
331
|
+
end
|
332
|
+
|
333
|
+
if !@external_provider.nil? && @external_provider.to_s.length > 80
|
334
|
+
invalid_properties.push('invalid value for "external_provider", the character length must be smaller than or equal to 80.')
|
335
|
+
end
|
336
|
+
|
337
|
+
invalid_properties
|
338
|
+
end
|
339
|
+
|
340
|
+
# Check to see if the all the properties in the model are valid
|
341
|
+
# @return true if the model is valid
|
342
|
+
def valid?
|
343
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
344
|
+
return false if @contact_email.nil?
|
345
|
+
return false if @contact_email.to_s.length > 80
|
346
|
+
return false if !@contact_phone.nil? && @contact_phone.to_s.length > 25
|
347
|
+
return false if !@contact_phone.nil? && @contact_phone.to_s.length < 5
|
348
|
+
return false if @country_code.nil?
|
349
|
+
return false if @country_code.to_s.length > 3
|
350
|
+
return false if @country_code.to_s.length < 2
|
351
|
+
return false if !@organization_name.nil? && @organization_name.to_s.length > 50
|
352
|
+
return false if !@organization_name.nil? && @organization_name.to_s.length < 1
|
353
|
+
return false if !@organization_phone.nil? && @organization_phone.to_s.length > 25
|
354
|
+
return false if !@organization_phone.nil? && @organization_phone.to_s.length < 5
|
355
|
+
return false if @state_code.nil?
|
356
|
+
return false if @login_name.nil?
|
357
|
+
return false if @login_name.to_s.length > 50
|
358
|
+
return false if @login_name.to_s.length < 6
|
359
|
+
return false if !@password.nil? && @password.to_s.length > 80
|
360
|
+
return false if !@password.nil? && @password.to_s.length < 8
|
361
|
+
return false if !@first_name.nil? && @first_name.to_s.length > 80
|
362
|
+
return false if !@first_name.nil? && @first_name.to_s.length < 2
|
363
|
+
return false if !@last_name.nil? && @last_name.to_s.length > 80
|
364
|
+
return false if !@last_name.nil? && @last_name.to_s.length < 2
|
365
|
+
return false if !@partner_account_id.nil? && @partner_account_id.to_s.length > 80
|
366
|
+
return false if !@external_id.nil? && @external_id.to_s.length > 255
|
367
|
+
return false if !@external_provider.nil? && @external_provider.to_s.length > 80
|
368
|
+
true
|
369
|
+
end
|
370
|
+
|
371
|
+
# Custom attribute writer method with validation
|
372
|
+
# @param [Object] contact_email Value to be assigned
|
373
|
+
def contact_email=(contact_email)
|
374
|
+
if contact_email.nil?
|
375
|
+
fail ArgumentError, 'contact_email cannot be nil'
|
376
|
+
end
|
377
|
+
|
378
|
+
if contact_email.to_s.length > 80
|
379
|
+
fail ArgumentError, 'invalid value for "contact_email", the character length must be smaller than or equal to 80.'
|
380
|
+
end
|
381
|
+
|
382
|
+
@contact_email = contact_email
|
383
|
+
end
|
384
|
+
|
385
|
+
# Custom attribute writer method with validation
|
386
|
+
# @param [Object] contact_phone Value to be assigned
|
387
|
+
def contact_phone=(contact_phone)
|
388
|
+
if contact_phone.nil?
|
389
|
+
fail ArgumentError, 'contact_phone cannot be nil'
|
390
|
+
end
|
391
|
+
|
392
|
+
if contact_phone.to_s.length > 25
|
393
|
+
fail ArgumentError, 'invalid value for "contact_phone", the character length must be smaller than or equal to 25.'
|
394
|
+
end
|
395
|
+
|
396
|
+
if contact_phone.to_s.length < 5
|
397
|
+
fail ArgumentError, 'invalid value for "contact_phone", the character length must be great than or equal to 5.'
|
398
|
+
end
|
399
|
+
|
400
|
+
@contact_phone = contact_phone
|
401
|
+
end
|
402
|
+
|
403
|
+
# Custom attribute writer method with validation
|
404
|
+
# @param [Object] country_code Value to be assigned
|
405
|
+
def country_code=(country_code)
|
406
|
+
if country_code.nil?
|
407
|
+
fail ArgumentError, 'country_code cannot be nil'
|
408
|
+
end
|
409
|
+
|
410
|
+
if country_code.to_s.length > 3
|
411
|
+
fail ArgumentError, 'invalid value for "country_code", the character length must be smaller than or equal to 3.'
|
412
|
+
end
|
413
|
+
|
414
|
+
if country_code.to_s.length < 2
|
415
|
+
fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 2.'
|
416
|
+
end
|
417
|
+
|
418
|
+
@country_code = country_code
|
419
|
+
end
|
420
|
+
|
421
|
+
# Custom attribute writer method with validation
|
422
|
+
# @param [Object] organization_name Value to be assigned
|
423
|
+
def organization_name=(organization_name)
|
424
|
+
if organization_name.nil?
|
425
|
+
fail ArgumentError, 'organization_name cannot be nil'
|
426
|
+
end
|
427
|
+
|
428
|
+
if organization_name.to_s.length > 50
|
429
|
+
fail ArgumentError, 'invalid value for "organization_name", the character length must be smaller than or equal to 50.'
|
430
|
+
end
|
431
|
+
|
432
|
+
if organization_name.to_s.length < 1
|
433
|
+
fail ArgumentError, 'invalid value for "organization_name", the character length must be great than or equal to 1.'
|
434
|
+
end
|
435
|
+
|
436
|
+
@organization_name = organization_name
|
437
|
+
end
|
438
|
+
|
439
|
+
# Custom attribute writer method with validation
|
440
|
+
# @param [Object] organization_phone Value to be assigned
|
441
|
+
def organization_phone=(organization_phone)
|
442
|
+
if organization_phone.nil?
|
443
|
+
fail ArgumentError, 'organization_phone cannot be nil'
|
444
|
+
end
|
445
|
+
|
446
|
+
if organization_phone.to_s.length > 25
|
447
|
+
fail ArgumentError, 'invalid value for "organization_phone", the character length must be smaller than or equal to 25.'
|
448
|
+
end
|
449
|
+
|
450
|
+
if organization_phone.to_s.length < 5
|
451
|
+
fail ArgumentError, 'invalid value for "organization_phone", the character length must be great than or equal to 5.'
|
452
|
+
end
|
453
|
+
|
454
|
+
@organization_phone = organization_phone
|
455
|
+
end
|
456
|
+
|
457
|
+
# Custom attribute writer method with validation
|
458
|
+
# @param [Object] login_name Value to be assigned
|
459
|
+
def login_name=(login_name)
|
460
|
+
if login_name.nil?
|
461
|
+
fail ArgumentError, 'login_name cannot be nil'
|
462
|
+
end
|
463
|
+
|
464
|
+
if login_name.to_s.length > 50
|
465
|
+
fail ArgumentError, 'invalid value for "login_name", the character length must be smaller than or equal to 50.'
|
466
|
+
end
|
467
|
+
|
468
|
+
if login_name.to_s.length < 6
|
469
|
+
fail ArgumentError, 'invalid value for "login_name", the character length must be great than or equal to 6.'
|
470
|
+
end
|
471
|
+
|
472
|
+
@login_name = login_name
|
473
|
+
end
|
474
|
+
|
475
|
+
# Custom attribute writer method with validation
|
476
|
+
# @param [Object] password Value to be assigned
|
477
|
+
def password=(password)
|
478
|
+
if password.nil?
|
479
|
+
fail ArgumentError, 'password cannot be nil'
|
480
|
+
end
|
481
|
+
|
482
|
+
if password.to_s.length > 80
|
483
|
+
fail ArgumentError, 'invalid value for "password", the character length must be smaller than or equal to 80.'
|
484
|
+
end
|
485
|
+
|
486
|
+
if password.to_s.length < 8
|
487
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 8.'
|
488
|
+
end
|
489
|
+
|
490
|
+
@password = password
|
491
|
+
end
|
492
|
+
|
493
|
+
# Custom attribute writer method with validation
|
494
|
+
# @param [Object] first_name Value to be assigned
|
495
|
+
def first_name=(first_name)
|
496
|
+
if first_name.nil?
|
497
|
+
fail ArgumentError, 'first_name cannot be nil'
|
498
|
+
end
|
499
|
+
|
500
|
+
if first_name.to_s.length > 80
|
501
|
+
fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 80.'
|
502
|
+
end
|
503
|
+
|
504
|
+
if first_name.to_s.length < 2
|
505
|
+
fail ArgumentError, 'invalid value for "first_name", the character length must be great than or equal to 2.'
|
506
|
+
end
|
507
|
+
|
508
|
+
@first_name = first_name
|
509
|
+
end
|
510
|
+
|
511
|
+
# Custom attribute writer method with validation
|
512
|
+
# @param [Object] last_name Value to be assigned
|
513
|
+
def last_name=(last_name)
|
514
|
+
if last_name.nil?
|
515
|
+
fail ArgumentError, 'last_name cannot be nil'
|
516
|
+
end
|
517
|
+
|
518
|
+
if last_name.to_s.length > 80
|
519
|
+
fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 80.'
|
520
|
+
end
|
521
|
+
|
522
|
+
if last_name.to_s.length < 2
|
523
|
+
fail ArgumentError, 'invalid value for "last_name", the character length must be great than or equal to 2.'
|
524
|
+
end
|
525
|
+
|
526
|
+
@last_name = last_name
|
527
|
+
end
|
528
|
+
|
529
|
+
# Custom attribute writer method with validation
|
530
|
+
# @param [Object] partner_account_id Value to be assigned
|
531
|
+
def partner_account_id=(partner_account_id)
|
532
|
+
if partner_account_id.nil?
|
533
|
+
fail ArgumentError, 'partner_account_id cannot be nil'
|
534
|
+
end
|
535
|
+
|
536
|
+
if partner_account_id.to_s.length > 80
|
537
|
+
fail ArgumentError, 'invalid value for "partner_account_id", the character length must be smaller than or equal to 80.'
|
538
|
+
end
|
539
|
+
|
540
|
+
@partner_account_id = partner_account_id
|
541
|
+
end
|
542
|
+
|
543
|
+
# Custom attribute writer method with validation
|
544
|
+
# @param [Object] external_id Value to be assigned
|
545
|
+
def external_id=(external_id)
|
546
|
+
if external_id.nil?
|
547
|
+
fail ArgumentError, 'external_id cannot be nil'
|
548
|
+
end
|
549
|
+
|
550
|
+
if external_id.to_s.length > 255
|
551
|
+
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 255.'
|
552
|
+
end
|
553
|
+
|
554
|
+
@external_id = external_id
|
555
|
+
end
|
556
|
+
|
557
|
+
# Custom attribute writer method with validation
|
558
|
+
# @param [Object] external_provider Value to be assigned
|
559
|
+
def external_provider=(external_provider)
|
560
|
+
if external_provider.nil?
|
561
|
+
fail ArgumentError, 'external_provider cannot be nil'
|
562
|
+
end
|
563
|
+
|
564
|
+
if external_provider.to_s.length > 80
|
565
|
+
fail ArgumentError, 'invalid value for "external_provider", the character length must be smaller than or equal to 80.'
|
566
|
+
end
|
567
|
+
|
568
|
+
@external_provider = external_provider
|
569
|
+
end
|
570
|
+
|
571
|
+
# Checks equality by comparing each attribute.
|
572
|
+
# @param [Object] Object to be compared
|
573
|
+
def ==(o)
|
574
|
+
return true if self.equal?(o)
|
575
|
+
self.class == o.class &&
|
576
|
+
contact_email == o.contact_email &&
|
577
|
+
contact_phone == o.contact_phone &&
|
578
|
+
country_code == o.country_code &&
|
579
|
+
organization_name == o.organization_name &&
|
580
|
+
organization_phone == o.organization_phone &&
|
581
|
+
state_code == o.state_code &&
|
582
|
+
time_zone_id == o.time_zone_id &&
|
583
|
+
website == o.website &&
|
584
|
+
login_name == o.login_name &&
|
585
|
+
password == o.password &&
|
586
|
+
first_name == o.first_name &&
|
587
|
+
last_name == o.last_name &&
|
588
|
+
partner_account_id == o.partner_account_id &&
|
589
|
+
billing_locale == o.billing_locale &&
|
590
|
+
managed_site_owner == o.managed_site_owner &&
|
591
|
+
enable_single_billing == o.enable_single_billing &&
|
592
|
+
gdpr_opt_out == o.gdpr_opt_out &&
|
593
|
+
external_id == o.external_id &&
|
594
|
+
external_provider == o.external_provider
|
595
|
+
end
|
596
|
+
|
597
|
+
# @see the `==` method
|
598
|
+
# @param [Object] Object to be compared
|
599
|
+
def eql?(o)
|
600
|
+
self == o
|
601
|
+
end
|
602
|
+
|
603
|
+
# Calculates hash code according to all attributes.
|
604
|
+
# @return [Integer] Hash code
|
605
|
+
def hash
|
606
|
+
[contact_email, contact_phone, country_code, organization_name, organization_phone, state_code, time_zone_id, website, login_name, password, first_name, last_name, partner_account_id, billing_locale, managed_site_owner, enable_single_billing, gdpr_opt_out, external_id, external_provider].hash
|
607
|
+
end
|
608
|
+
|
609
|
+
# Builds the object from hash
|
610
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
611
|
+
# @return [Object] Returns the model itself
|
612
|
+
def self.build_from_hash(attributes)
|
613
|
+
return nil unless attributes.is_a?(Hash)
|
614
|
+
attributes = attributes.transform_keys(&:to_sym)
|
615
|
+
transformed_hash = {}
|
616
|
+
openapi_types.each_pair do |key, type|
|
617
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
618
|
+
transformed_hash["#{key}"] = nil
|
619
|
+
elsif type =~ /\AArray<(.*)>/i
|
620
|
+
# check to ensure the input is an array given that the attribute
|
621
|
+
# is documented as an array but the input is not
|
622
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
623
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
624
|
+
end
|
625
|
+
elsif !attributes[attribute_map[key]].nil?
|
626
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
627
|
+
end
|
628
|
+
end
|
629
|
+
new(transformed_hash)
|
630
|
+
end
|
631
|
+
|
632
|
+
# Deserializes the data based on type
|
633
|
+
# @param string type Data type
|
634
|
+
# @param string value Value to be deserialized
|
635
|
+
# @return [Object] Deserialized data
|
636
|
+
def self._deserialize(type, value)
|
637
|
+
case type.to_sym
|
638
|
+
when :Time
|
639
|
+
Time.parse(value)
|
640
|
+
when :Date
|
641
|
+
Date.parse(value)
|
642
|
+
when :String
|
643
|
+
value.to_s
|
644
|
+
when :Integer
|
645
|
+
value.to_i
|
646
|
+
when :Float
|
647
|
+
value.to_f
|
648
|
+
when :Boolean
|
649
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
650
|
+
true
|
651
|
+
else
|
652
|
+
false
|
653
|
+
end
|
654
|
+
when :Object
|
655
|
+
# generic object (usually a Hash), return directly
|
656
|
+
value
|
657
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
658
|
+
inner_type = Regexp.last_match[:inner_type]
|
659
|
+
value.map { |v| _deserialize(inner_type, v) }
|
660
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
661
|
+
k_type = Regexp.last_match[:k_type]
|
662
|
+
v_type = Regexp.last_match[:v_type]
|
663
|
+
{}.tap do |hash|
|
664
|
+
value.each do |k, v|
|
665
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
666
|
+
end
|
667
|
+
end
|
668
|
+
else # model
|
669
|
+
# models (e.g. Pet) or oneOf
|
670
|
+
klass = ConstantContactClient.const_get(type)
|
671
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
672
|
+
end
|
673
|
+
end
|
674
|
+
|
675
|
+
# Returns the string representation of the object
|
676
|
+
# @return [String] String presentation of the object
|
677
|
+
def to_s
|
678
|
+
to_hash.to_s
|
679
|
+
end
|
680
|
+
|
681
|
+
# to_body is an alias to to_hash (backward compatibility)
|
682
|
+
# @return [Hash] Returns the object in the form of hash
|
683
|
+
def to_body
|
684
|
+
to_hash
|
685
|
+
end
|
686
|
+
|
687
|
+
# Returns the object in the form of hash
|
688
|
+
# @return [Hash] Returns the object in the form of hash
|
689
|
+
def to_hash
|
690
|
+
hash = {}
|
691
|
+
self.class.attribute_map.each_pair do |attr, param|
|
692
|
+
value = self.send(attr)
|
693
|
+
if value.nil?
|
694
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
695
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
696
|
+
end
|
697
|
+
|
698
|
+
hash[param] = _to_hash(value)
|
699
|
+
end
|
700
|
+
hash
|
701
|
+
end
|
702
|
+
|
703
|
+
# Outputs non-array value in the form of hash
|
704
|
+
# For object, use to_hash. Otherwise, just return the value
|
705
|
+
# @param [Object] value Any valid value
|
706
|
+
# @return [Hash] Returns the value in the form of hash
|
707
|
+
def _to_hash(value)
|
708
|
+
if value.is_a?(Array)
|
709
|
+
value.compact.map { |v| _to_hash(v) }
|
710
|
+
elsif value.is_a?(Hash)
|
711
|
+
{}.tap do |hash|
|
712
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
713
|
+
end
|
714
|
+
elsif value.respond_to? :to_hash
|
715
|
+
value.to_hash
|
716
|
+
else
|
717
|
+
value
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
end
|
722
|
+
|
723
|
+
end
|