apimatic-apollo-sdk 0.0.1
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/LICENSE +28 -0
- data/README.md +179 -0
- data/bin/console +15 -0
- data/lib/apollo_rest_api/api_helper.rb +10 -0
- data/lib/apollo_rest_api/apis/accounts_api.rb +400 -0
- data/lib/apollo_rest_api/apis/analytics_api.rb +65 -0
- data/lib/apollo_rest_api/apis/api.rb +45 -0
- data/lib/apollo_rest_api/apis/base_api.rb +67 -0
- data/lib/apollo_rest_api/apis/calls_api.rb +354 -0
- data/lib/apollo_rest_api/apis/contacts_api.rb +478 -0
- data/lib/apollo_rest_api/apis/conversations_api.rb +157 -0
- data/lib/apollo_rest_api/apis/deals_api.rb +253 -0
- data/lib/apollo_rest_api/apis/emailer_messages_api.rb +160 -0
- data/lib/apollo_rest_api/apis/enrichment_api.rb +447 -0
- data/lib/apollo_rest_api/apis/miscellaneous_api.rb +610 -0
- data/lib/apollo_rest_api/apis/search_api.rb +675 -0
- data/lib/apollo_rest_api/apis/sequences_api.rb +774 -0
- data/lib/apollo_rest_api/apis/tasks_api.rb +397 -0
- data/lib/apollo_rest_api/client.rb +147 -0
- data/lib/apollo_rest_api/configuration.rb +170 -0
- data/lib/apollo_rest_api/exceptions/account_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_create422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_create429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_create500_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_update422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_update429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_update_owners429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/api_exception.rb +21 -0
- data/lib/apollo_rest_api/exceptions/contact_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_create422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_create429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_create500_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_update422_error_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_update429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_opportunities429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_owners422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_owners429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_stages422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations_export404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations_export422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/email_accounts429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_abort422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_abort429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_add_contact_ids429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_approve422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_approve429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_archive429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_remove_or_stop_contact_ids429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_search422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_send_now429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_schedules429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/fields429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels404_error_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/labels422_error_exception.rb +53 -0
- data/lib/apollo_rest_api/exceptions/labels429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_add_entity_ids_to_label_names422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_add_entity_ids_to_label_names429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_remove_entity_ids_from_label_names422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_remove_entity_ids_from_label_names429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_companies_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_companies_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_people_api_search422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_people_api_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/need_master_api_key_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/notes400_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunities404_error_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/opportunities422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunities429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunities_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunity_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_bulk_enrich400_error_exception.rb +58 -0
- data/lib/apollo_rest_api/exceptions/organizations_bulk_enrich429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_enrich422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_enrich429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_job_postings422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_job_postings429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/people_bulk_match429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/people_match429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/reports_sync_report400_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/reports_sync_report429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/sequences404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/sequences422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/sequences429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks401_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_bulk_create422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_bulk_create429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_complete422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_complete429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_skip422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_skip429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/typed_custom_fields429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/users_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/webhook_result404_error_exception.rb +55 -0
- data/lib/apollo_rest_api/http/api_response.rb +19 -0
- data/lib/apollo_rest_api/http/auth/api_key.rb +52 -0
- data/lib/apollo_rest_api/http/auth/bearer_auth.rb +53 -0
- data/lib/apollo_rest_api/http/http_call_back.rb +10 -0
- data/lib/apollo_rest_api/http/http_method_enum.rb +10 -0
- data/lib/apollo_rest_api/http/http_request.rb +10 -0
- data/lib/apollo_rest_api/http/http_response.rb +10 -0
- data/lib/apollo_rest_api/http/proxy_settings.rb +22 -0
- data/lib/apollo_rest_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/apollo_rest_api/logging/sdk_logger.rb +17 -0
- data/lib/apollo_rest_api/models/account.rb +551 -0
- data/lib/apollo_rest_api/models/account1.rb +420 -0
- data/lib/apollo_rest_api/models/account10.rb +595 -0
- data/lib/apollo_rest_api/models/account12.rb +424 -0
- data/lib/apollo_rest_api/models/account14.rb +247 -0
- data/lib/apollo_rest_api/models/account2.rb +420 -0
- data/lib/apollo_rest_api/models/account22.rb +85 -0
- data/lib/apollo_rest_api/models/account3.rb +420 -0
- data/lib/apollo_rest_api/models/account4.rb +474 -0
- data/lib/apollo_rest_api/models/account5.rb +238 -0
- data/lib/apollo_rest_api/models/account6.rb +86 -0
- data/lib/apollo_rest_api/models/account7.rb +95 -0
- data/lib/apollo_rest_api/models/account8.rb +434 -0
- data/lib/apollo_rest_api/models/account9.rb +540 -0
- data/lib/apollo_rest_api/models/account_attribute.rb +116 -0
- data/lib/apollo_rest_api/models/account_rule_config_status.rb +138 -0
- data/lib/apollo_rest_api/models/account_stage.rb +151 -0
- data/lib/apollo_rest_api/models/account_stages_response.rb +85 -0
- data/lib/apollo_rest_api/models/accounts_bulk_create_request.rb +108 -0
- data/lib/apollo_rest_api/models/accounts_bulk_create_response.rb +105 -0
- data/lib/apollo_rest_api/models/accounts_bulk_update_request.rb +139 -0
- data/lib/apollo_rest_api/models/accounts_bulk_update_response.rb +84 -0
- data/lib/apollo_rest_api/models/accounts_request.rb +183 -0
- data/lib/apollo_rest_api/models/accounts_request1.rb +183 -0
- data/lib/apollo_rest_api/models/accounts_response.rb +75 -0
- data/lib/apollo_rest_api/models/accounts_response1.rb +85 -0
- data/lib/apollo_rest_api/models/accounts_search_request.rb +167 -0
- data/lib/apollo_rest_api/models/accounts_search_response.rb +168 -0
- data/lib/apollo_rest_api/models/accounts_update_owners_response.rb +84 -0
- data/lib/apollo_rest_api/models/active.rb +26 -0
- data/lib/apollo_rest_api/models/assistant_setting.rb +397 -0
- data/lib/apollo_rest_api/models/audio_recording.rb +74 -0
- data/lib/apollo_rest_api/models/base_model.rb +110 -0
- data/lib/apollo_rest_api/models/bounced.rb +26 -0
- data/lib/apollo_rest_api/models/breadcrumb.rb +107 -0
- data/lib/apollo_rest_api/models/check_apollo_pricing_plan.rb +75 -0
- data/lib/apollo_rest_api/models/check_the_account_id.rb +75 -0
- data/lib/apollo_rest_api/models/check_the_contact_stage_id.rb +75 -0
- data/lib/apollo_rest_api/models/contact.rb +809 -0
- data/lib/apollo_rest_api/models/contact1.rb +921 -0
- data/lib/apollo_rest_api/models/contact10.rb +465 -0
- data/lib/apollo_rest_api/models/contact11.rb +250 -0
- data/lib/apollo_rest_api/models/contact14.rb +248 -0
- data/lib/apollo_rest_api/models/contact15.rb +166 -0
- data/lib/apollo_rest_api/models/contact2.rb +884 -0
- data/lib/apollo_rest_api/models/contact3.rb +239 -0
- data/lib/apollo_rest_api/models/contact4.rb +105 -0
- data/lib/apollo_rest_api/models/contact5.rb +893 -0
- data/lib/apollo_rest_api/models/contact6.rb +839 -0
- data/lib/apollo_rest_api/models/contact7.rb +95 -0
- data/lib/apollo_rest_api/models/contact8.rb +375 -0
- data/lib/apollo_rest_api/models/contact9.rb +198 -0
- data/lib/apollo_rest_api/models/contact_attribute.rb +179 -0
- data/lib/apollo_rest_api/models/contact_campaign_status.rb +336 -0
- data/lib/apollo_rest_api/models/contact_campaign_status2.rb +163 -0
- data/lib/apollo_rest_api/models/contact_email.rb +167 -0
- data/lib/apollo_rest_api/models/contact_email1.rb +85 -0
- data/lib/apollo_rest_api/models/contact_email2.rb +148 -0
- data/lib/apollo_rest_api/models/contact_statuses.rb +132 -0
- data/lib/apollo_rest_api/models/contacts_bulk_create_request.rb +121 -0
- data/lib/apollo_rest_api/models/contacts_bulk_create_response.rb +106 -0
- data/lib/apollo_rest_api/models/contacts_bulk_update_request.rb +224 -0
- data/lib/apollo_rest_api/models/contacts_bulk_update_response.rb +94 -0
- data/lib/apollo_rest_api/models/contacts_bulk_update_response1.rb +87 -0
- data/lib/apollo_rest_api/models/contacts_opportunities_response.rb +85 -0
- data/lib/apollo_rest_api/models/contacts_request.rb +269 -0
- data/lib/apollo_rest_api/models/contacts_request1.rb +253 -0
- data/lib/apollo_rest_api/models/contacts_response.rb +94 -0
- data/lib/apollo_rest_api/models/contacts_response1.rb +94 -0
- data/lib/apollo_rest_api/models/contacts_response2.rb +75 -0
- data/lib/apollo_rest_api/models/contacts_search_request.rb +166 -0
- data/lib/apollo_rest_api/models/contacts_search_response.rb +168 -0
- data/lib/apollo_rest_api/models/contacts_update_owners_response.rb +84 -0
- data/lib/apollo_rest_api/models/contacts_update_stages_response.rb +84 -0
- data/lib/apollo_rest_api/models/conversation.rb +284 -0
- data/lib/apollo_rest_api/models/conversation_type.rb +36 -0
- data/lib/apollo_rest_api/models/conversation_type2.rb +36 -0
- data/lib/apollo_rest_api/models/conversations_export_request.rb +94 -0
- data/lib/apollo_rest_api/models/conversations_export_response.rb +86 -0
- data/lib/apollo_rest_api/models/conversations_export_response1.rb +76 -0
- data/lib/apollo_rest_api/models/conversations_response.rb +333 -0
- data/lib/apollo_rest_api/models/conversations_search_request.rb +207 -0
- data/lib/apollo_rest_api/models/conversations_search_response.rb +130 -0
- data/lib/apollo_rest_api/models/counts.rb +115 -0
- data/lib/apollo_rest_api/models/created_account.rb +174 -0
- data/lib/apollo_rest_api/models/created_contact.rb +195 -0
- data/lib/apollo_rest_api/models/creation_type.rb +41 -0
- data/lib/apollo_rest_api/models/currency.rb +95 -0
- data/lib/apollo_rest_api/models/current_technology.rb +95 -0
- data/lib/apollo_rest_api/models/date_range.rb +84 -0
- data/lib/apollo_rest_api/models/date_range1.rb +87 -0
- data/lib/apollo_rest_api/models/deal.rb +107 -0
- data/lib/apollo_rest_api/models/deliverability_score.rb +460 -0
- data/lib/apollo_rest_api/models/departmental_head_count.rb +260 -0
- data/lib/apollo_rest_api/models/detail.rb +173 -0
- data/lib/apollo_rest_api/models/detail1.rb +109 -0
- data/lib/apollo_rest_api/models/email_account.rb +616 -0
- data/lib/apollo_rest_api/models/email_accounts_response.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_campaign.rb +722 -0
- data/lib/apollo_rest_api/models/emailer_campaign1.rb +359 -0
- data/lib/apollo_rest_api/models/emailer_campaign2.rb +158 -0
- data/lib/apollo_rest_api/models/emailer_campaign3.rb +95 -0
- data/lib/apollo_rest_api/models/emailer_campaign4.rb +96 -0
- data/lib/apollo_rest_api/models/emailer_campaign6.rb +105 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_abort_response.rb +96 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_add_contact_ids_response.rb +164 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_approve_response.rb +96 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_archive_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_remove_or_stop_contact_ids_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_search_response.rb +125 -0
- data/lib/apollo_rest_api/models/emailer_message.rb +676 -0
- data/lib/apollo_rest_api/models/emailer_message1.rb +410 -0
- data/lib/apollo_rest_api/models/emailer_messages_email_send_status_request.rb +74 -0
- data/lib/apollo_rest_api/models/emailer_messages_email_send_status_response.rb +166 -0
- data/lib/apollo_rest_api/models/emailer_messages_request.rb +197 -0
- data/lib/apollo_rest_api/models/emailer_messages_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_messages_send_now_request.rb +76 -0
- data/lib/apollo_rest_api/models/emailer_messages_send_now_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_schedule.rb +154 -0
- data/lib/apollo_rest_api/models/emailer_schedules_response.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_step.rb +206 -0
- data/lib/apollo_rest_api/models/emailer_step1.rb +189 -0
- data/lib/apollo_rest_api/models/emailer_step2.rb +126 -0
- data/lib/apollo_rest_api/models/emailer_step3.rb +148 -0
- data/lib/apollo_rest_api/models/emailer_step4.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_step5.rb +128 -0
- data/lib/apollo_rest_api/models/emailer_template.rb +100 -0
- data/lib/apollo_rest_api/models/emailer_template1.rb +95 -0
- data/lib/apollo_rest_api/models/emailer_template2.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_touch.rb +254 -0
- data/lib/apollo_rest_api/models/emailer_touch1.rb +128 -0
- data/lib/apollo_rest_api/models/emailer_touch2.rb +117 -0
- data/lib/apollo_rest_api/models/emailer_touch3.rb +139 -0
- data/lib/apollo_rest_api/models/emailer_touch4.rb +85 -0
- data/lib/apollo_rest_api/models/employment_history.rb +238 -0
- data/lib/apollo_rest_api/models/entity_progress_job.rb +153 -0
- data/lib/apollo_rest_api/models/entity_progress_job1.rb +135 -0
- data/lib/apollo_rest_api/models/entity_progress_job2.rb +141 -0
- data/lib/apollo_rest_api/models/error_details.rb +95 -0
- data/lib/apollo_rest_api/models/existing_account.rb +152 -0
- data/lib/apollo_rest_api/models/existing_contact.rb +171 -0
- data/lib/apollo_rest_api/models/faceting.rb +523 -0
- data/lib/apollo_rest_api/models/failure_reason.rb +44 -0
- data/lib/apollo_rest_api/models/field.rb +181 -0
- data/lib/apollo_rest_api/models/fields_request.rb +105 -0
- data/lib/apollo_rest_api/models/fields_response.rb +84 -0
- data/lib/apollo_rest_api/models/fields_response1.rb +85 -0
- data/lib/apollo_rest_api/models/filters.rb +165 -0
- data/lib/apollo_rest_api/models/finished.rb +26 -0
- data/lib/apollo_rest_api/models/funding_event.rb +134 -0
- data/lib/apollo_rest_api/models/generation_option.rb +107 -0
- data/lib/apollo_rest_api/models/generation_tone.rb +86 -0
- data/lib/apollo_rest_api/models/group_by.rb +84 -0
- data/lib/apollo_rest_api/models/industry_tag_hash.rb +83 -0
- data/lib/apollo_rest_api/models/label.rb +135 -0
- data/lib/apollo_rest_api/models/label2.rb +147 -0
- data/lib/apollo_rest_api/models/labels_add_entity_ids_to_label_names_request.rb +113 -0
- data/lib/apollo_rest_api/models/labels_add_entity_ids_to_label_names_response.rb +107 -0
- data/lib/apollo_rest_api/models/labels_remove_entity_ids_from_label_names_request.rb +113 -0
- data/lib/apollo_rest_api/models/labels_remove_entity_ids_from_label_names_response.rb +107 -0
- data/lib/apollo_rest_api/models/labels_request.rb +97 -0
- data/lib/apollo_rest_api/models/labels_request1.rb +87 -0
- data/lib/apollo_rest_api/models/labels_response.rb +201 -0
- data/lib/apollo_rest_api/models/labels_response1.rb +75 -0
- data/lib/apollo_rest_api/models/match.rb +393 -0
- data/lib/apollo_rest_api/models/meta.rb +76 -0
- data/lib/apollo_rest_api/models/metric.rb +117 -0
- data/lib/apollo_rest_api/models/metric1.rb +100 -0
- data/lib/apollo_rest_api/models/mixed_companies_search_response.rb +199 -0
- data/lib/apollo_rest_api/models/mixed_people_api_search_response.rb +95 -0
- data/lib/apollo_rest_api/models/modality.rb +37 -0
- data/lib/apollo_rest_api/models/modality1.rb +37 -0
- data/lib/apollo_rest_api/models/modality3.rb +40 -0
- data/lib/apollo_rest_api/models/note.rb +260 -0
- data/lib/apollo_rest_api/models/notes_response.rb +84 -0
- data/lib/apollo_rest_api/models/opportunities_request.rb +175 -0
- data/lib/apollo_rest_api/models/opportunities_request1.rb +164 -0
- data/lib/apollo_rest_api/models/opportunities_response.rb +76 -0
- data/lib/apollo_rest_api/models/opportunities_response1.rb +76 -0
- data/lib/apollo_rest_api/models/opportunities_response2.rb +76 -0
- data/lib/apollo_rest_api/models/opportunities_search_response.rb +170 -0
- data/lib/apollo_rest_api/models/opportunity.rb +602 -0
- data/lib/apollo_rest_api/models/opportunity1.rb +574 -0
- data/lib/apollo_rest_api/models/opportunity11.rb +217 -0
- data/lib/apollo_rest_api/models/opportunity2.rb +583 -0
- data/lib/apollo_rest_api/models/opportunity3.rb +594 -0
- data/lib/apollo_rest_api/models/opportunity4.rb +574 -0
- data/lib/apollo_rest_api/models/opportunity5.rb +591 -0
- data/lib/apollo_rest_api/models/opportunity_contact_role.rb +95 -0
- data/lib/apollo_rest_api/models/opportunity_contact_role1.rb +135 -0
- data/lib/apollo_rest_api/models/opportunity_stage.rb +210 -0
- data/lib/apollo_rest_api/models/opportunity_stages_response.rb +85 -0
- data/lib/apollo_rest_api/models/organization.rb +659 -0
- data/lib/apollo_rest_api/models/organization1.rb +422 -0
- data/lib/apollo_rest_api/models/organization2.rb +752 -0
- data/lib/apollo_rest_api/models/organization3.rb +600 -0
- data/lib/apollo_rest_api/models/organization4.rb +162 -0
- data/lib/apollo_rest_api/models/organization5.rb +336 -0
- data/lib/apollo_rest_api/models/organization6.rb +264 -0
- data/lib/apollo_rest_api/models/organization7.rb +88 -0
- data/lib/apollo_rest_api/models/organization_job_posting.rb +144 -0
- data/lib/apollo_rest_api/models/organizations_bulk_enrich_request.rb +89 -0
- data/lib/apollo_rest_api/models/organizations_bulk_enrich_response.rb +194 -0
- data/lib/apollo_rest_api/models/organizations_enrich_response.rb +76 -0
- data/lib/apollo_rest_api/models/organizations_job_postings_response.rb +88 -0
- data/lib/apollo_rest_api/models/pagination.rb +105 -0
- data/lib/apollo_rest_api/models/pagination6.rb +105 -0
- data/lib/apollo_rest_api/models/params.rb +116 -0
- data/lib/apollo_rest_api/models/participants.rb +85 -0
- data/lib/apollo_rest_api/models/paused.rb +26 -0
- data/lib/apollo_rest_api/models/people_bulk_match_request.rb +83 -0
- data/lib/apollo_rest_api/models/people_bulk_match_response.rb +180 -0
- data/lib/apollo_rest_api/models/people_match_response.rb +87 -0
- data/lib/apollo_rest_api/models/person.rb +393 -0
- data/lib/apollo_rest_api/models/person1.rb +196 -0
- data/lib/apollo_rest_api/models/phone_call.rb +131 -0
- data/lib/apollo_rest_api/models/phone_number.rb +149 -0
- data/lib/apollo_rest_api/models/phone_number1.rb +149 -0
- data/lib/apollo_rest_api/models/phone_number3.rb +97 -0
- data/lib/apollo_rest_api/models/phone_number4.rb +85 -0
- data/lib/apollo_rest_api/models/phone_number5.rb +127 -0
- data/lib/apollo_rest_api/models/pivot_group_by.rb +85 -0
- data/lib/apollo_rest_api/models/primary_phone.rb +96 -0
- data/lib/apollo_rest_api/models/priority.rb +40 -0
- data/lib/apollo_rest_api/models/recipient.rb +100 -0
- data/lib/apollo_rest_api/models/recipient1.rb +116 -0
- data/lib/apollo_rest_api/models/reports_sync_report_request.rb +253 -0
- data/lib/apollo_rest_api/models/reports_sync_report_response.rb +102 -0
- data/lib/apollo_rest_api/models/request_type.rb +40 -0
- data/lib/apollo_rest_api/models/response.rb +118 -0
- data/lib/apollo_rest_api/models/role.rb +112 -0
- data/lib/apollo_rest_api/models/send_from.rb +116 -0
- data/lib/apollo_rest_api/models/sequences_request.rb +391 -0
- data/lib/apollo_rest_api/models/sequences_request1.rb +206 -0
- data/lib/apollo_rest_api/models/sequences_response.rb +148 -0
- data/lib/apollo_rest_api/models/sequences_response1.rb +203 -0
- data/lib/apollo_rest_api/models/sharing_access.rb +148 -0
- data/lib/apollo_rest_api/models/sharing_permission.rb +154 -0
- data/lib/apollo_rest_api/models/skipped_contact_ids.rb +77 -0
- data/lib/apollo_rest_api/models/smart_datetime_range.rb +86 -0
- data/lib/apollo_rest_api/models/sort.rb +85 -0
- data/lib/apollo_rest_api/models/sort_by_field.rb +43 -0
- data/lib/apollo_rest_api/models/sort_by_field1.rb +36 -0
- data/lib/apollo_rest_api/models/sort_direction.rb +36 -0
- data/lib/apollo_rest_api/models/source.rb +40 -0
- data/lib/apollo_rest_api/models/status.rb +44 -0
- data/lib/apollo_rest_api/models/status2.rb +36 -0
- data/lib/apollo_rest_api/models/status3.rb +40 -0
- data/lib/apollo_rest_api/models/status4.rb +37 -0
- data/lib/apollo_rest_api/models/step.rb +127 -0
- data/lib/apollo_rest_api/models/task.rb +394 -0
- data/lib/apollo_rest_api/models/task2.rb +536 -0
- data/lib/apollo_rest_api/models/task4.rb +524 -0
- data/lib/apollo_rest_api/models/task5.rb +104 -0
- data/lib/apollo_rest_api/models/task_type.rb +95 -0
- data/lib/apollo_rest_api/models/tasks_bulk_create_request.rb +173 -0
- data/lib/apollo_rest_api/models/tasks_bulk_create_response.rb +94 -0
- data/lib/apollo_rest_api/models/tasks_complete_request.rb +75 -0
- data/lib/apollo_rest_api/models/tasks_complete_response.rb +86 -0
- data/lib/apollo_rest_api/models/tasks_request.rb +183 -0
- data/lib/apollo_rest_api/models/tasks_request1.rb +227 -0
- data/lib/apollo_rest_api/models/tasks_response.rb +74 -0
- data/lib/apollo_rest_api/models/tasks_response1.rb +74 -0
- data/lib/apollo_rest_api/models/tasks_search_response.rb +136 -0
- data/lib/apollo_rest_api/models/tasks_skip_request.rb +88 -0
- data/lib/apollo_rest_api/models/tasks_skip_response.rb +74 -0
- data/lib/apollo_rest_api/models/team.rb +87 -0
- data/lib/apollo_rest_api/models/total_facet.rb +95 -0
- data/lib/apollo_rest_api/models/true_warmup_thresholds.rb +106 -0
- data/lib/apollo_rest_api/models/type.rb +44 -0
- data/lib/apollo_rest_api/models/type1.rb +36 -0
- data/lib/apollo_rest_api/models/type2.rb +52 -0
- data/lib/apollo_rest_api/models/typed_custom_fields.rb +111 -0
- data/lib/apollo_rest_api/models/typed_custom_fields6.rb +106 -0
- data/lib/apollo_rest_api/models/typed_custom_fields7.rb +243 -0
- data/lib/apollo_rest_api/models/typed_custom_fields_response.rb +85 -0
- data/lib/apollo_rest_api/models/unique_completed.rb +26 -0
- data/lib/apollo_rest_api/models/unique_scheduled.rb +26 -0
- data/lib/apollo_rest_api/models/unique_skipped.rb +26 -0
- data/lib/apollo_rest_api/models/user.rb +1294 -0
- data/lib/apollo_rest_api/models/users_api_profile_response.rb +309 -0
- data/lib/apollo_rest_api/models/users_search_response.rb +106 -0
- data/lib/apollo_rest_api/models/video_recording.rb +95 -0
- data/lib/apollo_rest_api/models/wait_mode.rb +40 -0
- data/lib/apollo_rest_api/models/webhook_result_response.rb +140 -0
- data/lib/apollo_rest_api/models/webhook_status.rb +40 -0
- data/lib/apollo_rest_api/utilities/date_time_helper.rb +11 -0
- data/lib/apollo_rest_api/utilities/file_wrapper.rb +28 -0
- data/lib/apollo_rest_api/utilities/union_type_lookup.rb +128 -0
- data/lib/apollo_rest_api.rb +503 -0
- metadata +499 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# apollo_rest_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApolloRestApi
|
|
7
|
+
# ContactAttribute Model.
|
|
8
|
+
class ContactAttribute < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The contact ID to update
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
|
|
16
|
+
# The contact's first name
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :first_name
|
|
19
|
+
|
|
20
|
+
# The contact's last name
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :last_name
|
|
23
|
+
|
|
24
|
+
# The contact's email address
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :email
|
|
27
|
+
|
|
28
|
+
# The contact's job title
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :title
|
|
31
|
+
|
|
32
|
+
# The contact's organization name
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :organization_name
|
|
35
|
+
|
|
36
|
+
# The Apollo user ID to assign as owner
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :owner_id
|
|
39
|
+
|
|
40
|
+
# The Apollo account ID to associate with the contact
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :account_id
|
|
43
|
+
|
|
44
|
+
# The contact's location
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :present_raw_address
|
|
47
|
+
|
|
48
|
+
# The contact's LinkedIn profile URL
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :linkedin_url
|
|
51
|
+
|
|
52
|
+
# Custom field values as key-value pairs
|
|
53
|
+
# @return [Hash[String, String]]
|
|
54
|
+
attr_accessor :typed_custom_fields
|
|
55
|
+
|
|
56
|
+
# A mapping from model property names to API property names.
|
|
57
|
+
def self.names
|
|
58
|
+
@_hash = {} if @_hash.nil?
|
|
59
|
+
@_hash['id'] = 'id'
|
|
60
|
+
@_hash['first_name'] = 'first_name'
|
|
61
|
+
@_hash['last_name'] = 'last_name'
|
|
62
|
+
@_hash['email'] = 'email'
|
|
63
|
+
@_hash['title'] = 'title'
|
|
64
|
+
@_hash['organization_name'] = 'organization_name'
|
|
65
|
+
@_hash['owner_id'] = 'owner_id'
|
|
66
|
+
@_hash['account_id'] = 'account_id'
|
|
67
|
+
@_hash['present_raw_address'] = 'present_raw_address'
|
|
68
|
+
@_hash['linkedin_url'] = 'linkedin_url'
|
|
69
|
+
@_hash['typed_custom_fields'] = 'typed_custom_fields'
|
|
70
|
+
@_hash
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# An array for optional fields
|
|
74
|
+
def self.optionals
|
|
75
|
+
%w[
|
|
76
|
+
first_name
|
|
77
|
+
last_name
|
|
78
|
+
email
|
|
79
|
+
title
|
|
80
|
+
organization_name
|
|
81
|
+
owner_id
|
|
82
|
+
account_id
|
|
83
|
+
present_raw_address
|
|
84
|
+
linkedin_url
|
|
85
|
+
typed_custom_fields
|
|
86
|
+
]
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# An array for nullable fields
|
|
90
|
+
def self.nullables
|
|
91
|
+
[]
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def initialize(id:, first_name: SKIP, last_name: SKIP, email: SKIP,
|
|
95
|
+
title: SKIP, organization_name: SKIP, owner_id: SKIP,
|
|
96
|
+
account_id: SKIP, present_raw_address: SKIP,
|
|
97
|
+
linkedin_url: SKIP, typed_custom_fields: SKIP,
|
|
98
|
+
additional_properties: nil)
|
|
99
|
+
# Add additional model properties to the instance
|
|
100
|
+
additional_properties = {} if additional_properties.nil?
|
|
101
|
+
|
|
102
|
+
@id = id
|
|
103
|
+
@first_name = first_name unless first_name == SKIP
|
|
104
|
+
@last_name = last_name unless last_name == SKIP
|
|
105
|
+
@email = email unless email == SKIP
|
|
106
|
+
@title = title unless title == SKIP
|
|
107
|
+
@organization_name = organization_name unless organization_name == SKIP
|
|
108
|
+
@owner_id = owner_id unless owner_id == SKIP
|
|
109
|
+
@account_id = account_id unless account_id == SKIP
|
|
110
|
+
@present_raw_address = present_raw_address unless present_raw_address == SKIP
|
|
111
|
+
@linkedin_url = linkedin_url unless linkedin_url == SKIP
|
|
112
|
+
@typed_custom_fields = typed_custom_fields unless typed_custom_fields == SKIP
|
|
113
|
+
@additional_properties = additional_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Creates an instance of the object from a hash.
|
|
117
|
+
def self.from_hash(hash)
|
|
118
|
+
return nil unless hash
|
|
119
|
+
|
|
120
|
+
# Extract variables from the hash.
|
|
121
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
122
|
+
first_name = hash.key?('first_name') ? hash['first_name'] : SKIP
|
|
123
|
+
last_name = hash.key?('last_name') ? hash['last_name'] : SKIP
|
|
124
|
+
email = hash.key?('email') ? hash['email'] : SKIP
|
|
125
|
+
title = hash.key?('title') ? hash['title'] : SKIP
|
|
126
|
+
organization_name =
|
|
127
|
+
hash.key?('organization_name') ? hash['organization_name'] : SKIP
|
|
128
|
+
owner_id = hash.key?('owner_id') ? hash['owner_id'] : SKIP
|
|
129
|
+
account_id = hash.key?('account_id') ? hash['account_id'] : SKIP
|
|
130
|
+
present_raw_address =
|
|
131
|
+
hash.key?('present_raw_address') ? hash['present_raw_address'] : SKIP
|
|
132
|
+
linkedin_url = hash.key?('linkedin_url') ? hash['linkedin_url'] : SKIP
|
|
133
|
+
typed_custom_fields =
|
|
134
|
+
hash.key?('typed_custom_fields') ? hash['typed_custom_fields'] : SKIP
|
|
135
|
+
|
|
136
|
+
# Create a new hash for additional properties, removing known properties.
|
|
137
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
138
|
+
|
|
139
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
140
|
+
new_hash, proc { |value| value }
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
# Create object from extracted values.
|
|
144
|
+
ContactAttribute.new(id: id,
|
|
145
|
+
first_name: first_name,
|
|
146
|
+
last_name: last_name,
|
|
147
|
+
email: email,
|
|
148
|
+
title: title,
|
|
149
|
+
organization_name: organization_name,
|
|
150
|
+
owner_id: owner_id,
|
|
151
|
+
account_id: account_id,
|
|
152
|
+
present_raw_address: present_raw_address,
|
|
153
|
+
linkedin_url: linkedin_url,
|
|
154
|
+
typed_custom_fields: typed_custom_fields,
|
|
155
|
+
additional_properties: additional_properties)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Provides a human-readable string representation of the object.
|
|
159
|
+
def to_s
|
|
160
|
+
class_name = self.class.name.split('::').last
|
|
161
|
+
"<#{class_name} id: #{@id}, first_name: #{@first_name}, last_name: #{@last_name}, email:"\
|
|
162
|
+
" #{@email}, title: #{@title}, organization_name: #{@organization_name}, owner_id:"\
|
|
163
|
+
" #{@owner_id}, account_id: #{@account_id}, present_raw_address: #{@present_raw_address},"\
|
|
164
|
+
" linkedin_url: #{@linkedin_url}, typed_custom_fields: #{@typed_custom_fields},"\
|
|
165
|
+
" additional_properties: #{@additional_properties}>"
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
169
|
+
def inspect
|
|
170
|
+
class_name = self.class.name.split('::').last
|
|
171
|
+
"<#{class_name} id: #{@id.inspect}, first_name: #{@first_name.inspect}, last_name:"\
|
|
172
|
+
" #{@last_name.inspect}, email: #{@email.inspect}, title: #{@title.inspect},"\
|
|
173
|
+
" organization_name: #{@organization_name.inspect}, owner_id: #{@owner_id.inspect},"\
|
|
174
|
+
" account_id: #{@account_id.inspect}, present_raw_address: #{@present_raw_address.inspect},"\
|
|
175
|
+
" linkedin_url: #{@linkedin_url.inspect}, typed_custom_fields:"\
|
|
176
|
+
" #{@typed_custom_fields.inspect}, additional_properties: #{@additional_properties}>"
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
# apollo_rest_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module ApolloRestApi
|
|
8
|
+
# Contact campaign status object representing the contact's current state in a
|
|
9
|
+
# specific email sequence
|
|
10
|
+
class ContactCampaignStatus < BaseModel
|
|
11
|
+
SKIP = Object.new
|
|
12
|
+
private_constant :SKIP
|
|
13
|
+
|
|
14
|
+
# Unique identifier for this contact campaign status record
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# ID of the email sequence (emailer campaign) this status belongs to
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :emailer_campaign_id
|
|
21
|
+
|
|
22
|
+
# ID of the user who is sending emails for this contact in the sequence
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :send_email_from_user_id
|
|
25
|
+
|
|
26
|
+
# Reason why the contact is inactive in this sequence, if applicable
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :inactive_reason
|
|
29
|
+
|
|
30
|
+
# Current status of the contact in this email sequence
|
|
31
|
+
# @return [Status]
|
|
32
|
+
attr_accessor :status
|
|
33
|
+
|
|
34
|
+
# Timestamp when the contact was added to this sequence
|
|
35
|
+
# @return [DateTime]
|
|
36
|
+
attr_accessor :added_at
|
|
37
|
+
|
|
38
|
+
# ID of the user who added this contact to the sequence
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :added_by_user_id
|
|
41
|
+
|
|
42
|
+
# Timestamp when the contact finished/completed the sequence
|
|
43
|
+
# @return [DateTime]
|
|
44
|
+
attr_accessor :finished_at
|
|
45
|
+
|
|
46
|
+
# Timestamp when the contact was paused in the sequence
|
|
47
|
+
# @return [DateTime]
|
|
48
|
+
attr_accessor :paused_at
|
|
49
|
+
|
|
50
|
+
# Scheduled timestamp for automatically unpausing the contact
|
|
51
|
+
# @return [DateTime]
|
|
52
|
+
attr_accessor :auto_unpause_at
|
|
53
|
+
|
|
54
|
+
# Specific email address used to send emails to this contact
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :send_email_from_email_address
|
|
57
|
+
|
|
58
|
+
# ID of the email account used to send emails to this contact
|
|
59
|
+
# @return [String]
|
|
60
|
+
attr_accessor :send_email_from_email_account_id
|
|
61
|
+
|
|
62
|
+
# Whether the unpause was manually set by a user
|
|
63
|
+
# @return [TrueClass | FalseClass]
|
|
64
|
+
attr_accessor :manually_set_unpause
|
|
65
|
+
|
|
66
|
+
# Specific reason for failure if status is 'failed'
|
|
67
|
+
# @return [FailureReason]
|
|
68
|
+
attr_accessor :failure_reason
|
|
69
|
+
|
|
70
|
+
# ID of the current step in the sequence that the contact is on
|
|
71
|
+
# @return [String]
|
|
72
|
+
attr_accessor :current_step_id
|
|
73
|
+
|
|
74
|
+
# ID of the emailer message this campaign status is in response to
|
|
75
|
+
# @return [String]
|
|
76
|
+
attr_accessor :in_response_to_emailer_message_id
|
|
77
|
+
|
|
78
|
+
# Email addresses to CC when sending emails to this contact
|
|
79
|
+
# @return [Array[String]]
|
|
80
|
+
attr_accessor :cc_emails
|
|
81
|
+
|
|
82
|
+
# Email addresses to BCC when sending emails to this contact
|
|
83
|
+
# @return [Array[String]]
|
|
84
|
+
attr_accessor :bcc_emails
|
|
85
|
+
|
|
86
|
+
# Additional email addresses to include in TO field when sending emails
|
|
87
|
+
# @return [Array[String]]
|
|
88
|
+
attr_accessor :to_emails
|
|
89
|
+
|
|
90
|
+
# Position number of the current step in the sequence (1-based indexing)
|
|
91
|
+
# @return [Integer]
|
|
92
|
+
attr_accessor :current_step_position
|
|
93
|
+
|
|
94
|
+
# A mapping from model property names to API property names.
|
|
95
|
+
def self.names
|
|
96
|
+
@_hash = {} if @_hash.nil?
|
|
97
|
+
@_hash['id'] = 'id'
|
|
98
|
+
@_hash['emailer_campaign_id'] = 'emailer_campaign_id'
|
|
99
|
+
@_hash['send_email_from_user_id'] = 'send_email_from_user_id'
|
|
100
|
+
@_hash['inactive_reason'] = 'inactive_reason'
|
|
101
|
+
@_hash['status'] = 'status'
|
|
102
|
+
@_hash['added_at'] = 'added_at'
|
|
103
|
+
@_hash['added_by_user_id'] = 'added_by_user_id'
|
|
104
|
+
@_hash['finished_at'] = 'finished_at'
|
|
105
|
+
@_hash['paused_at'] = 'paused_at'
|
|
106
|
+
@_hash['auto_unpause_at'] = 'auto_unpause_at'
|
|
107
|
+
@_hash['send_email_from_email_address'] =
|
|
108
|
+
'send_email_from_email_address'
|
|
109
|
+
@_hash['send_email_from_email_account_id'] =
|
|
110
|
+
'send_email_from_email_account_id'
|
|
111
|
+
@_hash['manually_set_unpause'] = 'manually_set_unpause'
|
|
112
|
+
@_hash['failure_reason'] = 'failure_reason'
|
|
113
|
+
@_hash['current_step_id'] = 'current_step_id'
|
|
114
|
+
@_hash['in_response_to_emailer_message_id'] =
|
|
115
|
+
'in_response_to_emailer_message_id'
|
|
116
|
+
@_hash['cc_emails'] = 'cc_emails'
|
|
117
|
+
@_hash['bcc_emails'] = 'bcc_emails'
|
|
118
|
+
@_hash['to_emails'] = 'to_emails'
|
|
119
|
+
@_hash['current_step_position'] = 'current_step_position'
|
|
120
|
+
@_hash
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# An array for optional fields
|
|
124
|
+
def self.optionals
|
|
125
|
+
%w[
|
|
126
|
+
inactive_reason
|
|
127
|
+
finished_at
|
|
128
|
+
paused_at
|
|
129
|
+
auto_unpause_at
|
|
130
|
+
send_email_from_email_address
|
|
131
|
+
manually_set_unpause
|
|
132
|
+
failure_reason
|
|
133
|
+
current_step_id
|
|
134
|
+
in_response_to_emailer_message_id
|
|
135
|
+
cc_emails
|
|
136
|
+
bcc_emails
|
|
137
|
+
to_emails
|
|
138
|
+
current_step_position
|
|
139
|
+
]
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# An array for nullable fields
|
|
143
|
+
def self.nullables
|
|
144
|
+
%w[
|
|
145
|
+
inactive_reason
|
|
146
|
+
finished_at
|
|
147
|
+
paused_at
|
|
148
|
+
auto_unpause_at
|
|
149
|
+
send_email_from_email_address
|
|
150
|
+
manually_set_unpause
|
|
151
|
+
failure_reason
|
|
152
|
+
current_step_id
|
|
153
|
+
in_response_to_emailer_message_id
|
|
154
|
+
cc_emails
|
|
155
|
+
bcc_emails
|
|
156
|
+
to_emails
|
|
157
|
+
current_step_position
|
|
158
|
+
]
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
def initialize(id:, emailer_campaign_id:, send_email_from_user_id:, status:,
|
|
162
|
+
added_at:, added_by_user_id:,
|
|
163
|
+
send_email_from_email_account_id:, inactive_reason: SKIP,
|
|
164
|
+
finished_at: SKIP, paused_at: SKIP, auto_unpause_at: SKIP,
|
|
165
|
+
send_email_from_email_address: SKIP,
|
|
166
|
+
manually_set_unpause: SKIP, failure_reason: SKIP,
|
|
167
|
+
current_step_id: SKIP,
|
|
168
|
+
in_response_to_emailer_message_id: SKIP, cc_emails: SKIP,
|
|
169
|
+
bcc_emails: SKIP, to_emails: SKIP,
|
|
170
|
+
current_step_position: SKIP, additional_properties: nil)
|
|
171
|
+
# Add additional model properties to the instance
|
|
172
|
+
additional_properties = {} if additional_properties.nil?
|
|
173
|
+
|
|
174
|
+
@id = id
|
|
175
|
+
@emailer_campaign_id = emailer_campaign_id
|
|
176
|
+
@send_email_from_user_id = send_email_from_user_id
|
|
177
|
+
@inactive_reason = inactive_reason unless inactive_reason == SKIP
|
|
178
|
+
@status = status
|
|
179
|
+
@added_at = added_at
|
|
180
|
+
@added_by_user_id = added_by_user_id
|
|
181
|
+
@finished_at = finished_at unless finished_at == SKIP
|
|
182
|
+
@paused_at = paused_at unless paused_at == SKIP
|
|
183
|
+
@auto_unpause_at = auto_unpause_at unless auto_unpause_at == SKIP
|
|
184
|
+
unless send_email_from_email_address == SKIP
|
|
185
|
+
@send_email_from_email_address =
|
|
186
|
+
send_email_from_email_address
|
|
187
|
+
end
|
|
188
|
+
@send_email_from_email_account_id = send_email_from_email_account_id
|
|
189
|
+
@manually_set_unpause = manually_set_unpause unless manually_set_unpause == SKIP
|
|
190
|
+
@failure_reason = failure_reason unless failure_reason == SKIP
|
|
191
|
+
@current_step_id = current_step_id unless current_step_id == SKIP
|
|
192
|
+
unless in_response_to_emailer_message_id == SKIP
|
|
193
|
+
@in_response_to_emailer_message_id =
|
|
194
|
+
in_response_to_emailer_message_id
|
|
195
|
+
end
|
|
196
|
+
@cc_emails = cc_emails unless cc_emails == SKIP
|
|
197
|
+
@bcc_emails = bcc_emails unless bcc_emails == SKIP
|
|
198
|
+
@to_emails = to_emails unless to_emails == SKIP
|
|
199
|
+
@current_step_position = current_step_position unless current_step_position == SKIP
|
|
200
|
+
@additional_properties = additional_properties
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Creates an instance of the object from a hash.
|
|
204
|
+
def self.from_hash(hash)
|
|
205
|
+
return nil unless hash
|
|
206
|
+
|
|
207
|
+
# Extract variables from the hash.
|
|
208
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
209
|
+
emailer_campaign_id =
|
|
210
|
+
hash.key?('emailer_campaign_id') ? hash['emailer_campaign_id'] : nil
|
|
211
|
+
send_email_from_user_id =
|
|
212
|
+
hash.key?('send_email_from_user_id') ? hash['send_email_from_user_id'] : nil
|
|
213
|
+
status = hash.key?('status') ? hash['status'] : nil
|
|
214
|
+
added_at = if hash.key?('added_at')
|
|
215
|
+
(DateTimeHelper.from_rfc3339(hash['added_at']) if hash['added_at'])
|
|
216
|
+
end
|
|
217
|
+
added_by_user_id =
|
|
218
|
+
hash.key?('added_by_user_id') ? hash['added_by_user_id'] : nil
|
|
219
|
+
send_email_from_email_account_id =
|
|
220
|
+
hash.key?('send_email_from_email_account_id') ? hash['send_email_from_email_account_id'] : nil
|
|
221
|
+
inactive_reason =
|
|
222
|
+
hash.key?('inactive_reason') ? hash['inactive_reason'] : SKIP
|
|
223
|
+
finished_at = if hash.key?('finished_at')
|
|
224
|
+
(DateTimeHelper.from_rfc3339(hash['finished_at']) if hash['finished_at'])
|
|
225
|
+
else
|
|
226
|
+
SKIP
|
|
227
|
+
end
|
|
228
|
+
paused_at = if hash.key?('paused_at')
|
|
229
|
+
(DateTimeHelper.from_rfc3339(hash['paused_at']) if hash['paused_at'])
|
|
230
|
+
else
|
|
231
|
+
SKIP
|
|
232
|
+
end
|
|
233
|
+
auto_unpause_at = if hash.key?('auto_unpause_at')
|
|
234
|
+
(DateTimeHelper.from_rfc3339(hash['auto_unpause_at']) if hash['auto_unpause_at'])
|
|
235
|
+
else
|
|
236
|
+
SKIP
|
|
237
|
+
end
|
|
238
|
+
send_email_from_email_address =
|
|
239
|
+
hash.key?('send_email_from_email_address') ? hash['send_email_from_email_address'] : SKIP
|
|
240
|
+
manually_set_unpause =
|
|
241
|
+
hash.key?('manually_set_unpause') ? hash['manually_set_unpause'] : SKIP
|
|
242
|
+
failure_reason =
|
|
243
|
+
hash.key?('failure_reason') ? hash['failure_reason'] : SKIP
|
|
244
|
+
current_step_id =
|
|
245
|
+
hash.key?('current_step_id') ? hash['current_step_id'] : SKIP
|
|
246
|
+
in_response_to_emailer_message_id =
|
|
247
|
+
hash.key?('in_response_to_emailer_message_id') ? hash['in_response_to_emailer_message_id'] : SKIP
|
|
248
|
+
cc_emails = hash.key?('cc_emails') ? hash['cc_emails'] : SKIP
|
|
249
|
+
bcc_emails = hash.key?('bcc_emails') ? hash['bcc_emails'] : SKIP
|
|
250
|
+
to_emails = hash.key?('to_emails') ? hash['to_emails'] : SKIP
|
|
251
|
+
current_step_position =
|
|
252
|
+
hash.key?('current_step_position') ? hash['current_step_position'] : SKIP
|
|
253
|
+
|
|
254
|
+
# Create a new hash for additional properties, removing known properties.
|
|
255
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
256
|
+
|
|
257
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
258
|
+
new_hash, proc { |value| value }
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
# Create object from extracted values.
|
|
262
|
+
ContactCampaignStatus.new(id: id,
|
|
263
|
+
emailer_campaign_id: emailer_campaign_id,
|
|
264
|
+
send_email_from_user_id: send_email_from_user_id,
|
|
265
|
+
status: status,
|
|
266
|
+
added_at: added_at,
|
|
267
|
+
added_by_user_id: added_by_user_id,
|
|
268
|
+
send_email_from_email_account_id: send_email_from_email_account_id,
|
|
269
|
+
inactive_reason: inactive_reason,
|
|
270
|
+
finished_at: finished_at,
|
|
271
|
+
paused_at: paused_at,
|
|
272
|
+
auto_unpause_at: auto_unpause_at,
|
|
273
|
+
send_email_from_email_address: send_email_from_email_address,
|
|
274
|
+
manually_set_unpause: manually_set_unpause,
|
|
275
|
+
failure_reason: failure_reason,
|
|
276
|
+
current_step_id: current_step_id,
|
|
277
|
+
in_response_to_emailer_message_id: in_response_to_emailer_message_id,
|
|
278
|
+
cc_emails: cc_emails,
|
|
279
|
+
bcc_emails: bcc_emails,
|
|
280
|
+
to_emails: to_emails,
|
|
281
|
+
current_step_position: current_step_position,
|
|
282
|
+
additional_properties: additional_properties)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
def to_custom_added_at
|
|
286
|
+
DateTimeHelper.to_rfc3339(added_at)
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
def to_custom_finished_at
|
|
290
|
+
DateTimeHelper.to_rfc3339(finished_at)
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
def to_custom_paused_at
|
|
294
|
+
DateTimeHelper.to_rfc3339(paused_at)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
def to_custom_auto_unpause_at
|
|
298
|
+
DateTimeHelper.to_rfc3339(auto_unpause_at)
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# Provides a human-readable string representation of the object.
|
|
302
|
+
def to_s
|
|
303
|
+
class_name = self.class.name.split('::').last
|
|
304
|
+
"<#{class_name} id: #{@id}, emailer_campaign_id: #{@emailer_campaign_id},"\
|
|
305
|
+
" send_email_from_user_id: #{@send_email_from_user_id}, inactive_reason:"\
|
|
306
|
+
" #{@inactive_reason}, status: #{@status}, added_at: #{@added_at}, added_by_user_id:"\
|
|
307
|
+
" #{@added_by_user_id}, finished_at: #{@finished_at}, paused_at: #{@paused_at},"\
|
|
308
|
+
" auto_unpause_at: #{@auto_unpause_at}, send_email_from_email_address:"\
|
|
309
|
+
" #{@send_email_from_email_address}, send_email_from_email_account_id:"\
|
|
310
|
+
" #{@send_email_from_email_account_id}, manually_set_unpause: #{@manually_set_unpause},"\
|
|
311
|
+
" failure_reason: #{@failure_reason}, current_step_id: #{@current_step_id},"\
|
|
312
|
+
" in_response_to_emailer_message_id: #{@in_response_to_emailer_message_id}, cc_emails:"\
|
|
313
|
+
" #{@cc_emails}, bcc_emails: #{@bcc_emails}, to_emails: #{@to_emails},"\
|
|
314
|
+
" current_step_position: #{@current_step_position}, additional_properties:"\
|
|
315
|
+
" #{@additional_properties}>"
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
319
|
+
def inspect
|
|
320
|
+
class_name = self.class.name.split('::').last
|
|
321
|
+
"<#{class_name} id: #{@id.inspect}, emailer_campaign_id: #{@emailer_campaign_id.inspect},"\
|
|
322
|
+
" send_email_from_user_id: #{@send_email_from_user_id.inspect}, inactive_reason:"\
|
|
323
|
+
" #{@inactive_reason.inspect}, status: #{@status.inspect}, added_at: #{@added_at.inspect},"\
|
|
324
|
+
" added_by_user_id: #{@added_by_user_id.inspect}, finished_at: #{@finished_at.inspect},"\
|
|
325
|
+
" paused_at: #{@paused_at.inspect}, auto_unpause_at: #{@auto_unpause_at.inspect},"\
|
|
326
|
+
" send_email_from_email_address: #{@send_email_from_email_address.inspect},"\
|
|
327
|
+
" send_email_from_email_account_id: #{@send_email_from_email_account_id.inspect},"\
|
|
328
|
+
" manually_set_unpause: #{@manually_set_unpause.inspect}, failure_reason:"\
|
|
329
|
+
" #{@failure_reason.inspect}, current_step_id: #{@current_step_id.inspect},"\
|
|
330
|
+
" in_response_to_emailer_message_id: #{@in_response_to_emailer_message_id.inspect},"\
|
|
331
|
+
" cc_emails: #{@cc_emails.inspect}, bcc_emails: #{@bcc_emails.inspect}, to_emails:"\
|
|
332
|
+
" #{@to_emails.inspect}, current_step_position: #{@current_step_position.inspect},"\
|
|
333
|
+
" additional_properties: #{@additional_properties}>"
|
|
334
|
+
end
|
|
335
|
+
end
|
|
336
|
+
end
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# apollo_rest_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module ApolloRestApi
|
|
8
|
+
# ContactCampaignStatus2 Model.
|
|
9
|
+
class ContactCampaignStatus2 < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for this method
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :emailer_campaign_id
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :status
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [DateTime]
|
|
27
|
+
attr_accessor :added_at
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :send_email_from_email_account_id
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :send_email_from_email_address
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :inactive_reason
|
|
40
|
+
|
|
41
|
+
# A mapping from model property names to API property names.
|
|
42
|
+
def self.names
|
|
43
|
+
@_hash = {} if @_hash.nil?
|
|
44
|
+
@_hash['id'] = 'id'
|
|
45
|
+
@_hash['emailer_campaign_id'] = 'emailer_campaign_id'
|
|
46
|
+
@_hash['status'] = 'status'
|
|
47
|
+
@_hash['added_at'] = 'added_at'
|
|
48
|
+
@_hash['send_email_from_email_account_id'] =
|
|
49
|
+
'send_email_from_email_account_id'
|
|
50
|
+
@_hash['send_email_from_email_address'] =
|
|
51
|
+
'send_email_from_email_address'
|
|
52
|
+
@_hash['inactive_reason'] = 'inactive_reason'
|
|
53
|
+
@_hash
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# An array for optional fields
|
|
57
|
+
def self.optionals
|
|
58
|
+
%w[
|
|
59
|
+
id
|
|
60
|
+
emailer_campaign_id
|
|
61
|
+
status
|
|
62
|
+
added_at
|
|
63
|
+
send_email_from_email_account_id
|
|
64
|
+
send_email_from_email_address
|
|
65
|
+
inactive_reason
|
|
66
|
+
]
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# An array for nullable fields
|
|
70
|
+
def self.nullables
|
|
71
|
+
%w[
|
|
72
|
+
send_email_from_email_address
|
|
73
|
+
inactive_reason
|
|
74
|
+
]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def initialize(id: SKIP, emailer_campaign_id: SKIP, status: SKIP,
|
|
78
|
+
added_at: SKIP, send_email_from_email_account_id: SKIP,
|
|
79
|
+
send_email_from_email_address: SKIP, inactive_reason: SKIP,
|
|
80
|
+
additional_properties: nil)
|
|
81
|
+
# Add additional model properties to the instance
|
|
82
|
+
additional_properties = {} if additional_properties.nil?
|
|
83
|
+
|
|
84
|
+
@id = id unless id == SKIP
|
|
85
|
+
@emailer_campaign_id = emailer_campaign_id unless emailer_campaign_id == SKIP
|
|
86
|
+
@status = status unless status == SKIP
|
|
87
|
+
@added_at = added_at unless added_at == SKIP
|
|
88
|
+
unless send_email_from_email_account_id == SKIP
|
|
89
|
+
@send_email_from_email_account_id =
|
|
90
|
+
send_email_from_email_account_id
|
|
91
|
+
end
|
|
92
|
+
unless send_email_from_email_address == SKIP
|
|
93
|
+
@send_email_from_email_address =
|
|
94
|
+
send_email_from_email_address
|
|
95
|
+
end
|
|
96
|
+
@inactive_reason = inactive_reason unless inactive_reason == SKIP
|
|
97
|
+
@additional_properties = additional_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Creates an instance of the object from a hash.
|
|
101
|
+
def self.from_hash(hash)
|
|
102
|
+
return nil unless hash
|
|
103
|
+
|
|
104
|
+
# Extract variables from the hash.
|
|
105
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
106
|
+
emailer_campaign_id =
|
|
107
|
+
hash.key?('emailer_campaign_id') ? hash['emailer_campaign_id'] : SKIP
|
|
108
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
109
|
+
added_at = if hash.key?('added_at')
|
|
110
|
+
(DateTimeHelper.from_rfc3339(hash['added_at']) if hash['added_at'])
|
|
111
|
+
else
|
|
112
|
+
SKIP
|
|
113
|
+
end
|
|
114
|
+
send_email_from_email_account_id =
|
|
115
|
+
hash.key?('send_email_from_email_account_id') ? hash['send_email_from_email_account_id'] : SKIP
|
|
116
|
+
send_email_from_email_address =
|
|
117
|
+
hash.key?('send_email_from_email_address') ? hash['send_email_from_email_address'] : SKIP
|
|
118
|
+
inactive_reason =
|
|
119
|
+
hash.key?('inactive_reason') ? hash['inactive_reason'] : SKIP
|
|
120
|
+
|
|
121
|
+
# Create a new hash for additional properties, removing known properties.
|
|
122
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
123
|
+
|
|
124
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
125
|
+
new_hash, proc { |value| value }
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
# Create object from extracted values.
|
|
129
|
+
ContactCampaignStatus2.new(id: id,
|
|
130
|
+
emailer_campaign_id: emailer_campaign_id,
|
|
131
|
+
status: status,
|
|
132
|
+
added_at: added_at,
|
|
133
|
+
send_email_from_email_account_id: send_email_from_email_account_id,
|
|
134
|
+
send_email_from_email_address: send_email_from_email_address,
|
|
135
|
+
inactive_reason: inactive_reason,
|
|
136
|
+
additional_properties: additional_properties)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
def to_custom_added_at
|
|
140
|
+
DateTimeHelper.to_rfc3339(added_at)
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Provides a human-readable string representation of the object.
|
|
144
|
+
def to_s
|
|
145
|
+
class_name = self.class.name.split('::').last
|
|
146
|
+
"<#{class_name} id: #{@id}, emailer_campaign_id: #{@emailer_campaign_id}, status:"\
|
|
147
|
+
" #{@status}, added_at: #{@added_at}, send_email_from_email_account_id:"\
|
|
148
|
+
" #{@send_email_from_email_account_id}, send_email_from_email_address:"\
|
|
149
|
+
" #{@send_email_from_email_address}, inactive_reason: #{@inactive_reason},"\
|
|
150
|
+
" additional_properties: #{@additional_properties}>"
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
154
|
+
def inspect
|
|
155
|
+
class_name = self.class.name.split('::').last
|
|
156
|
+
"<#{class_name} id: #{@id.inspect}, emailer_campaign_id: #{@emailer_campaign_id.inspect},"\
|
|
157
|
+
" status: #{@status.inspect}, added_at: #{@added_at.inspect},"\
|
|
158
|
+
" send_email_from_email_account_id: #{@send_email_from_email_account_id.inspect},"\
|
|
159
|
+
" send_email_from_email_address: #{@send_email_from_email_address.inspect}, inactive_reason:"\
|
|
160
|
+
" #{@inactive_reason.inspect}, additional_properties: #{@additional_properties}>"
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|