amocrm 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +42 -14
- data/lib/amocrm/client.rb +4 -0
- data/lib/amocrm/internal/type/union.rb +7 -7
- data/lib/amocrm/models/v2_salesbot_run_params.rb +42 -0
- data/lib/amocrm/models/v2_salesbot_run_response.rb +91 -0
- data/lib/amocrm/models/v4_account_get_params.rb +22 -0
- data/lib/amocrm/models/v4_account_get_response.rb +408 -0
- data/lib/amocrm/models/v4_calls_create_params.rb +155 -0
- data/lib/amocrm/models/v4_calls_create_response.rb +162 -0
- data/lib/amocrm/models/v4_catalog_elements_create_params.rb +100 -0
- data/lib/amocrm/models/v4_catalog_elements_create_response.rb +254 -0
- data/lib/amocrm/models/v4_catalog_elements_get_by_id_params.rb +29 -0
- data/lib/amocrm/models/v4_catalog_elements_get_by_id_response.rb +210 -0
- data/lib/amocrm/models/v4_catalog_elements_list_params.rb +49 -0
- data/lib/amocrm/models/v4_catalog_elements_list_response.rb +254 -0
- data/lib/amocrm/models/v4_catalog_elements_update_by_id_params.rb +96 -0
- data/lib/amocrm/models/v4_catalog_elements_update_by_id_response.rb +254 -0
- data/lib/amocrm/models/v4_catalog_elements_update_params.rb +106 -0
- data/lib/amocrm/models/v4_catalog_elements_update_response.rb +254 -0
- data/lib/amocrm/models/v4_catalogs_create_params.rb +88 -0
- data/lib/amocrm/models/v4_catalogs_create_response.rb +221 -0
- data/lib/amocrm/models/v4_catalogs_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_catalogs_get_by_id_response.rb +181 -0
- data/lib/amocrm/models/v4_catalogs_list_params.rb +26 -0
- data/lib/amocrm/models/v4_catalogs_list_response.rb +221 -0
- data/lib/amocrm/models/v4_catalogs_update_by_id_params.rb +44 -0
- data/lib/amocrm/models/v4_catalogs_update_by_id_response.rb +221 -0
- data/lib/amocrm/models/v4_catalogs_update_params.rb +60 -0
- data/lib/amocrm/models/v4_catalogs_update_response.rb +221 -0
- data/lib/amocrm/models/v4_companies_create_params.rb +225 -0
- data/lib/amocrm/models/v4_companies_create_response.rb +95 -0
- data/lib/amocrm/models/v4_companies_get_by_id_params.rb +22 -0
- data/lib/amocrm/models/v4_companies_get_by_id_response.rb +324 -0
- data/lib/amocrm/models/v4_companies_list_params.rb +74 -0
- data/lib/amocrm/models/v4_companies_list_response.rb +359 -0
- data/lib/amocrm/models/v4_companies_update_by_id_params.rb +236 -0
- data/lib/amocrm/models/v4_companies_update_by_id_response.rb +95 -0
- data/lib/amocrm/models/v4_companies_update_params.rb +256 -0
- data/lib/amocrm/models/v4_companies_update_response.rb +95 -0
- data/lib/amocrm/models/v4_contact_chats_link_params.rb +42 -0
- data/lib/amocrm/models/v4_contact_chats_link_response.rb +95 -0
- data/lib/amocrm/models/v4_contact_chats_list_params.rb +20 -0
- data/lib/amocrm/models/v4_contact_chats_list_response.rb +95 -0
- data/lib/amocrm/models/v4_contacts_create_params.rb +239 -0
- data/lib/amocrm/models/v4_contacts_create_response.rb +95 -0
- data/lib/amocrm/models/v4_contacts_get_by_id_params.rb +22 -0
- data/lib/amocrm/models/v4_contacts_get_by_id_response.rb +348 -0
- data/lib/amocrm/models/v4_contacts_list_params.rb +74 -0
- data/lib/amocrm/models/v4_contacts_list_response.rb +383 -0
- data/lib/amocrm/models/v4_contacts_update_by_id_params.rb +250 -0
- data/lib/amocrm/models/v4_contacts_update_by_id_response.rb +95 -0
- data/lib/amocrm/models/v4_contacts_update_params.rb +270 -0
- data/lib/amocrm/models/v4_contacts_update_response.rb +95 -0
- data/lib/amocrm/models/v4_custom_field_groups_create_params.rb +45 -0
- data/lib/amocrm/models/v4_custom_field_groups_create_response.rb +96 -0
- data/lib/amocrm/models/v4_custom_field_groups_delete_by_id_params.rb +20 -0
- data/lib/amocrm/models/v4_custom_field_groups_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/v4_custom_field_groups_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/v4_custom_field_groups_get_by_id_response.rb +73 -0
- data/lib/amocrm/models/v4_custom_field_groups_list_params.rb +26 -0
- data/lib/amocrm/models/v4_custom_field_groups_list_response.rb +108 -0
- data/lib/amocrm/models/v4_custom_field_groups_update_by_id_params.rb +32 -0
- data/lib/amocrm/models/v4_custom_field_groups_update_by_id_response.rb +45 -0
- data/lib/amocrm/models/v4_custom_fields_create_params.rb +108 -0
- data/lib/amocrm/models/v4_custom_fields_create_response.rb +96 -0
- data/lib/amocrm/models/v4_custom_fields_delete_by_id_params.rb +20 -0
- data/lib/amocrm/models/v4_custom_fields_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/v4_custom_fields_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/v4_custom_fields_get_by_id_response.rb +127 -0
- data/lib/amocrm/models/v4_custom_fields_list_params.rb +26 -0
- data/lib/amocrm/models/v4_custom_fields_list_response.rb +161 -0
- data/lib/amocrm/models/v4_custom_fields_update_by_id_params.rb +86 -0
- data/lib/amocrm/models/v4_custom_fields_update_by_id_response.rb +45 -0
- data/lib/amocrm/models/v4_custom_fields_update_params.rb +108 -0
- data/lib/amocrm/models/v4_custom_fields_update_response.rb +45 -0
- data/lib/amocrm/models/v4_customer_bonus_points_change_params.rb +26 -0
- data/lib/amocrm/models/v4_customer_bonus_points_change_response.rb +55 -0
- data/lib/amocrm/models/v4_customer_segments_create_params.rb +118 -0
- data/lib/amocrm/models/v4_customer_segments_create_response.rb +96 -0
- data/lib/amocrm/models/v4_customer_segments_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_customer_segments_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/v4_customer_segments_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_customer_segments_get_by_id_response.rb +162 -0
- data/lib/amocrm/models/v4_customer_segments_list_params.rb +14 -0
- data/lib/amocrm/models/v4_customer_segments_list_response.rb +199 -0
- data/lib/amocrm/models/v4_customer_segments_update_by_id_params.rb +101 -0
- data/lib/amocrm/models/v4_customer_segments_update_by_id_response.rb +45 -0
- data/lib/amocrm/models/v4_customer_statuses_create_params.rb +48 -0
- data/lib/amocrm/models/v4_customer_statuses_create_response.rb +96 -0
- data/lib/amocrm/models/v4_customer_statuses_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_customer_statuses_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/v4_customer_statuses_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_customer_statuses_get_by_id_response.rb +79 -0
- data/lib/amocrm/models/v4_customer_statuses_list_params.rb +14 -0
- data/lib/amocrm/models/v4_customer_statuses_list_response.rb +108 -0
- data/lib/amocrm/models/v4_customer_statuses_update_by_id_params.rb +32 -0
- data/lib/amocrm/models/v4_customer_statuses_update_by_id_response.rb +45 -0
- data/lib/amocrm/models/v4_customer_transactions_create_params.rb +60 -0
- data/lib/amocrm/models/v4_customer_transactions_create_response.rb +100 -0
- data/lib/amocrm/models/v4_customer_transactions_delete_by_id_params.rb +20 -0
- data/lib/amocrm/models/v4_customer_transactions_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/v4_customer_transactions_list_by_customer_params.rb +32 -0
- data/lib/amocrm/models/v4_customer_transactions_list_by_customer_response.rb +130 -0
- data/lib/amocrm/models/v4_customer_transactions_list_params.rb +32 -0
- data/lib/amocrm/models/v4_customer_transactions_list_response.rb +126 -0
- data/lib/amocrm/models/v4_customers_create_params.rb +257 -0
- data/lib/amocrm/models/v4_customers_create_response.rb +95 -0
- data/lib/amocrm/models/v4_customers_get_by_id_params.rb +22 -0
- data/lib/amocrm/models/v4_customers_get_by_id_response.rb +378 -0
- data/lib/amocrm/models/v4_customers_list_params.rb +68 -0
- data/lib/amocrm/models/v4_customers_list_response.rb +421 -0
- data/lib/amocrm/models/v4_customers_mode_set_mode_params.rb +36 -0
- data/lib/amocrm/models/v4_customers_mode_set_mode_response.rb +72 -0
- data/lib/amocrm/models/v4_customers_update_by_id_params.rb +267 -0
- data/lib/amocrm/models/v4_customers_update_by_id_response.rb +96 -0
- data/lib/amocrm/models/v4_customers_update_params.rb +286 -0
- data/lib/amocrm/models/v4_customers_update_response.rb +95 -0
- data/lib/amocrm/models/v4_entity_followers_add_params.rb +48 -0
- data/lib/amocrm/models/v4_entity_followers_add_response.rb +90 -0
- data/lib/amocrm/models/v4_entity_followers_list_params.rb +44 -0
- data/lib/amocrm/models/v4_entity_followers_list_response.rb +114 -0
- data/lib/amocrm/models/v4_entity_followers_remove_params.rb +48 -0
- data/lib/amocrm/models/v4_entity_followers_remove_response.rb +61 -0
- data/lib/amocrm/models/v4_entity_links_link_by_entity_params.rb +134 -0
- data/lib/amocrm/models/v4_entity_links_link_by_entity_response.rb +61 -0
- data/lib/amocrm/models/v4_entity_links_link_params.rb +128 -0
- data/lib/amocrm/models/v4_entity_links_link_response.rb +61 -0
- data/lib/amocrm/models/v4_entity_links_list_by_entity_params.rb +32 -0
- data/lib/amocrm/models/v4_entity_links_list_by_entity_response.rb +182 -0
- data/lib/amocrm/models/v4_entity_links_list_params.rb +32 -0
- data/lib/amocrm/models/v4_entity_links_list_response.rb +181 -0
- data/lib/amocrm/models/v4_entity_links_unlink_by_entity_params.rb +134 -0
- data/lib/amocrm/models/v4_entity_links_unlink_by_entity_response.rb +61 -0
- data/lib/amocrm/models/v4_entity_links_unlink_params.rb +128 -0
- data/lib/amocrm/models/v4_entity_links_unlink_response.rb +61 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_create_by_parent_params.rb +106 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_create_by_parent_response.rb +108 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_params.rb +44 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_response.rb +127 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_list_by_parent_params.rb +50 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_list_by_parent_response.rb +162 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_params.rb +62 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_response.rb +108 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_update_by_parent_params.rb +85 -0
- data/lib/amocrm/models/v4_entity_notes_by_parent_update_by_parent_response.rb +108 -0
- data/lib/amocrm/models/v4_entity_notes_create_params.rb +99 -0
- data/lib/amocrm/models/v4_entity_notes_create_response.rb +107 -0
- data/lib/amocrm/models/v4_entity_notes_get_by_id_params.rb +38 -0
- data/lib/amocrm/models/v4_entity_notes_get_by_id_response.rb +127 -0
- data/lib/amocrm/models/v4_entity_notes_list_params.rb +44 -0
- data/lib/amocrm/models/v4_entity_notes_list_response.rb +161 -0
- data/lib/amocrm/models/v4_entity_notes_pin_params.rb +32 -0
- data/lib/amocrm/models/v4_entity_notes_pin_response.rb +61 -0
- data/lib/amocrm/models/v4_entity_notes_unpin_params.rb +32 -0
- data/lib/amocrm/models/v4_entity_notes_unpin_response.rb +61 -0
- data/lib/amocrm/models/v4_entity_notes_update_by_id_params.rb +62 -0
- data/lib/amocrm/models/v4_entity_notes_update_by_id_response.rb +107 -0
- data/lib/amocrm/models/v4_entity_notes_update_params.rb +78 -0
- data/lib/amocrm/models/v4_entity_notes_update_response.rb +107 -0
- data/lib/amocrm/models/v4_events_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/v4_events_get_by_id_response.rb +103 -0
- data/lib/amocrm/models/v4_events_list_params.rb +38 -0
- data/lib/amocrm/models/v4_events_list_response.rb +137 -0
- data/lib/amocrm/models/v4_events_list_types_params.rb +20 -0
- data/lib/amocrm/models/v4_events_list_types_response.rb +66 -0
- data/lib/amocrm/models/v4_leads_create_complex_params.rb +568 -0
- data/lib/amocrm/models/v4_leads_create_complex_response.rb +108 -0
- data/lib/amocrm/models/v4_leads_create_params.rb +566 -0
- data/lib/amocrm/models/v4_leads_create_response.rb +95 -0
- data/lib/amocrm/models/v4_leads_get_by_id_params.rb +22 -0
- data/lib/amocrm/models/v4_leads_get_by_id_response.rb +427 -0
- data/lib/amocrm/models/v4_leads_list_params.rb +74 -0
- data/lib/amocrm/models/v4_leads_list_response.rb +464 -0
- data/lib/amocrm/models/v4_leads_update_by_id_params.rb +546 -0
- data/lib/amocrm/models/v4_leads_update_by_id_response.rb +95 -0
- data/lib/amocrm/models/v4_leads_update_params.rb +565 -0
- data/lib/amocrm/models/v4_leads_update_response.rb +95 -0
- data/lib/amocrm/models/v4_pipeline_statuses_create_params.rb +77 -0
- data/lib/amocrm/models/v4_pipeline_statuses_create_response.rb +96 -0
- data/lib/amocrm/models/v4_pipeline_statuses_delete_by_id_params.rb +20 -0
- data/lib/amocrm/models/v4_pipeline_statuses_delete_by_id_response.rb +61 -0
- data/lib/amocrm/models/v4_pipeline_statuses_get_by_id_params.rb +29 -0
- data/lib/amocrm/models/v4_pipeline_statuses_get_by_id_response.rb +169 -0
- data/lib/amocrm/models/v4_pipeline_statuses_list_params.rb +22 -0
- data/lib/amocrm/models/v4_pipeline_statuses_list_response.rb +197 -0
- data/lib/amocrm/models/v4_pipeline_statuses_update_by_id_params.rb +73 -0
- data/lib/amocrm/models/v4_pipeline_statuses_update_by_id_response.rb +102 -0
- data/lib/amocrm/models/v4_pipeline_statuses_update_params.rb +83 -0
- data/lib/amocrm/models/v4_pipeline_statuses_update_response.rb +102 -0
- data/lib/amocrm/models/v4_pipelines_create_params.rb +129 -0
- data/lib/amocrm/models/v4_pipelines_create_response.rb +95 -0
- data/lib/amocrm/models/v4_pipelines_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_pipelines_delete_by_id_response.rb +61 -0
- data/lib/amocrm/models/v4_pipelines_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_pipelines_get_by_id_response.rb +239 -0
- data/lib/amocrm/models/v4_pipelines_list_params.rb +14 -0
- data/lib/amocrm/models/v4_pipelines_list_response.rb +272 -0
- data/lib/amocrm/models/v4_pipelines_update_by_id_params.rb +50 -0
- data/lib/amocrm/models/v4_pipelines_update_by_id_response.rb +102 -0
- data/lib/amocrm/models/v4_pipelines_update_params.rb +66 -0
- data/lib/amocrm/models/v4_pipelines_update_response.rb +101 -0
- data/lib/amocrm/models/v4_roles_create_params.rb +151 -0
- data/lib/amocrm/models/v4_roles_create_response.rb +249 -0
- data/lib/amocrm/models/v4_roles_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_roles_delete_by_id_response.rb +61 -0
- data/lib/amocrm/models/v4_roles_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/v4_roles_get_by_id_response.rb +208 -0
- data/lib/amocrm/models/v4_roles_list_params.rb +32 -0
- data/lib/amocrm/models/v4_roles_list_response.rb +255 -0
- data/lib/amocrm/models/v4_roles_update_by_id_params.rb +138 -0
- data/lib/amocrm/models/v4_roles_update_by_id_response.rb +208 -0
- data/lib/amocrm/models/v4_short_links_create_params.rb +20 -0
- data/lib/amocrm/models/v4_short_links_create_response.rb +55 -0
- data/lib/amocrm/models/v4_sources_create_params.rb +84 -0
- data/lib/amocrm/models/v4_sources_create_response.rb +171 -0
- data/lib/amocrm/models/v4_sources_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_sources_delete_by_id_response.rb +61 -0
- data/lib/amocrm/models/v4_sources_delete_params.rb +30 -0
- data/lib/amocrm/models/v4_sources_delete_response.rb +61 -0
- data/lib/amocrm/models/v4_sources_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_sources_get_by_id_response.rb +129 -0
- data/lib/amocrm/models/v4_sources_list_params.rb +65 -0
- data/lib/amocrm/models/v4_sources_list_response.rb +165 -0
- data/lib/amocrm/models/v4_sources_update_by_id_params.rb +73 -0
- data/lib/amocrm/models/v4_sources_update_by_id_response.rb +171 -0
- data/lib/amocrm/models/v4_sources_update_params.rb +90 -0
- data/lib/amocrm/models/v4_sources_update_response.rb +171 -0
- data/lib/amocrm/models/v4_tags_create_params.rb +54 -0
- data/lib/amocrm/models/v4_tags_create_response.rb +101 -0
- data/lib/amocrm/models/v4_tags_list_params.rb +50 -0
- data/lib/amocrm/models/v4_tags_list_response.rb +101 -0
- data/lib/amocrm/models/v4_talks_close_params.rb +22 -0
- data/lib/amocrm/models/v4_talks_close_response.rb +61 -0
- data/lib/amocrm/models/v4_talks_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_talks_get_by_id_response.rb +213 -0
- data/lib/amocrm/models/v4_tasks_create_params.rb +87 -0
- data/lib/amocrm/models/v4_tasks_create_response.rb +95 -0
- data/lib/amocrm/models/v4_tasks_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/v4_tasks_get_by_id_response.rb +173 -0
- data/lib/amocrm/models/v4_tasks_list_params.rb +66 -0
- data/lib/amocrm/models/v4_tasks_list_response.rb +208 -0
- data/lib/amocrm/models/v4_tasks_update_by_id_params.rb +72 -0
- data/lib/amocrm/models/v4_tasks_update_by_id_response.rb +95 -0
- data/lib/amocrm/models/v4_tasks_update_params.rb +98 -0
- data/lib/amocrm/models/v4_tasks_update_response.rb +95 -0
- data/lib/amocrm/models/v4_unsorted_leads_accept_params.rb +30 -0
- data/lib/amocrm/models/v4_unsorted_leads_accept_response.rb +168 -0
- data/lib/amocrm/models/v4_unsorted_leads_create_forms_params.rb +878 -0
- data/lib/amocrm/models/v4_unsorted_leads_create_forms_response.rb +200 -0
- data/lib/amocrm/models/v4_unsorted_leads_decline_params.rb +22 -0
- data/lib/amocrm/models/v4_unsorted_leads_decline_response.rb +168 -0
- data/lib/amocrm/models/v4_users_create_params.rb +169 -0
- data/lib/amocrm/models/v4_users_create_response.rb +473 -0
- data/lib/amocrm/models/v4_users_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/v4_users_get_by_id_response.rb +426 -0
- data/lib/amocrm/models/v4_users_list_params.rb +32 -0
- data/lib/amocrm/models/v4_users_list_response.rb +475 -0
- data/lib/amocrm/models/v4_webhooks_list_params.rb +30 -0
- data/lib/amocrm/models/v4_webhooks_list_response.rb +137 -0
- data/lib/amocrm/models/v4_webhooks_subscribe_params.rb +32 -0
- data/lib/amocrm/models/v4_webhooks_subscribe_response.rb +103 -0
- data/lib/amocrm/models/v4_webhooks_unsubscribe_params.rb +20 -0
- data/lib/amocrm/models/v4_webhooks_unsubscribe_response.rb +61 -0
- data/lib/amocrm/models/v4_website_buttons_connect_online_chat_params.rb +14 -0
- data/lib/amocrm/models/v4_website_buttons_connect_online_chat_response.rb +61 -0
- data/lib/amocrm/models/v4_website_buttons_create_params.rb +32 -0
- data/lib/amocrm/models/v4_website_buttons_create_response.rb +61 -0
- data/lib/amocrm/models/v4_website_buttons_get_by_source_id_params.rb +20 -0
- data/lib/amocrm/models/v4_website_buttons_get_by_source_id_response.rb +97 -0
- data/lib/amocrm/models/v4_website_buttons_list_params.rb +32 -0
- data/lib/amocrm/models/v4_website_buttons_list_response.rb +132 -0
- data/lib/amocrm/models/v4_website_buttons_update_params.rb +30 -0
- data/lib/amocrm/models/v4_website_buttons_update_response.rb +97 -0
- data/lib/amocrm/models/v4_widget_bot_continue_continue_params.rb +65 -0
- data/lib/amocrm/models/v4_widget_bot_continue_continue_response.rb +61 -0
- data/lib/amocrm/models/v4_widgets_get_by_code_params.rb +14 -0
- data/lib/amocrm/models/v4_widgets_get_by_code_response.rb +180 -0
- data/lib/amocrm/models/v4_widgets_install_params.rb +20 -0
- data/lib/amocrm/models/v4_widgets_install_response.rb +180 -0
- data/lib/amocrm/models/v4_widgets_list_params.rb +26 -0
- data/lib/amocrm/models/v4_widgets_list_response.rb +218 -0
- data/lib/amocrm/models/v4_widgets_uninstall_params.rb +14 -0
- data/lib/amocrm/models/v4_widgets_uninstall_response.rb +61 -0
- data/lib/amocrm/models.rb +279 -1
- data/lib/amocrm/resources/v2.rb +35 -0
- data/lib/amocrm/resources/v4.rb +3419 -3
- data/lib/amocrm/version.rb +1 -1
- data/lib/amocrm.rb +281 -8
- data/rbi/amocrm/client.rbi +3 -0
- data/rbi/amocrm/models/v2_salesbot_run_params.rbi +72 -0
- data/rbi/amocrm/models/v2_salesbot_run_response.rbi +212 -0
- data/rbi/amocrm/models/v4_account_get_params.rbi +43 -0
- data/rbi/amocrm/models/v4_account_get_response.rbi +851 -0
- data/rbi/amocrm/models/v4_calls_create_params.rbi +262 -0
- data/rbi/amocrm/models/v4_calls_create_response.rbi +400 -0
- data/rbi/amocrm/models/v4_catalog_elements_create_params.rbi +233 -0
- data/rbi/amocrm/models/v4_catalog_elements_create_response.rbi +566 -0
- data/rbi/amocrm/models/v4_catalog_elements_get_by_id_params.rbi +55 -0
- data/rbi/amocrm/models/v4_catalog_elements_get_by_id_response.rbi +445 -0
- data/rbi/amocrm/models/v4_catalog_elements_list_params.rbi +89 -0
- data/rbi/amocrm/models/v4_catalog_elements_list_response.rbi +565 -0
- data/rbi/amocrm/models/v4_catalog_elements_update_by_id_params.rbi +216 -0
- data/rbi/amocrm/models/v4_catalog_elements_update_by_id_response.rbi +568 -0
- data/rbi/amocrm/models/v4_catalog_elements_update_params.rbi +241 -0
- data/rbi/amocrm/models/v4_catalog_elements_update_response.rbi +566 -0
- data/rbi/amocrm/models/v4_catalogs_create_params.rbi +183 -0
- data/rbi/amocrm/models/v4_catalogs_create_response.rbi +450 -0
- data/rbi/amocrm/models/v4_catalogs_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/v4_catalogs_get_by_id_response.rbi +331 -0
- data/rbi/amocrm/models/v4_catalogs_list_params.rbi +49 -0
- data/rbi/amocrm/models/v4_catalogs_list_response.rbi +449 -0
- data/rbi/amocrm/models/v4_catalogs_update_by_id_params.rbi +80 -0
- data/rbi/amocrm/models/v4_catalogs_update_by_id_response.rbi +450 -0
- data/rbi/amocrm/models/v4_catalogs_update_params.rbi +116 -0
- data/rbi/amocrm/models/v4_catalogs_update_response.rbi +450 -0
- data/rbi/amocrm/models/v4_companies_create_params.rbi +483 -0
- data/rbi/amocrm/models/v4_companies_create_response.rbi +234 -0
- data/rbi/amocrm/models/v4_companies_get_by_id_params.rbi +43 -0
- data/rbi/amocrm/models/v4_companies_get_by_id_response.rbi +743 -0
- data/rbi/amocrm/models/v4_companies_list_params.rbi +116 -0
- data/rbi/amocrm/models/v4_companies_list_response.rbi +869 -0
- data/rbi/amocrm/models/v4_companies_update_by_id_params.rbi +485 -0
- data/rbi/amocrm/models/v4_companies_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/v4_companies_update_params.rbi +541 -0
- data/rbi/amocrm/models/v4_companies_update_response.rbi +234 -0
- data/rbi/amocrm/models/v4_contact_chats_link_params.rbi +78 -0
- data/rbi/amocrm/models/v4_contact_chats_link_response.rbi +228 -0
- data/rbi/amocrm/models/v4_contact_chats_list_params.rbi +38 -0
- data/rbi/amocrm/models/v4_contact_chats_list_response.rbi +228 -0
- data/rbi/amocrm/models/v4_contacts_create_params.rbi +497 -0
- data/rbi/amocrm/models/v4_contacts_create_response.rbi +234 -0
- data/rbi/amocrm/models/v4_contacts_get_by_id_params.rbi +43 -0
- data/rbi/amocrm/models/v4_contacts_get_by_id_response.rbi +779 -0
- data/rbi/amocrm/models/v4_contacts_list_params.rbi +116 -0
- data/rbi/amocrm/models/v4_contacts_list_response.rbi +905 -0
- data/rbi/amocrm/models/v4_contacts_update_by_id_params.rbi +503 -0
- data/rbi/amocrm/models/v4_contacts_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/v4_contacts_update_params.rbi +555 -0
- data/rbi/amocrm/models/v4_contacts_update_response.rbi +234 -0
- data/rbi/amocrm/models/v4_custom_field_groups_create_params.rbi +86 -0
- data/rbi/amocrm/models/v4_custom_field_groups_create_response.rbi +232 -0
- data/rbi/amocrm/models/v4_custom_field_groups_delete_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/v4_custom_field_groups_delete_by_id_response.rbi +80 -0
- data/rbi/amocrm/models/v4_custom_field_groups_get_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/v4_custom_field_groups_get_by_id_response.rbi +136 -0
- data/rbi/amocrm/models/v4_custom_field_groups_list_params.rbi +52 -0
- data/rbi/amocrm/models/v4_custom_field_groups_list_response.rbi +254 -0
- data/rbi/amocrm/models/v4_custom_field_groups_update_by_id_params.rbi +57 -0
- data/rbi/amocrm/models/v4_custom_field_groups_update_by_id_response.rbi +80 -0
- data/rbi/amocrm/models/v4_custom_fields_create_params.rbi +169 -0
- data/rbi/amocrm/models/v4_custom_fields_create_response.rbi +232 -0
- data/rbi/amocrm/models/v4_custom_fields_delete_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/v4_custom_fields_delete_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/v4_custom_fields_get_by_id_params.rbi +35 -0
- data/rbi/amocrm/models/v4_custom_fields_get_by_id_response.rbi +222 -0
- data/rbi/amocrm/models/v4_custom_fields_list_params.rbi +49 -0
- data/rbi/amocrm/models/v4_custom_fields_list_response.rbi +340 -0
- data/rbi/amocrm/models/v4_custom_fields_update_by_id_params.rbi +143 -0
- data/rbi/amocrm/models/v4_custom_fields_update_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/v4_custom_fields_update_params.rbi +172 -0
- data/rbi/amocrm/models/v4_custom_fields_update_response.rbi +78 -0
- data/rbi/amocrm/models/v4_customer_bonus_points_change_params.rbi +46 -0
- data/rbi/amocrm/models/v4_customer_bonus_points_change_response.rbi +104 -0
- data/rbi/amocrm/models/v4_customer_segments_create_params.rbi +268 -0
- data/rbi/amocrm/models/v4_customer_segments_create_response.rbi +234 -0
- data/rbi/amocrm/models/v4_customer_segments_delete_by_id_params.rbi +30 -0
- data/rbi/amocrm/models/v4_customer_segments_delete_by_id_response.rbi +80 -0
- data/rbi/amocrm/models/v4_customer_segments_get_by_id_params.rbi +30 -0
- data/rbi/amocrm/models/v4_customer_segments_get_by_id_response.rbi +329 -0
- data/rbi/amocrm/models/v4_customer_segments_list_params.rbi +27 -0
- data/rbi/amocrm/models/v4_customer_segments_list_response.rbi +439 -0
- data/rbi/amocrm/models/v4_customer_segments_update_by_id_params.rbi +232 -0
- data/rbi/amocrm/models/v4_customer_segments_update_by_id_response.rbi +80 -0
- data/rbi/amocrm/models/v4_customer_statuses_create_params.rbi +91 -0
- data/rbi/amocrm/models/v4_customer_statuses_create_response.rbi +234 -0
- data/rbi/amocrm/models/v4_customer_statuses_delete_by_id_params.rbi +30 -0
- data/rbi/amocrm/models/v4_customer_statuses_delete_by_id_response.rbi +80 -0
- data/rbi/amocrm/models/v4_customer_statuses_get_by_id_params.rbi +30 -0
- data/rbi/amocrm/models/v4_customer_statuses_get_by_id_response.rbi +144 -0
- data/rbi/amocrm/models/v4_customer_statuses_list_params.rbi +27 -0
- data/rbi/amocrm/models/v4_customer_statuses_list_response.rbi +254 -0
- data/rbi/amocrm/models/v4_customer_statuses_update_by_id_params.rbi +60 -0
- data/rbi/amocrm/models/v4_customer_statuses_update_by_id_response.rbi +80 -0
- data/rbi/amocrm/models/v4_customer_transactions_create_params.rbi +121 -0
- data/rbi/amocrm/models/v4_customer_transactions_create_response.rbi +236 -0
- data/rbi/amocrm/models/v4_customer_transactions_delete_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/v4_customer_transactions_delete_by_id_response.rbi +80 -0
- data/rbi/amocrm/models/v4_customer_transactions_list_by_customer_params.rbi +60 -0
- data/rbi/amocrm/models/v4_customer_transactions_list_by_customer_response.rbi +288 -0
- data/rbi/amocrm/models/v4_customer_transactions_list_params.rbi +60 -0
- data/rbi/amocrm/models/v4_customer_transactions_list_response.rbi +286 -0
- data/rbi/amocrm/models/v4_customers_create_params.rbi +571 -0
- data/rbi/amocrm/models/v4_customers_create_response.rbi +234 -0
- data/rbi/amocrm/models/v4_customers_get_by_id_params.rbi +43 -0
- data/rbi/amocrm/models/v4_customers_get_by_id_response.rbi +824 -0
- data/rbi/amocrm/models/v4_customers_list_params.rbi +105 -0
- data/rbi/amocrm/models/v4_customers_list_response.rbi +950 -0
- data/rbi/amocrm/models/v4_customers_mode_set_mode_params.rbi +72 -0
- data/rbi/amocrm/models/v4_customers_mode_set_mode_response.rbi +167 -0
- data/rbi/amocrm/models/v4_customers_update_by_id_params.rbi +559 -0
- data/rbi/amocrm/models/v4_customers_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/v4_customers_update_params.rbi +615 -0
- data/rbi/amocrm/models/v4_customers_update_response.rbi +234 -0
- data/rbi/amocrm/models/v4_entity_followers_add_params.rbi +106 -0
- data/rbi/amocrm/models/v4_entity_followers_add_response.rbi +220 -0
- data/rbi/amocrm/models/v4_entity_followers_list_params.rbi +97 -0
- data/rbi/amocrm/models/v4_entity_followers_list_response.rbi +267 -0
- data/rbi/amocrm/models/v4_entity_followers_remove_params.rbi +112 -0
- data/rbi/amocrm/models/v4_entity_followers_remove_response.rbi +112 -0
- data/rbi/amocrm/models/v4_entity_links_link_by_entity_params.rbi +317 -0
- data/rbi/amocrm/models/v4_entity_links_link_by_entity_response.rbi +112 -0
- data/rbi/amocrm/models/v4_entity_links_link_params.rbi +297 -0
- data/rbi/amocrm/models/v4_entity_links_link_response.rbi +112 -0
- data/rbi/amocrm/models/v4_entity_links_list_by_entity_params.rbi +86 -0
- data/rbi/amocrm/models/v4_entity_links_list_by_entity_response.rbi +402 -0
- data/rbi/amocrm/models/v4_entity_links_list_params.rbi +77 -0
- data/rbi/amocrm/models/v4_entity_links_list_response.rbi +402 -0
- data/rbi/amocrm/models/v4_entity_links_unlink_by_entity_params.rbi +318 -0
- data/rbi/amocrm/models/v4_entity_links_unlink_by_entity_response.rbi +114 -0
- data/rbi/amocrm/models/v4_entity_links_unlink_params.rbi +302 -0
- data/rbi/amocrm/models/v4_entity_links_unlink_response.rbi +112 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_create_by_parent_params.rbi +211 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_create_by_parent_response.rbi +262 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_params.rbi +104 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_response.rbi +224 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_list_by_parent_params.rbi +121 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_list_by_parent_response.rbi +342 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_params.rbi +139 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_response.rbi +262 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_update_by_parent_params.rbi +184 -0
- data/rbi/amocrm/models/v4_entity_notes_by_parent_update_by_parent_response.rbi +262 -0
- data/rbi/amocrm/models/v4_entity_notes_create_params.rbi +186 -0
- data/rbi/amocrm/models/v4_entity_notes_create_response.rbi +260 -0
- data/rbi/amocrm/models/v4_entity_notes_get_by_id_params.rbi +88 -0
- data/rbi/amocrm/models/v4_entity_notes_get_by_id_response.rbi +222 -0
- data/rbi/amocrm/models/v4_entity_notes_list_params.rbi +96 -0
- data/rbi/amocrm/models/v4_entity_notes_list_response.rbi +340 -0
- data/rbi/amocrm/models/v4_entity_notes_pin_params.rbi +77 -0
- data/rbi/amocrm/models/v4_entity_notes_pin_response.rbi +112 -0
- data/rbi/amocrm/models/v4_entity_notes_unpin_params.rbi +77 -0
- data/rbi/amocrm/models/v4_entity_notes_unpin_response.rbi +112 -0
- data/rbi/amocrm/models/v4_entity_notes_update_by_id_params.rbi +134 -0
- data/rbi/amocrm/models/v4_entity_notes_update_by_id_response.rbi +260 -0
- data/rbi/amocrm/models/v4_entity_notes_update_params.rbi +159 -0
- data/rbi/amocrm/models/v4_entity_notes_update_response.rbi +260 -0
- data/rbi/amocrm/models/v4_events_get_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/v4_events_get_by_id_response.rbi +186 -0
- data/rbi/amocrm/models/v4_events_list_params.rbi +71 -0
- data/rbi/amocrm/models/v4_events_list_response.rbi +304 -0
- data/rbi/amocrm/models/v4_events_list_types_params.rbi +38 -0
- data/rbi/amocrm/models/v4_events_list_types_response.rbi +149 -0
- data/rbi/amocrm/models/v4_leads_create_complex_params.rbi +1228 -0
- data/rbi/amocrm/models/v4_leads_create_complex_response.rbi +260 -0
- data/rbi/amocrm/models/v4_leads_create_params.rbi +1196 -0
- data/rbi/amocrm/models/v4_leads_create_response.rbi +234 -0
- data/rbi/amocrm/models/v4_leads_get_by_id_params.rbi +43 -0
- data/rbi/amocrm/models/v4_leads_get_by_id_response.rbi +921 -0
- data/rbi/amocrm/models/v4_leads_list_params.rbi +114 -0
- data/rbi/amocrm/models/v4_leads_list_response.rbi +1046 -0
- data/rbi/amocrm/models/v4_leads_update_by_id_params.rbi +1156 -0
- data/rbi/amocrm/models/v4_leads_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/v4_leads_update_params.rbi +1214 -0
- data/rbi/amocrm/models/v4_leads_update_response.rbi +234 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_create_params.rbi +175 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_create_response.rbi +234 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_delete_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_delete_by_id_response.rbi +114 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_get_by_id_params.rbi +55 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_get_by_id_response.rbi +318 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_list_params.rbi +43 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_list_response.rbi +428 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_update_by_id_params.rbi +148 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_update_by_id_response.rbi +248 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_update_params.rbi +184 -0
- data/rbi/amocrm/models/v4_pipeline_statuses_update_response.rbi +246 -0
- data/rbi/amocrm/models/v4_pipelines_create_params.rbi +311 -0
- data/rbi/amocrm/models/v4_pipelines_create_response.rbi +234 -0
- data/rbi/amocrm/models/v4_pipelines_delete_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/v4_pipelines_delete_by_id_response.rbi +112 -0
- data/rbi/amocrm/models/v4_pipelines_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/v4_pipelines_get_by_id_response.rbi +494 -0
- data/rbi/amocrm/models/v4_pipelines_list_params.rbi +27 -0
- data/rbi/amocrm/models/v4_pipelines_list_response.rbi +604 -0
- data/rbi/amocrm/models/v4_pipelines_update_by_id_params.rbi +89 -0
- data/rbi/amocrm/models/v4_pipelines_update_by_id_response.rbi +246 -0
- data/rbi/amocrm/models/v4_pipelines_update_params.rbi +125 -0
- data/rbi/amocrm/models/v4_pipelines_update_response.rbi +246 -0
- data/rbi/amocrm/models/v4_roles_create_params.rbi +289 -0
- data/rbi/amocrm/models/v4_roles_create_response.rbi +589 -0
- data/rbi/amocrm/models/v4_roles_delete_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/v4_roles_delete_by_id_response.rbi +112 -0
- data/rbi/amocrm/models/v4_roles_get_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/v4_roles_get_by_id_response.rbi +454 -0
- data/rbi/amocrm/models/v4_roles_list_params.rbi +57 -0
- data/rbi/amocrm/models/v4_roles_list_response.rbi +602 -0
- data/rbi/amocrm/models/v4_roles_update_by_id_params.rbi +264 -0
- data/rbi/amocrm/models/v4_roles_update_by_id_response.rbi +457 -0
- data/rbi/amocrm/models/v4_short_links_create_params.rbi +35 -0
- data/rbi/amocrm/models/v4_short_links_create_response.rbi +102 -0
- data/rbi/amocrm/models/v4_sources_create_params.rbi +151 -0
- data/rbi/amocrm/models/v4_sources_create_response.rbi +371 -0
- data/rbi/amocrm/models/v4_sources_delete_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/v4_sources_delete_by_id_response.rbi +112 -0
- data/rbi/amocrm/models/v4_sources_delete_params.rbi +59 -0
- data/rbi/amocrm/models/v4_sources_delete_response.rbi +112 -0
- data/rbi/amocrm/models/v4_sources_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/v4_sources_get_by_id_response.rbi +242 -0
- data/rbi/amocrm/models/v4_sources_list_params.rbi +137 -0
- data/rbi/amocrm/models/v4_sources_list_response.rbi +362 -0
- data/rbi/amocrm/models/v4_sources_update_by_id_params.rbi +127 -0
- data/rbi/amocrm/models/v4_sources_update_by_id_response.rbi +371 -0
- data/rbi/amocrm/models/v4_sources_update_params.rbi +163 -0
- data/rbi/amocrm/models/v4_sources_update_response.rbi +371 -0
- data/rbi/amocrm/models/v4_tags_create_params.rbi +105 -0
- data/rbi/amocrm/models/v4_tags_create_response.rbi +241 -0
- data/rbi/amocrm/models/v4_tags_list_params.rbi +96 -0
- data/rbi/amocrm/models/v4_tags_list_response.rbi +236 -0
- data/rbi/amocrm/models/v4_talks_close_params.rbi +43 -0
- data/rbi/amocrm/models/v4_talks_close_response.rbi +112 -0
- data/rbi/amocrm/models/v4_talks_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/v4_talks_get_by_id_response.rbi +450 -0
- data/rbi/amocrm/models/v4_tasks_create_params.rbi +142 -0
- data/rbi/amocrm/models/v4_tasks_create_response.rbi +234 -0
- data/rbi/amocrm/models/v4_tasks_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/v4_tasks_get_by_id_response.rbi +323 -0
- data/rbi/amocrm/models/v4_tasks_list_params.rbi +103 -0
- data/rbi/amocrm/models/v4_tasks_list_response.rbi +441 -0
- data/rbi/amocrm/models/v4_tasks_update_by_id_params.rbi +133 -0
- data/rbi/amocrm/models/v4_tasks_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/v4_tasks_update_params.rbi +168 -0
- data/rbi/amocrm/models/v4_tasks_update_response.rbi +234 -0
- data/rbi/amocrm/models/v4_unsorted_leads_accept_params.rbi +57 -0
- data/rbi/amocrm/models/v4_unsorted_leads_accept_response.rbi +429 -0
- data/rbi/amocrm/models/v4_unsorted_leads_create_forms_params.rbi +1901 -0
- data/rbi/amocrm/models/v4_unsorted_leads_create_forms_response.rbi +490 -0
- data/rbi/amocrm/models/v4_unsorted_leads_decline_params.rbi +43 -0
- data/rbi/amocrm/models/v4_unsorted_leads_decline_response.rbi +429 -0
- data/rbi/amocrm/models/v4_users_create_params.rbi +314 -0
- data/rbi/amocrm/models/v4_users_create_response.rbi +1062 -0
- data/rbi/amocrm/models/v4_users_get_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/v4_users_get_by_id_response.rbi +928 -0
- data/rbi/amocrm/models/v4_users_list_params.rbi +57 -0
- data/rbi/amocrm/models/v4_users_list_response.rbi +1075 -0
- data/rbi/amocrm/models/v4_webhooks_list_params.rbi +65 -0
- data/rbi/amocrm/models/v4_webhooks_list_response.rbi +304 -0
- data/rbi/amocrm/models/v4_webhooks_subscribe_params.rbi +51 -0
- data/rbi/amocrm/models/v4_webhooks_subscribe_response.rbi +186 -0
- data/rbi/amocrm/models/v4_webhooks_unsubscribe_params.rbi +35 -0
- data/rbi/amocrm/models/v4_webhooks_unsubscribe_response.rbi +112 -0
- data/rbi/amocrm/models/v4_website_buttons_connect_online_chat_params.rbi +30 -0
- data/rbi/amocrm/models/v4_website_buttons_connect_online_chat_response.rbi +114 -0
- data/rbi/amocrm/models/v4_website_buttons_create_params.rbi +59 -0
- data/rbi/amocrm/models/v4_website_buttons_create_response.rbi +117 -0
- data/rbi/amocrm/models/v4_website_buttons_get_by_source_id_params.rbi +41 -0
- data/rbi/amocrm/models/v4_website_buttons_get_by_source_id_response.rbi +173 -0
- data/rbi/amocrm/models/v4_website_buttons_list_params.rbi +57 -0
- data/rbi/amocrm/models/v4_website_buttons_list_response.rbi +289 -0
- data/rbi/amocrm/models/v4_website_buttons_update_params.rbi +69 -0
- data/rbi/amocrm/models/v4_website_buttons_update_response.rbi +171 -0
- data/rbi/amocrm/models/v4_widget_bot_continue_continue_params.rbi +154 -0
- data/rbi/amocrm/models/v4_widget_bot_continue_continue_response.rbi +114 -0
- data/rbi/amocrm/models/v4_widgets_get_by_code_params.rbi +27 -0
- data/rbi/amocrm/models/v4_widgets_get_by_code_response.rbi +342 -0
- data/rbi/amocrm/models/v4_widgets_install_params.rbi +35 -0
- data/rbi/amocrm/models/v4_widgets_install_response.rbi +342 -0
- data/rbi/amocrm/models/v4_widgets_list_params.rbi +49 -0
- data/rbi/amocrm/models/v4_widgets_list_response.rbi +460 -0
- data/rbi/amocrm/models/v4_widgets_uninstall_params.rbi +27 -0
- data/rbi/amocrm/models/v4_widgets_uninstall_response.rbi +112 -0
- data/rbi/amocrm/models.rbi +317 -1
- data/rbi/amocrm/resources/v2.rbi +22 -0
- data/rbi/amocrm/resources/v4.rbi +2269 -2
- data/sig/amocrm/client.rbs +2 -0
- data/sig/amocrm/models/v2_salesbot_run_params.rbs +46 -0
- data/sig/amocrm/models/v2_salesbot_run_response.rbs +113 -0
- data/sig/amocrm/models/v4_account_get_params.rbs +22 -0
- data/sig/amocrm/models/v4_account_get_response.rbs +479 -0
- data/sig/amocrm/models/v4_calls_create_params.rbs +150 -0
- data/sig/amocrm/models/v4_calls_create_response.rbs +207 -0
- data/sig/amocrm/models/v4_catalog_elements_create_params.rbs +124 -0
- data/sig/amocrm/models/v4_catalog_elements_create_response.rbs +303 -0
- data/sig/amocrm/models/v4_catalog_elements_get_by_id_params.rbs +30 -0
- data/sig/amocrm/models/v4_catalog_elements_get_by_id_response.rbs +243 -0
- data/sig/amocrm/models/v4_catalog_elements_list_params.rbs +59 -0
- data/sig/amocrm/models/v4_catalog_elements_list_response.rbs +303 -0
- data/sig/amocrm/models/v4_catalog_elements_update_by_id_params.rbs +116 -0
- data/sig/amocrm/models/v4_catalog_elements_update_by_id_response.rbs +303 -0
- data/sig/amocrm/models/v4_catalog_elements_update_params.rbs +131 -0
- data/sig/amocrm/models/v4_catalog_elements_update_response.rbs +303 -0
- data/sig/amocrm/models/v4_catalogs_create_params.rbs +90 -0
- data/sig/amocrm/models/v4_catalogs_create_response.rbs +241 -0
- data/sig/amocrm/models/v4_catalogs_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_catalogs_get_by_id_response.rbs +185 -0
- data/sig/amocrm/models/v4_catalogs_list_params.rbs +32 -0
- data/sig/amocrm/models/v4_catalogs_list_response.rbs +241 -0
- data/sig/amocrm/models/v4_catalogs_update_by_id_params.rbs +56 -0
- data/sig/amocrm/models/v4_catalogs_update_by_id_response.rbs +241 -0
- data/sig/amocrm/models/v4_catalogs_update_params.rbs +76 -0
- data/sig/amocrm/models/v4_catalogs_update_response.rbs +241 -0
- data/sig/amocrm/models/v4_companies_create_params.rbs +247 -0
- data/sig/amocrm/models/v4_companies_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_companies_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/v4_companies_get_by_id_response.rbs +366 -0
- data/sig/amocrm/models/v4_companies_list_params.rbs +73 -0
- data/sig/amocrm/models/v4_companies_list_response.rbs +422 -0
- data/sig/amocrm/models/v4_companies_update_by_id_params.rbs +244 -0
- data/sig/amocrm/models/v4_companies_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/v4_companies_update_params.rbs +270 -0
- data/sig/amocrm/models/v4_companies_update_response.rbs +121 -0
- data/sig/amocrm/models/v4_contact_chats_link_params.rbs +48 -0
- data/sig/amocrm/models/v4_contact_chats_link_response.rbs +122 -0
- data/sig/amocrm/models/v4_contact_chats_list_params.rbs +22 -0
- data/sig/amocrm/models/v4_contact_chats_list_response.rbs +122 -0
- data/sig/amocrm/models/v4_contacts_create_params.rbs +259 -0
- data/sig/amocrm/models/v4_contacts_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_contacts_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/v4_contacts_get_by_id_response.rbs +394 -0
- data/sig/amocrm/models/v4_contacts_list_params.rbs +73 -0
- data/sig/amocrm/models/v4_contacts_list_response.rbs +450 -0
- data/sig/amocrm/models/v4_contacts_update_by_id_params.rbs +258 -0
- data/sig/amocrm/models/v4_contacts_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/v4_contacts_update_params.rbs +284 -0
- data/sig/amocrm/models/v4_contacts_update_response.rbs +121 -0
- data/sig/amocrm/models/v4_custom_field_groups_create_params.rbs +46 -0
- data/sig/amocrm/models/v4_custom_field_groups_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_custom_field_groups_delete_by_id_params.rbs +23 -0
- data/sig/amocrm/models/v4_custom_field_groups_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/v4_custom_field_groups_get_by_id_params.rbs +23 -0
- data/sig/amocrm/models/v4_custom_field_groups_get_by_id_response.rbs +83 -0
- data/sig/amocrm/models/v4_custom_field_groups_list_params.rbs +32 -0
- data/sig/amocrm/models/v4_custom_field_groups_list_response.rbs +139 -0
- data/sig/amocrm/models/v4_custom_field_groups_update_by_id_params.rbs +36 -0
- data/sig/amocrm/models/v4_custom_field_groups_update_by_id_response.rbs +47 -0
- data/sig/amocrm/models/v4_custom_fields_create_params.rbs +116 -0
- data/sig/amocrm/models/v4_custom_fields_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_custom_fields_delete_by_id_params.rbs +23 -0
- data/sig/amocrm/models/v4_custom_fields_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/v4_custom_fields_get_by_id_params.rbs +23 -0
- data/sig/amocrm/models/v4_custom_fields_get_by_id_response.rbs +151 -0
- data/sig/amocrm/models/v4_custom_fields_list_params.rbs +32 -0
- data/sig/amocrm/models/v4_custom_fields_list_response.rbs +207 -0
- data/sig/amocrm/models/v4_custom_fields_update_by_id_params.rbs +103 -0
- data/sig/amocrm/models/v4_custom_fields_update_by_id_response.rbs +47 -0
- data/sig/amocrm/models/v4_custom_fields_update_params.rbs +118 -0
- data/sig/amocrm/models/v4_custom_fields_update_response.rbs +47 -0
- data/sig/amocrm/models/v4_customer_bonus_points_change_params.rbs +28 -0
- data/sig/amocrm/models/v4_customer_bonus_points_change_response.rbs +60 -0
- data/sig/amocrm/models/v4_customer_segments_create_params.rbs +134 -0
- data/sig/amocrm/models/v4_customer_segments_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_customer_segments_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_customer_segments_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/v4_customer_segments_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_customer_segments_get_by_id_response.rbs +177 -0
- data/sig/amocrm/models/v4_customer_segments_list_params.rbs +15 -0
- data/sig/amocrm/models/v4_customer_segments_list_response.rbs +226 -0
- data/sig/amocrm/models/v4_customer_segments_update_by_id_params.rbs +114 -0
- data/sig/amocrm/models/v4_customer_segments_update_by_id_response.rbs +47 -0
- data/sig/amocrm/models/v4_customer_statuses_create_params.rbs +57 -0
- data/sig/amocrm/models/v4_customer_statuses_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_customer_statuses_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_customer_statuses_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/v4_customer_statuses_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_customer_statuses_get_by_id_response.rbs +95 -0
- data/sig/amocrm/models/v4_customer_statuses_list_params.rbs +15 -0
- data/sig/amocrm/models/v4_customer_statuses_list_response.rbs +144 -0
- data/sig/amocrm/models/v4_customer_statuses_update_by_id_params.rbs +38 -0
- data/sig/amocrm/models/v4_customer_statuses_update_by_id_response.rbs +47 -0
- data/sig/amocrm/models/v4_customer_transactions_create_params.rbs +78 -0
- data/sig/amocrm/models/v4_customer_transactions_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_customer_transactions_delete_by_id_params.rbs +23 -0
- data/sig/amocrm/models/v4_customer_transactions_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/v4_customer_transactions_list_by_customer_params.rbs +38 -0
- data/sig/amocrm/models/v4_customer_transactions_list_by_customer_response.rbs +165 -0
- data/sig/amocrm/models/v4_customer_transactions_list_params.rbs +38 -0
- data/sig/amocrm/models/v4_customer_transactions_list_response.rbs +165 -0
- data/sig/amocrm/models/v4_customers_create_params.rbs +300 -0
- data/sig/amocrm/models/v4_customers_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_customers_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/v4_customers_get_by_id_response.rbs +429 -0
- data/sig/amocrm/models/v4_customers_list_params.rbs +73 -0
- data/sig/amocrm/models/v4_customers_list_response.rbs +485 -0
- data/sig/amocrm/models/v4_customers_mode_set_mode_params.rbs +42 -0
- data/sig/amocrm/models/v4_customers_mode_set_mode_response.rbs +87 -0
- data/sig/amocrm/models/v4_customers_update_by_id_params.rbs +288 -0
- data/sig/amocrm/models/v4_customers_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/v4_customers_update_params.rbs +312 -0
- data/sig/amocrm/models/v4_customers_update_response.rbs +121 -0
- data/sig/amocrm/models/v4_entity_followers_add_params.rbs +54 -0
- data/sig/amocrm/models/v4_entity_followers_add_response.rbs +116 -0
- data/sig/amocrm/models/v4_entity_followers_list_params.rbs +53 -0
- data/sig/amocrm/models/v4_entity_followers_list_response.rbs +151 -0
- data/sig/amocrm/models/v4_entity_followers_remove_params.rbs +54 -0
- data/sig/amocrm/models/v4_entity_followers_remove_response.rbs +64 -0
- data/sig/amocrm/models/v4_entity_links_link_by_entity_params.rbs +122 -0
- data/sig/amocrm/models/v4_entity_links_link_by_entity_response.rbs +64 -0
- data/sig/amocrm/models/v4_entity_links_link_params.rbs +115 -0
- data/sig/amocrm/models/v4_entity_links_link_response.rbs +64 -0
- data/sig/amocrm/models/v4_entity_links_list_by_entity_params.rbs +39 -0
- data/sig/amocrm/models/v4_entity_links_list_by_entity_response.rbs +176 -0
- data/sig/amocrm/models/v4_entity_links_list_params.rbs +35 -0
- data/sig/amocrm/models/v4_entity_links_list_response.rbs +176 -0
- data/sig/amocrm/models/v4_entity_links_unlink_by_entity_params.rbs +122 -0
- data/sig/amocrm/models/v4_entity_links_unlink_by_entity_response.rbs +64 -0
- data/sig/amocrm/models/v4_entity_links_unlink_params.rbs +115 -0
- data/sig/amocrm/models/v4_entity_links_unlink_response.rbs +64 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_create_by_parent_params.rbs +117 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_create_by_parent_response.rbs +144 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_params.rbs +51 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_response.rbs +151 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_list_by_parent_params.rbs +60 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_list_by_parent_response.rbs +207 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_params.rbs +74 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_response.rbs +144 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_update_by_parent_params.rbs +96 -0
- data/sig/amocrm/models/v4_entity_notes_by_parent_update_by_parent_response.rbs +144 -0
- data/sig/amocrm/models/v4_entity_notes_create_params.rbs +110 -0
- data/sig/amocrm/models/v4_entity_notes_create_response.rbs +144 -0
- data/sig/amocrm/models/v4_entity_notes_get_by_id_params.rbs +46 -0
- data/sig/amocrm/models/v4_entity_notes_get_by_id_response.rbs +151 -0
- data/sig/amocrm/models/v4_entity_notes_list_params.rbs +51 -0
- data/sig/amocrm/models/v4_entity_notes_list_response.rbs +207 -0
- data/sig/amocrm/models/v4_entity_notes_pin_params.rbs +37 -0
- data/sig/amocrm/models/v4_entity_notes_pin_response.rbs +64 -0
- data/sig/amocrm/models/v4_entity_notes_unpin_params.rbs +37 -0
- data/sig/amocrm/models/v4_entity_notes_unpin_response.rbs +64 -0
- data/sig/amocrm/models/v4_entity_notes_update_by_id_params.rbs +74 -0
- data/sig/amocrm/models/v4_entity_notes_update_by_id_response.rbs +144 -0
- data/sig/amocrm/models/v4_entity_notes_update_params.rbs +89 -0
- data/sig/amocrm/models/v4_entity_notes_update_response.rbs +144 -0
- data/sig/amocrm/models/v4_events_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/v4_events_get_by_id_response.rbs +123 -0
- data/sig/amocrm/models/v4_events_list_params.rbs +44 -0
- data/sig/amocrm/models/v4_events_list_response.rbs +179 -0
- data/sig/amocrm/models/v4_events_list_types_params.rbs +25 -0
- data/sig/amocrm/models/v4_events_list_types_response.rbs +81 -0
- data/sig/amocrm/models/v4_leads_create_complex_params.rbs +603 -0
- data/sig/amocrm/models/v4_leads_create_complex_response.rbs +144 -0
- data/sig/amocrm/models/v4_leads_create_params.rbs +603 -0
- data/sig/amocrm/models/v4_leads_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_leads_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/v4_leads_get_by_id_response.rbs +482 -0
- data/sig/amocrm/models/v4_leads_list_params.rbs +73 -0
- data/sig/amocrm/models/v4_leads_list_response.rbs +538 -0
- data/sig/amocrm/models/v4_leads_update_by_id_params.rbs +578 -0
- data/sig/amocrm/models/v4_leads_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/v4_leads_update_params.rbs +602 -0
- data/sig/amocrm/models/v4_leads_update_response.rbs +121 -0
- data/sig/amocrm/models/v4_pipeline_statuses_create_params.rbs +95 -0
- data/sig/amocrm/models/v4_pipeline_statuses_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_pipeline_statuses_delete_by_id_params.rbs +23 -0
- data/sig/amocrm/models/v4_pipeline_statuses_delete_by_id_response.rbs +64 -0
- data/sig/amocrm/models/v4_pipeline_statuses_get_by_id_params.rbs +30 -0
- data/sig/amocrm/models/v4_pipeline_statuses_get_by_id_response.rbs +203 -0
- data/sig/amocrm/models/v4_pipeline_statuses_list_params.rbs +22 -0
- data/sig/amocrm/models/v4_pipeline_statuses_list_response.rbs +252 -0
- data/sig/amocrm/models/v4_pipeline_statuses_update_by_id_params.rbs +87 -0
- data/sig/amocrm/models/v4_pipeline_statuses_update_by_id_response.rbs +137 -0
- data/sig/amocrm/models/v4_pipeline_statuses_update_params.rbs +102 -0
- data/sig/amocrm/models/v4_pipeline_statuses_update_response.rbs +137 -0
- data/sig/amocrm/models/v4_pipelines_create_params.rbs +175 -0
- data/sig/amocrm/models/v4_pipelines_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_pipelines_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_pipelines_delete_by_id_response.rbs +64 -0
- data/sig/amocrm/models/v4_pipelines_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_pipelines_get_by_id_response.rbs +301 -0
- data/sig/amocrm/models/v4_pipelines_list_params.rbs +15 -0
- data/sig/amocrm/models/v4_pipelines_list_response.rbs +350 -0
- data/sig/amocrm/models/v4_pipelines_update_by_id_params.rbs +63 -0
- data/sig/amocrm/models/v4_pipelines_update_by_id_response.rbs +137 -0
- data/sig/amocrm/models/v4_pipelines_update_params.rbs +83 -0
- data/sig/amocrm/models/v4_pipelines_update_response.rbs +137 -0
- data/sig/amocrm/models/v4_roles_create_params.rbs +187 -0
- data/sig/amocrm/models/v4_roles_create_response.rbs +325 -0
- data/sig/amocrm/models/v4_roles_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_roles_delete_by_id_response.rbs +64 -0
- data/sig/amocrm/models/v4_roles_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/v4_roles_get_by_id_response.rbs +262 -0
- data/sig/amocrm/models/v4_roles_list_params.rbs +38 -0
- data/sig/amocrm/models/v4_roles_list_response.rbs +332 -0
- data/sig/amocrm/models/v4_roles_update_by_id_params.rbs +170 -0
- data/sig/amocrm/models/v4_roles_update_by_id_response.rbs +262 -0
- data/sig/amocrm/models/v4_short_links_create_params.rbs +20 -0
- data/sig/amocrm/models/v4_short_links_create_response.rbs +60 -0
- data/sig/amocrm/models/v4_sources_create_params.rbs +91 -0
- data/sig/amocrm/models/v4_sources_create_response.rbs +199 -0
- data/sig/amocrm/models/v4_sources_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_sources_delete_by_id_response.rbs +64 -0
- data/sig/amocrm/models/v4_sources_delete_params.rbs +34 -0
- data/sig/amocrm/models/v4_sources_delete_response.rbs +64 -0
- data/sig/amocrm/models/v4_sources_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_sources_get_by_id_response.rbs +136 -0
- data/sig/amocrm/models/v4_sources_list_params.rbs +71 -0
- data/sig/amocrm/models/v4_sources_list_response.rbs +192 -0
- data/sig/amocrm/models/v4_sources_update_by_id_params.rbs +80 -0
- data/sig/amocrm/models/v4_sources_update_by_id_response.rbs +199 -0
- data/sig/amocrm/models/v4_sources_update_params.rbs +100 -0
- data/sig/amocrm/models/v4_sources_update_response.rbs +199 -0
- data/sig/amocrm/models/v4_tags_create_params.rbs +59 -0
- data/sig/amocrm/models/v4_tags_create_response.rbs +132 -0
- data/sig/amocrm/models/v4_tags_list_params.rbs +57 -0
- data/sig/amocrm/models/v4_tags_list_response.rbs +128 -0
- data/sig/amocrm/models/v4_talks_close_params.rbs +25 -0
- data/sig/amocrm/models/v4_talks_close_response.rbs +64 -0
- data/sig/amocrm/models/v4_talks_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_talks_get_by_id_response.rbs +248 -0
- data/sig/amocrm/models/v4_tasks_create_params.rbs +97 -0
- data/sig/amocrm/models/v4_tasks_create_response.rbs +121 -0
- data/sig/amocrm/models/v4_tasks_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/v4_tasks_get_by_id_response.rbs +202 -0
- data/sig/amocrm/models/v4_tasks_list_params.rbs +66 -0
- data/sig/amocrm/models/v4_tasks_list_response.rbs +259 -0
- data/sig/amocrm/models/v4_tasks_update_by_id_params.rbs +91 -0
- data/sig/amocrm/models/v4_tasks_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/v4_tasks_update_params.rbs +111 -0
- data/sig/amocrm/models/v4_tasks_update_response.rbs +121 -0
- data/sig/amocrm/models/v4_unsorted_leads_accept_params.rbs +32 -0
- data/sig/amocrm/models/v4_unsorted_leads_accept_response.rbs +199 -0
- data/sig/amocrm/models/v4_unsorted_leads_create_forms_params.rbs +916 -0
- data/sig/amocrm/models/v4_unsorted_leads_create_forms_response.rbs +233 -0
- data/sig/amocrm/models/v4_unsorted_leads_decline_params.rbs +25 -0
- data/sig/amocrm/models/v4_unsorted_leads_decline_response.rbs +199 -0
- data/sig/amocrm/models/v4_users_create_params.rbs +204 -0
- data/sig/amocrm/models/v4_users_create_response.rbs +594 -0
- data/sig/amocrm/models/v4_users_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/v4_users_get_by_id_response.rbs +527 -0
- data/sig/amocrm/models/v4_users_list_params.rbs +38 -0
- data/sig/amocrm/models/v4_users_list_response.rbs +601 -0
- data/sig/amocrm/models/v4_webhooks_list_params.rbs +40 -0
- data/sig/amocrm/models/v4_webhooks_list_response.rbs +179 -0
- data/sig/amocrm/models/v4_webhooks_subscribe_params.rbs +34 -0
- data/sig/amocrm/models/v4_webhooks_subscribe_response.rbs +123 -0
- data/sig/amocrm/models/v4_webhooks_unsubscribe_params.rbs +23 -0
- data/sig/amocrm/models/v4_webhooks_unsubscribe_response.rbs +64 -0
- data/sig/amocrm/models/v4_website_buttons_connect_online_chat_params.rbs +15 -0
- data/sig/amocrm/models/v4_website_buttons_connect_online_chat_response.rbs +64 -0
- data/sig/amocrm/models/v4_website_buttons_create_params.rbs +40 -0
- data/sig/amocrm/models/v4_website_buttons_create_response.rbs +71 -0
- data/sig/amocrm/models/v4_website_buttons_get_by_source_id_params.rbs +22 -0
- data/sig/amocrm/models/v4_website_buttons_get_by_source_id_response.rbs +112 -0
- data/sig/amocrm/models/v4_website_buttons_list_params.rbs +38 -0
- data/sig/amocrm/models/v4_website_buttons_list_response.rbs +168 -0
- data/sig/amocrm/models/v4_website_buttons_update_params.rbs +36 -0
- data/sig/amocrm/models/v4_website_buttons_update_response.rbs +112 -0
- data/sig/amocrm/models/v4_widget_bot_continue_continue_params.rbs +74 -0
- data/sig/amocrm/models/v4_widget_bot_continue_continue_response.rbs +64 -0
- data/sig/amocrm/models/v4_widgets_get_by_code_params.rbs +15 -0
- data/sig/amocrm/models/v4_widgets_get_by_code_response.rbs +194 -0
- data/sig/amocrm/models/v4_widgets_install_params.rbs +20 -0
- data/sig/amocrm/models/v4_widgets_install_response.rbs +194 -0
- data/sig/amocrm/models/v4_widgets_list_params.rbs +32 -0
- data/sig/amocrm/models/v4_widgets_list_response.rbs +250 -0
- data/sig/amocrm/models/v4_widgets_uninstall_params.rbs +15 -0
- data/sig/amocrm/models/v4_widgets_uninstall_response.rbs +64 -0
- data/sig/amocrm/models.rbs +279 -1
- data/sig/amocrm/resources/v2.rbs +12 -0
- data/sig/amocrm/resources/v4.rbs +944 -1
- metadata +844 -25
- data/lib/amocrm/models/v4/leads/unsorted_accept_params.rb +0 -34
- data/lib/amocrm/models/v4/leads/unsorted_accept_response.rb +0 -172
- data/lib/amocrm/models/v4/leads/unsorted_create_forms_params.rb +0 -883
- data/lib/amocrm/models/v4/leads/unsorted_create_forms_response.rb +0 -204
- data/lib/amocrm/models/v4/leads/unsorted_decline_params.rb +0 -26
- data/lib/amocrm/models/v4/leads/unsorted_decline_response.rb +0 -172
- data/lib/amocrm/resources/v4/leads/unsorted.rb +0 -83
- data/lib/amocrm/resources/v4/leads.rb +0 -20
- data/rbi/amocrm/models/v4/leads/unsorted_accept_params.rbi +0 -64
- data/rbi/amocrm/models/v4/leads/unsorted_accept_response.rbi +0 -441
- data/rbi/amocrm/models/v4/leads/unsorted_create_forms_params.rbi +0 -1927
- data/rbi/amocrm/models/v4/leads/unsorted_create_forms_response.rbi +0 -502
- data/rbi/amocrm/models/v4/leads/unsorted_decline_params.rbi +0 -50
- data/rbi/amocrm/models/v4/leads/unsorted_decline_response.rbi +0 -441
- data/rbi/amocrm/resources/v4/leads/unsorted.rbi +0 -67
- data/rbi/amocrm/resources/v4/leads.rbi +0 -17
- data/sig/amocrm/models/v4/leads/unsorted_accept_params.rbs +0 -36
- data/sig/amocrm/models/v4/leads/unsorted_accept_response.rbs +0 -203
- data/sig/amocrm/models/v4/leads/unsorted_create_forms_params.rbs +0 -920
- data/sig/amocrm/models/v4/leads/unsorted_create_forms_response.rbs +0 -237
- data/sig/amocrm/models/v4/leads/unsorted_decline_params.rbs +0 -29
- data/sig/amocrm/models/v4/leads/unsorted_decline_response.rbs +0 -203
- data/sig/amocrm/resources/v4/leads/unsorted.rbs +0 -29
- data/sig/amocrm/resources/v4/leads.rbs +0 -11
data/lib/amocrm/resources/v4.rb
CHANGED
|
@@ -3,15 +3,3431 @@
|
|
|
3
3
|
module Amocrm
|
|
4
4
|
module Resources
|
|
5
5
|
class V4
|
|
6
|
-
#
|
|
7
|
-
|
|
6
|
+
# Get account info.
|
|
7
|
+
#
|
|
8
|
+
# @overload account_get(with: nil, request_options: {})
|
|
9
|
+
#
|
|
10
|
+
# @param with [String] Additional data to include (comma-separated).
|
|
11
|
+
#
|
|
12
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
13
|
+
#
|
|
14
|
+
# @return [Amocrm::Models::V4AccountGetResponse::AccountInfo, Amocrm::Models::V4AccountGetResponse::Problem]
|
|
15
|
+
#
|
|
16
|
+
# @see Amocrm::Models::V4AccountGetParams
|
|
17
|
+
def account_get(params = {})
|
|
18
|
+
parsed, options = Amocrm::V4AccountGetParams.dump_request(params)
|
|
19
|
+
@client.request(
|
|
20
|
+
method: :get,
|
|
21
|
+
path: "api/v4/account",
|
|
22
|
+
query: parsed,
|
|
23
|
+
model: Amocrm::Models::V4AccountGetResponse,
|
|
24
|
+
options: options
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Add calls (batch).
|
|
29
|
+
#
|
|
30
|
+
# @overload calls_create(body:, request_options: {})
|
|
31
|
+
#
|
|
32
|
+
# @param body [Array<Amocrm::Models::V4CallsCreateParams::Body>]
|
|
33
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
34
|
+
#
|
|
35
|
+
# @return [Amocrm::Models::V4CallsCreateResponse::CallCreateResponse, Amocrm::Models::V4CallsCreateResponse::Problem]
|
|
36
|
+
#
|
|
37
|
+
# @see Amocrm::Models::V4CallsCreateParams
|
|
38
|
+
def calls_create(params)
|
|
39
|
+
parsed, options = Amocrm::V4CallsCreateParams.dump_request(params)
|
|
40
|
+
@client.request(
|
|
41
|
+
method: :post,
|
|
42
|
+
path: "api/v4/calls",
|
|
43
|
+
body: parsed[:body],
|
|
44
|
+
model: Amocrm::Models::V4CallsCreateResponse,
|
|
45
|
+
options: options
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Create catalog elements.
|
|
50
|
+
#
|
|
51
|
+
# @overload catalog_elements_create(catalog_id, body:, request_options: {})
|
|
52
|
+
#
|
|
53
|
+
# @param catalog_id [Integer]
|
|
54
|
+
# @param body [Array<Amocrm::Models::V4CatalogElementsCreateParams::Body>]
|
|
55
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
56
|
+
#
|
|
57
|
+
# @return [Amocrm::Models::V4CatalogElementsCreateResponse::CatalogElementCreateResponse, Amocrm::Models::V4CatalogElementsCreateResponse::Problem]
|
|
58
|
+
#
|
|
59
|
+
# @see Amocrm::Models::V4CatalogElementsCreateParams
|
|
60
|
+
def catalog_elements_create(catalog_id, params)
|
|
61
|
+
parsed, options = Amocrm::V4CatalogElementsCreateParams.dump_request(params)
|
|
62
|
+
@client.request(
|
|
63
|
+
method: :post,
|
|
64
|
+
path: ["api/v4/catalogs/%1$s/elements", catalog_id],
|
|
65
|
+
body: parsed[:body],
|
|
66
|
+
model: Amocrm::Models::V4CatalogElementsCreateResponse,
|
|
67
|
+
options: options
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Get catalog element by id.
|
|
72
|
+
#
|
|
73
|
+
# @overload catalog_elements_get_by_id(id, catalog_id:, with: nil, request_options: {})
|
|
74
|
+
#
|
|
75
|
+
# @param id [Integer] Path param
|
|
76
|
+
#
|
|
77
|
+
# @param catalog_id [Integer] Path param
|
|
78
|
+
#
|
|
79
|
+
# @param with [String] Query param: Additional data to include (comma-separated).
|
|
80
|
+
#
|
|
81
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
82
|
+
#
|
|
83
|
+
# @return [Amocrm::Models::V4CatalogElementsGetByIDResponse::CatalogElement, Amocrm::Models::V4CatalogElementsGetByIDResponse::Problem]
|
|
84
|
+
#
|
|
85
|
+
# @see Amocrm::Models::V4CatalogElementsGetByIDParams
|
|
86
|
+
def catalog_elements_get_by_id(id, params)
|
|
87
|
+
parsed, options = Amocrm::V4CatalogElementsGetByIDParams.dump_request(params)
|
|
88
|
+
catalog_id =
|
|
89
|
+
parsed.delete(:catalog_id) do
|
|
90
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
91
|
+
end
|
|
92
|
+
@client.request(
|
|
93
|
+
method: :get,
|
|
94
|
+
path: ["api/v4/catalogs/%1$s/elements/%2$s", catalog_id, id],
|
|
95
|
+
query: parsed,
|
|
96
|
+
model: Amocrm::Models::V4CatalogElementsGetByIDResponse,
|
|
97
|
+
options: options
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Get catalog elements list.
|
|
102
|
+
#
|
|
103
|
+
# @overload catalog_elements_list(catalog_id, filter: nil, limit: nil, page: nil, query: nil, request_options: {})
|
|
104
|
+
#
|
|
105
|
+
# @param catalog_id [Integer]
|
|
106
|
+
# @param filter [Object]
|
|
107
|
+
# @param limit [Integer]
|
|
108
|
+
# @param page [Integer]
|
|
109
|
+
# @param query [String, Integer]
|
|
110
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
111
|
+
#
|
|
112
|
+
# @return [Amocrm::Models::V4CatalogElementsListResponse::CatalogElementListResponse, Amocrm::Models::V4CatalogElementsListResponse::Problem]
|
|
113
|
+
#
|
|
114
|
+
# @see Amocrm::Models::V4CatalogElementsListParams
|
|
115
|
+
def catalog_elements_list(catalog_id, params = {})
|
|
116
|
+
parsed, options = Amocrm::V4CatalogElementsListParams.dump_request(params)
|
|
117
|
+
@client.request(
|
|
118
|
+
method: :get,
|
|
119
|
+
path: ["api/v4/catalogs/%1$s/elements", catalog_id],
|
|
120
|
+
query: parsed,
|
|
121
|
+
model: Amocrm::Models::V4CatalogElementsListResponse,
|
|
122
|
+
options: options
|
|
123
|
+
)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Update catalog elements (batch).
|
|
127
|
+
#
|
|
128
|
+
# @overload catalog_elements_update(catalog_id, body:, request_options: {})
|
|
129
|
+
#
|
|
130
|
+
# @param catalog_id [Integer]
|
|
131
|
+
# @param body [Array<Amocrm::Models::V4CatalogElementsUpdateParams::Body>]
|
|
132
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
133
|
+
#
|
|
134
|
+
# @return [Amocrm::Models::V4CatalogElementsUpdateResponse::CatalogElementUpdateResponse, Amocrm::Models::V4CatalogElementsUpdateResponse::Problem]
|
|
135
|
+
#
|
|
136
|
+
# @see Amocrm::Models::V4CatalogElementsUpdateParams
|
|
137
|
+
def catalog_elements_update(catalog_id, params)
|
|
138
|
+
parsed, options = Amocrm::V4CatalogElementsUpdateParams.dump_request(params)
|
|
139
|
+
@client.request(
|
|
140
|
+
method: :patch,
|
|
141
|
+
path: ["api/v4/catalogs/%1$s/elements", catalog_id],
|
|
142
|
+
body: parsed[:body],
|
|
143
|
+
model: Amocrm::Models::V4CatalogElementsUpdateResponse,
|
|
144
|
+
options: options
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Update catalog element by id.
|
|
149
|
+
#
|
|
150
|
+
# @overload catalog_elements_update_by_id(id, catalog_id:, custom_fields_values: nil, name: nil, request_id: nil, request_options: {})
|
|
151
|
+
#
|
|
152
|
+
# @param id [Integer] Path param
|
|
153
|
+
#
|
|
154
|
+
# @param catalog_id [Integer] Path param
|
|
155
|
+
#
|
|
156
|
+
# @param custom_fields_values [Array<Amocrm::Models::V4CatalogElementsUpdateByIDParams::CustomFieldsValue>] Body param
|
|
157
|
+
#
|
|
158
|
+
# @param name [String] Body param
|
|
159
|
+
#
|
|
160
|
+
# @param request_id [String] Body param
|
|
161
|
+
#
|
|
162
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
163
|
+
#
|
|
164
|
+
# @return [Amocrm::Models::V4CatalogElementsUpdateByIDResponse::CatalogElementUpdateResponse, Amocrm::Models::V4CatalogElementsUpdateByIDResponse::Problem]
|
|
165
|
+
#
|
|
166
|
+
# @see Amocrm::Models::V4CatalogElementsUpdateByIDParams
|
|
167
|
+
def catalog_elements_update_by_id(id, params)
|
|
168
|
+
parsed, options = Amocrm::V4CatalogElementsUpdateByIDParams.dump_request(params)
|
|
169
|
+
catalog_id =
|
|
170
|
+
parsed.delete(:catalog_id) do
|
|
171
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
172
|
+
end
|
|
173
|
+
@client.request(
|
|
174
|
+
method: :patch,
|
|
175
|
+
path: ["api/v4/catalogs/%1$s/elements/%2$s", catalog_id, id],
|
|
176
|
+
body: parsed,
|
|
177
|
+
model: Amocrm::Models::V4CatalogElementsUpdateByIDResponse,
|
|
178
|
+
options: options
|
|
179
|
+
)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Create catalogs.
|
|
183
|
+
#
|
|
184
|
+
# @overload catalogs_create(body:, request_options: {})
|
|
185
|
+
#
|
|
186
|
+
# @param body [Array<Amocrm::Models::V4CatalogsCreateParams::Body>]
|
|
187
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
188
|
+
#
|
|
189
|
+
# @return [Amocrm::Models::V4CatalogsCreateResponse::CatalogCreateResponse, Amocrm::Models::V4CatalogsCreateResponse::Problem]
|
|
190
|
+
#
|
|
191
|
+
# @see Amocrm::Models::V4CatalogsCreateParams
|
|
192
|
+
def catalogs_create(params)
|
|
193
|
+
parsed, options = Amocrm::V4CatalogsCreateParams.dump_request(params)
|
|
194
|
+
@client.request(
|
|
195
|
+
method: :post,
|
|
196
|
+
path: "api/v4/catalogs",
|
|
197
|
+
body: parsed[:body],
|
|
198
|
+
model: Amocrm::Models::V4CatalogsCreateResponse,
|
|
199
|
+
options: options
|
|
200
|
+
)
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Get catalog by id.
|
|
204
|
+
#
|
|
205
|
+
# @overload catalogs_get_by_id(id, request_options: {})
|
|
206
|
+
#
|
|
207
|
+
# @param id [Integer]
|
|
208
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
209
|
+
#
|
|
210
|
+
# @return [Amocrm::Models::V4CatalogsGetByIDResponse::Catalog, Amocrm::Models::V4CatalogsGetByIDResponse::Problem]
|
|
211
|
+
#
|
|
212
|
+
# @see Amocrm::Models::V4CatalogsGetByIDParams
|
|
213
|
+
def catalogs_get_by_id(id, params = {})
|
|
214
|
+
@client.request(
|
|
215
|
+
method: :get,
|
|
216
|
+
path: ["api/v4/catalogs/%1$s", id],
|
|
217
|
+
model: Amocrm::Models::V4CatalogsGetByIDResponse,
|
|
218
|
+
options: params[:request_options]
|
|
219
|
+
)
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Get catalogs list.
|
|
223
|
+
#
|
|
224
|
+
# @overload catalogs_list(limit: nil, page: nil, request_options: {})
|
|
225
|
+
#
|
|
226
|
+
# @param limit [Integer]
|
|
227
|
+
# @param page [Integer]
|
|
228
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
229
|
+
#
|
|
230
|
+
# @return [Amocrm::Models::V4CatalogsListResponse::CatalogListResponse, Amocrm::Models::V4CatalogsListResponse::Problem]
|
|
231
|
+
#
|
|
232
|
+
# @see Amocrm::Models::V4CatalogsListParams
|
|
233
|
+
def catalogs_list(params = {})
|
|
234
|
+
parsed, options = Amocrm::V4CatalogsListParams.dump_request(params)
|
|
235
|
+
@client.request(
|
|
236
|
+
method: :get,
|
|
237
|
+
path: "api/v4/catalogs",
|
|
238
|
+
query: parsed,
|
|
239
|
+
model: Amocrm::Models::V4CatalogsListResponse,
|
|
240
|
+
options: options
|
|
241
|
+
)
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Update catalogs (batch).
|
|
245
|
+
#
|
|
246
|
+
# @overload catalogs_update(body:, request_options: {})
|
|
247
|
+
#
|
|
248
|
+
# @param body [Array<Amocrm::Models::V4CatalogsUpdateParams::Body>]
|
|
249
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
250
|
+
#
|
|
251
|
+
# @return [Amocrm::Models::V4CatalogsUpdateResponse::CatalogUpdateResponse, Amocrm::Models::V4CatalogsUpdateResponse::Problem]
|
|
252
|
+
#
|
|
253
|
+
# @see Amocrm::Models::V4CatalogsUpdateParams
|
|
254
|
+
def catalogs_update(params)
|
|
255
|
+
parsed, options = Amocrm::V4CatalogsUpdateParams.dump_request(params)
|
|
256
|
+
@client.request(
|
|
257
|
+
method: :patch,
|
|
258
|
+
path: "api/v4/catalogs",
|
|
259
|
+
body: parsed[:body],
|
|
260
|
+
model: Amocrm::Models::V4CatalogsUpdateResponse,
|
|
261
|
+
options: options
|
|
262
|
+
)
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Update catalog by id.
|
|
266
|
+
#
|
|
267
|
+
# @overload catalogs_update_by_id(id, can_add_elements: nil, can_link_multiple: nil, name: nil, request_id: nil, sort: nil, request_options: {})
|
|
268
|
+
#
|
|
269
|
+
# @param id [Integer]
|
|
270
|
+
# @param can_add_elements [Boolean]
|
|
271
|
+
# @param can_link_multiple [Boolean]
|
|
272
|
+
# @param name [String]
|
|
273
|
+
# @param request_id [String]
|
|
274
|
+
# @param sort [Integer]
|
|
275
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
276
|
+
#
|
|
277
|
+
# @return [Amocrm::Models::V4CatalogsUpdateByIDResponse::CatalogUpdateResponse, Amocrm::Models::V4CatalogsUpdateByIDResponse::Problem]
|
|
278
|
+
#
|
|
279
|
+
# @see Amocrm::Models::V4CatalogsUpdateByIDParams
|
|
280
|
+
def catalogs_update_by_id(id, params = {})
|
|
281
|
+
parsed, options = Amocrm::V4CatalogsUpdateByIDParams.dump_request(params)
|
|
282
|
+
@client.request(
|
|
283
|
+
method: :patch,
|
|
284
|
+
path: ["api/v4/catalogs/%1$s", id],
|
|
285
|
+
body: parsed,
|
|
286
|
+
model: Amocrm::Models::V4CatalogsUpdateByIDResponse,
|
|
287
|
+
options: options
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Create companies.
|
|
292
|
+
#
|
|
293
|
+
# @overload companies_create(body:, request_options: {})
|
|
294
|
+
#
|
|
295
|
+
# @param body [Array<Amocrm::Models::V4CompaniesCreateParams::Body>]
|
|
296
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
297
|
+
#
|
|
298
|
+
# @return [Amocrm::Models::V4CompaniesCreateResponse::CompanyCreateResponse, Amocrm::Models::V4CompaniesCreateResponse::Problem]
|
|
299
|
+
#
|
|
300
|
+
# @see Amocrm::Models::V4CompaniesCreateParams
|
|
301
|
+
def companies_create(params)
|
|
302
|
+
parsed, options = Amocrm::V4CompaniesCreateParams.dump_request(params)
|
|
303
|
+
@client.request(
|
|
304
|
+
method: :post,
|
|
305
|
+
path: "api/v4/companies",
|
|
306
|
+
body: parsed[:body],
|
|
307
|
+
model: Amocrm::Models::V4CompaniesCreateResponse,
|
|
308
|
+
options: options
|
|
309
|
+
)
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Get a company by id.
|
|
313
|
+
#
|
|
314
|
+
# @overload companies_get_by_id(id, with: nil, request_options: {})
|
|
315
|
+
#
|
|
316
|
+
# @param id [Integer]
|
|
317
|
+
#
|
|
318
|
+
# @param with [String] Expand related entities; comma-separated values
|
|
319
|
+
#
|
|
320
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
321
|
+
#
|
|
322
|
+
# @return [Amocrm::Models::V4CompaniesGetByIDResponse::Company, Amocrm::Models::V4CompaniesGetByIDResponse::Problem]
|
|
323
|
+
#
|
|
324
|
+
# @see Amocrm::Models::V4CompaniesGetByIDParams
|
|
325
|
+
def companies_get_by_id(id, params = {})
|
|
326
|
+
parsed, options = Amocrm::V4CompaniesGetByIDParams.dump_request(params)
|
|
327
|
+
@client.request(
|
|
328
|
+
method: :get,
|
|
329
|
+
path: ["api/v4/companies/%1$s", id],
|
|
330
|
+
query: parsed,
|
|
331
|
+
model: Amocrm::Models::V4CompaniesGetByIDResponse,
|
|
332
|
+
options: options
|
|
333
|
+
)
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Get a list of companies (pagination, sorting, filtering).
|
|
337
|
+
#
|
|
338
|
+
# @overload companies_list(filter: nil, limit: nil, order: nil, page: nil, query: nil, with: nil, request_options: {})
|
|
339
|
+
#
|
|
340
|
+
# @param filter [Object] Filtering parameters
|
|
341
|
+
#
|
|
342
|
+
# @param limit [Integer] Pagination limit
|
|
343
|
+
#
|
|
344
|
+
# @param order [Object] Sorting, e.g. order[updated_at]=asc
|
|
345
|
+
#
|
|
346
|
+
# @param page [Integer] Pagination page
|
|
347
|
+
#
|
|
348
|
+
# @param query [String, Integer] Search by query string or id
|
|
349
|
+
#
|
|
350
|
+
# @param with [String] Expand related entities; comma-separated values
|
|
351
|
+
#
|
|
352
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
353
|
+
#
|
|
354
|
+
# @return [Amocrm::Models::V4CompaniesListResponse::CompanyListResponse, Amocrm::Models::V4CompaniesListResponse::Problem]
|
|
355
|
+
#
|
|
356
|
+
# @see Amocrm::Models::V4CompaniesListParams
|
|
357
|
+
def companies_list(params = {})
|
|
358
|
+
parsed, options = Amocrm::V4CompaniesListParams.dump_request(params)
|
|
359
|
+
@client.request(
|
|
360
|
+
method: :get,
|
|
361
|
+
path: "api/v4/companies",
|
|
362
|
+
query: parsed,
|
|
363
|
+
model: Amocrm::Models::V4CompaniesListResponse,
|
|
364
|
+
options: options
|
|
365
|
+
)
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Update companies (batch).
|
|
369
|
+
#
|
|
370
|
+
# @overload companies_update(body:, request_options: {})
|
|
371
|
+
#
|
|
372
|
+
# @param body [Array<Amocrm::Models::V4CompaniesUpdateParams::Body>]
|
|
373
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
374
|
+
#
|
|
375
|
+
# @return [Amocrm::Models::V4CompaniesUpdateResponse::CompanyUpdateResponse, Amocrm::Models::V4CompaniesUpdateResponse::Problem]
|
|
376
|
+
#
|
|
377
|
+
# @see Amocrm::Models::V4CompaniesUpdateParams
|
|
378
|
+
def companies_update(params)
|
|
379
|
+
parsed, options = Amocrm::V4CompaniesUpdateParams.dump_request(params)
|
|
380
|
+
@client.request(
|
|
381
|
+
method: :patch,
|
|
382
|
+
path: "api/v4/companies",
|
|
383
|
+
body: parsed[:body],
|
|
384
|
+
model: Amocrm::Models::V4CompaniesUpdateResponse,
|
|
385
|
+
options: options
|
|
386
|
+
)
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# Update a company by id.
|
|
390
|
+
#
|
|
391
|
+
# @overload companies_update_by_id(id, _embedded: nil, created_at: nil, created_by: nil, custom_fields_values: nil, name: nil, responsible_user_id: nil, tags_to_add: nil, tags_to_delete: nil, updated_at: nil, updated_by: nil, request_options: {})
|
|
392
|
+
#
|
|
393
|
+
# @param id [Integer]
|
|
394
|
+
#
|
|
395
|
+
# @param _embedded [Amocrm::Models::V4CompaniesUpdateByIDParams::Embedded]
|
|
396
|
+
#
|
|
397
|
+
# @param created_at [Integer]
|
|
398
|
+
#
|
|
399
|
+
# @param created_by [Integer]
|
|
400
|
+
#
|
|
401
|
+
# @param custom_fields_values [Array<Amocrm::Models::V4CompaniesUpdateByIDParams::CustomFieldsValue>] Custom fields payload
|
|
402
|
+
#
|
|
403
|
+
# @param name [String]
|
|
404
|
+
#
|
|
405
|
+
# @param responsible_user_id [Integer]
|
|
406
|
+
#
|
|
407
|
+
# @param tags_to_add [Array<Amocrm::Models::V4CompaniesUpdateByIDParams::TagsToAdd>] Tags to attach
|
|
408
|
+
#
|
|
409
|
+
# @param tags_to_delete [Array<Amocrm::Models::V4CompaniesUpdateByIDParams::TagsToDelete>] Tags to delete
|
|
410
|
+
#
|
|
411
|
+
# @param updated_at [Integer]
|
|
412
|
+
#
|
|
413
|
+
# @param updated_by [Integer]
|
|
414
|
+
#
|
|
415
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
416
|
+
#
|
|
417
|
+
# @return [Amocrm::Models::V4CompaniesUpdateByIDResponse::CompanyUpdateResponse, Amocrm::Models::V4CompaniesUpdateByIDResponse::Problem]
|
|
418
|
+
#
|
|
419
|
+
# @see Amocrm::Models::V4CompaniesUpdateByIDParams
|
|
420
|
+
def companies_update_by_id(id, params = {})
|
|
421
|
+
parsed, options = Amocrm::V4CompaniesUpdateByIDParams.dump_request(params)
|
|
422
|
+
@client.request(
|
|
423
|
+
method: :patch,
|
|
424
|
+
path: ["api/v4/companies/%1$s", id],
|
|
425
|
+
body: parsed,
|
|
426
|
+
model: Amocrm::Models::V4CompaniesUpdateByIDResponse,
|
|
427
|
+
options: options
|
|
428
|
+
)
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# Link chats to contacts.
|
|
432
|
+
#
|
|
433
|
+
# @overload contact_chats_link(body:, request_options: {})
|
|
434
|
+
#
|
|
435
|
+
# @param body [Array<Amocrm::Models::V4ContactChatsLinkParams::Body>]
|
|
436
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
437
|
+
#
|
|
438
|
+
# @return [Amocrm::Models::V4ContactChatsLinkResponse::ContactChatLinksResponse, Amocrm::Models::V4ContactChatsLinkResponse::Problem]
|
|
439
|
+
#
|
|
440
|
+
# @see Amocrm::Models::V4ContactChatsLinkParams
|
|
441
|
+
def contact_chats_link(params)
|
|
442
|
+
parsed, options = Amocrm::V4ContactChatsLinkParams.dump_request(params)
|
|
443
|
+
@client.request(
|
|
444
|
+
method: :post,
|
|
445
|
+
path: "api/v4/contacts/chats",
|
|
446
|
+
body: parsed[:body],
|
|
447
|
+
model: Amocrm::Models::V4ContactChatsLinkResponse,
|
|
448
|
+
options: options
|
|
449
|
+
)
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# Get list of linked chats.
|
|
453
|
+
#
|
|
454
|
+
# @overload contact_chats_list(filter: nil, request_options: {})
|
|
455
|
+
#
|
|
456
|
+
# @param filter [Object]
|
|
457
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
458
|
+
#
|
|
459
|
+
# @return [Amocrm::Models::V4ContactChatsListResponse::ContactChatLinksResponse, Amocrm::Models::V4ContactChatsListResponse::Problem]
|
|
460
|
+
#
|
|
461
|
+
# @see Amocrm::Models::V4ContactChatsListParams
|
|
462
|
+
def contact_chats_list(params = {})
|
|
463
|
+
parsed, options = Amocrm::V4ContactChatsListParams.dump_request(params)
|
|
464
|
+
@client.request(
|
|
465
|
+
method: :get,
|
|
466
|
+
path: "api/v4/contacts/chats",
|
|
467
|
+
query: parsed,
|
|
468
|
+
model: Amocrm::Models::V4ContactChatsListResponse,
|
|
469
|
+
options: options
|
|
470
|
+
)
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# Create contacts.
|
|
474
|
+
#
|
|
475
|
+
# @overload contacts_create(body:, request_options: {})
|
|
476
|
+
#
|
|
477
|
+
# @param body [Array<Amocrm::Models::V4ContactsCreateParams::Body>]
|
|
478
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
479
|
+
#
|
|
480
|
+
# @return [Amocrm::Models::V4ContactsCreateResponse::ContactCreateResponse, Amocrm::Models::V4ContactsCreateResponse::Problem]
|
|
481
|
+
#
|
|
482
|
+
# @see Amocrm::Models::V4ContactsCreateParams
|
|
483
|
+
def contacts_create(params)
|
|
484
|
+
parsed, options = Amocrm::V4ContactsCreateParams.dump_request(params)
|
|
485
|
+
@client.request(
|
|
486
|
+
method: :post,
|
|
487
|
+
path: "api/v4/contacts",
|
|
488
|
+
body: parsed[:body],
|
|
489
|
+
model: Amocrm::Models::V4ContactsCreateResponse,
|
|
490
|
+
options: options
|
|
491
|
+
)
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# Get a contact by id.
|
|
495
|
+
#
|
|
496
|
+
# @overload contacts_get_by_id(id, with: nil, request_options: {})
|
|
497
|
+
#
|
|
498
|
+
# @param id [Integer]
|
|
499
|
+
#
|
|
500
|
+
# @param with [String] Expand related entities; comma-separated values
|
|
501
|
+
#
|
|
502
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
503
|
+
#
|
|
504
|
+
# @return [Amocrm::Models::V4ContactsGetByIDResponse::Contact, Amocrm::Models::V4ContactsGetByIDResponse::Problem]
|
|
505
|
+
#
|
|
506
|
+
# @see Amocrm::Models::V4ContactsGetByIDParams
|
|
507
|
+
def contacts_get_by_id(id, params = {})
|
|
508
|
+
parsed, options = Amocrm::V4ContactsGetByIDParams.dump_request(params)
|
|
509
|
+
@client.request(
|
|
510
|
+
method: :get,
|
|
511
|
+
path: ["api/v4/contacts/%1$s", id],
|
|
512
|
+
query: parsed,
|
|
513
|
+
model: Amocrm::Models::V4ContactsGetByIDResponse,
|
|
514
|
+
options: options
|
|
515
|
+
)
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
# Get a list of contacts (pagination, sorting, filtering).
|
|
519
|
+
#
|
|
520
|
+
# @overload contacts_list(filter: nil, limit: nil, order: nil, page: nil, query: nil, with: nil, request_options: {})
|
|
521
|
+
#
|
|
522
|
+
# @param filter [Object] Filtering parameters
|
|
523
|
+
#
|
|
524
|
+
# @param limit [Integer] Pagination limit
|
|
525
|
+
#
|
|
526
|
+
# @param order [Object] Sorting, e.g. order[updated_at]=asc
|
|
527
|
+
#
|
|
528
|
+
# @param page [Integer] Pagination page
|
|
529
|
+
#
|
|
530
|
+
# @param query [String, Integer] Search by query string or id
|
|
531
|
+
#
|
|
532
|
+
# @param with [String] Expand related entities; comma-separated values
|
|
533
|
+
#
|
|
534
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
535
|
+
#
|
|
536
|
+
# @return [Amocrm::Models::V4ContactsListResponse::ContactListResponse, Amocrm::Models::V4ContactsListResponse::Problem]
|
|
537
|
+
#
|
|
538
|
+
# @see Amocrm::Models::V4ContactsListParams
|
|
539
|
+
def contacts_list(params = {})
|
|
540
|
+
parsed, options = Amocrm::V4ContactsListParams.dump_request(params)
|
|
541
|
+
@client.request(
|
|
542
|
+
method: :get,
|
|
543
|
+
path: "api/v4/contacts",
|
|
544
|
+
query: parsed,
|
|
545
|
+
model: Amocrm::Models::V4ContactsListResponse,
|
|
546
|
+
options: options
|
|
547
|
+
)
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# Update contacts (batch).
|
|
551
|
+
#
|
|
552
|
+
# @overload contacts_update(body:, request_options: {})
|
|
553
|
+
#
|
|
554
|
+
# @param body [Array<Amocrm::Models::V4ContactsUpdateParams::Body>]
|
|
555
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
556
|
+
#
|
|
557
|
+
# @return [Amocrm::Models::V4ContactsUpdateResponse::ContactUpdateResponse, Amocrm::Models::V4ContactsUpdateResponse::Problem]
|
|
558
|
+
#
|
|
559
|
+
# @see Amocrm::Models::V4ContactsUpdateParams
|
|
560
|
+
def contacts_update(params)
|
|
561
|
+
parsed, options = Amocrm::V4ContactsUpdateParams.dump_request(params)
|
|
562
|
+
@client.request(
|
|
563
|
+
method: :patch,
|
|
564
|
+
path: "api/v4/contacts",
|
|
565
|
+
body: parsed[:body],
|
|
566
|
+
model: Amocrm::Models::V4ContactsUpdateResponse,
|
|
567
|
+
options: options
|
|
568
|
+
)
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
# Update a contact by id.
|
|
572
|
+
#
|
|
573
|
+
# @overload contacts_update_by_id(id, _embedded: nil, created_at: nil, created_by: nil, custom_fields_values: nil, first_name: nil, last_name: nil, name: nil, responsible_user_id: nil, tags_to_add: nil, tags_to_delete: nil, updated_at: nil, updated_by: nil, request_options: {})
|
|
574
|
+
#
|
|
575
|
+
# @param id [Integer]
|
|
576
|
+
#
|
|
577
|
+
# @param _embedded [Amocrm::Models::V4ContactsUpdateByIDParams::Embedded]
|
|
578
|
+
#
|
|
579
|
+
# @param created_at [Integer]
|
|
580
|
+
#
|
|
581
|
+
# @param created_by [Integer]
|
|
582
|
+
#
|
|
583
|
+
# @param custom_fields_values [Array<Amocrm::Models::V4ContactsUpdateByIDParams::CustomFieldsValue>] Custom fields payload
|
|
584
|
+
#
|
|
585
|
+
# @param first_name [String]
|
|
586
|
+
#
|
|
587
|
+
# @param last_name [String]
|
|
588
|
+
#
|
|
589
|
+
# @param name [String]
|
|
590
|
+
#
|
|
591
|
+
# @param responsible_user_id [Integer]
|
|
592
|
+
#
|
|
593
|
+
# @param tags_to_add [Array<Amocrm::Models::V4ContactsUpdateByIDParams::TagsToAdd>] Tags to attach
|
|
594
|
+
#
|
|
595
|
+
# @param tags_to_delete [Array<Amocrm::Models::V4ContactsUpdateByIDParams::TagsToDelete>] Tags to delete
|
|
596
|
+
#
|
|
597
|
+
# @param updated_at [Integer]
|
|
598
|
+
#
|
|
599
|
+
# @param updated_by [Integer]
|
|
600
|
+
#
|
|
601
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
602
|
+
#
|
|
603
|
+
# @return [Amocrm::Models::V4ContactsUpdateByIDResponse::ContactUpdateResponse, Amocrm::Models::V4ContactsUpdateByIDResponse::Problem]
|
|
604
|
+
#
|
|
605
|
+
# @see Amocrm::Models::V4ContactsUpdateByIDParams
|
|
606
|
+
def contacts_update_by_id(id, params = {})
|
|
607
|
+
parsed, options = Amocrm::V4ContactsUpdateByIDParams.dump_request(params)
|
|
608
|
+
@client.request(
|
|
609
|
+
method: :patch,
|
|
610
|
+
path: ["api/v4/contacts/%1$s", id],
|
|
611
|
+
body: parsed,
|
|
612
|
+
model: Amocrm::Models::V4ContactsUpdateByIDResponse,
|
|
613
|
+
options: options
|
|
614
|
+
)
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
# Create custom field groups.
|
|
618
|
+
#
|
|
619
|
+
# @overload custom_field_groups_create(entity_type, body:, request_options: {})
|
|
620
|
+
#
|
|
621
|
+
# @param entity_type [String]
|
|
622
|
+
# @param body [Array<Amocrm::Models::V4CustomFieldGroupsCreateParams::Body>]
|
|
623
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
624
|
+
#
|
|
625
|
+
# @return [Amocrm::Models::V4CustomFieldGroupsCreateResponse::CustomFieldGroupCreateResponse, Amocrm::Models::V4CustomFieldGroupsCreateResponse::Problem]
|
|
626
|
+
#
|
|
627
|
+
# @see Amocrm::Models::V4CustomFieldGroupsCreateParams
|
|
628
|
+
def custom_field_groups_create(entity_type, params)
|
|
629
|
+
parsed, options = Amocrm::V4CustomFieldGroupsCreateParams.dump_request(params)
|
|
630
|
+
@client.request(
|
|
631
|
+
method: :post,
|
|
632
|
+
path: ["api/v4/%1$s/custom_fields/groups", entity_type],
|
|
633
|
+
body: parsed[:body],
|
|
634
|
+
model: Amocrm::Models::V4CustomFieldGroupsCreateResponse,
|
|
635
|
+
options: options
|
|
636
|
+
)
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
# Delete a custom field group by id.
|
|
640
|
+
#
|
|
641
|
+
# @overload custom_field_groups_delete_by_id(id, entity_type:, request_options: {})
|
|
642
|
+
#
|
|
643
|
+
# @param id [Integer]
|
|
644
|
+
# @param entity_type [String]
|
|
645
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
646
|
+
#
|
|
647
|
+
# @return [Object, Amocrm::Models::V4CustomFieldGroupsDeleteByIDResponse::Problem]
|
|
648
|
+
#
|
|
649
|
+
# @see Amocrm::Models::V4CustomFieldGroupsDeleteByIDParams
|
|
650
|
+
def custom_field_groups_delete_by_id(id, params)
|
|
651
|
+
parsed, options = Amocrm::V4CustomFieldGroupsDeleteByIDParams.dump_request(params)
|
|
652
|
+
entity_type =
|
|
653
|
+
parsed.delete(:entity_type) do
|
|
654
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
655
|
+
end
|
|
656
|
+
@client.request(
|
|
657
|
+
method: :delete,
|
|
658
|
+
path: ["api/v4/%1$s/custom_fields/groups/%2$s", entity_type, id],
|
|
659
|
+
model: Amocrm::Models::V4CustomFieldGroupsDeleteByIDResponse,
|
|
660
|
+
options: options
|
|
661
|
+
)
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
# Get custom field group by id.
|
|
665
|
+
#
|
|
666
|
+
# @overload custom_field_groups_get_by_id(id, entity_type:, request_options: {})
|
|
667
|
+
#
|
|
668
|
+
# @param id [Integer]
|
|
669
|
+
# @param entity_type [String]
|
|
670
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
671
|
+
#
|
|
672
|
+
# @return [Amocrm::Models::V4CustomFieldGroupsGetByIDResponse::CustomFieldGroup, Amocrm::Models::V4CustomFieldGroupsGetByIDResponse::Problem]
|
|
673
|
+
#
|
|
674
|
+
# @see Amocrm::Models::V4CustomFieldGroupsGetByIDParams
|
|
675
|
+
def custom_field_groups_get_by_id(id, params)
|
|
676
|
+
parsed, options = Amocrm::V4CustomFieldGroupsGetByIDParams.dump_request(params)
|
|
677
|
+
entity_type =
|
|
678
|
+
parsed.delete(:entity_type) do
|
|
679
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
680
|
+
end
|
|
681
|
+
@client.request(
|
|
682
|
+
method: :get,
|
|
683
|
+
path: ["api/v4/%1$s/custom_fields/groups/%2$s", entity_type, id],
|
|
684
|
+
model: Amocrm::Models::V4CustomFieldGroupsGetByIDResponse,
|
|
685
|
+
options: options
|
|
686
|
+
)
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
# Get custom field groups list.
|
|
690
|
+
#
|
|
691
|
+
# @overload custom_field_groups_list(entity_type, limit: nil, page: nil, request_options: {})
|
|
692
|
+
#
|
|
693
|
+
# @param entity_type [String]
|
|
694
|
+
# @param limit [Integer]
|
|
695
|
+
# @param page [Integer]
|
|
696
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
697
|
+
#
|
|
698
|
+
# @return [Amocrm::Models::V4CustomFieldGroupsListResponse::CustomFieldGroupListResponse, Amocrm::Models::V4CustomFieldGroupsListResponse::Problem]
|
|
699
|
+
#
|
|
700
|
+
# @see Amocrm::Models::V4CustomFieldGroupsListParams
|
|
701
|
+
def custom_field_groups_list(entity_type, params = {})
|
|
702
|
+
parsed, options = Amocrm::V4CustomFieldGroupsListParams.dump_request(params)
|
|
703
|
+
@client.request(
|
|
704
|
+
method: :get,
|
|
705
|
+
path: ["api/v4/%1$s/custom_fields/groups", entity_type],
|
|
706
|
+
query: parsed,
|
|
707
|
+
model: Amocrm::Models::V4CustomFieldGroupsListResponse,
|
|
708
|
+
options: options
|
|
709
|
+
)
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
# Update a custom field group by id.
|
|
713
|
+
#
|
|
714
|
+
# @overload custom_field_groups_update_by_id(id, entity_type:, name: nil, sort: nil, request_options: {})
|
|
715
|
+
#
|
|
716
|
+
# @param id [Integer] Path param
|
|
717
|
+
#
|
|
718
|
+
# @param entity_type [String] Path param
|
|
719
|
+
#
|
|
720
|
+
# @param name [String] Body param
|
|
721
|
+
#
|
|
722
|
+
# @param sort [Integer] Body param
|
|
723
|
+
#
|
|
724
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
725
|
+
#
|
|
726
|
+
# @return [Object, Amocrm::Models::V4CustomFieldGroupsUpdateByIDResponse::Problem]
|
|
727
|
+
#
|
|
728
|
+
# @see Amocrm::Models::V4CustomFieldGroupsUpdateByIDParams
|
|
729
|
+
def custom_field_groups_update_by_id(id, params)
|
|
730
|
+
parsed, options = Amocrm::V4CustomFieldGroupsUpdateByIDParams.dump_request(params)
|
|
731
|
+
entity_type =
|
|
732
|
+
parsed.delete(:entity_type) do
|
|
733
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
734
|
+
end
|
|
735
|
+
@client.request(
|
|
736
|
+
method: :patch,
|
|
737
|
+
path: ["api/v4/%1$s/custom_fields/groups/%2$s", entity_type, id],
|
|
738
|
+
body: parsed,
|
|
739
|
+
model: Amocrm::Models::V4CustomFieldGroupsUpdateByIDResponse,
|
|
740
|
+
options: options
|
|
741
|
+
)
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
# Create custom fields.
|
|
745
|
+
#
|
|
746
|
+
# @overload custom_fields_create(entity_type, body:, request_options: {})
|
|
747
|
+
#
|
|
748
|
+
# @param entity_type [String]
|
|
749
|
+
# @param body [Array<Amocrm::Models::V4CustomFieldsCreateParams::Body>]
|
|
750
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
751
|
+
#
|
|
752
|
+
# @return [Amocrm::Models::V4CustomFieldsCreateResponse::CustomFieldCreateResponse, Amocrm::Models::V4CustomFieldsCreateResponse::Problem]
|
|
753
|
+
#
|
|
754
|
+
# @see Amocrm::Models::V4CustomFieldsCreateParams
|
|
755
|
+
def custom_fields_create(entity_type, params)
|
|
756
|
+
parsed, options = Amocrm::V4CustomFieldsCreateParams.dump_request(params)
|
|
757
|
+
@client.request(
|
|
758
|
+
method: :post,
|
|
759
|
+
path: ["api/v4/%1$s/custom_fields", entity_type],
|
|
760
|
+
body: parsed[:body],
|
|
761
|
+
model: Amocrm::Models::V4CustomFieldsCreateResponse,
|
|
762
|
+
options: options
|
|
763
|
+
)
|
|
764
|
+
end
|
|
765
|
+
|
|
766
|
+
# Delete a custom field by id.
|
|
767
|
+
#
|
|
768
|
+
# @overload custom_fields_delete_by_id(id, entity_type:, request_options: {})
|
|
769
|
+
#
|
|
770
|
+
# @param id [Integer]
|
|
771
|
+
# @param entity_type [String]
|
|
772
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
773
|
+
#
|
|
774
|
+
# @return [Object, Amocrm::Models::V4CustomFieldsDeleteByIDResponse::Problem]
|
|
775
|
+
#
|
|
776
|
+
# @see Amocrm::Models::V4CustomFieldsDeleteByIDParams
|
|
777
|
+
def custom_fields_delete_by_id(id, params)
|
|
778
|
+
parsed, options = Amocrm::V4CustomFieldsDeleteByIDParams.dump_request(params)
|
|
779
|
+
entity_type =
|
|
780
|
+
parsed.delete(:entity_type) do
|
|
781
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
782
|
+
end
|
|
783
|
+
@client.request(
|
|
784
|
+
method: :delete,
|
|
785
|
+
path: ["api/v4/%1$s/custom_fields/%2$s", entity_type, id],
|
|
786
|
+
model: Amocrm::Models::V4CustomFieldsDeleteByIDResponse,
|
|
787
|
+
options: options
|
|
788
|
+
)
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
# Get custom field by id.
|
|
792
|
+
#
|
|
793
|
+
# @overload custom_fields_get_by_id(id, entity_type:, request_options: {})
|
|
794
|
+
#
|
|
795
|
+
# @param id [Integer]
|
|
796
|
+
# @param entity_type [String]
|
|
797
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
798
|
+
#
|
|
799
|
+
# @return [Amocrm::Models::V4CustomFieldsGetByIDResponse::CustomField, Amocrm::Models::V4CustomFieldsGetByIDResponse::Problem]
|
|
800
|
+
#
|
|
801
|
+
# @see Amocrm::Models::V4CustomFieldsGetByIDParams
|
|
802
|
+
def custom_fields_get_by_id(id, params)
|
|
803
|
+
parsed, options = Amocrm::V4CustomFieldsGetByIDParams.dump_request(params)
|
|
804
|
+
entity_type =
|
|
805
|
+
parsed.delete(:entity_type) do
|
|
806
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
807
|
+
end
|
|
808
|
+
@client.request(
|
|
809
|
+
method: :get,
|
|
810
|
+
path: ["api/v4/%1$s/custom_fields/%2$s", entity_type, id],
|
|
811
|
+
model: Amocrm::Models::V4CustomFieldsGetByIDResponse,
|
|
812
|
+
options: options
|
|
813
|
+
)
|
|
814
|
+
end
|
|
815
|
+
|
|
816
|
+
# Get custom fields list.
|
|
817
|
+
#
|
|
818
|
+
# @overload custom_fields_list(entity_type, limit: nil, page: nil, request_options: {})
|
|
819
|
+
#
|
|
820
|
+
# @param entity_type [String]
|
|
821
|
+
# @param limit [Integer]
|
|
822
|
+
# @param page [Integer]
|
|
823
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
824
|
+
#
|
|
825
|
+
# @return [Amocrm::Models::V4CustomFieldsListResponse::CustomFieldListResponse, Amocrm::Models::V4CustomFieldsListResponse::Problem]
|
|
826
|
+
#
|
|
827
|
+
# @see Amocrm::Models::V4CustomFieldsListParams
|
|
828
|
+
def custom_fields_list(entity_type, params = {})
|
|
829
|
+
parsed, options = Amocrm::V4CustomFieldsListParams.dump_request(params)
|
|
830
|
+
@client.request(
|
|
831
|
+
method: :get,
|
|
832
|
+
path: ["api/v4/%1$s/custom_fields", entity_type],
|
|
833
|
+
query: parsed,
|
|
834
|
+
model: Amocrm::Models::V4CustomFieldsListResponse,
|
|
835
|
+
options: options
|
|
836
|
+
)
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
# Update custom fields (batch).
|
|
840
|
+
#
|
|
841
|
+
# @overload custom_fields_update(entity_type, body:, request_options: {})
|
|
842
|
+
#
|
|
843
|
+
# @param entity_type [String]
|
|
844
|
+
# @param body [Array<Amocrm::Models::V4CustomFieldsUpdateParams::Body>]
|
|
845
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
846
|
+
#
|
|
847
|
+
# @return [Object, Amocrm::Models::V4CustomFieldsUpdateResponse::Problem]
|
|
848
|
+
#
|
|
849
|
+
# @see Amocrm::Models::V4CustomFieldsUpdateParams
|
|
850
|
+
def custom_fields_update(entity_type, params)
|
|
851
|
+
parsed, options = Amocrm::V4CustomFieldsUpdateParams.dump_request(params)
|
|
852
|
+
@client.request(
|
|
853
|
+
method: :patch,
|
|
854
|
+
path: ["api/v4/%1$s/custom_fields", entity_type],
|
|
855
|
+
body: parsed[:body],
|
|
856
|
+
model: Amocrm::Models::V4CustomFieldsUpdateResponse,
|
|
857
|
+
options: options
|
|
858
|
+
)
|
|
859
|
+
end
|
|
860
|
+
|
|
861
|
+
# Update a custom field by id.
|
|
862
|
+
#
|
|
863
|
+
# @overload custom_fields_update_by_id(id, entity_type:, code: nil, enums: nil, group_id: nil, is_deletable: nil, is_multiple: nil, is_required: nil, is_visible: nil, name: nil, settings: nil, sort: nil, type: nil, request_options: {})
|
|
864
|
+
#
|
|
865
|
+
# @param id [Integer] Path param
|
|
866
|
+
#
|
|
867
|
+
# @param entity_type [String] Path param
|
|
868
|
+
#
|
|
869
|
+
# @param code [String] Body param
|
|
870
|
+
#
|
|
871
|
+
# @param enums [Array<Object>] Body param
|
|
872
|
+
#
|
|
873
|
+
# @param group_id [Integer] Body param
|
|
874
|
+
#
|
|
875
|
+
# @param is_deletable [Boolean] Body param
|
|
876
|
+
#
|
|
877
|
+
# @param is_multiple [Boolean] Body param
|
|
878
|
+
#
|
|
879
|
+
# @param is_required [Boolean] Body param
|
|
880
|
+
#
|
|
881
|
+
# @param is_visible [Boolean] Body param
|
|
882
|
+
#
|
|
883
|
+
# @param name [String] Body param
|
|
884
|
+
#
|
|
885
|
+
# @param settings [Object] Body param
|
|
886
|
+
#
|
|
887
|
+
# @param sort [Integer] Body param
|
|
888
|
+
#
|
|
889
|
+
# @param type [String] Body param
|
|
890
|
+
#
|
|
891
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
892
|
+
#
|
|
893
|
+
# @return [Object, Amocrm::Models::V4CustomFieldsUpdateByIDResponse::Problem]
|
|
894
|
+
#
|
|
895
|
+
# @see Amocrm::Models::V4CustomFieldsUpdateByIDParams
|
|
896
|
+
def custom_fields_update_by_id(id, params)
|
|
897
|
+
parsed, options = Amocrm::V4CustomFieldsUpdateByIDParams.dump_request(params)
|
|
898
|
+
entity_type =
|
|
899
|
+
parsed.delete(:entity_type) do
|
|
900
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
901
|
+
end
|
|
902
|
+
@client.request(
|
|
903
|
+
method: :patch,
|
|
904
|
+
path: ["api/v4/%1$s/custom_fields/%2$s", entity_type, id],
|
|
905
|
+
body: parsed,
|
|
906
|
+
model: Amocrm::Models::V4CustomFieldsUpdateByIDResponse,
|
|
907
|
+
options: options
|
|
908
|
+
)
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
# Earn or redeem bonus points.
|
|
912
|
+
#
|
|
913
|
+
# @overload customer_bonus_points_change(customer_id, earn:, redeem:, request_options: {})
|
|
914
|
+
#
|
|
915
|
+
# @param customer_id [Integer]
|
|
916
|
+
# @param earn [Integer]
|
|
917
|
+
# @param redeem [Integer]
|
|
918
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
919
|
+
#
|
|
920
|
+
# @return [Amocrm::Models::V4CustomerBonusPointsChangeResponse::CustomerBonusPointsResponse, Amocrm::Models::V4CustomerBonusPointsChangeResponse::Problem]
|
|
921
|
+
#
|
|
922
|
+
# @see Amocrm::Models::V4CustomerBonusPointsChangeParams
|
|
923
|
+
def customer_bonus_points_change(customer_id, params)
|
|
924
|
+
parsed, options = Amocrm::V4CustomerBonusPointsChangeParams.dump_request(params)
|
|
925
|
+
@client.request(
|
|
926
|
+
method: :post,
|
|
927
|
+
path: ["api/v4/customers/%1$s/bonus_points", customer_id],
|
|
928
|
+
body: parsed,
|
|
929
|
+
model: Amocrm::Models::V4CustomerBonusPointsChangeResponse,
|
|
930
|
+
options: options
|
|
931
|
+
)
|
|
932
|
+
end
|
|
933
|
+
|
|
934
|
+
# Create segments.
|
|
935
|
+
#
|
|
936
|
+
# @overload customer_segments_create(body:, request_options: {})
|
|
937
|
+
#
|
|
938
|
+
# @param body [Array<Amocrm::Models::V4CustomerSegmentsCreateParams::Body>]
|
|
939
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
940
|
+
#
|
|
941
|
+
# @return [Amocrm::Models::V4CustomerSegmentsCreateResponse::CustomerSegmentCreateResponse, Amocrm::Models::V4CustomerSegmentsCreateResponse::Problem]
|
|
942
|
+
#
|
|
943
|
+
# @see Amocrm::Models::V4CustomerSegmentsCreateParams
|
|
944
|
+
def customer_segments_create(params)
|
|
945
|
+
parsed, options = Amocrm::V4CustomerSegmentsCreateParams.dump_request(params)
|
|
946
|
+
@client.request(
|
|
947
|
+
method: :post,
|
|
948
|
+
path: "api/v4/customers/segments",
|
|
949
|
+
body: parsed[:body],
|
|
950
|
+
model: Amocrm::Models::V4CustomerSegmentsCreateResponse,
|
|
951
|
+
options: options
|
|
952
|
+
)
|
|
953
|
+
end
|
|
954
|
+
|
|
955
|
+
# Delete a segment by id.
|
|
956
|
+
#
|
|
957
|
+
# @overload customer_segments_delete_by_id(id, request_options: {})
|
|
958
|
+
#
|
|
959
|
+
# @param id [Integer]
|
|
960
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
961
|
+
#
|
|
962
|
+
# @return [Object, Amocrm::Models::V4CustomerSegmentsDeleteByIDResponse::Problem]
|
|
963
|
+
#
|
|
964
|
+
# @see Amocrm::Models::V4CustomerSegmentsDeleteByIDParams
|
|
965
|
+
def customer_segments_delete_by_id(id, params = {})
|
|
966
|
+
@client.request(
|
|
967
|
+
method: :delete,
|
|
968
|
+
path: ["api/v4/customers/segments/%1$s", id],
|
|
969
|
+
model: Amocrm::Models::V4CustomerSegmentsDeleteByIDResponse,
|
|
970
|
+
options: params[:request_options]
|
|
971
|
+
)
|
|
972
|
+
end
|
|
973
|
+
|
|
974
|
+
# Get segment by id.
|
|
975
|
+
#
|
|
976
|
+
# @overload customer_segments_get_by_id(id, request_options: {})
|
|
977
|
+
#
|
|
978
|
+
# @param id [Integer]
|
|
979
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
980
|
+
#
|
|
981
|
+
# @return [Amocrm::Models::V4CustomerSegmentsGetByIDResponse::CustomerSegment, Amocrm::Models::V4CustomerSegmentsGetByIDResponse::Problem]
|
|
982
|
+
#
|
|
983
|
+
# @see Amocrm::Models::V4CustomerSegmentsGetByIDParams
|
|
984
|
+
def customer_segments_get_by_id(id, params = {})
|
|
985
|
+
@client.request(
|
|
986
|
+
method: :get,
|
|
987
|
+
path: ["api/v4/customers/segments/%1$s", id],
|
|
988
|
+
model: Amocrm::Models::V4CustomerSegmentsGetByIDResponse,
|
|
989
|
+
options: params[:request_options]
|
|
990
|
+
)
|
|
991
|
+
end
|
|
992
|
+
|
|
993
|
+
# Get segments list.
|
|
994
|
+
#
|
|
995
|
+
# @overload customer_segments_list(request_options: {})
|
|
996
|
+
#
|
|
997
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
998
|
+
#
|
|
999
|
+
# @return [Amocrm::Models::V4CustomerSegmentsListResponse::CustomerSegmentListResponse, Amocrm::Models::V4CustomerSegmentsListResponse::Problem]
|
|
1000
|
+
#
|
|
1001
|
+
# @see Amocrm::Models::V4CustomerSegmentsListParams
|
|
1002
|
+
def customer_segments_list(params = {})
|
|
1003
|
+
@client.request(
|
|
1004
|
+
method: :get,
|
|
1005
|
+
path: "api/v4/customers/segments",
|
|
1006
|
+
model: Amocrm::Models::V4CustomerSegmentsListResponse,
|
|
1007
|
+
options: params[:request_options]
|
|
1008
|
+
)
|
|
1009
|
+
end
|
|
1010
|
+
|
|
1011
|
+
# Update a segment by id.
|
|
1012
|
+
#
|
|
1013
|
+
# @overload customer_segments_update_by_id(id, color: nil, custom_fields_values: nil, name: nil, request_options: {})
|
|
1014
|
+
#
|
|
1015
|
+
# @param id [Integer]
|
|
1016
|
+
# @param color [String]
|
|
1017
|
+
# @param custom_fields_values [Array<Amocrm::Models::V4CustomerSegmentsUpdateByIDParams::CustomFieldsValue>]
|
|
1018
|
+
# @param name [String]
|
|
1019
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1020
|
+
#
|
|
1021
|
+
# @return [Object, Amocrm::Models::V4CustomerSegmentsUpdateByIDResponse::Problem]
|
|
1022
|
+
#
|
|
1023
|
+
# @see Amocrm::Models::V4CustomerSegmentsUpdateByIDParams
|
|
1024
|
+
def customer_segments_update_by_id(id, params = {})
|
|
1025
|
+
parsed, options = Amocrm::V4CustomerSegmentsUpdateByIDParams.dump_request(params)
|
|
1026
|
+
@client.request(
|
|
1027
|
+
method: :patch,
|
|
1028
|
+
path: ["api/v4/customers/segments/%1$s", id],
|
|
1029
|
+
body: parsed,
|
|
1030
|
+
model: Amocrm::Models::V4CustomerSegmentsUpdateByIDResponse,
|
|
1031
|
+
options: options
|
|
1032
|
+
)
|
|
1033
|
+
end
|
|
1034
|
+
|
|
1035
|
+
# Create statuses.
|
|
1036
|
+
#
|
|
1037
|
+
# @overload customer_statuses_create(body:, request_options: {})
|
|
1038
|
+
#
|
|
1039
|
+
# @param body [Array<Amocrm::Models::V4CustomerStatusesCreateParams::Body>]
|
|
1040
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1041
|
+
#
|
|
1042
|
+
# @return [Amocrm::Models::V4CustomerStatusesCreateResponse::CustomerStatusCreateResponse, Amocrm::Models::V4CustomerStatusesCreateResponse::Problem]
|
|
1043
|
+
#
|
|
1044
|
+
# @see Amocrm::Models::V4CustomerStatusesCreateParams
|
|
1045
|
+
def customer_statuses_create(params)
|
|
1046
|
+
parsed, options = Amocrm::V4CustomerStatusesCreateParams.dump_request(params)
|
|
1047
|
+
@client.request(
|
|
1048
|
+
method: :post,
|
|
1049
|
+
path: "api/v4/customers/statuses",
|
|
1050
|
+
body: parsed[:body],
|
|
1051
|
+
model: Amocrm::Models::V4CustomerStatusesCreateResponse,
|
|
1052
|
+
options: options
|
|
1053
|
+
)
|
|
1054
|
+
end
|
|
1055
|
+
|
|
1056
|
+
# Delete a status by id.
|
|
1057
|
+
#
|
|
1058
|
+
# @overload customer_statuses_delete_by_id(id, request_options: {})
|
|
1059
|
+
#
|
|
1060
|
+
# @param id [Integer]
|
|
1061
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1062
|
+
#
|
|
1063
|
+
# @return [Object, Amocrm::Models::V4CustomerStatusesDeleteByIDResponse::Problem]
|
|
1064
|
+
#
|
|
1065
|
+
# @see Amocrm::Models::V4CustomerStatusesDeleteByIDParams
|
|
1066
|
+
def customer_statuses_delete_by_id(id, params = {})
|
|
1067
|
+
@client.request(
|
|
1068
|
+
method: :delete,
|
|
1069
|
+
path: ["api/v4/customers/statuses/%1$s", id],
|
|
1070
|
+
model: Amocrm::Models::V4CustomerStatusesDeleteByIDResponse,
|
|
1071
|
+
options: params[:request_options]
|
|
1072
|
+
)
|
|
1073
|
+
end
|
|
1074
|
+
|
|
1075
|
+
# Get status by id.
|
|
1076
|
+
#
|
|
1077
|
+
# @overload customer_statuses_get_by_id(id, request_options: {})
|
|
1078
|
+
#
|
|
1079
|
+
# @param id [Integer]
|
|
1080
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1081
|
+
#
|
|
1082
|
+
# @return [Amocrm::Models::V4CustomerStatusesGetByIDResponse::CustomerStatus, Amocrm::Models::V4CustomerStatusesGetByIDResponse::Problem]
|
|
1083
|
+
#
|
|
1084
|
+
# @see Amocrm::Models::V4CustomerStatusesGetByIDParams
|
|
1085
|
+
def customer_statuses_get_by_id(id, params = {})
|
|
1086
|
+
@client.request(
|
|
1087
|
+
method: :get,
|
|
1088
|
+
path: ["api/v4/customers/statuses/%1$s", id],
|
|
1089
|
+
model: Amocrm::Models::V4CustomerStatusesGetByIDResponse,
|
|
1090
|
+
options: params[:request_options]
|
|
1091
|
+
)
|
|
1092
|
+
end
|
|
1093
|
+
|
|
1094
|
+
# Get statuses list.
|
|
1095
|
+
#
|
|
1096
|
+
# @overload customer_statuses_list(request_options: {})
|
|
1097
|
+
#
|
|
1098
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1099
|
+
#
|
|
1100
|
+
# @return [Amocrm::Models::V4CustomerStatusesListResponse::CustomerStatusListResponse, Amocrm::Models::V4CustomerStatusesListResponse::Problem]
|
|
1101
|
+
#
|
|
1102
|
+
# @see Amocrm::Models::V4CustomerStatusesListParams
|
|
1103
|
+
def customer_statuses_list(params = {})
|
|
1104
|
+
@client.request(
|
|
1105
|
+
method: :get,
|
|
1106
|
+
path: "api/v4/customers/statuses",
|
|
1107
|
+
model: Amocrm::Models::V4CustomerStatusesListResponse,
|
|
1108
|
+
options: params[:request_options]
|
|
1109
|
+
)
|
|
1110
|
+
end
|
|
1111
|
+
|
|
1112
|
+
# Update a status by id.
|
|
1113
|
+
#
|
|
1114
|
+
# @overload customer_statuses_update_by_id(id, color: nil, name: nil, sort: nil, request_options: {})
|
|
1115
|
+
#
|
|
1116
|
+
# @param id [Integer]
|
|
1117
|
+
# @param color [String]
|
|
1118
|
+
# @param name [String]
|
|
1119
|
+
# @param sort [Integer]
|
|
1120
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1121
|
+
#
|
|
1122
|
+
# @return [Object, Amocrm::Models::V4CustomerStatusesUpdateByIDResponse::Problem]
|
|
1123
|
+
#
|
|
1124
|
+
# @see Amocrm::Models::V4CustomerStatusesUpdateByIDParams
|
|
1125
|
+
def customer_statuses_update_by_id(id, params = {})
|
|
1126
|
+
parsed, options = Amocrm::V4CustomerStatusesUpdateByIDParams.dump_request(params)
|
|
1127
|
+
@client.request(
|
|
1128
|
+
method: :patch,
|
|
1129
|
+
path: ["api/v4/customers/statuses/%1$s", id],
|
|
1130
|
+
body: parsed,
|
|
1131
|
+
model: Amocrm::Models::V4CustomerStatusesUpdateByIDResponse,
|
|
1132
|
+
options: options
|
|
1133
|
+
)
|
|
1134
|
+
end
|
|
1135
|
+
|
|
1136
|
+
# Create transactions for a customer.
|
|
1137
|
+
#
|
|
1138
|
+
# @overload customer_transactions_create(customer_id, body:, accrue_bonus: nil, request_options: {})
|
|
1139
|
+
#
|
|
1140
|
+
# @param customer_id [Integer] Path param
|
|
1141
|
+
#
|
|
1142
|
+
# @param body [Array<Amocrm::Models::V4CustomerTransactionsCreateParams::Body>] Body param
|
|
1143
|
+
#
|
|
1144
|
+
# @param accrue_bonus [Boolean] Query param
|
|
1145
|
+
#
|
|
1146
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1147
|
+
#
|
|
1148
|
+
# @return [Amocrm::Models::V4CustomerTransactionsCreateResponse::CustomerTransactionCreateResponse, Amocrm::Models::V4CustomerTransactionsCreateResponse::Problem]
|
|
1149
|
+
#
|
|
1150
|
+
# @see Amocrm::Models::V4CustomerTransactionsCreateParams
|
|
1151
|
+
def customer_transactions_create(customer_id, params)
|
|
1152
|
+
parsed, options = Amocrm::V4CustomerTransactionsCreateParams.dump_request(params)
|
|
1153
|
+
@client.request(
|
|
1154
|
+
method: :post,
|
|
1155
|
+
path: ["api/v4/customers/%1$s/transactions", customer_id],
|
|
1156
|
+
query: parsed.except(:body),
|
|
1157
|
+
body: parsed[:body],
|
|
1158
|
+
model: Amocrm::Models::V4CustomerTransactionsCreateResponse,
|
|
1159
|
+
options: options
|
|
1160
|
+
)
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1163
|
+
# Delete a transaction for a customer.
|
|
1164
|
+
#
|
|
1165
|
+
# @overload customer_transactions_delete_by_id(transaction_id, customer_id:, request_options: {})
|
|
1166
|
+
#
|
|
1167
|
+
# @param transaction_id [Integer]
|
|
1168
|
+
# @param customer_id [Integer]
|
|
1169
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1170
|
+
#
|
|
1171
|
+
# @return [Object, Amocrm::Models::V4CustomerTransactionsDeleteByIDResponse::Problem]
|
|
1172
|
+
#
|
|
1173
|
+
# @see Amocrm::Models::V4CustomerTransactionsDeleteByIDParams
|
|
1174
|
+
def customer_transactions_delete_by_id(transaction_id, params)
|
|
1175
|
+
parsed, options = Amocrm::V4CustomerTransactionsDeleteByIDParams.dump_request(params)
|
|
1176
|
+
customer_id =
|
|
1177
|
+
parsed.delete(:customer_id) do
|
|
1178
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1179
|
+
end
|
|
1180
|
+
@client.request(
|
|
1181
|
+
method: :delete,
|
|
1182
|
+
path: ["api/v4/customers/%1$s/transactions/%2$s", customer_id, transaction_id],
|
|
1183
|
+
model: Amocrm::Models::V4CustomerTransactionsDeleteByIDResponse,
|
|
1184
|
+
options: options
|
|
1185
|
+
)
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1188
|
+
# Get list of transactions.
|
|
1189
|
+
#
|
|
1190
|
+
# @overload customer_transactions_list(filter: nil, limit: nil, page: nil, request_options: {})
|
|
1191
|
+
#
|
|
1192
|
+
# @param filter [Object]
|
|
1193
|
+
# @param limit [Integer]
|
|
1194
|
+
# @param page [Integer]
|
|
1195
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1196
|
+
#
|
|
1197
|
+
# @return [Amocrm::Models::V4CustomerTransactionsListResponse::CustomerTransactionListResponse, Amocrm::Models::V4CustomerTransactionsListResponse::Problem]
|
|
1198
|
+
#
|
|
1199
|
+
# @see Amocrm::Models::V4CustomerTransactionsListParams
|
|
1200
|
+
def customer_transactions_list(params = {})
|
|
1201
|
+
parsed, options = Amocrm::V4CustomerTransactionsListParams.dump_request(params)
|
|
1202
|
+
@client.request(
|
|
1203
|
+
method: :get,
|
|
1204
|
+
path: "api/v4/customers/transactions",
|
|
1205
|
+
query: parsed,
|
|
1206
|
+
model: Amocrm::Models::V4CustomerTransactionsListResponse,
|
|
1207
|
+
options: options
|
|
1208
|
+
)
|
|
1209
|
+
end
|
|
1210
|
+
|
|
1211
|
+
# Get list of transactions for a customer.
|
|
1212
|
+
#
|
|
1213
|
+
# @overload customer_transactions_list_by_customer(customer_id, filter: nil, limit: nil, page: nil, request_options: {})
|
|
1214
|
+
#
|
|
1215
|
+
# @param customer_id [Integer]
|
|
1216
|
+
# @param filter [Object]
|
|
1217
|
+
# @param limit [Integer]
|
|
1218
|
+
# @param page [Integer]
|
|
1219
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1220
|
+
#
|
|
1221
|
+
# @return [Amocrm::Models::V4CustomerTransactionsListByCustomerResponse::CustomerTransactionListResponse, Amocrm::Models::V4CustomerTransactionsListByCustomerResponse::Problem]
|
|
1222
|
+
#
|
|
1223
|
+
# @see Amocrm::Models::V4CustomerTransactionsListByCustomerParams
|
|
1224
|
+
def customer_transactions_list_by_customer(customer_id, params = {})
|
|
1225
|
+
parsed, options = Amocrm::V4CustomerTransactionsListByCustomerParams.dump_request(params)
|
|
1226
|
+
@client.request(
|
|
1227
|
+
method: :get,
|
|
1228
|
+
path: ["api/v4/customers/%1$s/transactions", customer_id],
|
|
1229
|
+
query: parsed,
|
|
1230
|
+
model: Amocrm::Models::V4CustomerTransactionsListByCustomerResponse,
|
|
1231
|
+
options: options
|
|
1232
|
+
)
|
|
1233
|
+
end
|
|
1234
|
+
|
|
1235
|
+
# Create customers.
|
|
1236
|
+
#
|
|
1237
|
+
# @overload customers_create(body:, request_options: {})
|
|
1238
|
+
#
|
|
1239
|
+
# @param body [Array<Amocrm::Models::V4CustomersCreateParams::Body>]
|
|
1240
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1241
|
+
#
|
|
1242
|
+
# @return [Amocrm::Models::V4CustomersCreateResponse::CustomerCreateResponse, Amocrm::Models::V4CustomersCreateResponse::Problem]
|
|
1243
|
+
#
|
|
1244
|
+
# @see Amocrm::Models::V4CustomersCreateParams
|
|
1245
|
+
def customers_create(params)
|
|
1246
|
+
parsed, options = Amocrm::V4CustomersCreateParams.dump_request(params)
|
|
1247
|
+
@client.request(
|
|
1248
|
+
method: :post,
|
|
1249
|
+
path: "api/v4/customers",
|
|
1250
|
+
body: parsed[:body],
|
|
1251
|
+
model: Amocrm::Models::V4CustomersCreateResponse,
|
|
1252
|
+
options: options
|
|
1253
|
+
)
|
|
1254
|
+
end
|
|
1255
|
+
|
|
1256
|
+
# Get a customer by id.
|
|
1257
|
+
#
|
|
1258
|
+
# @overload customers_get_by_id(id, with: nil, request_options: {})
|
|
1259
|
+
#
|
|
1260
|
+
# @param id [Integer]
|
|
1261
|
+
#
|
|
1262
|
+
# @param with [String] Expand related entities; comma-separated values
|
|
1263
|
+
#
|
|
1264
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1265
|
+
#
|
|
1266
|
+
# @return [Amocrm::Models::V4CustomersGetByIDResponse::Customer, Amocrm::Models::V4CustomersGetByIDResponse::Problem]
|
|
1267
|
+
#
|
|
1268
|
+
# @see Amocrm::Models::V4CustomersGetByIDParams
|
|
1269
|
+
def customers_get_by_id(id, params = {})
|
|
1270
|
+
parsed, options = Amocrm::V4CustomersGetByIDParams.dump_request(params)
|
|
1271
|
+
@client.request(
|
|
1272
|
+
method: :get,
|
|
1273
|
+
path: ["api/v4/customers/%1$s", id],
|
|
1274
|
+
query: parsed,
|
|
1275
|
+
model: Amocrm::Models::V4CustomersGetByIDResponse,
|
|
1276
|
+
options: options
|
|
1277
|
+
)
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
# Get a list of customers.
|
|
1281
|
+
#
|
|
1282
|
+
# @overload customers_list(filter: nil, limit: nil, order: nil, page: nil, query: nil, with: nil, request_options: {})
|
|
1283
|
+
#
|
|
1284
|
+
# @param filter [Object]
|
|
1285
|
+
#
|
|
1286
|
+
# @param limit [Integer]
|
|
1287
|
+
#
|
|
1288
|
+
# @param order [Object]
|
|
1289
|
+
#
|
|
1290
|
+
# @param page [Integer]
|
|
1291
|
+
#
|
|
1292
|
+
# @param query [String, Integer]
|
|
1293
|
+
#
|
|
1294
|
+
# @param with [String] Expand related entities; comma-separated values
|
|
1295
|
+
#
|
|
1296
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1297
|
+
#
|
|
1298
|
+
# @return [Amocrm::Models::V4CustomersListResponse::CustomerListResponse, Amocrm::Models::V4CustomersListResponse::Problem]
|
|
1299
|
+
#
|
|
1300
|
+
# @see Amocrm::Models::V4CustomersListParams
|
|
1301
|
+
def customers_list(params = {})
|
|
1302
|
+
parsed, options = Amocrm::V4CustomersListParams.dump_request(params)
|
|
1303
|
+
@client.request(
|
|
1304
|
+
method: :get,
|
|
1305
|
+
path: "api/v4/customers",
|
|
1306
|
+
query: parsed,
|
|
1307
|
+
model: Amocrm::Models::V4CustomersListResponse,
|
|
1308
|
+
options: options
|
|
1309
|
+
)
|
|
1310
|
+
end
|
|
1311
|
+
|
|
1312
|
+
# Enable or switch customers mode.
|
|
1313
|
+
#
|
|
1314
|
+
# @overload customers_mode_set_mode(is_enabled:, mode:, request_options: {})
|
|
1315
|
+
#
|
|
1316
|
+
# @param is_enabled [Boolean]
|
|
1317
|
+
# @param mode [Symbol, Amocrm::Models::V4CustomersModeSetModeParams::Mode]
|
|
1318
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1319
|
+
#
|
|
1320
|
+
# @return [Amocrm::Models::V4CustomersModeSetModeResponse::CustomerModeResponse, Amocrm::Models::V4CustomersModeSetModeResponse::Problem]
|
|
1321
|
+
#
|
|
1322
|
+
# @see Amocrm::Models::V4CustomersModeSetModeParams
|
|
1323
|
+
def customers_mode_set_mode(params)
|
|
1324
|
+
parsed, options = Amocrm::V4CustomersModeSetModeParams.dump_request(params)
|
|
1325
|
+
@client.request(
|
|
1326
|
+
method: :patch,
|
|
1327
|
+
path: "api/v4/customers/mode",
|
|
1328
|
+
body: parsed,
|
|
1329
|
+
model: Amocrm::Models::V4CustomersModeSetModeResponse,
|
|
1330
|
+
options: options
|
|
1331
|
+
)
|
|
1332
|
+
end
|
|
1333
|
+
|
|
1334
|
+
# Update customers (batch).
|
|
1335
|
+
#
|
|
1336
|
+
# @overload customers_update(body:, request_options: {})
|
|
1337
|
+
#
|
|
1338
|
+
# @param body [Array<Amocrm::Models::V4CustomersUpdateParams::Body>]
|
|
1339
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1340
|
+
#
|
|
1341
|
+
# @return [Amocrm::Models::V4CustomersUpdateResponse::CustomerUpdateResponse, Amocrm::Models::V4CustomersUpdateResponse::Problem]
|
|
1342
|
+
#
|
|
1343
|
+
# @see Amocrm::Models::V4CustomersUpdateParams
|
|
1344
|
+
def customers_update(params)
|
|
1345
|
+
parsed, options = Amocrm::V4CustomersUpdateParams.dump_request(params)
|
|
1346
|
+
@client.request(
|
|
1347
|
+
method: :patch,
|
|
1348
|
+
path: "api/v4/customers",
|
|
1349
|
+
body: parsed[:body],
|
|
1350
|
+
model: Amocrm::Models::V4CustomersUpdateResponse,
|
|
1351
|
+
options: options
|
|
1352
|
+
)
|
|
1353
|
+
end
|
|
1354
|
+
|
|
1355
|
+
# Update a customer by id.
|
|
1356
|
+
#
|
|
1357
|
+
# @overload customers_update_by_id(id, _embedded: nil, custom_fields_values: nil, main_user_id: nil, name: nil, next_date: nil, next_price: nil, periodicity: nil, responsible_user_id: nil, status_id: nil, tags_to_add: nil, tags_to_delete: nil, updated_at: nil, updated_by: nil, request_options: {})
|
|
1358
|
+
#
|
|
1359
|
+
# @param id [Integer]
|
|
1360
|
+
# @param _embedded [Amocrm::Models::V4CustomersUpdateByIDParams::Embedded]
|
|
1361
|
+
# @param custom_fields_values [Array<Amocrm::Models::V4CustomersUpdateByIDParams::CustomFieldsValue>]
|
|
1362
|
+
# @param main_user_id [Integer]
|
|
1363
|
+
# @param name [String]
|
|
1364
|
+
# @param next_date [Integer]
|
|
1365
|
+
# @param next_price [Integer]
|
|
1366
|
+
# @param periodicity [Integer]
|
|
1367
|
+
# @param responsible_user_id [Integer]
|
|
1368
|
+
# @param status_id [Integer]
|
|
1369
|
+
# @param tags_to_add [Array<Amocrm::Models::V4CustomersUpdateByIDParams::TagsToAdd>]
|
|
1370
|
+
# @param tags_to_delete [Array<Amocrm::Models::V4CustomersUpdateByIDParams::TagsToDelete>]
|
|
1371
|
+
# @param updated_at [Integer]
|
|
1372
|
+
# @param updated_by [Integer]
|
|
1373
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1374
|
+
#
|
|
1375
|
+
# @return [Amocrm::Models::V4CustomersUpdateByIDResponse::CustomerUpdateResponse, Amocrm::Models::V4CustomersUpdateByIDResponse::Problem]
|
|
1376
|
+
#
|
|
1377
|
+
# @see Amocrm::Models::V4CustomersUpdateByIDParams
|
|
1378
|
+
def customers_update_by_id(id, params = {})
|
|
1379
|
+
parsed, options = Amocrm::V4CustomersUpdateByIDParams.dump_request(params)
|
|
1380
|
+
@client.request(
|
|
1381
|
+
method: :patch,
|
|
1382
|
+
path: ["api/v4/customers/%1$s", id],
|
|
1383
|
+
body: parsed,
|
|
1384
|
+
model: Amocrm::Models::V4CustomersUpdateByIDResponse,
|
|
1385
|
+
options: options
|
|
1386
|
+
)
|
|
1387
|
+
end
|
|
1388
|
+
|
|
1389
|
+
# Add followers.
|
|
1390
|
+
#
|
|
1391
|
+
# @overload entity_followers_add(entity_id, entity_type:, body:, request_options: {})
|
|
1392
|
+
#
|
|
1393
|
+
# @param entity_id [Integer] Path param
|
|
1394
|
+
#
|
|
1395
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityFollowersAddParams::EntityType] Path param
|
|
1396
|
+
#
|
|
1397
|
+
# @param body [Array<Amocrm::Models::V4EntityFollowersAddParams::Body>] Body param
|
|
1398
|
+
#
|
|
1399
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1400
|
+
#
|
|
1401
|
+
# @return [Amocrm::Models::V4EntityFollowersAddResponse::EntityFollowerCreateResponse, Amocrm::Models::V4EntityFollowersAddResponse::Problem]
|
|
1402
|
+
#
|
|
1403
|
+
# @see Amocrm::Models::V4EntityFollowersAddParams
|
|
1404
|
+
def entity_followers_add(entity_id, params)
|
|
1405
|
+
parsed, options = Amocrm::V4EntityFollowersAddParams.dump_request(params)
|
|
1406
|
+
entity_type =
|
|
1407
|
+
parsed.delete(:entity_type) do
|
|
1408
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1409
|
+
end
|
|
1410
|
+
@client.request(
|
|
1411
|
+
method: :post,
|
|
1412
|
+
path: ["api/v4/%1$s/%2$s/followers", entity_type, entity_id],
|
|
1413
|
+
body: parsed[:body],
|
|
1414
|
+
model: Amocrm::Models::V4EntityFollowersAddResponse,
|
|
1415
|
+
options: options
|
|
1416
|
+
)
|
|
1417
|
+
end
|
|
1418
|
+
|
|
1419
|
+
# Get followers list.
|
|
1420
|
+
#
|
|
1421
|
+
# @overload entity_followers_list(entity_id, entity_type:, limit: nil, page: nil, request_options: {})
|
|
1422
|
+
#
|
|
1423
|
+
# @param entity_id [Integer] Path param
|
|
1424
|
+
#
|
|
1425
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityFollowersListParams::EntityType] Path param
|
|
1426
|
+
#
|
|
1427
|
+
# @param limit [Integer] Query param
|
|
1428
|
+
#
|
|
1429
|
+
# @param page [Integer] Query param
|
|
1430
|
+
#
|
|
1431
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1432
|
+
#
|
|
1433
|
+
# @return [Amocrm::Models::V4EntityFollowersListResponse::EntityFollowerListResponse, Amocrm::Models::V4EntityFollowersListResponse::Problem]
|
|
1434
|
+
#
|
|
1435
|
+
# @see Amocrm::Models::V4EntityFollowersListParams
|
|
1436
|
+
def entity_followers_list(entity_id, params)
|
|
1437
|
+
parsed, options = Amocrm::V4EntityFollowersListParams.dump_request(params)
|
|
1438
|
+
entity_type =
|
|
1439
|
+
parsed.delete(:entity_type) do
|
|
1440
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1441
|
+
end
|
|
1442
|
+
@client.request(
|
|
1443
|
+
method: :get,
|
|
1444
|
+
path: ["api/v4/%1$s/%2$s/followers", entity_type, entity_id],
|
|
1445
|
+
query: parsed,
|
|
1446
|
+
model: Amocrm::Models::V4EntityFollowersListResponse,
|
|
1447
|
+
options: options
|
|
1448
|
+
)
|
|
1449
|
+
end
|
|
1450
|
+
|
|
1451
|
+
# Remove followers.
|
|
1452
|
+
#
|
|
1453
|
+
# @overload entity_followers_remove(entity_id, entity_type:, body:, request_options: {})
|
|
1454
|
+
#
|
|
1455
|
+
# @param entity_id [Integer] Path param
|
|
1456
|
+
#
|
|
1457
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityFollowersRemoveParams::EntityType] Path param
|
|
1458
|
+
#
|
|
1459
|
+
# @param body [Array<Amocrm::Models::V4EntityFollowersRemoveParams::Body>] Body param
|
|
1460
|
+
#
|
|
1461
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1462
|
+
#
|
|
1463
|
+
# @return [Amocrm::Models::V4EntityFollowersRemoveResponse::EmptyResponse, Amocrm::Models::V4EntityFollowersRemoveResponse::Problem]
|
|
1464
|
+
#
|
|
1465
|
+
# @see Amocrm::Models::V4EntityFollowersRemoveParams
|
|
1466
|
+
def entity_followers_remove(entity_id, params)
|
|
1467
|
+
parsed, options = Amocrm::V4EntityFollowersRemoveParams.dump_request(params)
|
|
1468
|
+
entity_type =
|
|
1469
|
+
parsed.delete(:entity_type) do
|
|
1470
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1471
|
+
end
|
|
1472
|
+
@client.request(
|
|
1473
|
+
method: :delete,
|
|
1474
|
+
path: ["api/v4/%1$s/%2$s/followers", entity_type, entity_id],
|
|
1475
|
+
body: parsed[:body],
|
|
1476
|
+
model: Amocrm::Models::V4EntityFollowersRemoveResponse,
|
|
1477
|
+
options: options
|
|
1478
|
+
)
|
|
1479
|
+
end
|
|
1480
|
+
|
|
1481
|
+
# Link entities (bulk).
|
|
1482
|
+
#
|
|
1483
|
+
# @overload entity_links_link(entity_type, body:, request_options: {})
|
|
1484
|
+
#
|
|
1485
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityLinksLinkParams::EntityType]
|
|
1486
|
+
# @param body [Array<Amocrm::Models::V4EntityLinksLinkParams::Body>]
|
|
1487
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1488
|
+
#
|
|
1489
|
+
# @return [Amocrm::Models::V4EntityLinksLinkResponse::EmptyResponse, Amocrm::Models::V4EntityLinksLinkResponse::Problem]
|
|
1490
|
+
#
|
|
1491
|
+
# @see Amocrm::Models::V4EntityLinksLinkParams
|
|
1492
|
+
def entity_links_link(entity_type, params)
|
|
1493
|
+
parsed, options = Amocrm::V4EntityLinksLinkParams.dump_request(params)
|
|
1494
|
+
@client.request(
|
|
1495
|
+
method: :post,
|
|
1496
|
+
path: ["api/v4/%1$s/link", entity_type],
|
|
1497
|
+
body: parsed[:body],
|
|
1498
|
+
model: Amocrm::Models::V4EntityLinksLinkResponse,
|
|
1499
|
+
options: options
|
|
1500
|
+
)
|
|
1501
|
+
end
|
|
1502
|
+
|
|
1503
|
+
# Link entities for a specific entity.
|
|
1504
|
+
#
|
|
1505
|
+
# @overload entity_links_link_by_entity(entity_id, entity_type:, body:, request_options: {})
|
|
1506
|
+
#
|
|
1507
|
+
# @param entity_id [Integer] Path param
|
|
1508
|
+
#
|
|
1509
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityLinksLinkByEntityParams::EntityType] Path param
|
|
1510
|
+
#
|
|
1511
|
+
# @param body [Array<Amocrm::Models::V4EntityLinksLinkByEntityParams::Body>] Body param
|
|
1512
|
+
#
|
|
1513
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1514
|
+
#
|
|
1515
|
+
# @return [Amocrm::Models::V4EntityLinksLinkByEntityResponse::EmptyResponse, Amocrm::Models::V4EntityLinksLinkByEntityResponse::Problem]
|
|
1516
|
+
#
|
|
1517
|
+
# @see Amocrm::Models::V4EntityLinksLinkByEntityParams
|
|
1518
|
+
def entity_links_link_by_entity(entity_id, params)
|
|
1519
|
+
parsed, options = Amocrm::V4EntityLinksLinkByEntityParams.dump_request(params)
|
|
1520
|
+
entity_type =
|
|
1521
|
+
parsed.delete(:entity_type) do
|
|
1522
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1523
|
+
end
|
|
1524
|
+
@client.request(
|
|
1525
|
+
method: :post,
|
|
1526
|
+
path: ["api/v4/%1$s/%2$s/link", entity_type, entity_id],
|
|
1527
|
+
body: parsed[:body],
|
|
1528
|
+
model: Amocrm::Models::V4EntityLinksLinkByEntityResponse,
|
|
1529
|
+
options: options
|
|
1530
|
+
)
|
|
1531
|
+
end
|
|
1532
|
+
|
|
1533
|
+
# Get list of linked entities (bulk).
|
|
1534
|
+
#
|
|
1535
|
+
# @overload entity_links_list(entity_type, filter: nil, request_options: {})
|
|
1536
|
+
#
|
|
1537
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityLinksListParams::EntityType]
|
|
1538
|
+
# @param filter [Object]
|
|
1539
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1540
|
+
#
|
|
1541
|
+
# @return [Amocrm::Models::V4EntityLinksListResponse::EntityLinksResponse, Amocrm::Models::V4EntityLinksListResponse::Problem]
|
|
1542
|
+
#
|
|
1543
|
+
# @see Amocrm::Models::V4EntityLinksListParams
|
|
1544
|
+
def entity_links_list(entity_type, params = {})
|
|
1545
|
+
parsed, options = Amocrm::V4EntityLinksListParams.dump_request(params)
|
|
1546
|
+
@client.request(
|
|
1547
|
+
method: :get,
|
|
1548
|
+
path: ["api/v4/%1$s/links", entity_type],
|
|
1549
|
+
query: parsed,
|
|
1550
|
+
model: Amocrm::Models::V4EntityLinksListResponse,
|
|
1551
|
+
options: options
|
|
1552
|
+
)
|
|
1553
|
+
end
|
|
1554
|
+
|
|
1555
|
+
# Get links for a specific entity.
|
|
1556
|
+
#
|
|
1557
|
+
# @overload entity_links_list_by_entity(entity_id, entity_type:, request_options: {})
|
|
1558
|
+
#
|
|
1559
|
+
# @param entity_id [Integer]
|
|
1560
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityLinksListByEntityParams::EntityType]
|
|
1561
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1562
|
+
#
|
|
1563
|
+
# @return [Amocrm::Models::V4EntityLinksListByEntityResponse::EntityLinksResponse, Amocrm::Models::V4EntityLinksListByEntityResponse::Problem]
|
|
1564
|
+
#
|
|
1565
|
+
# @see Amocrm::Models::V4EntityLinksListByEntityParams
|
|
1566
|
+
def entity_links_list_by_entity(entity_id, params)
|
|
1567
|
+
parsed, options = Amocrm::V4EntityLinksListByEntityParams.dump_request(params)
|
|
1568
|
+
entity_type =
|
|
1569
|
+
parsed.delete(:entity_type) do
|
|
1570
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1571
|
+
end
|
|
1572
|
+
@client.request(
|
|
1573
|
+
method: :get,
|
|
1574
|
+
path: ["api/v4/%1$s/%2$s/links", entity_type, entity_id],
|
|
1575
|
+
model: Amocrm::Models::V4EntityLinksListByEntityResponse,
|
|
1576
|
+
options: options
|
|
1577
|
+
)
|
|
1578
|
+
end
|
|
1579
|
+
|
|
1580
|
+
# Unlink entities (bulk).
|
|
1581
|
+
#
|
|
1582
|
+
# @overload entity_links_unlink(entity_type, body:, request_options: {})
|
|
1583
|
+
#
|
|
1584
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityLinksUnlinkParams::EntityType]
|
|
1585
|
+
# @param body [Array<Amocrm::Models::V4EntityLinksUnlinkParams::Body>]
|
|
1586
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1587
|
+
#
|
|
1588
|
+
# @return [Amocrm::Models::V4EntityLinksUnlinkResponse::EmptyResponse, Amocrm::Models::V4EntityLinksUnlinkResponse::Problem]
|
|
1589
|
+
#
|
|
1590
|
+
# @see Amocrm::Models::V4EntityLinksUnlinkParams
|
|
1591
|
+
def entity_links_unlink(entity_type, params)
|
|
1592
|
+
parsed, options = Amocrm::V4EntityLinksUnlinkParams.dump_request(params)
|
|
1593
|
+
@client.request(
|
|
1594
|
+
method: :post,
|
|
1595
|
+
path: ["api/v4/%1$s/unlink", entity_type],
|
|
1596
|
+
body: parsed[:body],
|
|
1597
|
+
model: Amocrm::Models::V4EntityLinksUnlinkResponse,
|
|
1598
|
+
options: options
|
|
1599
|
+
)
|
|
1600
|
+
end
|
|
1601
|
+
|
|
1602
|
+
# Unlink entities for a specific entity.
|
|
1603
|
+
#
|
|
1604
|
+
# @overload entity_links_unlink_by_entity(entity_id, entity_type:, body:, request_options: {})
|
|
1605
|
+
#
|
|
1606
|
+
# @param entity_id [Integer] Path param
|
|
1607
|
+
#
|
|
1608
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityLinksUnlinkByEntityParams::EntityType] Path param
|
|
1609
|
+
#
|
|
1610
|
+
# @param body [Array<Amocrm::Models::V4EntityLinksUnlinkByEntityParams::Body>] Body param
|
|
1611
|
+
#
|
|
1612
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1613
|
+
#
|
|
1614
|
+
# @return [Amocrm::Models::V4EntityLinksUnlinkByEntityResponse::EmptyResponse, Amocrm::Models::V4EntityLinksUnlinkByEntityResponse::Problem]
|
|
1615
|
+
#
|
|
1616
|
+
# @see Amocrm::Models::V4EntityLinksUnlinkByEntityParams
|
|
1617
|
+
def entity_links_unlink_by_entity(entity_id, params)
|
|
1618
|
+
parsed, options = Amocrm::V4EntityLinksUnlinkByEntityParams.dump_request(params)
|
|
1619
|
+
entity_type =
|
|
1620
|
+
parsed.delete(:entity_type) do
|
|
1621
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1622
|
+
end
|
|
1623
|
+
@client.request(
|
|
1624
|
+
method: :post,
|
|
1625
|
+
path: ["api/v4/%1$s/%2$s/unlink", entity_type, entity_id],
|
|
1626
|
+
body: parsed[:body],
|
|
1627
|
+
model: Amocrm::Models::V4EntityLinksUnlinkByEntityResponse,
|
|
1628
|
+
options: options
|
|
1629
|
+
)
|
|
1630
|
+
end
|
|
1631
|
+
|
|
1632
|
+
# Create notes for a specific entity.
|
|
1633
|
+
#
|
|
1634
|
+
# @overload entity_notes_by_parent_create_by_parent(entity_id, entity_type:, body:, request_options: {})
|
|
1635
|
+
#
|
|
1636
|
+
# @param entity_id [Integer] Path param
|
|
1637
|
+
#
|
|
1638
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesByParentCreateByParentParams::EntityType] Path param
|
|
1639
|
+
#
|
|
1640
|
+
# @param body [Array<Amocrm::Models::V4EntityNotesByParentCreateByParentParams::Body>] Body param
|
|
1641
|
+
#
|
|
1642
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1643
|
+
#
|
|
1644
|
+
# @return [Amocrm::Models::V4EntityNotesByParentCreateByParentResponse::NoteCreateResponse, Amocrm::Models::V4EntityNotesByParentCreateByParentResponse::Problem]
|
|
1645
|
+
#
|
|
1646
|
+
# @see Amocrm::Models::V4EntityNotesByParentCreateByParentParams
|
|
1647
|
+
def entity_notes_by_parent_create_by_parent(entity_id, params)
|
|
1648
|
+
parsed, options = Amocrm::V4EntityNotesByParentCreateByParentParams.dump_request(params)
|
|
1649
|
+
entity_type =
|
|
1650
|
+
parsed.delete(:entity_type) do
|
|
1651
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1652
|
+
end
|
|
1653
|
+
@client.request(
|
|
1654
|
+
method: :post,
|
|
1655
|
+
path: ["api/v4/%1$s/%2$s/notes", entity_type, entity_id],
|
|
1656
|
+
body: parsed[:body],
|
|
1657
|
+
model: Amocrm::Models::V4EntityNotesByParentCreateByParentResponse,
|
|
1658
|
+
options: options
|
|
1659
|
+
)
|
|
1660
|
+
end
|
|
1661
|
+
|
|
1662
|
+
# Get note by id for a specific entity.
|
|
1663
|
+
#
|
|
1664
|
+
# @overload entity_notes_by_parent_get_by_parent_id(note_id, entity_type:, entity_id:, with: nil, request_options: {})
|
|
1665
|
+
#
|
|
1666
|
+
# @param note_id [Integer] Path param
|
|
1667
|
+
#
|
|
1668
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesByParentGetByParentIDParams::EntityType] Path param
|
|
1669
|
+
#
|
|
1670
|
+
# @param entity_id [Integer] Path param
|
|
1671
|
+
#
|
|
1672
|
+
# @param with [String] Query param
|
|
1673
|
+
#
|
|
1674
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1675
|
+
#
|
|
1676
|
+
# @return [Amocrm::Models::V4EntityNotesByParentGetByParentIDResponse::Note, Amocrm::Models::V4EntityNotesByParentGetByParentIDResponse::Problem]
|
|
1677
|
+
#
|
|
1678
|
+
# @see Amocrm::Models::V4EntityNotesByParentGetByParentIDParams
|
|
1679
|
+
def entity_notes_by_parent_get_by_parent_id(note_id, params)
|
|
1680
|
+
parsed, options = Amocrm::V4EntityNotesByParentGetByParentIDParams.dump_request(params)
|
|
1681
|
+
entity_type =
|
|
1682
|
+
parsed.delete(:entity_type) do
|
|
1683
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1684
|
+
end
|
|
1685
|
+
entity_id =
|
|
1686
|
+
parsed.delete(:entity_id) do
|
|
1687
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1688
|
+
end
|
|
1689
|
+
@client.request(
|
|
1690
|
+
method: :get,
|
|
1691
|
+
path: ["api/v4/%1$s/%2$s/notes/%3$s", entity_type, entity_id, note_id],
|
|
1692
|
+
query: parsed,
|
|
1693
|
+
model: Amocrm::Models::V4EntityNotesByParentGetByParentIDResponse,
|
|
1694
|
+
options: options
|
|
1695
|
+
)
|
|
1696
|
+
end
|
|
1697
|
+
|
|
1698
|
+
# Get notes list for a specific entity.
|
|
1699
|
+
#
|
|
1700
|
+
# @overload entity_notes_by_parent_list_by_parent(entity_id, entity_type:, filter: nil, limit: nil, page: nil, request_options: {})
|
|
1701
|
+
#
|
|
1702
|
+
# @param entity_id [Integer] Path param
|
|
1703
|
+
#
|
|
1704
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesByParentListByParentParams::EntityType] Path param
|
|
1705
|
+
#
|
|
1706
|
+
# @param filter [Object] Query param
|
|
1707
|
+
#
|
|
1708
|
+
# @param limit [Integer] Query param
|
|
1709
|
+
#
|
|
1710
|
+
# @param page [Integer] Query param
|
|
1711
|
+
#
|
|
1712
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1713
|
+
#
|
|
1714
|
+
# @return [Amocrm::Models::V4EntityNotesByParentListByParentResponse::NoteListResponse, Amocrm::Models::V4EntityNotesByParentListByParentResponse::Problem]
|
|
1715
|
+
#
|
|
1716
|
+
# @see Amocrm::Models::V4EntityNotesByParentListByParentParams
|
|
1717
|
+
def entity_notes_by_parent_list_by_parent(entity_id, params)
|
|
1718
|
+
parsed, options = Amocrm::V4EntityNotesByParentListByParentParams.dump_request(params)
|
|
1719
|
+
entity_type =
|
|
1720
|
+
parsed.delete(:entity_type) do
|
|
1721
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1722
|
+
end
|
|
1723
|
+
@client.request(
|
|
1724
|
+
method: :get,
|
|
1725
|
+
path: ["api/v4/%1$s/%2$s/notes", entity_type, entity_id],
|
|
1726
|
+
query: parsed,
|
|
1727
|
+
model: Amocrm::Models::V4EntityNotesByParentListByParentResponse,
|
|
1728
|
+
options: options
|
|
1729
|
+
)
|
|
1730
|
+
end
|
|
1731
|
+
|
|
1732
|
+
# Update notes for a specific entity (batch).
|
|
1733
|
+
#
|
|
1734
|
+
# @overload entity_notes_by_parent_update_by_parent(entity_id, entity_type:, body:, request_options: {})
|
|
1735
|
+
#
|
|
1736
|
+
# @param entity_id [Integer] Path param
|
|
1737
|
+
#
|
|
1738
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesByParentUpdateByParentParams::EntityType] Path param
|
|
1739
|
+
#
|
|
1740
|
+
# @param body [Array<Amocrm::Models::V4EntityNotesByParentUpdateByParentParams::Body>] Body param
|
|
1741
|
+
#
|
|
1742
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1743
|
+
#
|
|
1744
|
+
# @return [Amocrm::Models::V4EntityNotesByParentUpdateByParentResponse::NoteCreateResponse, Amocrm::Models::V4EntityNotesByParentUpdateByParentResponse::Problem]
|
|
1745
|
+
#
|
|
1746
|
+
# @see Amocrm::Models::V4EntityNotesByParentUpdateByParentParams
|
|
1747
|
+
def entity_notes_by_parent_update_by_parent(entity_id, params)
|
|
1748
|
+
parsed, options = Amocrm::V4EntityNotesByParentUpdateByParentParams.dump_request(params)
|
|
1749
|
+
entity_type =
|
|
1750
|
+
parsed.delete(:entity_type) do
|
|
1751
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1752
|
+
end
|
|
1753
|
+
@client.request(
|
|
1754
|
+
method: :patch,
|
|
1755
|
+
path: ["api/v4/%1$s/%2$s/notes", entity_type, entity_id],
|
|
1756
|
+
body: parsed[:body],
|
|
1757
|
+
model: Amocrm::Models::V4EntityNotesByParentUpdateByParentResponse,
|
|
1758
|
+
options: options
|
|
1759
|
+
)
|
|
1760
|
+
end
|
|
1761
|
+
|
|
1762
|
+
# Update note by id for a specific entity.
|
|
1763
|
+
#
|
|
1764
|
+
# @overload entity_notes_by_parent_update_by_parent_id(note_id, entity_type:, body_entity_id: nil, note_type: nil, params: nil, updated_at: nil, updated_by: nil, request_options: {})
|
|
1765
|
+
#
|
|
1766
|
+
# @param note_id [Integer] Path param
|
|
1767
|
+
#
|
|
1768
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesByParentUpdateByParentIDParams::EntityType] Path param
|
|
1769
|
+
#
|
|
1770
|
+
# @param body_entity_id [Integer] Body param
|
|
1771
|
+
#
|
|
1772
|
+
# @param note_type [String] Body param
|
|
1773
|
+
#
|
|
1774
|
+
# @param params [Object] Body param
|
|
1775
|
+
#
|
|
1776
|
+
# @param updated_at [Integer] Body param
|
|
1777
|
+
#
|
|
1778
|
+
# @param updated_by [Integer] Body param
|
|
1779
|
+
#
|
|
1780
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1781
|
+
#
|
|
1782
|
+
# @return [Amocrm::Models::V4EntityNotesByParentUpdateByParentIDResponse::NoteCreateResponse, Amocrm::Models::V4EntityNotesByParentUpdateByParentIDResponse::Problem]
|
|
1783
|
+
#
|
|
1784
|
+
# @see Amocrm::Models::V4EntityNotesByParentUpdateByParentIDParams
|
|
1785
|
+
def entity_notes_by_parent_update_by_parent_id(note_id, params)
|
|
1786
|
+
parsed, options = Amocrm::V4EntityNotesByParentUpdateByParentIDParams.dump_request(params)
|
|
1787
|
+
entity_type =
|
|
1788
|
+
parsed.delete(:entity_type) do
|
|
1789
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1790
|
+
end
|
|
1791
|
+
path_entity_id =
|
|
1792
|
+
parsed.delete(:path_entity_id) do
|
|
1793
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1794
|
+
end
|
|
1795
|
+
@client.request(
|
|
1796
|
+
method: :patch,
|
|
1797
|
+
path: ["api/v4/%1$s/%2$s/notes/%3$s", entity_type, path_entity_id, note_id],
|
|
1798
|
+
body: parsed,
|
|
1799
|
+
model: Amocrm::Models::V4EntityNotesByParentUpdateByParentIDResponse,
|
|
1800
|
+
options: options
|
|
1801
|
+
)
|
|
1802
|
+
end
|
|
1803
|
+
|
|
1804
|
+
# Create notes for entity type.
|
|
1805
|
+
#
|
|
1806
|
+
# @overload entity_notes_create(entity_type, body:, request_options: {})
|
|
1807
|
+
#
|
|
1808
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesCreateParams::EntityType]
|
|
1809
|
+
# @param body [Array<Amocrm::Models::V4EntityNotesCreateParams::Body>]
|
|
1810
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1811
|
+
#
|
|
1812
|
+
# @return [Amocrm::Models::V4EntityNotesCreateResponse::NoteCreateResponse, Amocrm::Models::V4EntityNotesCreateResponse::Problem]
|
|
1813
|
+
#
|
|
1814
|
+
# @see Amocrm::Models::V4EntityNotesCreateParams
|
|
1815
|
+
def entity_notes_create(entity_type, params)
|
|
1816
|
+
parsed, options = Amocrm::V4EntityNotesCreateParams.dump_request(params)
|
|
1817
|
+
@client.request(
|
|
1818
|
+
method: :post,
|
|
1819
|
+
path: ["api/v4/%1$s/notes", entity_type],
|
|
1820
|
+
body: parsed[:body],
|
|
1821
|
+
model: Amocrm::Models::V4EntityNotesCreateResponse,
|
|
1822
|
+
options: options
|
|
1823
|
+
)
|
|
1824
|
+
end
|
|
1825
|
+
|
|
1826
|
+
# Get note by id.
|
|
1827
|
+
#
|
|
1828
|
+
# @overload entity_notes_get_by_id(id, entity_type:, with: nil, request_options: {})
|
|
1829
|
+
#
|
|
1830
|
+
# @param id [Integer] Path param
|
|
1831
|
+
#
|
|
1832
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesGetByIDParams::EntityType] Path param
|
|
1833
|
+
#
|
|
1834
|
+
# @param with [String] Query param
|
|
1835
|
+
#
|
|
1836
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1837
|
+
#
|
|
1838
|
+
# @return [Amocrm::Models::V4EntityNotesGetByIDResponse::Note, Amocrm::Models::V4EntityNotesGetByIDResponse::Problem]
|
|
1839
|
+
#
|
|
1840
|
+
# @see Amocrm::Models::V4EntityNotesGetByIDParams
|
|
1841
|
+
def entity_notes_get_by_id(id, params)
|
|
1842
|
+
parsed, options = Amocrm::V4EntityNotesGetByIDParams.dump_request(params)
|
|
1843
|
+
entity_type =
|
|
1844
|
+
parsed.delete(:entity_type) do
|
|
1845
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1846
|
+
end
|
|
1847
|
+
@client.request(
|
|
1848
|
+
method: :get,
|
|
1849
|
+
path: ["api/v4/%1$s/notes/%2$s", entity_type, id],
|
|
1850
|
+
query: parsed,
|
|
1851
|
+
model: Amocrm::Models::V4EntityNotesGetByIDResponse,
|
|
1852
|
+
options: options
|
|
1853
|
+
)
|
|
1854
|
+
end
|
|
1855
|
+
|
|
1856
|
+
# Get notes list for entity type.
|
|
1857
|
+
#
|
|
1858
|
+
# @overload entity_notes_list(entity_type, filter: nil, limit: nil, page: nil, request_options: {})
|
|
1859
|
+
#
|
|
1860
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesListParams::EntityType]
|
|
1861
|
+
# @param filter [Object]
|
|
1862
|
+
# @param limit [Integer]
|
|
1863
|
+
# @param page [Integer]
|
|
1864
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1865
|
+
#
|
|
1866
|
+
# @return [Amocrm::Models::V4EntityNotesListResponse::NoteListResponse, Amocrm::Models::V4EntityNotesListResponse::Problem]
|
|
1867
|
+
#
|
|
1868
|
+
# @see Amocrm::Models::V4EntityNotesListParams
|
|
1869
|
+
def entity_notes_list(entity_type, params = {})
|
|
1870
|
+
parsed, options = Amocrm::V4EntityNotesListParams.dump_request(params)
|
|
1871
|
+
@client.request(
|
|
1872
|
+
method: :get,
|
|
1873
|
+
path: ["api/v4/%1$s/notes", entity_type],
|
|
1874
|
+
query: parsed,
|
|
1875
|
+
model: Amocrm::Models::V4EntityNotesListResponse,
|
|
1876
|
+
options: options
|
|
1877
|
+
)
|
|
1878
|
+
end
|
|
1879
|
+
|
|
1880
|
+
# Pin note by id.
|
|
1881
|
+
#
|
|
1882
|
+
# @overload entity_notes_pin(id, entity_type:, request_options: {})
|
|
1883
|
+
#
|
|
1884
|
+
# @param id [Integer]
|
|
1885
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesPinParams::EntityType]
|
|
1886
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1887
|
+
#
|
|
1888
|
+
# @return [Amocrm::Models::V4EntityNotesPinResponse::EmptyResponse, Amocrm::Models::V4EntityNotesPinResponse::Problem]
|
|
1889
|
+
#
|
|
1890
|
+
# @see Amocrm::Models::V4EntityNotesPinParams
|
|
1891
|
+
def entity_notes_pin(id, params)
|
|
1892
|
+
parsed, options = Amocrm::V4EntityNotesPinParams.dump_request(params)
|
|
1893
|
+
entity_type =
|
|
1894
|
+
parsed.delete(:entity_type) do
|
|
1895
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1896
|
+
end
|
|
1897
|
+
@client.request(
|
|
1898
|
+
method: :post,
|
|
1899
|
+
path: ["api/v4/%1$s/notes/%2$s/pin", entity_type, id],
|
|
1900
|
+
model: Amocrm::Models::V4EntityNotesPinResponse,
|
|
1901
|
+
options: options
|
|
1902
|
+
)
|
|
1903
|
+
end
|
|
1904
|
+
|
|
1905
|
+
# Unpin note by id.
|
|
1906
|
+
#
|
|
1907
|
+
# @overload entity_notes_unpin(id, entity_type:, request_options: {})
|
|
1908
|
+
#
|
|
1909
|
+
# @param id [Integer]
|
|
1910
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesUnpinParams::EntityType]
|
|
1911
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1912
|
+
#
|
|
1913
|
+
# @return [Amocrm::Models::V4EntityNotesUnpinResponse::EmptyResponse, Amocrm::Models::V4EntityNotesUnpinResponse::Problem]
|
|
1914
|
+
#
|
|
1915
|
+
# @see Amocrm::Models::V4EntityNotesUnpinParams
|
|
1916
|
+
def entity_notes_unpin(id, params)
|
|
1917
|
+
parsed, options = Amocrm::V4EntityNotesUnpinParams.dump_request(params)
|
|
1918
|
+
entity_type =
|
|
1919
|
+
parsed.delete(:entity_type) do
|
|
1920
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1921
|
+
end
|
|
1922
|
+
@client.request(
|
|
1923
|
+
method: :post,
|
|
1924
|
+
path: ["api/v4/%1$s/notes/%2$s/unpin", entity_type, id],
|
|
1925
|
+
model: Amocrm::Models::V4EntityNotesUnpinResponse,
|
|
1926
|
+
options: options
|
|
1927
|
+
)
|
|
1928
|
+
end
|
|
1929
|
+
|
|
1930
|
+
# Update notes for entity type (batch).
|
|
1931
|
+
#
|
|
1932
|
+
# @overload entity_notes_update(entity_type, body:, request_options: {})
|
|
1933
|
+
#
|
|
1934
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesUpdateParams::EntityType]
|
|
1935
|
+
# @param body [Array<Amocrm::Models::V4EntityNotesUpdateParams::Body>]
|
|
1936
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1937
|
+
#
|
|
1938
|
+
# @return [Amocrm::Models::V4EntityNotesUpdateResponse::NoteCreateResponse, Amocrm::Models::V4EntityNotesUpdateResponse::Problem]
|
|
1939
|
+
#
|
|
1940
|
+
# @see Amocrm::Models::V4EntityNotesUpdateParams
|
|
1941
|
+
def entity_notes_update(entity_type, params)
|
|
1942
|
+
parsed, options = Amocrm::V4EntityNotesUpdateParams.dump_request(params)
|
|
1943
|
+
@client.request(
|
|
1944
|
+
method: :patch,
|
|
1945
|
+
path: ["api/v4/%1$s/notes", entity_type],
|
|
1946
|
+
body: parsed[:body],
|
|
1947
|
+
model: Amocrm::Models::V4EntityNotesUpdateResponse,
|
|
1948
|
+
options: options
|
|
1949
|
+
)
|
|
1950
|
+
end
|
|
1951
|
+
|
|
1952
|
+
# Update note by id.
|
|
1953
|
+
#
|
|
1954
|
+
# @overload entity_notes_update_by_id(id, entity_type:, entity_id: nil, note_type: nil, params: nil, updated_at: nil, updated_by: nil, request_options: {})
|
|
1955
|
+
#
|
|
1956
|
+
# @param id [Integer] Path param
|
|
1957
|
+
#
|
|
1958
|
+
# @param entity_type [Symbol, Amocrm::Models::V4EntityNotesUpdateByIDParams::EntityType] Path param
|
|
1959
|
+
#
|
|
1960
|
+
# @param entity_id [Integer] Body param
|
|
1961
|
+
#
|
|
1962
|
+
# @param note_type [String] Body param
|
|
1963
|
+
#
|
|
1964
|
+
# @param params [Object] Body param
|
|
1965
|
+
#
|
|
1966
|
+
# @param updated_at [Integer] Body param
|
|
1967
|
+
#
|
|
1968
|
+
# @param updated_by [Integer] Body param
|
|
1969
|
+
#
|
|
1970
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1971
|
+
#
|
|
1972
|
+
# @return [Amocrm::Models::V4EntityNotesUpdateByIDResponse::NoteCreateResponse, Amocrm::Models::V4EntityNotesUpdateByIDResponse::Problem]
|
|
1973
|
+
#
|
|
1974
|
+
# @see Amocrm::Models::V4EntityNotesUpdateByIDParams
|
|
1975
|
+
def entity_notes_update_by_id(id, params)
|
|
1976
|
+
parsed, options = Amocrm::V4EntityNotesUpdateByIDParams.dump_request(params)
|
|
1977
|
+
entity_type =
|
|
1978
|
+
parsed.delete(:entity_type) do
|
|
1979
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
1980
|
+
end
|
|
1981
|
+
@client.request(
|
|
1982
|
+
method: :patch,
|
|
1983
|
+
path: ["api/v4/%1$s/notes/%2$s", entity_type, id],
|
|
1984
|
+
body: parsed,
|
|
1985
|
+
model: Amocrm::Models::V4EntityNotesUpdateByIDResponse,
|
|
1986
|
+
options: options
|
|
1987
|
+
)
|
|
1988
|
+
end
|
|
1989
|
+
|
|
1990
|
+
# Get event by id.
|
|
1991
|
+
#
|
|
1992
|
+
# @overload events_get_by_id(id, with: nil, request_options: {})
|
|
1993
|
+
#
|
|
1994
|
+
# @param id [Integer]
|
|
1995
|
+
# @param with [String]
|
|
1996
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
1997
|
+
#
|
|
1998
|
+
# @return [Amocrm::Models::V4EventsGetByIDResponse::Event, Amocrm::Models::V4EventsGetByIDResponse::Problem]
|
|
1999
|
+
#
|
|
2000
|
+
# @see Amocrm::Models::V4EventsGetByIDParams
|
|
2001
|
+
def events_get_by_id(id, params = {})
|
|
2002
|
+
parsed, options = Amocrm::V4EventsGetByIDParams.dump_request(params)
|
|
2003
|
+
@client.request(
|
|
2004
|
+
method: :get,
|
|
2005
|
+
path: ["api/v4/events/%1$s", id],
|
|
2006
|
+
query: parsed,
|
|
2007
|
+
model: Amocrm::Models::V4EventsGetByIDResponse,
|
|
2008
|
+
options: options
|
|
2009
|
+
)
|
|
2010
|
+
end
|
|
2011
|
+
|
|
2012
|
+
# Get events list.
|
|
2013
|
+
#
|
|
2014
|
+
# @overload events_list(filter: nil, limit: nil, page: nil, with: nil, request_options: {})
|
|
2015
|
+
#
|
|
2016
|
+
# @param filter [Object]
|
|
2017
|
+
# @param limit [Integer]
|
|
2018
|
+
# @param page [Integer]
|
|
2019
|
+
# @param with [String]
|
|
2020
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2021
|
+
#
|
|
2022
|
+
# @return [Amocrm::Models::V4EventsListResponse::EventListResponse, Amocrm::Models::V4EventsListResponse::Problem]
|
|
2023
|
+
#
|
|
2024
|
+
# @see Amocrm::Models::V4EventsListParams
|
|
2025
|
+
def events_list(params = {})
|
|
2026
|
+
parsed, options = Amocrm::V4EventsListParams.dump_request(params)
|
|
2027
|
+
@client.request(
|
|
2028
|
+
method: :get,
|
|
2029
|
+
path: "api/v4/events",
|
|
2030
|
+
query: parsed,
|
|
2031
|
+
model: Amocrm::Models::V4EventsListResponse,
|
|
2032
|
+
options: options
|
|
2033
|
+
)
|
|
2034
|
+
end
|
|
2035
|
+
|
|
2036
|
+
# Get event types.
|
|
2037
|
+
#
|
|
2038
|
+
# @overload events_list_types(language_code: nil, request_options: {})
|
|
2039
|
+
#
|
|
2040
|
+
# @param language_code [String]
|
|
2041
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2042
|
+
#
|
|
2043
|
+
# @return [Amocrm::Models::V4EventsListTypesResponse::EventTypesResponse, Amocrm::Models::V4EventsListTypesResponse::Problem]
|
|
2044
|
+
#
|
|
2045
|
+
# @see Amocrm::Models::V4EventsListTypesParams
|
|
2046
|
+
def events_list_types(params = {})
|
|
2047
|
+
parsed, options = Amocrm::V4EventsListTypesParams.dump_request(params)
|
|
2048
|
+
@client.request(
|
|
2049
|
+
method: :get,
|
|
2050
|
+
path: "api/v4/events/types",
|
|
2051
|
+
query: parsed,
|
|
2052
|
+
model: Amocrm::Models::V4EventsListTypesResponse,
|
|
2053
|
+
options: options
|
|
2054
|
+
)
|
|
2055
|
+
end
|
|
2056
|
+
|
|
2057
|
+
# Create leads.
|
|
2058
|
+
#
|
|
2059
|
+
# @overload leads_create(body:, request_options: {})
|
|
2060
|
+
#
|
|
2061
|
+
# @param body [Array<Amocrm::Models::V4LeadsCreateParams::Body>]
|
|
2062
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2063
|
+
#
|
|
2064
|
+
# @return [Amocrm::Models::V4LeadsCreateResponse::LeadCreateResponse, Amocrm::Models::V4LeadsCreateResponse::Problem]
|
|
2065
|
+
#
|
|
2066
|
+
# @see Amocrm::Models::V4LeadsCreateParams
|
|
2067
|
+
def leads_create(params)
|
|
2068
|
+
parsed, options = Amocrm::V4LeadsCreateParams.dump_request(params)
|
|
2069
|
+
@client.request(
|
|
2070
|
+
method: :post,
|
|
2071
|
+
path: "api/v4/leads",
|
|
2072
|
+
body: parsed[:body],
|
|
2073
|
+
model: Amocrm::Models::V4LeadsCreateResponse,
|
|
2074
|
+
options: options
|
|
2075
|
+
)
|
|
2076
|
+
end
|
|
2077
|
+
|
|
2078
|
+
# Create leads using the complex method (supports unsorted metadata).
|
|
2079
|
+
#
|
|
2080
|
+
# @overload leads_create_complex(body:, request_options: {})
|
|
2081
|
+
#
|
|
2082
|
+
# @param body [Array<Amocrm::Models::V4LeadsCreateComplexParams::Body>]
|
|
2083
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2084
|
+
#
|
|
2085
|
+
# @return [Amocrm::Models::V4LeadsCreateComplexResponse::LeadComplexCreateResponse, Amocrm::Models::V4LeadsCreateComplexResponse::Problem]
|
|
2086
|
+
#
|
|
2087
|
+
# @see Amocrm::Models::V4LeadsCreateComplexParams
|
|
2088
|
+
def leads_create_complex(params)
|
|
2089
|
+
parsed, options = Amocrm::V4LeadsCreateComplexParams.dump_request(params)
|
|
2090
|
+
@client.request(
|
|
2091
|
+
method: :post,
|
|
2092
|
+
path: "api/v4/leads/complex",
|
|
2093
|
+
body: parsed[:body],
|
|
2094
|
+
model: Amocrm::Models::V4LeadsCreateComplexResponse,
|
|
2095
|
+
options: options
|
|
2096
|
+
)
|
|
2097
|
+
end
|
|
2098
|
+
|
|
2099
|
+
# Get a lead by id.
|
|
2100
|
+
#
|
|
2101
|
+
# @overload leads_get_by_id(id, with: nil, request_options: {})
|
|
2102
|
+
#
|
|
2103
|
+
# @param id [Integer]
|
|
2104
|
+
#
|
|
2105
|
+
# @param with [String] Expand related entities; comma-separated values
|
|
2106
|
+
#
|
|
2107
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2108
|
+
#
|
|
2109
|
+
# @return [Amocrm::Models::V4LeadsGetByIDResponse::Lead, Amocrm::Models::V4LeadsGetByIDResponse::Problem]
|
|
2110
|
+
#
|
|
2111
|
+
# @see Amocrm::Models::V4LeadsGetByIDParams
|
|
2112
|
+
def leads_get_by_id(id, params = {})
|
|
2113
|
+
parsed, options = Amocrm::V4LeadsGetByIDParams.dump_request(params)
|
|
2114
|
+
@client.request(
|
|
2115
|
+
method: :get,
|
|
2116
|
+
path: ["api/v4/leads/%1$s", id],
|
|
2117
|
+
query: parsed,
|
|
2118
|
+
model: Amocrm::Models::V4LeadsGetByIDResponse,
|
|
2119
|
+
options: options
|
|
2120
|
+
)
|
|
2121
|
+
end
|
|
2122
|
+
|
|
2123
|
+
# Get a list of leads (pagination, sorting, filtering).
|
|
2124
|
+
#
|
|
2125
|
+
# @overload leads_list(filter: nil, limit: nil, order: nil, page: nil, query: nil, with: nil, request_options: {})
|
|
2126
|
+
#
|
|
2127
|
+
# @param filter [Object] Filtering parameters, see filters API
|
|
2128
|
+
#
|
|
2129
|
+
# @param limit [Integer] Pagination limit
|
|
2130
|
+
#
|
|
2131
|
+
# @param order [Object] Sorting, e.g. order[updated_at]=asc
|
|
2132
|
+
#
|
|
2133
|
+
# @param page [Integer] Pagination page
|
|
2134
|
+
#
|
|
2135
|
+
# @param query [String, Integer] Search by query string or id
|
|
2136
|
+
#
|
|
2137
|
+
# @param with [String] Expand related entities; comma-separated values
|
|
2138
|
+
#
|
|
2139
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2140
|
+
#
|
|
2141
|
+
# @return [Amocrm::Models::V4LeadsListResponse::LeadListResponse, Amocrm::Models::V4LeadsListResponse::Problem]
|
|
2142
|
+
#
|
|
2143
|
+
# @see Amocrm::Models::V4LeadsListParams
|
|
2144
|
+
def leads_list(params = {})
|
|
2145
|
+
parsed, options = Amocrm::V4LeadsListParams.dump_request(params)
|
|
2146
|
+
@client.request(
|
|
2147
|
+
method: :get,
|
|
2148
|
+
path: "api/v4/leads",
|
|
2149
|
+
query: parsed,
|
|
2150
|
+
model: Amocrm::Models::V4LeadsListResponse,
|
|
2151
|
+
options: options
|
|
2152
|
+
)
|
|
2153
|
+
end
|
|
2154
|
+
|
|
2155
|
+
# Update leads (batch).
|
|
2156
|
+
#
|
|
2157
|
+
# @overload leads_update(body:, request_options: {})
|
|
2158
|
+
#
|
|
2159
|
+
# @param body [Array<Amocrm::Models::V4LeadsUpdateParams::Body>]
|
|
2160
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2161
|
+
#
|
|
2162
|
+
# @return [Amocrm::Models::V4LeadsUpdateResponse::LeadUpdateResponse, Amocrm::Models::V4LeadsUpdateResponse::Problem]
|
|
2163
|
+
#
|
|
2164
|
+
# @see Amocrm::Models::V4LeadsUpdateParams
|
|
2165
|
+
def leads_update(params)
|
|
2166
|
+
parsed, options = Amocrm::V4LeadsUpdateParams.dump_request(params)
|
|
2167
|
+
@client.request(
|
|
2168
|
+
method: :patch,
|
|
2169
|
+
path: "api/v4/leads",
|
|
2170
|
+
body: parsed[:body],
|
|
2171
|
+
model: Amocrm::Models::V4LeadsUpdateResponse,
|
|
2172
|
+
options: options
|
|
2173
|
+
)
|
|
2174
|
+
end
|
|
2175
|
+
|
|
2176
|
+
# Update a lead by id.
|
|
2177
|
+
#
|
|
2178
|
+
# @overload leads_update_by_id(id, _embedded: nil, closed_at: nil, custom_fields_values: nil, group_id: nil, loss_reason_id: nil, name: nil, pipeline_id: nil, price: nil, responsible_user_id: nil, status_id: nil, tags_to_add: nil, tags_to_delete: nil, updated_at: nil, request_options: {})
|
|
2179
|
+
#
|
|
2180
|
+
# @param id [Integer]
|
|
2181
|
+
#
|
|
2182
|
+
# @param _embedded [Amocrm::Models::V4LeadsUpdateByIDParams::Embedded]
|
|
2183
|
+
#
|
|
2184
|
+
# @param closed_at [Integer]
|
|
2185
|
+
#
|
|
2186
|
+
# @param custom_fields_values [Array<Amocrm::Models::V4LeadsUpdateByIDParams::CustomFieldsValue>] Custom fields payload
|
|
2187
|
+
#
|
|
2188
|
+
# @param group_id [Integer]
|
|
2189
|
+
#
|
|
2190
|
+
# @param loss_reason_id [Integer]
|
|
2191
|
+
#
|
|
2192
|
+
# @param name [String]
|
|
2193
|
+
#
|
|
2194
|
+
# @param pipeline_id [Integer]
|
|
2195
|
+
#
|
|
2196
|
+
# @param price [Integer]
|
|
2197
|
+
#
|
|
2198
|
+
# @param responsible_user_id [Integer]
|
|
2199
|
+
#
|
|
2200
|
+
# @param status_id [Integer]
|
|
2201
|
+
#
|
|
2202
|
+
# @param tags_to_add [Array<Amocrm::Models::V4LeadsUpdateByIDParams::TagsToAdd>] Tags to attach
|
|
2203
|
+
#
|
|
2204
|
+
# @param tags_to_delete [Array<Amocrm::Models::V4LeadsUpdateByIDParams::TagsToDelete>] Tags to delete
|
|
2205
|
+
#
|
|
2206
|
+
# @param updated_at [Integer]
|
|
2207
|
+
#
|
|
2208
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2209
|
+
#
|
|
2210
|
+
# @return [Amocrm::Models::V4LeadsUpdateByIDResponse::LeadUpdateResponse, Amocrm::Models::V4LeadsUpdateByIDResponse::Problem]
|
|
2211
|
+
#
|
|
2212
|
+
# @see Amocrm::Models::V4LeadsUpdateByIDParams
|
|
2213
|
+
def leads_update_by_id(id, params = {})
|
|
2214
|
+
parsed, options = Amocrm::V4LeadsUpdateByIDParams.dump_request(params)
|
|
2215
|
+
@client.request(
|
|
2216
|
+
method: :patch,
|
|
2217
|
+
path: ["api/v4/leads/%1$s", id],
|
|
2218
|
+
body: parsed,
|
|
2219
|
+
model: Amocrm::Models::V4LeadsUpdateByIDResponse,
|
|
2220
|
+
options: options
|
|
2221
|
+
)
|
|
2222
|
+
end
|
|
2223
|
+
|
|
2224
|
+
# Create statuses.
|
|
2225
|
+
#
|
|
2226
|
+
# @overload pipeline_statuses_create(pipeline_id, body:, request_options: {})
|
|
2227
|
+
#
|
|
2228
|
+
# @param pipeline_id [Integer]
|
|
2229
|
+
# @param body [Array<Amocrm::Models::V4PipelineStatusesCreateParams::Body>]
|
|
2230
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2231
|
+
#
|
|
2232
|
+
# @return [Amocrm::Models::V4PipelineStatusesCreateResponse::StatusCreateResponse, Amocrm::Models::V4PipelineStatusesCreateResponse::Problem]
|
|
2233
|
+
#
|
|
2234
|
+
# @see Amocrm::Models::V4PipelineStatusesCreateParams
|
|
2235
|
+
def pipeline_statuses_create(pipeline_id, params)
|
|
2236
|
+
parsed, options = Amocrm::V4PipelineStatusesCreateParams.dump_request(params)
|
|
2237
|
+
@client.request(
|
|
2238
|
+
method: :post,
|
|
2239
|
+
path: ["api/v4/leads/pipelines/%1$s/statuses", pipeline_id],
|
|
2240
|
+
body: parsed[:body],
|
|
2241
|
+
model: Amocrm::Models::V4PipelineStatusesCreateResponse,
|
|
2242
|
+
options: options
|
|
2243
|
+
)
|
|
2244
|
+
end
|
|
2245
|
+
|
|
2246
|
+
# Delete status by id.
|
|
2247
|
+
#
|
|
2248
|
+
# @overload pipeline_statuses_delete_by_id(id, pipeline_id:, request_options: {})
|
|
2249
|
+
#
|
|
2250
|
+
# @param id [Integer]
|
|
2251
|
+
# @param pipeline_id [Integer]
|
|
2252
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2253
|
+
#
|
|
2254
|
+
# @return [Amocrm::Models::V4PipelineStatusesDeleteByIDResponse::EmptyResponse, Amocrm::Models::V4PipelineStatusesDeleteByIDResponse::Problem]
|
|
2255
|
+
#
|
|
2256
|
+
# @see Amocrm::Models::V4PipelineStatusesDeleteByIDParams
|
|
2257
|
+
def pipeline_statuses_delete_by_id(id, params)
|
|
2258
|
+
parsed, options = Amocrm::V4PipelineStatusesDeleteByIDParams.dump_request(params)
|
|
2259
|
+
pipeline_id =
|
|
2260
|
+
parsed.delete(:pipeline_id) do
|
|
2261
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
2262
|
+
end
|
|
2263
|
+
@client.request(
|
|
2264
|
+
method: :delete,
|
|
2265
|
+
path: ["api/v4/leads/pipelines/%1$s/statuses/%2$s", pipeline_id, id],
|
|
2266
|
+
model: Amocrm::Models::V4PipelineStatusesDeleteByIDResponse,
|
|
2267
|
+
options: options
|
|
2268
|
+
)
|
|
2269
|
+
end
|
|
2270
|
+
|
|
2271
|
+
# Some parameter documentations has been truncated, see
|
|
2272
|
+
# {Amocrm::Models::V4PipelineStatusesGetByIDParams} for more details.
|
|
2273
|
+
#
|
|
2274
|
+
# Get status by id.
|
|
2275
|
+
#
|
|
2276
|
+
# @overload pipeline_statuses_get_by_id(id, pipeline_id:, with: nil, request_options: {})
|
|
2277
|
+
#
|
|
2278
|
+
# @param id [Integer] Path param
|
|
2279
|
+
#
|
|
2280
|
+
# @param pipeline_id [Integer] Path param
|
|
2281
|
+
#
|
|
2282
|
+
# @param with [String] Query param: Expand related entities; comma-separated values (e.g. descriptions)
|
|
2283
|
+
#
|
|
2284
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2285
|
+
#
|
|
2286
|
+
# @return [Amocrm::Models::V4PipelineStatusesGetByIDResponse::Status, Amocrm::Models::V4PipelineStatusesGetByIDResponse::Problem]
|
|
2287
|
+
#
|
|
2288
|
+
# @see Amocrm::Models::V4PipelineStatusesGetByIDParams
|
|
2289
|
+
def pipeline_statuses_get_by_id(id, params)
|
|
2290
|
+
parsed, options = Amocrm::V4PipelineStatusesGetByIDParams.dump_request(params)
|
|
2291
|
+
pipeline_id =
|
|
2292
|
+
parsed.delete(:pipeline_id) do
|
|
2293
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
2294
|
+
end
|
|
2295
|
+
@client.request(
|
|
2296
|
+
method: :get,
|
|
2297
|
+
path: ["api/v4/leads/pipelines/%1$s/statuses/%2$s", pipeline_id, id],
|
|
2298
|
+
query: parsed,
|
|
2299
|
+
model: Amocrm::Models::V4PipelineStatusesGetByIDResponse,
|
|
2300
|
+
options: options
|
|
2301
|
+
)
|
|
2302
|
+
end
|
|
2303
|
+
|
|
2304
|
+
# Get statuses for a pipeline.
|
|
2305
|
+
#
|
|
2306
|
+
# @overload pipeline_statuses_list(pipeline_id, with: nil, request_options: {})
|
|
2307
|
+
#
|
|
2308
|
+
# @param pipeline_id [Integer]
|
|
2309
|
+
#
|
|
2310
|
+
# @param with [String] Expand related entities; comma-separated values (e.g. descriptions).
|
|
2311
|
+
#
|
|
2312
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2313
|
+
#
|
|
2314
|
+
# @return [Amocrm::Models::V4PipelineStatusesListResponse::StatusListResponse, Amocrm::Models::V4PipelineStatusesListResponse::Problem]
|
|
2315
|
+
#
|
|
2316
|
+
# @see Amocrm::Models::V4PipelineStatusesListParams
|
|
2317
|
+
def pipeline_statuses_list(pipeline_id, params = {})
|
|
2318
|
+
parsed, options = Amocrm::V4PipelineStatusesListParams.dump_request(params)
|
|
2319
|
+
@client.request(
|
|
2320
|
+
method: :get,
|
|
2321
|
+
path: ["api/v4/leads/pipelines/%1$s/statuses", pipeline_id],
|
|
2322
|
+
query: parsed,
|
|
2323
|
+
model: Amocrm::Models::V4PipelineStatusesListResponse,
|
|
2324
|
+
options: options
|
|
2325
|
+
)
|
|
2326
|
+
end
|
|
2327
|
+
|
|
2328
|
+
# Update statuses (batch).
|
|
2329
|
+
#
|
|
2330
|
+
# @overload pipeline_statuses_update(pipeline_id, body:, request_options: {})
|
|
2331
|
+
#
|
|
2332
|
+
# @param pipeline_id [Integer]
|
|
2333
|
+
# @param body [Array<Amocrm::Models::V4PipelineStatusesUpdateParams::Body>]
|
|
2334
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2335
|
+
#
|
|
2336
|
+
# @return [Amocrm::Models::V4PipelineStatusesUpdateResponse::StatusUpdateResponse, Amocrm::Models::V4PipelineStatusesUpdateResponse::Problem]
|
|
2337
|
+
#
|
|
2338
|
+
# @see Amocrm::Models::V4PipelineStatusesUpdateParams
|
|
2339
|
+
def pipeline_statuses_update(pipeline_id, params)
|
|
2340
|
+
parsed, options = Amocrm::V4PipelineStatusesUpdateParams.dump_request(params)
|
|
2341
|
+
@client.request(
|
|
2342
|
+
method: :patch,
|
|
2343
|
+
path: ["api/v4/leads/pipelines/%1$s/statuses", pipeline_id],
|
|
2344
|
+
body: parsed[:body],
|
|
2345
|
+
model: Amocrm::Models::V4PipelineStatusesUpdateResponse,
|
|
2346
|
+
options: options
|
|
2347
|
+
)
|
|
2348
|
+
end
|
|
2349
|
+
|
|
2350
|
+
# Update status by id.
|
|
2351
|
+
#
|
|
2352
|
+
# @overload pipeline_statuses_update_by_id(id, pipeline_id:, color: nil, descriptions: nil, name: nil, request_id: nil, sort: nil, request_options: {})
|
|
2353
|
+
#
|
|
2354
|
+
# @param id [Integer] Path param
|
|
2355
|
+
#
|
|
2356
|
+
# @param pipeline_id [Integer] Path param
|
|
2357
|
+
#
|
|
2358
|
+
# @param color [String] Body param
|
|
2359
|
+
#
|
|
2360
|
+
# @param descriptions [Array<Amocrm::Models::V4PipelineStatusesUpdateByIDParams::Description>] Body param
|
|
2361
|
+
#
|
|
2362
|
+
# @param name [String] Body param
|
|
2363
|
+
#
|
|
2364
|
+
# @param request_id [String] Body param
|
|
2365
|
+
#
|
|
2366
|
+
# @param sort [Integer] Body param
|
|
2367
|
+
#
|
|
2368
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2369
|
+
#
|
|
2370
|
+
# @return [Amocrm::Models::V4PipelineStatusesUpdateByIDResponse::StatusUpdateResponse, Amocrm::Models::V4PipelineStatusesUpdateByIDResponse::Problem]
|
|
2371
|
+
#
|
|
2372
|
+
# @see Amocrm::Models::V4PipelineStatusesUpdateByIDParams
|
|
2373
|
+
def pipeline_statuses_update_by_id(id, params)
|
|
2374
|
+
parsed, options = Amocrm::V4PipelineStatusesUpdateByIDParams.dump_request(params)
|
|
2375
|
+
pipeline_id =
|
|
2376
|
+
parsed.delete(:pipeline_id) do
|
|
2377
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
2378
|
+
end
|
|
2379
|
+
@client.request(
|
|
2380
|
+
method: :patch,
|
|
2381
|
+
path: ["api/v4/leads/pipelines/%1$s/statuses/%2$s", pipeline_id, id],
|
|
2382
|
+
body: parsed,
|
|
2383
|
+
model: Amocrm::Models::V4PipelineStatusesUpdateByIDResponse,
|
|
2384
|
+
options: options
|
|
2385
|
+
)
|
|
2386
|
+
end
|
|
2387
|
+
|
|
2388
|
+
# Create pipelines.
|
|
2389
|
+
#
|
|
2390
|
+
# @overload pipelines_create(body:, request_options: {})
|
|
2391
|
+
#
|
|
2392
|
+
# @param body [Array<Amocrm::Models::V4PipelinesCreateParams::Body>]
|
|
2393
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2394
|
+
#
|
|
2395
|
+
# @return [Amocrm::Models::V4PipelinesCreateResponse::PipelineCreateResponse, Amocrm::Models::V4PipelinesCreateResponse::Problem]
|
|
2396
|
+
#
|
|
2397
|
+
# @see Amocrm::Models::V4PipelinesCreateParams
|
|
2398
|
+
def pipelines_create(params)
|
|
2399
|
+
parsed, options = Amocrm::V4PipelinesCreateParams.dump_request(params)
|
|
2400
|
+
@client.request(
|
|
2401
|
+
method: :post,
|
|
2402
|
+
path: "api/v4/leads/pipelines",
|
|
2403
|
+
body: parsed[:body],
|
|
2404
|
+
model: Amocrm::Models::V4PipelinesCreateResponse,
|
|
2405
|
+
options: options
|
|
2406
|
+
)
|
|
2407
|
+
end
|
|
2408
|
+
|
|
2409
|
+
# Delete pipeline by id.
|
|
2410
|
+
#
|
|
2411
|
+
# @overload pipelines_delete_by_id(id, request_options: {})
|
|
2412
|
+
#
|
|
2413
|
+
# @param id [Integer]
|
|
2414
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2415
|
+
#
|
|
2416
|
+
# @return [Amocrm::Models::V4PipelinesDeleteByIDResponse::EmptyResponse, Amocrm::Models::V4PipelinesDeleteByIDResponse::Problem]
|
|
2417
|
+
#
|
|
2418
|
+
# @see Amocrm::Models::V4PipelinesDeleteByIDParams
|
|
2419
|
+
def pipelines_delete_by_id(id, params = {})
|
|
2420
|
+
@client.request(
|
|
2421
|
+
method: :delete,
|
|
2422
|
+
path: ["api/v4/leads/pipelines/%1$s", id],
|
|
2423
|
+
model: Amocrm::Models::V4PipelinesDeleteByIDResponse,
|
|
2424
|
+
options: params[:request_options]
|
|
2425
|
+
)
|
|
2426
|
+
end
|
|
2427
|
+
|
|
2428
|
+
# Get pipeline by id.
|
|
2429
|
+
#
|
|
2430
|
+
# @overload pipelines_get_by_id(id, request_options: {})
|
|
2431
|
+
#
|
|
2432
|
+
# @param id [Integer]
|
|
2433
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2434
|
+
#
|
|
2435
|
+
# @return [Amocrm::Models::V4PipelinesGetByIDResponse::Pipeline, Amocrm::Models::V4PipelinesGetByIDResponse::Problem]
|
|
2436
|
+
#
|
|
2437
|
+
# @see Amocrm::Models::V4PipelinesGetByIDParams
|
|
2438
|
+
def pipelines_get_by_id(id, params = {})
|
|
2439
|
+
@client.request(
|
|
2440
|
+
method: :get,
|
|
2441
|
+
path: ["api/v4/leads/pipelines/%1$s", id],
|
|
2442
|
+
model: Amocrm::Models::V4PipelinesGetByIDResponse,
|
|
2443
|
+
options: params[:request_options]
|
|
2444
|
+
)
|
|
2445
|
+
end
|
|
2446
|
+
|
|
2447
|
+
# Get pipelines list.
|
|
2448
|
+
#
|
|
2449
|
+
# @overload pipelines_list(request_options: {})
|
|
2450
|
+
#
|
|
2451
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2452
|
+
#
|
|
2453
|
+
# @return [Amocrm::Models::V4PipelinesListResponse::PipelineListResponse, Amocrm::Models::V4PipelinesListResponse::Problem]
|
|
2454
|
+
#
|
|
2455
|
+
# @see Amocrm::Models::V4PipelinesListParams
|
|
2456
|
+
def pipelines_list(params = {})
|
|
2457
|
+
@client.request(
|
|
2458
|
+
method: :get,
|
|
2459
|
+
path: "api/v4/leads/pipelines",
|
|
2460
|
+
model: Amocrm::Models::V4PipelinesListResponse,
|
|
2461
|
+
options: params[:request_options]
|
|
2462
|
+
)
|
|
2463
|
+
end
|
|
2464
|
+
|
|
2465
|
+
# Update pipelines (batch).
|
|
2466
|
+
#
|
|
2467
|
+
# @overload pipelines_update(body:, request_options: {})
|
|
2468
|
+
#
|
|
2469
|
+
# @param body [Array<Amocrm::Models::V4PipelinesUpdateParams::Body>]
|
|
2470
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2471
|
+
#
|
|
2472
|
+
# @return [Amocrm::Models::V4PipelinesUpdateResponse::PipelineUpdateResponse, Amocrm::Models::V4PipelinesUpdateResponse::Problem]
|
|
2473
|
+
#
|
|
2474
|
+
# @see Amocrm::Models::V4PipelinesUpdateParams
|
|
2475
|
+
def pipelines_update(params)
|
|
2476
|
+
parsed, options = Amocrm::V4PipelinesUpdateParams.dump_request(params)
|
|
2477
|
+
@client.request(
|
|
2478
|
+
method: :patch,
|
|
2479
|
+
path: "api/v4/leads/pipelines",
|
|
2480
|
+
body: parsed[:body],
|
|
2481
|
+
model: Amocrm::Models::V4PipelinesUpdateResponse,
|
|
2482
|
+
options: options
|
|
2483
|
+
)
|
|
2484
|
+
end
|
|
2485
|
+
|
|
2486
|
+
# Update pipeline by id.
|
|
2487
|
+
#
|
|
2488
|
+
# @overload pipelines_update_by_id(id, is_archive: nil, is_main: nil, is_unsorted_on: nil, name: nil, request_id: nil, sort: nil, request_options: {})
|
|
2489
|
+
#
|
|
2490
|
+
# @param id [Integer]
|
|
2491
|
+
# @param is_archive [Boolean]
|
|
2492
|
+
# @param is_main [Boolean]
|
|
2493
|
+
# @param is_unsorted_on [Boolean]
|
|
2494
|
+
# @param name [String]
|
|
2495
|
+
# @param request_id [String]
|
|
2496
|
+
# @param sort [Integer]
|
|
2497
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2498
|
+
#
|
|
2499
|
+
# @return [Amocrm::Models::V4PipelinesUpdateByIDResponse::PipelineUpdateResponse, Amocrm::Models::V4PipelinesUpdateByIDResponse::Problem]
|
|
2500
|
+
#
|
|
2501
|
+
# @see Amocrm::Models::V4PipelinesUpdateByIDParams
|
|
2502
|
+
def pipelines_update_by_id(id, params = {})
|
|
2503
|
+
parsed, options = Amocrm::V4PipelinesUpdateByIDParams.dump_request(params)
|
|
2504
|
+
@client.request(
|
|
2505
|
+
method: :patch,
|
|
2506
|
+
path: ["api/v4/leads/pipelines/%1$s", id],
|
|
2507
|
+
body: parsed,
|
|
2508
|
+
model: Amocrm::Models::V4PipelinesUpdateByIDResponse,
|
|
2509
|
+
options: options
|
|
2510
|
+
)
|
|
2511
|
+
end
|
|
2512
|
+
|
|
2513
|
+
# Create roles (batch).
|
|
2514
|
+
#
|
|
2515
|
+
# @overload roles_create(body:, request_options: {})
|
|
2516
|
+
#
|
|
2517
|
+
# @param body [Array<Amocrm::Models::V4RolesCreateParams::Body>]
|
|
2518
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2519
|
+
#
|
|
2520
|
+
# @return [Amocrm::Models::V4RolesCreateResponse::RoleCreateResponse, Amocrm::Models::V4RolesCreateResponse::Problem]
|
|
2521
|
+
#
|
|
2522
|
+
# @see Amocrm::Models::V4RolesCreateParams
|
|
2523
|
+
def roles_create(params)
|
|
2524
|
+
parsed, options = Amocrm::V4RolesCreateParams.dump_request(params)
|
|
2525
|
+
@client.request(
|
|
2526
|
+
method: :post,
|
|
2527
|
+
path: "api/v4/roles",
|
|
2528
|
+
body: parsed[:body],
|
|
2529
|
+
model: Amocrm::Models::V4RolesCreateResponse,
|
|
2530
|
+
options: options
|
|
2531
|
+
)
|
|
2532
|
+
end
|
|
2533
|
+
|
|
2534
|
+
# Delete role by id.
|
|
2535
|
+
#
|
|
2536
|
+
# @overload roles_delete_by_id(id, request_options: {})
|
|
2537
|
+
#
|
|
2538
|
+
# @param id [Integer]
|
|
2539
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2540
|
+
#
|
|
2541
|
+
# @return [Amocrm::Models::V4RolesDeleteByIDResponse::EmptyResponse, Amocrm::Models::V4RolesDeleteByIDResponse::Problem]
|
|
2542
|
+
#
|
|
2543
|
+
# @see Amocrm::Models::V4RolesDeleteByIDParams
|
|
2544
|
+
def roles_delete_by_id(id, params = {})
|
|
2545
|
+
@client.request(
|
|
2546
|
+
method: :delete,
|
|
2547
|
+
path: ["api/v4/roles/%1$s", id],
|
|
2548
|
+
model: Amocrm::Models::V4RolesDeleteByIDResponse,
|
|
2549
|
+
options: params[:request_options]
|
|
2550
|
+
)
|
|
2551
|
+
end
|
|
2552
|
+
|
|
2553
|
+
# Get role by id.
|
|
2554
|
+
#
|
|
2555
|
+
# @overload roles_get_by_id(id, with: nil, request_options: {})
|
|
2556
|
+
#
|
|
2557
|
+
# @param id [Integer]
|
|
2558
|
+
# @param with [String]
|
|
2559
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2560
|
+
#
|
|
2561
|
+
# @return [Amocrm::Models::V4RolesGetByIDResponse::Role, Amocrm::Models::V4RolesGetByIDResponse::Problem]
|
|
2562
|
+
#
|
|
2563
|
+
# @see Amocrm::Models::V4RolesGetByIDParams
|
|
2564
|
+
def roles_get_by_id(id, params = {})
|
|
2565
|
+
parsed, options = Amocrm::V4RolesGetByIDParams.dump_request(params)
|
|
2566
|
+
@client.request(
|
|
2567
|
+
method: :get,
|
|
2568
|
+
path: ["api/v4/roles/%1$s", id],
|
|
2569
|
+
query: parsed,
|
|
2570
|
+
model: Amocrm::Models::V4RolesGetByIDResponse,
|
|
2571
|
+
options: options
|
|
2572
|
+
)
|
|
2573
|
+
end
|
|
2574
|
+
|
|
2575
|
+
# Get roles list.
|
|
2576
|
+
#
|
|
2577
|
+
# @overload roles_list(limit: nil, page: nil, with: nil, request_options: {})
|
|
2578
|
+
#
|
|
2579
|
+
# @param limit [Integer]
|
|
2580
|
+
# @param page [Integer]
|
|
2581
|
+
# @param with [String]
|
|
2582
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2583
|
+
#
|
|
2584
|
+
# @return [Amocrm::Models::V4RolesListResponse::RoleListResponse, Amocrm::Models::V4RolesListResponse::Problem]
|
|
2585
|
+
#
|
|
2586
|
+
# @see Amocrm::Models::V4RolesListParams
|
|
2587
|
+
def roles_list(params = {})
|
|
2588
|
+
parsed, options = Amocrm::V4RolesListParams.dump_request(params)
|
|
2589
|
+
@client.request(
|
|
2590
|
+
method: :get,
|
|
2591
|
+
path: "api/v4/roles",
|
|
2592
|
+
query: parsed,
|
|
2593
|
+
model: Amocrm::Models::V4RolesListResponse,
|
|
2594
|
+
options: options
|
|
2595
|
+
)
|
|
2596
|
+
end
|
|
2597
|
+
|
|
2598
|
+
# Update role by id.
|
|
2599
|
+
#
|
|
2600
|
+
# @overload roles_update_by_id(id, name: nil, request_id: nil, rights: nil, request_options: {})
|
|
2601
|
+
#
|
|
2602
|
+
# @param id [Integer]
|
|
2603
|
+
# @param name [String]
|
|
2604
|
+
# @param request_id [String]
|
|
2605
|
+
# @param rights [Amocrm::Models::V4RolesUpdateByIDParams::Rights, nil]
|
|
2606
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2607
|
+
#
|
|
2608
|
+
# @return [Amocrm::Models::V4RolesUpdateByIDResponse::Role, Amocrm::Models::V4RolesUpdateByIDResponse::Problem]
|
|
2609
|
+
#
|
|
2610
|
+
# @see Amocrm::Models::V4RolesUpdateByIDParams
|
|
2611
|
+
def roles_update_by_id(id, params = {})
|
|
2612
|
+
parsed, options = Amocrm::V4RolesUpdateByIDParams.dump_request(params)
|
|
2613
|
+
@client.request(
|
|
2614
|
+
method: :patch,
|
|
2615
|
+
path: ["api/v4/roles/%1$s", id],
|
|
2616
|
+
body: parsed,
|
|
2617
|
+
model: Amocrm::Models::V4RolesUpdateByIDResponse,
|
|
2618
|
+
options: options
|
|
2619
|
+
)
|
|
2620
|
+
end
|
|
2621
|
+
|
|
2622
|
+
# Create short link.
|
|
2623
|
+
#
|
|
2624
|
+
# @overload short_links_create(url:, request_options: {})
|
|
2625
|
+
#
|
|
2626
|
+
# @param url [String]
|
|
2627
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2628
|
+
#
|
|
2629
|
+
# @return [Amocrm::Models::V4ShortLinksCreateResponse::ShortLinkCreateResponse, Amocrm::Models::V4ShortLinksCreateResponse::Problem]
|
|
2630
|
+
#
|
|
2631
|
+
# @see Amocrm::Models::V4ShortLinksCreateParams
|
|
2632
|
+
def short_links_create(params)
|
|
2633
|
+
parsed, options = Amocrm::V4ShortLinksCreateParams.dump_request(params)
|
|
2634
|
+
@client.request(
|
|
2635
|
+
method: :post,
|
|
2636
|
+
path: "api/v4/short_links",
|
|
2637
|
+
body: parsed,
|
|
2638
|
+
model: Amocrm::Models::V4ShortLinksCreateResponse,
|
|
2639
|
+
options: options
|
|
2640
|
+
)
|
|
2641
|
+
end
|
|
2642
|
+
|
|
2643
|
+
# Create sources (batch).
|
|
2644
|
+
#
|
|
2645
|
+
# @overload sources_create(body:, request_options: {})
|
|
2646
|
+
#
|
|
2647
|
+
# @param body [Array<Amocrm::Models::V4SourcesCreateParams::Body>]
|
|
2648
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2649
|
+
#
|
|
2650
|
+
# @return [Amocrm::Models::V4SourcesCreateResponse::SourceCreateResponse, Amocrm::Models::V4SourcesCreateResponse::Problem]
|
|
2651
|
+
#
|
|
2652
|
+
# @see Amocrm::Models::V4SourcesCreateParams
|
|
2653
|
+
def sources_create(params)
|
|
2654
|
+
parsed, options = Amocrm::V4SourcesCreateParams.dump_request(params)
|
|
2655
|
+
@client.request(
|
|
2656
|
+
method: :post,
|
|
2657
|
+
path: "api/v4/sources",
|
|
2658
|
+
body: parsed[:body],
|
|
2659
|
+
model: Amocrm::Models::V4SourcesCreateResponse,
|
|
2660
|
+
options: options
|
|
2661
|
+
)
|
|
2662
|
+
end
|
|
2663
|
+
|
|
2664
|
+
# Delete sources (batch).
|
|
2665
|
+
#
|
|
2666
|
+
# @overload sources_delete(body:, request_options: {})
|
|
2667
|
+
#
|
|
2668
|
+
# @param body [Array<Amocrm::Models::V4SourcesDeleteParams::Body>]
|
|
2669
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2670
|
+
#
|
|
2671
|
+
# @return [Amocrm::Models::V4SourcesDeleteResponse::EmptyResponse, Amocrm::Models::V4SourcesDeleteResponse::Problem]
|
|
2672
|
+
#
|
|
2673
|
+
# @see Amocrm::Models::V4SourcesDeleteParams
|
|
2674
|
+
def sources_delete(params)
|
|
2675
|
+
parsed, options = Amocrm::V4SourcesDeleteParams.dump_request(params)
|
|
2676
|
+
@client.request(
|
|
2677
|
+
method: :delete,
|
|
2678
|
+
path: "api/v4/sources",
|
|
2679
|
+
body: parsed[:body],
|
|
2680
|
+
model: Amocrm::Models::V4SourcesDeleteResponse,
|
|
2681
|
+
options: options
|
|
2682
|
+
)
|
|
2683
|
+
end
|
|
2684
|
+
|
|
2685
|
+
# Delete source by id.
|
|
2686
|
+
#
|
|
2687
|
+
# @overload sources_delete_by_id(id, request_options: {})
|
|
2688
|
+
#
|
|
2689
|
+
# @param id [Integer]
|
|
2690
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2691
|
+
#
|
|
2692
|
+
# @return [Amocrm::Models::V4SourcesDeleteByIDResponse::EmptyResponse, Amocrm::Models::V4SourcesDeleteByIDResponse::Problem]
|
|
2693
|
+
#
|
|
2694
|
+
# @see Amocrm::Models::V4SourcesDeleteByIDParams
|
|
2695
|
+
def sources_delete_by_id(id, params = {})
|
|
2696
|
+
@client.request(
|
|
2697
|
+
method: :delete,
|
|
2698
|
+
path: ["api/v4/sources/%1$s", id],
|
|
2699
|
+
model: Amocrm::Models::V4SourcesDeleteByIDResponse,
|
|
2700
|
+
options: params[:request_options]
|
|
2701
|
+
)
|
|
2702
|
+
end
|
|
2703
|
+
|
|
2704
|
+
# Get source by id.
|
|
2705
|
+
#
|
|
2706
|
+
# @overload sources_get_by_id(id, request_options: {})
|
|
2707
|
+
#
|
|
2708
|
+
# @param id [Integer]
|
|
2709
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2710
|
+
#
|
|
2711
|
+
# @return [Amocrm::Models::V4SourcesGetByIDResponse::Source, Amocrm::Models::V4SourcesGetByIDResponse::Problem]
|
|
2712
|
+
#
|
|
2713
|
+
# @see Amocrm::Models::V4SourcesGetByIDParams
|
|
2714
|
+
def sources_get_by_id(id, params = {})
|
|
2715
|
+
@client.request(
|
|
2716
|
+
method: :get,
|
|
2717
|
+
path: ["api/v4/sources/%1$s", id],
|
|
2718
|
+
model: Amocrm::Models::V4SourcesGetByIDResponse,
|
|
2719
|
+
options: params[:request_options]
|
|
2720
|
+
)
|
|
2721
|
+
end
|
|
2722
|
+
|
|
2723
|
+
# Get sources list.
|
|
2724
|
+
#
|
|
2725
|
+
# @overload sources_list(filter: nil, request_options: {})
|
|
2726
|
+
#
|
|
2727
|
+
# @param filter [Amocrm::Models::V4SourcesListParams::Filter]
|
|
2728
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2729
|
+
#
|
|
2730
|
+
# @return [Amocrm::Models::V4SourcesListResponse::SourceListResponse, Amocrm::Models::V4SourcesListResponse::Problem]
|
|
2731
|
+
#
|
|
2732
|
+
# @see Amocrm::Models::V4SourcesListParams
|
|
2733
|
+
def sources_list(params = {})
|
|
2734
|
+
parsed, options = Amocrm::V4SourcesListParams.dump_request(params)
|
|
2735
|
+
@client.request(
|
|
2736
|
+
method: :get,
|
|
2737
|
+
path: "api/v4/sources",
|
|
2738
|
+
query: parsed,
|
|
2739
|
+
model: Amocrm::Models::V4SourcesListResponse,
|
|
2740
|
+
options: options
|
|
2741
|
+
)
|
|
2742
|
+
end
|
|
2743
|
+
|
|
2744
|
+
# Update sources (batch).
|
|
2745
|
+
#
|
|
2746
|
+
# @overload sources_update(body:, request_options: {})
|
|
2747
|
+
#
|
|
2748
|
+
# @param body [Array<Amocrm::Models::V4SourcesUpdateParams::Body>]
|
|
2749
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2750
|
+
#
|
|
2751
|
+
# @return [Amocrm::Models::V4SourcesUpdateResponse::SourceUpdateResponse, Amocrm::Models::V4SourcesUpdateResponse::Problem]
|
|
2752
|
+
#
|
|
2753
|
+
# @see Amocrm::Models::V4SourcesUpdateParams
|
|
2754
|
+
def sources_update(params)
|
|
2755
|
+
parsed, options = Amocrm::V4SourcesUpdateParams.dump_request(params)
|
|
2756
|
+
@client.request(
|
|
2757
|
+
method: :patch,
|
|
2758
|
+
path: "api/v4/sources",
|
|
2759
|
+
body: parsed[:body],
|
|
2760
|
+
model: Amocrm::Models::V4SourcesUpdateResponse,
|
|
2761
|
+
options: options
|
|
2762
|
+
)
|
|
2763
|
+
end
|
|
2764
|
+
|
|
2765
|
+
# Update source by id.
|
|
2766
|
+
#
|
|
2767
|
+
# @overload sources_update_by_id(id, default: nil, external_id: nil, name: nil, origin_code: nil, pipeline_id: nil, request_id: nil, services: nil, request_options: {})
|
|
2768
|
+
#
|
|
2769
|
+
# @param id [Integer]
|
|
2770
|
+
# @param default [Boolean]
|
|
2771
|
+
# @param external_id [String]
|
|
2772
|
+
# @param name [String]
|
|
2773
|
+
# @param origin_code [String, nil]
|
|
2774
|
+
# @param pipeline_id [Integer, nil]
|
|
2775
|
+
# @param request_id [String]
|
|
2776
|
+
# @param services [Array<Object>, Array<String>]
|
|
2777
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2778
|
+
#
|
|
2779
|
+
# @return [Amocrm::Models::V4SourcesUpdateByIDResponse::SourceUpdateResponse, Amocrm::Models::V4SourcesUpdateByIDResponse::Problem]
|
|
2780
|
+
#
|
|
2781
|
+
# @see Amocrm::Models::V4SourcesUpdateByIDParams
|
|
2782
|
+
def sources_update_by_id(id, params = {})
|
|
2783
|
+
parsed, options = Amocrm::V4SourcesUpdateByIDParams.dump_request(params)
|
|
2784
|
+
@client.request(
|
|
2785
|
+
method: :patch,
|
|
2786
|
+
path: ["api/v4/sources/%1$s", id],
|
|
2787
|
+
body: parsed,
|
|
2788
|
+
model: Amocrm::Models::V4SourcesUpdateByIDResponse,
|
|
2789
|
+
options: options
|
|
2790
|
+
)
|
|
2791
|
+
end
|
|
2792
|
+
|
|
2793
|
+
# Create tags.
|
|
2794
|
+
#
|
|
2795
|
+
# @overload tags_create(entity_type, body:, request_options: {})
|
|
2796
|
+
#
|
|
2797
|
+
# @param entity_type [Symbol, Amocrm::Models::V4TagsCreateParams::EntityType]
|
|
2798
|
+
# @param body [Array<Amocrm::Models::V4TagsCreateParams::Body>]
|
|
2799
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2800
|
+
#
|
|
2801
|
+
# @return [Amocrm::Models::V4TagsCreateResponse::TagCreateResponse, Amocrm::Models::V4TagsCreateResponse::Problem]
|
|
2802
|
+
#
|
|
2803
|
+
# @see Amocrm::Models::V4TagsCreateParams
|
|
2804
|
+
def tags_create(entity_type, params)
|
|
2805
|
+
parsed, options = Amocrm::V4TagsCreateParams.dump_request(params)
|
|
2806
|
+
@client.request(
|
|
2807
|
+
method: :post,
|
|
2808
|
+
path: ["api/v4/%1$s/tags", entity_type],
|
|
2809
|
+
body: parsed[:body],
|
|
2810
|
+
model: Amocrm::Models::V4TagsCreateResponse,
|
|
2811
|
+
options: options
|
|
2812
|
+
)
|
|
2813
|
+
end
|
|
2814
|
+
|
|
2815
|
+
# Get tags list.
|
|
2816
|
+
#
|
|
2817
|
+
# @overload tags_list(entity_type, filter: nil, limit: nil, page: nil, query: nil, request_options: {})
|
|
2818
|
+
#
|
|
2819
|
+
# @param entity_type [Symbol, Amocrm::Models::V4TagsListParams::EntityType]
|
|
2820
|
+
# @param filter [Object]
|
|
2821
|
+
# @param limit [Integer]
|
|
2822
|
+
# @param page [Integer]
|
|
2823
|
+
# @param query [String]
|
|
2824
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2825
|
+
#
|
|
2826
|
+
# @return [Amocrm::Models::V4TagsListResponse::TagListResponse, Amocrm::Models::V4TagsListResponse::Problem]
|
|
2827
|
+
#
|
|
2828
|
+
# @see Amocrm::Models::V4TagsListParams
|
|
2829
|
+
def tags_list(entity_type, params = {})
|
|
2830
|
+
parsed, options = Amocrm::V4TagsListParams.dump_request(params)
|
|
2831
|
+
@client.request(
|
|
2832
|
+
method: :get,
|
|
2833
|
+
path: ["api/v4/%1$s/tags", entity_type],
|
|
2834
|
+
query: parsed,
|
|
2835
|
+
model: Amocrm::Models::V4TagsListResponse,
|
|
2836
|
+
options: options
|
|
2837
|
+
)
|
|
2838
|
+
end
|
|
2839
|
+
|
|
2840
|
+
# Close talk by id (optionally force without NPS bot).
|
|
2841
|
+
#
|
|
2842
|
+
# @overload talks_close(id, force_close: nil, request_options: {})
|
|
2843
|
+
#
|
|
2844
|
+
# @param id [Integer]
|
|
2845
|
+
#
|
|
2846
|
+
# @param force_close [Boolean] Force close talk without NPS bot.
|
|
2847
|
+
#
|
|
2848
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2849
|
+
#
|
|
2850
|
+
# @return [Amocrm::Models::V4TalksCloseResponse::EmptyResponse, Amocrm::Models::V4TalksCloseResponse::Problem]
|
|
2851
|
+
#
|
|
2852
|
+
# @see Amocrm::Models::V4TalksCloseParams
|
|
2853
|
+
def talks_close(id, params = {})
|
|
2854
|
+
parsed, options = Amocrm::V4TalksCloseParams.dump_request(params)
|
|
2855
|
+
@client.request(
|
|
2856
|
+
method: :post,
|
|
2857
|
+
path: ["api/v4/talks/%1$s/close", id],
|
|
2858
|
+
body: parsed,
|
|
2859
|
+
model: Amocrm::Models::V4TalksCloseResponse,
|
|
2860
|
+
options: options
|
|
2861
|
+
)
|
|
2862
|
+
end
|
|
2863
|
+
|
|
2864
|
+
# Get talk by id.
|
|
2865
|
+
#
|
|
2866
|
+
# @overload talks_get_by_id(id, request_options: {})
|
|
2867
|
+
#
|
|
2868
|
+
# @param id [Integer]
|
|
2869
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2870
|
+
#
|
|
2871
|
+
# @return [Amocrm::Models::V4TalksGetByIDResponse::Talk, Amocrm::Models::V4TalksGetByIDResponse::Problem]
|
|
2872
|
+
#
|
|
2873
|
+
# @see Amocrm::Models::V4TalksGetByIDParams
|
|
2874
|
+
def talks_get_by_id(id, params = {})
|
|
2875
|
+
@client.request(
|
|
2876
|
+
method: :get,
|
|
2877
|
+
path: ["api/v4/talks/%1$s", id],
|
|
2878
|
+
model: Amocrm::Models::V4TalksGetByIDResponse,
|
|
2879
|
+
options: params[:request_options]
|
|
2880
|
+
)
|
|
2881
|
+
end
|
|
2882
|
+
|
|
2883
|
+
# Create tasks.
|
|
2884
|
+
#
|
|
2885
|
+
# @overload tasks_create(body:, request_options: {})
|
|
2886
|
+
#
|
|
2887
|
+
# @param body [Array<Amocrm::Models::V4TasksCreateParams::Body>]
|
|
2888
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2889
|
+
#
|
|
2890
|
+
# @return [Amocrm::Models::V4TasksCreateResponse::TaskCreateResponse, Amocrm::Models::V4TasksCreateResponse::Problem]
|
|
2891
|
+
#
|
|
2892
|
+
# @see Amocrm::Models::V4TasksCreateParams
|
|
2893
|
+
def tasks_create(params)
|
|
2894
|
+
parsed, options = Amocrm::V4TasksCreateParams.dump_request(params)
|
|
2895
|
+
@client.request(
|
|
2896
|
+
method: :post,
|
|
2897
|
+
path: "api/v4/tasks",
|
|
2898
|
+
body: parsed[:body],
|
|
2899
|
+
model: Amocrm::Models::V4TasksCreateResponse,
|
|
2900
|
+
options: options
|
|
2901
|
+
)
|
|
2902
|
+
end
|
|
2903
|
+
|
|
2904
|
+
# Get a task by id.
|
|
2905
|
+
#
|
|
2906
|
+
# @overload tasks_get_by_id(id, request_options: {})
|
|
2907
|
+
#
|
|
2908
|
+
# @param id [Integer]
|
|
2909
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2910
|
+
#
|
|
2911
|
+
# @return [Amocrm::Models::V4TasksGetByIDResponse::Task, Amocrm::Models::V4TasksGetByIDResponse::Problem]
|
|
2912
|
+
#
|
|
2913
|
+
# @see Amocrm::Models::V4TasksGetByIDParams
|
|
2914
|
+
def tasks_get_by_id(id, params = {})
|
|
2915
|
+
@client.request(
|
|
2916
|
+
method: :get,
|
|
2917
|
+
path: ["api/v4/tasks/%1$s", id],
|
|
2918
|
+
model: Amocrm::Models::V4TasksGetByIDResponse,
|
|
2919
|
+
options: params[:request_options]
|
|
2920
|
+
)
|
|
2921
|
+
end
|
|
2922
|
+
|
|
2923
|
+
# Get a list of tasks (pagination, sorting, filtering).
|
|
2924
|
+
#
|
|
2925
|
+
# @overload tasks_list(filter: nil, limit: nil, order: nil, page: nil, query: nil, request_options: {})
|
|
2926
|
+
#
|
|
2927
|
+
# @param filter [Object] Filtering parameters
|
|
2928
|
+
#
|
|
2929
|
+
# @param limit [Integer] Pagination limit
|
|
2930
|
+
#
|
|
2931
|
+
# @param order [Object] Sorting, e.g. order[updated_at]=asc
|
|
2932
|
+
#
|
|
2933
|
+
# @param page [Integer] Pagination page
|
|
2934
|
+
#
|
|
2935
|
+
# @param query [String, Integer] Search by query string or id
|
|
2936
|
+
#
|
|
2937
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2938
|
+
#
|
|
2939
|
+
# @return [Amocrm::Models::V4TasksListResponse::TaskListResponse, Amocrm::Models::V4TasksListResponse::Problem]
|
|
2940
|
+
#
|
|
2941
|
+
# @see Amocrm::Models::V4TasksListParams
|
|
2942
|
+
def tasks_list(params = {})
|
|
2943
|
+
parsed, options = Amocrm::V4TasksListParams.dump_request(params)
|
|
2944
|
+
@client.request(
|
|
2945
|
+
method: :get,
|
|
2946
|
+
path: "api/v4/tasks",
|
|
2947
|
+
query: parsed,
|
|
2948
|
+
model: Amocrm::Models::V4TasksListResponse,
|
|
2949
|
+
options: options
|
|
2950
|
+
)
|
|
2951
|
+
end
|
|
2952
|
+
|
|
2953
|
+
# Update tasks (batch).
|
|
2954
|
+
#
|
|
2955
|
+
# @overload tasks_update(body:, request_options: {})
|
|
2956
|
+
#
|
|
2957
|
+
# @param body [Array<Amocrm::Models::V4TasksUpdateParams::Body>]
|
|
2958
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2959
|
+
#
|
|
2960
|
+
# @return [Amocrm::Models::V4TasksUpdateResponse::TaskUpdateResponse, Amocrm::Models::V4TasksUpdateResponse::Problem]
|
|
2961
|
+
#
|
|
2962
|
+
# @see Amocrm::Models::V4TasksUpdateParams
|
|
2963
|
+
def tasks_update(params)
|
|
2964
|
+
parsed, options = Amocrm::V4TasksUpdateParams.dump_request(params)
|
|
2965
|
+
@client.request(
|
|
2966
|
+
method: :patch,
|
|
2967
|
+
path: "api/v4/tasks",
|
|
2968
|
+
body: parsed[:body],
|
|
2969
|
+
model: Amocrm::Models::V4TasksUpdateResponse,
|
|
2970
|
+
options: options
|
|
2971
|
+
)
|
|
2972
|
+
end
|
|
2973
|
+
|
|
2974
|
+
# Update a task by id.
|
|
2975
|
+
#
|
|
2976
|
+
# @overload tasks_update_by_id(id, complete_till: nil, entity_id: nil, entity_type: nil, is_completed: nil, responsible_user_id: nil, result: nil, task_type_id: nil, text: nil, request_options: {})
|
|
2977
|
+
#
|
|
2978
|
+
# @param id [Integer]
|
|
2979
|
+
# @param complete_till [Integer]
|
|
2980
|
+
# @param entity_id [Integer]
|
|
2981
|
+
# @param entity_type [String]
|
|
2982
|
+
# @param is_completed [Boolean]
|
|
2983
|
+
# @param responsible_user_id [Integer]
|
|
2984
|
+
# @param result [Amocrm::Models::V4TasksUpdateByIDParams::Result]
|
|
2985
|
+
# @param task_type_id [Integer]
|
|
2986
|
+
# @param text [String]
|
|
2987
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
2988
|
+
#
|
|
2989
|
+
# @return [Amocrm::Models::V4TasksUpdateByIDResponse::TaskUpdateResponse, Amocrm::Models::V4TasksUpdateByIDResponse::Problem]
|
|
2990
|
+
#
|
|
2991
|
+
# @see Amocrm::Models::V4TasksUpdateByIDParams
|
|
2992
|
+
def tasks_update_by_id(id, params = {})
|
|
2993
|
+
parsed, options = Amocrm::V4TasksUpdateByIDParams.dump_request(params)
|
|
2994
|
+
@client.request(
|
|
2995
|
+
method: :patch,
|
|
2996
|
+
path: ["api/v4/tasks/%1$s", id],
|
|
2997
|
+
body: parsed,
|
|
2998
|
+
model: Amocrm::Models::V4TasksUpdateByIDResponse,
|
|
2999
|
+
options: options
|
|
3000
|
+
)
|
|
3001
|
+
end
|
|
3002
|
+
|
|
3003
|
+
# @overload unsorted_leads_accept(uid, status_id: nil, user_id: nil, request_options: {})
|
|
3004
|
+
#
|
|
3005
|
+
# @param uid [String]
|
|
3006
|
+
#
|
|
3007
|
+
# @param status_id [Integer] Status id for the created lead
|
|
3008
|
+
#
|
|
3009
|
+
# @param user_id [Integer] User id on whose behalf the item is accepted
|
|
3010
|
+
#
|
|
3011
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3012
|
+
#
|
|
3013
|
+
# @return [Amocrm::Models::V4UnsortedLeadsAcceptResponse::UnsortedAcceptResponse, Amocrm::Models::V4UnsortedLeadsAcceptResponse::Problem]
|
|
3014
|
+
#
|
|
3015
|
+
# @see Amocrm::Models::V4UnsortedLeadsAcceptParams
|
|
3016
|
+
def unsorted_leads_accept(uid, params = {})
|
|
3017
|
+
parsed, options = Amocrm::V4UnsortedLeadsAcceptParams.dump_request(params)
|
|
3018
|
+
@client.request(
|
|
3019
|
+
method: :post,
|
|
3020
|
+
path: ["api/v4/leads/unsorted/%1$s/accept", uid],
|
|
3021
|
+
body: parsed,
|
|
3022
|
+
model: Amocrm::Models::V4UnsortedLeadsAcceptResponse,
|
|
3023
|
+
options: options
|
|
3024
|
+
)
|
|
3025
|
+
end
|
|
3026
|
+
|
|
3027
|
+
# @overload unsorted_leads_create_forms(body:, request_options: {})
|
|
3028
|
+
#
|
|
3029
|
+
# @param body [Array<Amocrm::Models::V4UnsortedLeadsCreateFormsParams::Body>]
|
|
3030
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3031
|
+
#
|
|
3032
|
+
# @return [Amocrm::Models::V4UnsortedLeadsCreateFormsResponse::UnsortedCreateResponse, Amocrm::Models::V4UnsortedLeadsCreateFormsResponse::Problem]
|
|
3033
|
+
#
|
|
3034
|
+
# @see Amocrm::Models::V4UnsortedLeadsCreateFormsParams
|
|
3035
|
+
def unsorted_leads_create_forms(params)
|
|
3036
|
+
parsed, options = Amocrm::V4UnsortedLeadsCreateFormsParams.dump_request(params)
|
|
3037
|
+
@client.request(
|
|
3038
|
+
method: :post,
|
|
3039
|
+
path: "api/v4/leads/unsorted/forms",
|
|
3040
|
+
body: parsed[:body],
|
|
3041
|
+
model: Amocrm::Models::V4UnsortedLeadsCreateFormsResponse,
|
|
3042
|
+
options: options
|
|
3043
|
+
)
|
|
3044
|
+
end
|
|
3045
|
+
|
|
3046
|
+
# @overload unsorted_leads_decline(uid, user_id: nil, request_options: {})
|
|
3047
|
+
#
|
|
3048
|
+
# @param uid [String]
|
|
3049
|
+
#
|
|
3050
|
+
# @param user_id [Integer] User id on whose behalf the item is declined
|
|
3051
|
+
#
|
|
3052
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3053
|
+
#
|
|
3054
|
+
# @return [Amocrm::Models::V4UnsortedLeadsDeclineResponse::UnsortedAcceptResponse, Amocrm::Models::V4UnsortedLeadsDeclineResponse::Problem]
|
|
3055
|
+
#
|
|
3056
|
+
# @see Amocrm::Models::V4UnsortedLeadsDeclineParams
|
|
3057
|
+
def unsorted_leads_decline(uid, params = {})
|
|
3058
|
+
parsed, options = Amocrm::V4UnsortedLeadsDeclineParams.dump_request(params)
|
|
3059
|
+
@client.request(
|
|
3060
|
+
method: :delete,
|
|
3061
|
+
path: ["api/v4/leads/unsorted/%1$s/decline", uid],
|
|
3062
|
+
body: parsed,
|
|
3063
|
+
model: Amocrm::Models::V4UnsortedLeadsDeclineResponse,
|
|
3064
|
+
options: options
|
|
3065
|
+
)
|
|
3066
|
+
end
|
|
3067
|
+
|
|
3068
|
+
# Create users (batch).
|
|
3069
|
+
#
|
|
3070
|
+
# @overload users_create(body:, request_options: {})
|
|
3071
|
+
#
|
|
3072
|
+
# @param body [Array<Amocrm::Models::V4UsersCreateParams::Body>]
|
|
3073
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3074
|
+
#
|
|
3075
|
+
# @return [Amocrm::Models::V4UsersCreateResponse::UserCreateResponse, Amocrm::Models::V4UsersCreateResponse::Problem]
|
|
3076
|
+
#
|
|
3077
|
+
# @see Amocrm::Models::V4UsersCreateParams
|
|
3078
|
+
def users_create(params)
|
|
3079
|
+
parsed, options = Amocrm::V4UsersCreateParams.dump_request(params)
|
|
3080
|
+
@client.request(
|
|
3081
|
+
method: :post,
|
|
3082
|
+
path: "api/v4/users",
|
|
3083
|
+
body: parsed[:body],
|
|
3084
|
+
model: Amocrm::Models::V4UsersCreateResponse,
|
|
3085
|
+
options: options
|
|
3086
|
+
)
|
|
3087
|
+
end
|
|
3088
|
+
|
|
3089
|
+
# Get user by id.
|
|
3090
|
+
#
|
|
3091
|
+
# @overload users_get_by_id(id, with: nil, request_options: {})
|
|
3092
|
+
#
|
|
3093
|
+
# @param id [Integer]
|
|
3094
|
+
# @param with [String]
|
|
3095
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3096
|
+
#
|
|
3097
|
+
# @return [Amocrm::Models::V4UsersGetByIDResponse::User, Amocrm::Models::V4UsersGetByIDResponse::Problem]
|
|
3098
|
+
#
|
|
3099
|
+
# @see Amocrm::Models::V4UsersGetByIDParams
|
|
3100
|
+
def users_get_by_id(id, params = {})
|
|
3101
|
+
parsed, options = Amocrm::V4UsersGetByIDParams.dump_request(params)
|
|
3102
|
+
@client.request(
|
|
3103
|
+
method: :get,
|
|
3104
|
+
path: ["api/v4/users/%1$s", id],
|
|
3105
|
+
query: parsed,
|
|
3106
|
+
model: Amocrm::Models::V4UsersGetByIDResponse,
|
|
3107
|
+
options: options
|
|
3108
|
+
)
|
|
3109
|
+
end
|
|
3110
|
+
|
|
3111
|
+
# Get users list.
|
|
3112
|
+
#
|
|
3113
|
+
# @overload users_list(limit: nil, page: nil, with: nil, request_options: {})
|
|
3114
|
+
#
|
|
3115
|
+
# @param limit [Integer]
|
|
3116
|
+
# @param page [Integer]
|
|
3117
|
+
# @param with [String]
|
|
3118
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3119
|
+
#
|
|
3120
|
+
# @return [Amocrm::Models::V4UsersListResponse::UserListResponse, Amocrm::Models::V4UsersListResponse::Problem]
|
|
3121
|
+
#
|
|
3122
|
+
# @see Amocrm::Models::V4UsersListParams
|
|
3123
|
+
def users_list(params = {})
|
|
3124
|
+
parsed, options = Amocrm::V4UsersListParams.dump_request(params)
|
|
3125
|
+
@client.request(
|
|
3126
|
+
method: :get,
|
|
3127
|
+
path: "api/v4/users",
|
|
3128
|
+
query: parsed,
|
|
3129
|
+
model: Amocrm::Models::V4UsersListResponse,
|
|
3130
|
+
options: options
|
|
3131
|
+
)
|
|
3132
|
+
end
|
|
3133
|
+
|
|
3134
|
+
# Get webhooks list.
|
|
3135
|
+
#
|
|
3136
|
+
# @overload webhooks_list(filter: nil, request_options: {})
|
|
3137
|
+
#
|
|
3138
|
+
# @param filter [Amocrm::Models::V4WebhooksListParams::Filter]
|
|
3139
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3140
|
+
#
|
|
3141
|
+
# @return [Amocrm::Models::V4WebhooksListResponse::WebhookListResponse, Amocrm::Models::V4WebhooksListResponse::Problem]
|
|
3142
|
+
#
|
|
3143
|
+
# @see Amocrm::Models::V4WebhooksListParams
|
|
3144
|
+
def webhooks_list(params = {})
|
|
3145
|
+
parsed, options = Amocrm::V4WebhooksListParams.dump_request(params)
|
|
3146
|
+
@client.request(
|
|
3147
|
+
method: :get,
|
|
3148
|
+
path: "api/v4/webhooks",
|
|
3149
|
+
query: parsed,
|
|
3150
|
+
model: Amocrm::Models::V4WebhooksListResponse,
|
|
3151
|
+
options: options
|
|
3152
|
+
)
|
|
3153
|
+
end
|
|
3154
|
+
|
|
3155
|
+
# Subscribe to webhook events.
|
|
3156
|
+
#
|
|
3157
|
+
# @overload webhooks_subscribe(destination:, settings:, sort: nil, request_options: {})
|
|
3158
|
+
#
|
|
3159
|
+
# @param destination [String]
|
|
3160
|
+
# @param settings [Array<String>]
|
|
3161
|
+
# @param sort [Integer]
|
|
3162
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3163
|
+
#
|
|
3164
|
+
# @return [Amocrm::Models::V4WebhooksSubscribeResponse::Webhook, Amocrm::Models::V4WebhooksSubscribeResponse::Problem]
|
|
3165
|
+
#
|
|
3166
|
+
# @see Amocrm::Models::V4WebhooksSubscribeParams
|
|
3167
|
+
def webhooks_subscribe(params)
|
|
3168
|
+
parsed, options = Amocrm::V4WebhooksSubscribeParams.dump_request(params)
|
|
3169
|
+
@client.request(
|
|
3170
|
+
method: :post,
|
|
3171
|
+
path: "api/v4/webhooks",
|
|
3172
|
+
body: parsed,
|
|
3173
|
+
model: Amocrm::Models::V4WebhooksSubscribeResponse,
|
|
3174
|
+
options: options
|
|
3175
|
+
)
|
|
3176
|
+
end
|
|
3177
|
+
|
|
3178
|
+
# Unsubscribe webhook by destination.
|
|
3179
|
+
#
|
|
3180
|
+
# @overload webhooks_unsubscribe(destination:, request_options: {})
|
|
3181
|
+
#
|
|
3182
|
+
# @param destination [String]
|
|
3183
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3184
|
+
#
|
|
3185
|
+
# @return [Amocrm::Models::V4WebhooksUnsubscribeResponse::EmptyResponse, Amocrm::Models::V4WebhooksUnsubscribeResponse::Problem]
|
|
3186
|
+
#
|
|
3187
|
+
# @see Amocrm::Models::V4WebhooksUnsubscribeParams
|
|
3188
|
+
def webhooks_unsubscribe(params)
|
|
3189
|
+
parsed, options = Amocrm::V4WebhooksUnsubscribeParams.dump_request(params)
|
|
3190
|
+
@client.request(
|
|
3191
|
+
method: :delete,
|
|
3192
|
+
path: "api/v4/webhooks",
|
|
3193
|
+
body: parsed,
|
|
3194
|
+
model: Amocrm::Models::V4WebhooksUnsubscribeResponse,
|
|
3195
|
+
options: options
|
|
3196
|
+
)
|
|
3197
|
+
end
|
|
3198
|
+
|
|
3199
|
+
# Connect online chat to CRM Plugin.
|
|
3200
|
+
#
|
|
3201
|
+
# @overload website_buttons_connect_online_chat(source_id, request_options: {})
|
|
3202
|
+
#
|
|
3203
|
+
# @param source_id [Integer]
|
|
3204
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3205
|
+
#
|
|
3206
|
+
# @return [Amocrm::Models::V4WebsiteButtonsConnectOnlineChatResponse::EmptyResponse, Amocrm::Models::V4WebsiteButtonsConnectOnlineChatResponse::Problem]
|
|
3207
|
+
#
|
|
3208
|
+
# @see Amocrm::Models::V4WebsiteButtonsConnectOnlineChatParams
|
|
3209
|
+
def website_buttons_connect_online_chat(source_id, params = {})
|
|
3210
|
+
@client.request(
|
|
3211
|
+
method: :post,
|
|
3212
|
+
path: ["api/v4/website_buttons/%1$s/online_chat", source_id],
|
|
3213
|
+
model: Amocrm::Models::V4WebsiteButtonsConnectOnlineChatResponse,
|
|
3214
|
+
options: params[:request_options]
|
|
3215
|
+
)
|
|
3216
|
+
end
|
|
3217
|
+
|
|
3218
|
+
# Create CRM Plugin.
|
|
3219
|
+
#
|
|
3220
|
+
# @overload website_buttons_create(pipeline_id:, is_used_in_app: nil, trusted_websites: nil, request_options: {})
|
|
3221
|
+
#
|
|
3222
|
+
# @param pipeline_id [Integer]
|
|
3223
|
+
# @param is_used_in_app [Boolean]
|
|
3224
|
+
# @param trusted_websites [Array<String>]
|
|
3225
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3226
|
+
#
|
|
3227
|
+
# @return [Amocrm::Models::V4WebsiteButtonsCreateResponse::WebsiteButtonCreateResponse, Amocrm::Models::V4WebsiteButtonsCreateResponse::Problem]
|
|
3228
|
+
#
|
|
3229
|
+
# @see Amocrm::Models::V4WebsiteButtonsCreateParams
|
|
3230
|
+
def website_buttons_create(params)
|
|
3231
|
+
parsed, options = Amocrm::V4WebsiteButtonsCreateParams.dump_request(params)
|
|
3232
|
+
@client.request(
|
|
3233
|
+
method: :post,
|
|
3234
|
+
path: "api/v4/website_buttons",
|
|
3235
|
+
body: parsed,
|
|
3236
|
+
model: Amocrm::Models::V4WebsiteButtonsCreateResponse,
|
|
3237
|
+
options: options
|
|
3238
|
+
)
|
|
3239
|
+
end
|
|
3240
|
+
|
|
3241
|
+
# Get CRM Plugin by source id.
|
|
3242
|
+
#
|
|
3243
|
+
# @overload website_buttons_get_by_source_id(source_id, with: nil, request_options: {})
|
|
3244
|
+
#
|
|
3245
|
+
# @param source_id [Integer]
|
|
3246
|
+
# @param with [String]
|
|
3247
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3248
|
+
#
|
|
3249
|
+
# @return [Amocrm::Models::V4WebsiteButtonsGetBySourceIDResponse::WebsiteButton, Amocrm::Models::V4WebsiteButtonsGetBySourceIDResponse::Problem]
|
|
3250
|
+
#
|
|
3251
|
+
# @see Amocrm::Models::V4WebsiteButtonsGetBySourceIDParams
|
|
3252
|
+
def website_buttons_get_by_source_id(source_id, params = {})
|
|
3253
|
+
parsed, options = Amocrm::V4WebsiteButtonsGetBySourceIDParams.dump_request(params)
|
|
3254
|
+
@client.request(
|
|
3255
|
+
method: :get,
|
|
3256
|
+
path: ["api/v4/website_buttons/%1$s", source_id],
|
|
3257
|
+
query: parsed,
|
|
3258
|
+
model: Amocrm::Models::V4WebsiteButtonsGetBySourceIDResponse,
|
|
3259
|
+
options: options
|
|
3260
|
+
)
|
|
3261
|
+
end
|
|
3262
|
+
|
|
3263
|
+
# Get CRM Plugin list.
|
|
3264
|
+
#
|
|
3265
|
+
# @overload website_buttons_list(limit: nil, page: nil, with: nil, request_options: {})
|
|
3266
|
+
#
|
|
3267
|
+
# @param limit [Integer]
|
|
3268
|
+
# @param page [Integer]
|
|
3269
|
+
# @param with [String]
|
|
3270
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3271
|
+
#
|
|
3272
|
+
# @return [Amocrm::Models::V4WebsiteButtonsListResponse::WebsiteButtonListResponse, Amocrm::Models::V4WebsiteButtonsListResponse::Problem]
|
|
3273
|
+
#
|
|
3274
|
+
# @see Amocrm::Models::V4WebsiteButtonsListParams
|
|
3275
|
+
def website_buttons_list(params = {})
|
|
3276
|
+
parsed, options = Amocrm::V4WebsiteButtonsListParams.dump_request(params)
|
|
3277
|
+
@client.request(
|
|
3278
|
+
method: :get,
|
|
3279
|
+
path: "api/v4/website_buttons",
|
|
3280
|
+
query: parsed,
|
|
3281
|
+
model: Amocrm::Models::V4WebsiteButtonsListResponse,
|
|
3282
|
+
options: options
|
|
3283
|
+
)
|
|
3284
|
+
end
|
|
3285
|
+
|
|
3286
|
+
# Update CRM Plugin trusted domains.
|
|
3287
|
+
#
|
|
3288
|
+
# @overload website_buttons_update(source_id, trusted_websites:, request_options: {})
|
|
3289
|
+
#
|
|
3290
|
+
# @param source_id [Integer]
|
|
3291
|
+
# @param trusted_websites [Amocrm::Models::V4WebsiteButtonsUpdateParams::TrustedWebsites]
|
|
3292
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3293
|
+
#
|
|
3294
|
+
# @return [Amocrm::Models::V4WebsiteButtonsUpdateResponse::WebsiteButton, Amocrm::Models::V4WebsiteButtonsUpdateResponse::Problem]
|
|
3295
|
+
#
|
|
3296
|
+
# @see Amocrm::Models::V4WebsiteButtonsUpdateParams
|
|
3297
|
+
def website_buttons_update(source_id, params)
|
|
3298
|
+
parsed, options = Amocrm::V4WebsiteButtonsUpdateParams.dump_request(params)
|
|
3299
|
+
@client.request(
|
|
3300
|
+
method: :patch,
|
|
3301
|
+
path: ["api/v4/website_buttons/%1$s", source_id],
|
|
3302
|
+
body: parsed,
|
|
3303
|
+
model: Amocrm::Models::V4WebsiteButtonsUpdateResponse,
|
|
3304
|
+
options: options
|
|
3305
|
+
)
|
|
3306
|
+
end
|
|
3307
|
+
|
|
3308
|
+
# @overload widget_bot_continue_continue(continue_id, bot_type:, bot_id:, data: nil, execute_handlers: nil, request_options: {})
|
|
3309
|
+
#
|
|
3310
|
+
# @param continue_id [Integer] Path param
|
|
3311
|
+
#
|
|
3312
|
+
# @param bot_type [Symbol, Amocrm::Models::V4WidgetBotContinueContinueParams::BotType] Path param
|
|
3313
|
+
#
|
|
3314
|
+
# @param bot_id [Integer] Path param
|
|
3315
|
+
#
|
|
3316
|
+
# @param data [Object] Body param
|
|
3317
|
+
#
|
|
3318
|
+
# @param execute_handlers [Array<Amocrm::Models::V4WidgetBotContinueContinueParams::ExecuteHandler>] Body param
|
|
3319
|
+
#
|
|
3320
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3321
|
+
#
|
|
3322
|
+
# @return [Amocrm::Models::V4WidgetBotContinueContinueResponse::EmptyResponse, Amocrm::Models::V4WidgetBotContinueContinueResponse::Problem]
|
|
3323
|
+
#
|
|
3324
|
+
# @see Amocrm::Models::V4WidgetBotContinueContinueParams
|
|
3325
|
+
def widget_bot_continue_continue(continue_id, params)
|
|
3326
|
+
parsed, options = Amocrm::V4WidgetBotContinueContinueParams.dump_request(params)
|
|
3327
|
+
bot_type =
|
|
3328
|
+
parsed.delete(:bot_type) do
|
|
3329
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
3330
|
+
end
|
|
3331
|
+
bot_id =
|
|
3332
|
+
parsed.delete(:bot_id) do
|
|
3333
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
3334
|
+
end
|
|
3335
|
+
@client.request(
|
|
3336
|
+
method: :post,
|
|
3337
|
+
path: ["api/v4/%1$s/%2$s/continue/%3$s", bot_type, bot_id, continue_id],
|
|
3338
|
+
body: parsed,
|
|
3339
|
+
model: Amocrm::Models::V4WidgetBotContinueContinueResponse,
|
|
3340
|
+
options: options
|
|
3341
|
+
)
|
|
3342
|
+
end
|
|
3343
|
+
|
|
3344
|
+
# Get widget info by code.
|
|
3345
|
+
#
|
|
3346
|
+
# @overload widgets_get_by_code(widget_code, request_options: {})
|
|
3347
|
+
#
|
|
3348
|
+
# @param widget_code [String]
|
|
3349
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3350
|
+
#
|
|
3351
|
+
# @return [Amocrm::Models::V4WidgetsGetByCodeResponse::Widget, Amocrm::Models::V4WidgetsGetByCodeResponse::Problem]
|
|
3352
|
+
#
|
|
3353
|
+
# @see Amocrm::Models::V4WidgetsGetByCodeParams
|
|
3354
|
+
def widgets_get_by_code(widget_code, params = {})
|
|
3355
|
+
@client.request(
|
|
3356
|
+
method: :get,
|
|
3357
|
+
path: ["api/v4/widgets/%1$s", widget_code],
|
|
3358
|
+
model: Amocrm::Models::V4WidgetsGetByCodeResponse,
|
|
3359
|
+
options: params[:request_options]
|
|
3360
|
+
)
|
|
3361
|
+
end
|
|
3362
|
+
|
|
3363
|
+
# Install widget in account.
|
|
3364
|
+
#
|
|
3365
|
+
# @overload widgets_install(widget_code, body:, request_options: {})
|
|
3366
|
+
#
|
|
3367
|
+
# @param widget_code [String]
|
|
3368
|
+
# @param body [Object]
|
|
3369
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3370
|
+
#
|
|
3371
|
+
# @return [Amocrm::Models::V4WidgetsInstallResponse::Widget, Amocrm::Models::V4WidgetsInstallResponse::Problem]
|
|
3372
|
+
#
|
|
3373
|
+
# @see Amocrm::Models::V4WidgetsInstallParams
|
|
3374
|
+
def widgets_install(widget_code, params)
|
|
3375
|
+
parsed, options = Amocrm::V4WidgetsInstallParams.dump_request(params)
|
|
3376
|
+
@client.request(
|
|
3377
|
+
method: :post,
|
|
3378
|
+
path: ["api/v4/widgets/%1$s", widget_code],
|
|
3379
|
+
body: parsed[:body],
|
|
3380
|
+
model: Amocrm::Models::V4WidgetsInstallResponse,
|
|
3381
|
+
options: options
|
|
3382
|
+
)
|
|
3383
|
+
end
|
|
3384
|
+
|
|
3385
|
+
# Get widgets list.
|
|
3386
|
+
#
|
|
3387
|
+
# @overload widgets_list(limit: nil, page: nil, request_options: {})
|
|
3388
|
+
#
|
|
3389
|
+
# @param limit [Integer]
|
|
3390
|
+
# @param page [Integer]
|
|
3391
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3392
|
+
#
|
|
3393
|
+
# @return [Amocrm::Models::V4WidgetsListResponse::WidgetListResponse, Amocrm::Models::V4WidgetsListResponse::Problem]
|
|
3394
|
+
#
|
|
3395
|
+
# @see Amocrm::Models::V4WidgetsListParams
|
|
3396
|
+
def widgets_list(params = {})
|
|
3397
|
+
parsed, options = Amocrm::V4WidgetsListParams.dump_request(params)
|
|
3398
|
+
@client.request(
|
|
3399
|
+
method: :get,
|
|
3400
|
+
path: "api/v4/widgets",
|
|
3401
|
+
query: parsed,
|
|
3402
|
+
model: Amocrm::Models::V4WidgetsListResponse,
|
|
3403
|
+
options: options
|
|
3404
|
+
)
|
|
3405
|
+
end
|
|
3406
|
+
|
|
3407
|
+
# Uninstall widget from account.
|
|
3408
|
+
#
|
|
3409
|
+
# @overload widgets_uninstall(widget_code, request_options: {})
|
|
3410
|
+
#
|
|
3411
|
+
# @param widget_code [String]
|
|
3412
|
+
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
3413
|
+
#
|
|
3414
|
+
# @return [Amocrm::Models::V4WidgetsUninstallResponse::EmptyResponse, Amocrm::Models::V4WidgetsUninstallResponse::Problem]
|
|
3415
|
+
#
|
|
3416
|
+
# @see Amocrm::Models::V4WidgetsUninstallParams
|
|
3417
|
+
def widgets_uninstall(widget_code, params = {})
|
|
3418
|
+
@client.request(
|
|
3419
|
+
method: :delete,
|
|
3420
|
+
path: ["api/v4/widgets/%1$s", widget_code],
|
|
3421
|
+
model: Amocrm::Models::V4WidgetsUninstallResponse,
|
|
3422
|
+
options: params[:request_options]
|
|
3423
|
+
)
|
|
3424
|
+
end
|
|
8
3425
|
|
|
9
3426
|
# @api private
|
|
10
3427
|
#
|
|
11
3428
|
# @param client [Amocrm::Client]
|
|
12
3429
|
def initialize(client:)
|
|
13
3430
|
@client = client
|
|
14
|
-
@leads = Amocrm::Resources::V4::Leads.new(client: client)
|
|
15
3431
|
end
|
|
16
3432
|
end
|
|
17
3433
|
end
|