amocrm 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +20 -20
- data/lib/amocrm/client.rb +142 -6
- data/lib/amocrm/internal/type/union.rb +7 -7
- data/lib/amocrm/internal/util.rb +4 -2
- data/lib/amocrm/models/account_get_params.rb +22 -0
- data/lib/amocrm/models/account_get_response.rb +408 -0
- data/lib/amocrm/models/call_create_params.rb +151 -0
- data/lib/amocrm/models/call_create_response.rb +162 -0
- data/lib/amocrm/models/catalog_create_params.rb +88 -0
- data/lib/amocrm/models/catalog_create_response.rb +221 -0
- data/lib/amocrm/models/catalog_element_create_params.rb +100 -0
- data/lib/amocrm/models/catalog_element_create_response.rb +254 -0
- data/lib/amocrm/models/catalog_element_get_by_id_params.rb +29 -0
- data/lib/amocrm/models/catalog_element_get_by_id_response.rb +210 -0
- data/lib/amocrm/models/catalog_element_list_params.rb +49 -0
- data/lib/amocrm/models/catalog_element_list_response.rb +254 -0
- data/lib/amocrm/models/catalog_element_update_by_id_params.rb +96 -0
- data/lib/amocrm/models/catalog_element_update_by_id_response.rb +254 -0
- data/lib/amocrm/models/catalog_element_update_params.rb +106 -0
- data/lib/amocrm/models/catalog_element_update_response.rb +254 -0
- data/lib/amocrm/models/catalog_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/catalog_get_by_id_response.rb +181 -0
- data/lib/amocrm/models/catalog_list_params.rb +26 -0
- data/lib/amocrm/models/catalog_list_response.rb +221 -0
- data/lib/amocrm/models/catalog_update_by_id_params.rb +44 -0
- data/lib/amocrm/models/catalog_update_by_id_response.rb +221 -0
- data/lib/amocrm/models/catalog_update_params.rb +60 -0
- data/lib/amocrm/models/catalog_update_response.rb +221 -0
- data/lib/amocrm/models/company_create_params.rb +224 -0
- data/lib/amocrm/models/company_create_response.rb +95 -0
- data/lib/amocrm/models/company_get_by_id_params.rb +22 -0
- data/lib/amocrm/models/company_get_by_id_response.rb +324 -0
- data/lib/amocrm/models/company_list_params.rb +74 -0
- data/lib/amocrm/models/company_list_response.rb +359 -0
- data/lib/amocrm/models/company_update_by_id_params.rb +235 -0
- data/lib/amocrm/models/company_update_by_id_response.rb +95 -0
- data/lib/amocrm/models/company_update_params.rb +254 -0
- data/lib/amocrm/models/company_update_response.rb +95 -0
- data/lib/amocrm/models/contact_chat_link_params.rb +42 -0
- data/lib/amocrm/models/contact_chat_link_response.rb +95 -0
- data/lib/amocrm/models/contact_chat_list_params.rb +20 -0
- data/lib/amocrm/models/contact_chat_list_response.rb +95 -0
- data/lib/amocrm/models/contact_create_params.rb +238 -0
- data/lib/amocrm/models/contact_create_response.rb +95 -0
- data/lib/amocrm/models/contact_get_by_id_params.rb +22 -0
- data/lib/amocrm/models/contact_get_by_id_response.rb +348 -0
- data/lib/amocrm/models/contact_list_params.rb +74 -0
- data/lib/amocrm/models/contact_list_response.rb +383 -0
- data/lib/amocrm/models/contact_update_by_id_params.rb +249 -0
- data/lib/amocrm/models/contact_update_by_id_response.rb +95 -0
- data/lib/amocrm/models/contact_update_params.rb +268 -0
- data/lib/amocrm/models/contact_update_response.rb +95 -0
- data/lib/amocrm/models/custom_field_create_params.rb +108 -0
- data/lib/amocrm/models/custom_field_create_response.rb +95 -0
- data/lib/amocrm/models/custom_field_delete_by_id_params.rb +20 -0
- data/lib/amocrm/models/custom_field_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/custom_field_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/custom_field_get_by_id_response.rb +127 -0
- data/lib/amocrm/models/custom_field_group_create_params.rb +45 -0
- data/lib/amocrm/models/custom_field_group_create_response.rb +96 -0
- data/lib/amocrm/models/custom_field_group_delete_by_id_params.rb +20 -0
- data/lib/amocrm/models/custom_field_group_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/custom_field_group_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/custom_field_group_get_by_id_response.rb +73 -0
- data/lib/amocrm/models/custom_field_group_list_params.rb +26 -0
- data/lib/amocrm/models/custom_field_group_list_response.rb +108 -0
- data/lib/amocrm/models/custom_field_group_update_by_id_params.rb +32 -0
- data/lib/amocrm/models/custom_field_group_update_by_id_response.rb +45 -0
- data/lib/amocrm/models/custom_field_list_params.rb +26 -0
- data/lib/amocrm/models/custom_field_list_response.rb +161 -0
- data/lib/amocrm/models/custom_field_update_by_id_params.rb +86 -0
- data/lib/amocrm/models/custom_field_update_by_id_response.rb +45 -0
- data/lib/amocrm/models/custom_field_update_params.rb +108 -0
- data/lib/amocrm/models/custom_field_update_response.rb +45 -0
- data/lib/amocrm/models/customer_bonus_point_change_params.rb +26 -0
- data/lib/amocrm/models/customer_bonus_point_change_response.rb +55 -0
- data/lib/amocrm/models/customer_create_params.rb +256 -0
- data/lib/amocrm/models/customer_create_response.rb +95 -0
- data/lib/amocrm/models/customer_get_by_id_params.rb +22 -0
- data/lib/amocrm/models/customer_get_by_id_response.rb +378 -0
- data/lib/amocrm/models/customer_list_params.rb +68 -0
- data/lib/amocrm/models/customer_list_response.rb +413 -0
- data/lib/amocrm/models/customer_segment_create_params.rb +117 -0
- data/lib/amocrm/models/customer_segment_create_response.rb +96 -0
- data/lib/amocrm/models/customer_segment_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/customer_segment_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/customer_segment_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/customer_segment_get_by_id_response.rb +162 -0
- data/lib/amocrm/models/customer_segment_list_params.rb +14 -0
- data/lib/amocrm/models/customer_segment_list_response.rb +199 -0
- data/lib/amocrm/models/customer_segment_update_by_id_params.rb +101 -0
- data/lib/amocrm/models/customer_segment_update_by_id_response.rb +45 -0
- data/lib/amocrm/models/customer_status_create_params.rb +48 -0
- data/lib/amocrm/models/customer_status_create_response.rb +96 -0
- data/lib/amocrm/models/customer_status_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/customer_status_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/customer_status_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/customer_status_get_by_id_response.rb +79 -0
- data/lib/amocrm/models/customer_status_list_params.rb +14 -0
- data/lib/amocrm/models/customer_status_list_response.rb +108 -0
- data/lib/amocrm/models/customer_status_update_by_id_params.rb +32 -0
- data/lib/amocrm/models/customer_status_update_by_id_response.rb +45 -0
- data/lib/amocrm/models/customer_transaction_create_params.rb +60 -0
- data/lib/amocrm/models/customer_transaction_create_response.rb +100 -0
- data/lib/amocrm/models/customer_transaction_delete_by_id_params.rb +20 -0
- data/lib/amocrm/models/customer_transaction_delete_by_id_response.rb +45 -0
- data/lib/amocrm/models/customer_transaction_list_by_customer_params.rb +32 -0
- data/lib/amocrm/models/customer_transaction_list_by_customer_response.rb +130 -0
- data/lib/amocrm/models/customer_transaction_list_params.rb +32 -0
- data/lib/amocrm/models/customer_transaction_list_response.rb +126 -0
- data/lib/amocrm/models/customer_update_by_id_params.rb +264 -0
- data/lib/amocrm/models/customer_update_by_id_response.rb +95 -0
- data/lib/amocrm/models/customer_update_params.rb +284 -0
- data/lib/amocrm/models/customer_update_response.rb +95 -0
- data/lib/amocrm/models/customers_mode_set_mode_params.rb +36 -0
- data/lib/amocrm/models/customers_mode_set_mode_response.rb +72 -0
- data/lib/amocrm/models/entity_follower_add_params.rb +48 -0
- data/lib/amocrm/models/entity_follower_add_response.rb +90 -0
- data/lib/amocrm/models/entity_follower_list_params.rb +44 -0
- data/lib/amocrm/models/entity_follower_list_response.rb +114 -0
- data/lib/amocrm/models/entity_follower_remove_params.rb +48 -0
- data/lib/amocrm/models/entity_follower_remove_response.rb +61 -0
- data/lib/amocrm/models/entity_link_link_by_entity_params.rb +134 -0
- data/lib/amocrm/models/entity_link_link_by_entity_response.rb +61 -0
- data/lib/amocrm/models/entity_link_link_params.rb +128 -0
- data/lib/amocrm/models/entity_link_link_response.rb +61 -0
- data/lib/amocrm/models/entity_link_list_by_entity_params.rb +32 -0
- data/lib/amocrm/models/entity_link_list_by_entity_response.rb +181 -0
- data/lib/amocrm/models/entity_link_list_params.rb +32 -0
- data/lib/amocrm/models/entity_link_list_response.rb +181 -0
- data/lib/amocrm/models/entity_link_unlink_by_entity_params.rb +134 -0
- data/lib/amocrm/models/entity_link_unlink_by_entity_response.rb +61 -0
- data/lib/amocrm/models/entity_link_unlink_params.rb +128 -0
- data/lib/amocrm/models/entity_link_unlink_response.rb +61 -0
- data/lib/amocrm/models/entity_note_create_params.rb +99 -0
- data/lib/amocrm/models/entity_note_create_response.rb +107 -0
- data/lib/amocrm/models/entity_note_get_by_id_params.rb +38 -0
- data/lib/amocrm/models/entity_note_get_by_id_response.rb +127 -0
- data/lib/amocrm/models/entity_note_list_params.rb +44 -0
- data/lib/amocrm/models/entity_note_list_response.rb +161 -0
- data/lib/amocrm/models/entity_note_pin_params.rb +32 -0
- data/lib/amocrm/models/entity_note_pin_response.rb +61 -0
- data/lib/amocrm/models/entity_note_unpin_params.rb +32 -0
- data/lib/amocrm/models/entity_note_unpin_response.rb +61 -0
- data/lib/amocrm/models/entity_note_update_by_id_params.rb +62 -0
- data/lib/amocrm/models/entity_note_update_by_id_response.rb +107 -0
- data/lib/amocrm/models/entity_note_update_params.rb +78 -0
- data/lib/amocrm/models/entity_note_update_response.rb +107 -0
- data/lib/amocrm/models/entity_notes_by_parent_create_by_parent_params.rb +106 -0
- data/lib/amocrm/models/entity_notes_by_parent_create_by_parent_response.rb +108 -0
- data/lib/amocrm/models/entity_notes_by_parent_get_by_parent_id_params.rb +44 -0
- data/lib/amocrm/models/entity_notes_by_parent_get_by_parent_id_response.rb +127 -0
- data/lib/amocrm/models/entity_notes_by_parent_list_by_parent_params.rb +50 -0
- data/lib/amocrm/models/entity_notes_by_parent_list_by_parent_response.rb +162 -0
- data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rb +62 -0
- data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_id_response.rb +108 -0
- data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_params.rb +85 -0
- data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_response.rb +108 -0
- data/lib/amocrm/models/event_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/event_get_by_id_response.rb +103 -0
- data/lib/amocrm/models/event_list_params.rb +38 -0
- data/lib/amocrm/models/event_list_response.rb +137 -0
- data/lib/amocrm/models/event_list_types_params.rb +20 -0
- data/lib/amocrm/models/event_list_types_response.rb +66 -0
- data/lib/amocrm/models/lead_create_complex_params.rb +567 -0
- data/lib/amocrm/models/lead_create_complex_response.rb +107 -0
- data/lib/amocrm/models/lead_create_params.rb +565 -0
- data/lib/amocrm/models/lead_create_response.rb +95 -0
- data/lib/amocrm/models/lead_get_by_id_params.rb +22 -0
- data/lib/amocrm/models/lead_get_by_id_response.rb +426 -0
- data/lib/amocrm/models/lead_list_params.rb +74 -0
- data/lib/amocrm/models/lead_list_response.rb +463 -0
- data/lib/amocrm/models/lead_update_by_id_params.rb +546 -0
- data/lib/amocrm/models/lead_update_by_id_response.rb +95 -0
- data/lib/amocrm/models/lead_update_params.rb +564 -0
- data/lib/amocrm/models/lead_update_response.rb +95 -0
- data/lib/amocrm/models/pipeline_create_params.rb +129 -0
- data/lib/amocrm/models/pipeline_create_response.rb +95 -0
- data/lib/amocrm/models/pipeline_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/pipeline_delete_by_id_response.rb +61 -0
- data/lib/amocrm/models/pipeline_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/pipeline_get_by_id_response.rb +239 -0
- data/lib/amocrm/models/pipeline_list_params.rb +14 -0
- data/lib/amocrm/models/pipeline_list_response.rb +272 -0
- data/lib/amocrm/models/pipeline_status_create_params.rb +77 -0
- data/lib/amocrm/models/pipeline_status_create_response.rb +95 -0
- data/lib/amocrm/models/pipeline_status_delete_by_id_params.rb +20 -0
- data/lib/amocrm/models/pipeline_status_delete_by_id_response.rb +61 -0
- data/lib/amocrm/models/pipeline_status_get_by_id_params.rb +29 -0
- data/lib/amocrm/models/pipeline_status_get_by_id_response.rb +169 -0
- data/lib/amocrm/models/pipeline_status_list_params.rb +22 -0
- data/lib/amocrm/models/pipeline_status_list_response.rb +197 -0
- data/lib/amocrm/models/pipeline_status_update_by_id_params.rb +73 -0
- data/lib/amocrm/models/pipeline_status_update_by_id_response.rb +102 -0
- data/lib/amocrm/models/pipeline_status_update_params.rb +83 -0
- data/lib/amocrm/models/pipeline_status_update_response.rb +101 -0
- data/lib/amocrm/models/pipeline_update_by_id_params.rb +50 -0
- data/lib/amocrm/models/pipeline_update_by_id_response.rb +101 -0
- data/lib/amocrm/models/pipeline_update_params.rb +66 -0
- data/lib/amocrm/models/pipeline_update_response.rb +101 -0
- data/lib/amocrm/models/role_create_params.rb +151 -0
- data/lib/amocrm/models/role_create_response.rb +249 -0
- data/lib/amocrm/models/role_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/role_delete_by_id_response.rb +61 -0
- data/lib/amocrm/models/role_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/role_get_by_id_response.rb +208 -0
- data/lib/amocrm/models/role_list_params.rb +32 -0
- data/lib/amocrm/models/role_list_response.rb +254 -0
- data/lib/amocrm/models/role_update_by_id_params.rb +138 -0
- data/lib/amocrm/models/role_update_by_id_response.rb +208 -0
- data/lib/amocrm/models/salesbot_run_params.rb +42 -0
- data/lib/amocrm/models/salesbot_run_response.rb +91 -0
- data/lib/amocrm/models/short_link_create_params.rb +20 -0
- data/lib/amocrm/models/short_link_create_response.rb +55 -0
- data/lib/amocrm/models/source_create_params.rb +84 -0
- data/lib/amocrm/models/source_create_response.rb +171 -0
- data/lib/amocrm/models/source_delete_by_id_params.rb +14 -0
- data/lib/amocrm/models/source_delete_by_id_response.rb +61 -0
- data/lib/amocrm/models/source_delete_params.rb +30 -0
- data/lib/amocrm/models/source_delete_response.rb +61 -0
- data/lib/amocrm/models/source_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/source_get_by_id_response.rb +129 -0
- data/lib/amocrm/models/source_list_params.rb +65 -0
- data/lib/amocrm/models/source_list_response.rb +165 -0
- data/lib/amocrm/models/source_update_by_id_params.rb +73 -0
- data/lib/amocrm/models/source_update_by_id_response.rb +171 -0
- data/lib/amocrm/models/source_update_params.rb +90 -0
- data/lib/amocrm/models/source_update_response.rb +171 -0
- data/lib/amocrm/models/tag_create_params.rb +54 -0
- data/lib/amocrm/models/tag_create_response.rb +101 -0
- data/lib/amocrm/models/tag_list_params.rb +50 -0
- data/lib/amocrm/models/tag_list_response.rb +101 -0
- data/lib/amocrm/models/talk_close_params.rb +22 -0
- data/lib/amocrm/models/talk_close_response.rb +61 -0
- data/lib/amocrm/models/talk_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/talk_get_by_id_response.rb +213 -0
- data/lib/amocrm/models/task_create_params.rb +87 -0
- data/lib/amocrm/models/task_create_response.rb +95 -0
- data/lib/amocrm/models/task_get_by_id_params.rb +14 -0
- data/lib/amocrm/models/task_get_by_id_response.rb +173 -0
- data/lib/amocrm/models/task_list_params.rb +66 -0
- data/lib/amocrm/models/task_list_response.rb +207 -0
- data/lib/amocrm/models/task_update_by_id_params.rb +72 -0
- data/lib/amocrm/models/task_update_by_id_response.rb +95 -0
- data/lib/amocrm/models/task_update_params.rb +98 -0
- data/lib/amocrm/models/task_update_response.rb +95 -0
- data/lib/amocrm/models/unsorted_lead_accept_params.rb +30 -0
- data/lib/amocrm/models/unsorted_lead_accept_response.rb +167 -0
- data/lib/amocrm/models/unsorted_lead_create_forms_params.rb +873 -0
- data/lib/amocrm/models/unsorted_lead_create_forms_response.rb +200 -0
- data/lib/amocrm/models/unsorted_lead_decline_params.rb +22 -0
- data/lib/amocrm/models/unsorted_lead_decline_response.rb +167 -0
- data/lib/amocrm/models/user_create_params.rb +169 -0
- data/lib/amocrm/models/user_create_response.rb +473 -0
- data/lib/amocrm/models/user_get_by_id_params.rb +20 -0
- data/lib/amocrm/models/user_get_by_id_response.rb +426 -0
- data/lib/amocrm/models/user_list_params.rb +32 -0
- data/lib/amocrm/models/user_list_response.rb +474 -0
- data/lib/amocrm/models/webhook_list_params.rb +30 -0
- data/lib/amocrm/models/webhook_list_response.rb +137 -0
- data/lib/amocrm/models/webhook_subscribe_params.rb +32 -0
- data/lib/amocrm/models/webhook_subscribe_response.rb +103 -0
- data/lib/amocrm/models/webhook_unsubscribe_params.rb +20 -0
- data/lib/amocrm/models/webhook_unsubscribe_response.rb +61 -0
- data/lib/amocrm/models/website_button_connect_online_chat_params.rb +14 -0
- data/lib/amocrm/models/website_button_connect_online_chat_response.rb +61 -0
- data/lib/amocrm/models/website_button_create_params.rb +32 -0
- data/lib/amocrm/models/website_button_create_response.rb +61 -0
- data/lib/amocrm/models/website_button_get_by_source_id_params.rb +20 -0
- data/lib/amocrm/models/website_button_get_by_source_id_response.rb +97 -0
- data/lib/amocrm/models/website_button_list_params.rb +32 -0
- data/lib/amocrm/models/website_button_list_response.rb +131 -0
- data/lib/amocrm/models/website_button_update_params.rb +30 -0
- data/lib/amocrm/models/website_button_update_response.rb +97 -0
- data/lib/amocrm/models/widget_bot_continue_continue_params.rb +65 -0
- data/lib/amocrm/models/widget_bot_continue_continue_response.rb +61 -0
- data/lib/amocrm/models/widget_get_by_code_params.rb +14 -0
- data/lib/amocrm/models/widget_get_by_code_response.rb +180 -0
- data/lib/amocrm/models/widget_install_params.rb +20 -0
- data/lib/amocrm/models/widget_install_response.rb +180 -0
- data/lib/amocrm/models/widget_list_params.rb +26 -0
- data/lib/amocrm/models/widget_list_response.rb +218 -0
- data/lib/amocrm/models/widget_uninstall_params.rb +14 -0
- data/lib/amocrm/models/widget_uninstall_response.rb +61 -0
- data/lib/amocrm/models.rb +140 -140
- data/lib/amocrm/resources/account.rb +36 -0
- data/lib/amocrm/resources/calls.rb +35 -0
- data/lib/amocrm/resources/catalog_elements.rb +147 -0
- data/lib/amocrm/resources/catalogs.rb +123 -0
- data/lib/amocrm/resources/companies.rb +154 -0
- data/lib/amocrm/resources/contact_chats.rb +56 -0
- data/lib/amocrm/resources/contacts.rb +158 -0
- data/lib/amocrm/resources/custom_field_groups.rb +141 -0
- data/lib/amocrm/resources/custom_fields.rb +181 -0
- data/lib/amocrm/resources/customer_bonus_points.rb +37 -0
- data/lib/amocrm/resources/customer_segments.rb +115 -0
- data/lib/amocrm/resources/customer_statuses.rb +115 -0
- data/lib/amocrm/resources/customer_transactions.rb +113 -0
- data/lib/amocrm/resources/customers.rb +146 -0
- data/lib/amocrm/resources/customers_mode.rb +36 -0
- data/lib/amocrm/resources/entity_followers.rb +106 -0
- data/lib/amocrm/resources/entity_links.rb +165 -0
- data/lib/amocrm/resources/entity_notes.rb +200 -0
- data/lib/amocrm/resources/entity_notes_by_parent.rb +186 -0
- data/lib/amocrm/resources/events.rb +81 -0
- data/lib/amocrm/resources/leads.rb +181 -0
- data/lib/amocrm/resources/pipeline_statuses.rb +178 -0
- data/lib/amocrm/resources/pipelines.rb +139 -0
- data/lib/amocrm/resources/roles.rb +123 -0
- data/lib/amocrm/resources/salesbot.rb +35 -0
- data/lib/amocrm/resources/short_links.rb +35 -0
- data/lib/amocrm/resources/sources.rb +164 -0
- data/lib/amocrm/resources/tags.rb +61 -0
- data/lib/amocrm/resources/talks.rb +57 -0
- data/lib/amocrm/resources/tasks.rb +134 -0
- data/lib/amocrm/resources/unsorted_leads.rb +79 -0
- data/lib/amocrm/resources/users.rb +80 -0
- data/lib/amocrm/resources/webhooks.rb +79 -0
- data/lib/amocrm/resources/website_buttons.rb +123 -0
- data/lib/amocrm/resources/widget_bot_continue.rb +50 -0
- data/lib/amocrm/resources/widgets.rb +96 -0
- data/lib/amocrm/version.rb +1 -1
- data/lib/amocrm.rb +316 -282
- data/rbi/amocrm/client.rbi +106 -4
- data/rbi/amocrm/models/account_get_params.rbi +43 -0
- data/rbi/amocrm/models/account_get_response.rbi +847 -0
- data/rbi/amocrm/models/call_create_params.rbi +257 -0
- data/rbi/amocrm/models/call_create_response.rbi +398 -0
- data/rbi/amocrm/models/catalog_create_params.rbi +168 -0
- data/rbi/amocrm/models/catalog_create_response.rbi +450 -0
- data/rbi/amocrm/models/catalog_element_create_params.rbi +230 -0
- data/rbi/amocrm/models/catalog_element_create_response.rbi +566 -0
- data/rbi/amocrm/models/catalog_element_get_by_id_params.rbi +52 -0
- data/rbi/amocrm/models/catalog_element_get_by_id_response.rbi +445 -0
- data/rbi/amocrm/models/catalog_element_list_params.rbi +89 -0
- data/rbi/amocrm/models/catalog_element_list_response.rbi +565 -0
- data/rbi/amocrm/models/catalog_element_update_by_id_params.rbi +214 -0
- data/rbi/amocrm/models/catalog_element_update_by_id_response.rbi +566 -0
- data/rbi/amocrm/models/catalog_element_update_params.rbi +238 -0
- data/rbi/amocrm/models/catalog_element_update_response.rbi +566 -0
- data/rbi/amocrm/models/catalog_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/catalog_get_by_id_response.rbi +331 -0
- data/rbi/amocrm/models/catalog_list_params.rbi +49 -0
- data/rbi/amocrm/models/catalog_list_response.rbi +449 -0
- data/rbi/amocrm/models/catalog_update_by_id_params.rbi +80 -0
- data/rbi/amocrm/models/catalog_update_by_id_response.rbi +450 -0
- data/rbi/amocrm/models/catalog_update_params.rbi +113 -0
- data/rbi/amocrm/models/catalog_update_response.rbi +450 -0
- data/rbi/amocrm/models/company_create_params.rbi +471 -0
- data/rbi/amocrm/models/company_create_response.rbi +234 -0
- data/rbi/amocrm/models/company_get_by_id_params.rbi +43 -0
- data/rbi/amocrm/models/company_get_by_id_response.rbi +741 -0
- data/rbi/amocrm/models/company_list_params.rbi +114 -0
- data/rbi/amocrm/models/company_list_response.rbi +869 -0
- data/rbi/amocrm/models/company_update_by_id_params.rbi +474 -0
- data/rbi/amocrm/models/company_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/company_update_params.rbi +522 -0
- data/rbi/amocrm/models/company_update_response.rbi +234 -0
- data/rbi/amocrm/models/contact_chat_link_params.rbi +78 -0
- data/rbi/amocrm/models/contact_chat_link_response.rbi +228 -0
- data/rbi/amocrm/models/contact_chat_list_params.rbi +38 -0
- data/rbi/amocrm/models/contact_chat_list_response.rbi +228 -0
- data/rbi/amocrm/models/contact_create_params.rbi +489 -0
- data/rbi/amocrm/models/contact_create_response.rbi +234 -0
- data/rbi/amocrm/models/contact_get_by_id_params.rbi +43 -0
- data/rbi/amocrm/models/contact_get_by_id_response.rbi +777 -0
- data/rbi/amocrm/models/contact_list_params.rbi +114 -0
- data/rbi/amocrm/models/contact_list_response.rbi +905 -0
- data/rbi/amocrm/models/contact_update_by_id_params.rbi +492 -0
- data/rbi/amocrm/models/contact_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/contact_update_params.rbi +540 -0
- data/rbi/amocrm/models/contact_update_response.rbi +234 -0
- data/rbi/amocrm/models/custom_field_create_params.rbi +169 -0
- data/rbi/amocrm/models/custom_field_create_response.rbi +232 -0
- data/rbi/amocrm/models/custom_field_delete_by_id_params.rbi +35 -0
- data/rbi/amocrm/models/custom_field_delete_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/custom_field_get_by_id_params.rbi +35 -0
- data/rbi/amocrm/models/custom_field_get_by_id_response.rbi +222 -0
- data/rbi/amocrm/models/custom_field_group_create_params.rbi +83 -0
- data/rbi/amocrm/models/custom_field_group_create_response.rbi +232 -0
- data/rbi/amocrm/models/custom_field_group_delete_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/custom_field_group_delete_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/custom_field_group_get_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/custom_field_group_get_by_id_response.rbi +136 -0
- data/rbi/amocrm/models/custom_field_group_list_params.rbi +49 -0
- data/rbi/amocrm/models/custom_field_group_list_response.rbi +254 -0
- data/rbi/amocrm/models/custom_field_group_update_by_id_params.rbi +57 -0
- data/rbi/amocrm/models/custom_field_group_update_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/custom_field_list_params.rbi +49 -0
- data/rbi/amocrm/models/custom_field_list_response.rbi +340 -0
- data/rbi/amocrm/models/custom_field_update_by_id_params.rbi +140 -0
- data/rbi/amocrm/models/custom_field_update_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/custom_field_update_params.rbi +172 -0
- data/rbi/amocrm/models/custom_field_update_response.rbi +75 -0
- data/rbi/amocrm/models/customer_bonus_point_change_params.rbi +46 -0
- data/rbi/amocrm/models/customer_bonus_point_change_response.rbi +102 -0
- data/rbi/amocrm/models/customer_create_params.rbi +558 -0
- data/rbi/amocrm/models/customer_create_response.rbi +234 -0
- data/rbi/amocrm/models/customer_get_by_id_params.rbi +43 -0
- data/rbi/amocrm/models/customer_get_by_id_response.rbi +824 -0
- data/rbi/amocrm/models/customer_list_params.rbi +105 -0
- data/rbi/amocrm/models/customer_list_response.rbi +950 -0
- data/rbi/amocrm/models/customer_segment_create_params.rbi +265 -0
- data/rbi/amocrm/models/customer_segment_create_response.rbi +234 -0
- data/rbi/amocrm/models/customer_segment_delete_by_id_params.rbi +30 -0
- data/rbi/amocrm/models/customer_segment_delete_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/customer_segment_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/customer_segment_get_by_id_response.rbi +329 -0
- data/rbi/amocrm/models/customer_segment_list_params.rbi +27 -0
- data/rbi/amocrm/models/customer_segment_list_response.rbi +439 -0
- data/rbi/amocrm/models/customer_segment_update_by_id_params.rbi +230 -0
- data/rbi/amocrm/models/customer_segment_update_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/customer_status_create_params.rbi +88 -0
- data/rbi/amocrm/models/customer_status_create_response.rbi +234 -0
- data/rbi/amocrm/models/customer_status_delete_by_id_params.rbi +30 -0
- data/rbi/amocrm/models/customer_status_delete_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/customer_status_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/customer_status_get_by_id_response.rbi +144 -0
- data/rbi/amocrm/models/customer_status_list_params.rbi +27 -0
- data/rbi/amocrm/models/customer_status_list_response.rbi +254 -0
- data/rbi/amocrm/models/customer_status_update_by_id_params.rbi +60 -0
- data/rbi/amocrm/models/customer_status_update_by_id_response.rbi +78 -0
- data/rbi/amocrm/models/customer_transaction_create_params.rbi +118 -0
- data/rbi/amocrm/models/customer_transaction_create_response.rbi +234 -0
- data/rbi/amocrm/models/customer_transaction_delete_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/customer_transaction_delete_by_id_response.rbi +80 -0
- data/rbi/amocrm/models/customer_transaction_list_by_customer_params.rbi +60 -0
- data/rbi/amocrm/models/customer_transaction_list_by_customer_response.rbi +288 -0
- data/rbi/amocrm/models/customer_transaction_list_params.rbi +60 -0
- data/rbi/amocrm/models/customer_transaction_list_response.rbi +286 -0
- data/rbi/amocrm/models/customer_update_by_id_params.rbi +552 -0
- data/rbi/amocrm/models/customer_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/customer_update_params.rbi +598 -0
- data/rbi/amocrm/models/customer_update_response.rbi +234 -0
- data/rbi/amocrm/models/customers_mode_set_mode_params.rbi +72 -0
- data/rbi/amocrm/models/customers_mode_set_mode_response.rbi +167 -0
- data/rbi/amocrm/models/entity_follower_add_params.rbi +103 -0
- data/rbi/amocrm/models/entity_follower_add_response.rbi +220 -0
- data/rbi/amocrm/models/entity_follower_list_params.rbi +93 -0
- data/rbi/amocrm/models/entity_follower_list_response.rbi +267 -0
- data/rbi/amocrm/models/entity_follower_remove_params.rbi +106 -0
- data/rbi/amocrm/models/entity_follower_remove_response.rbi +112 -0
- data/rbi/amocrm/models/entity_link_link_by_entity_params.rbi +314 -0
- data/rbi/amocrm/models/entity_link_link_by_entity_response.rbi +112 -0
- data/rbi/amocrm/models/entity_link_link_params.rbi +289 -0
- data/rbi/amocrm/models/entity_link_link_response.rbi +112 -0
- data/rbi/amocrm/models/entity_link_list_by_entity_params.rbi +83 -0
- data/rbi/amocrm/models/entity_link_list_by_entity_response.rbi +402 -0
- data/rbi/amocrm/models/entity_link_list_params.rbi +74 -0
- data/rbi/amocrm/models/entity_link_list_response.rbi +402 -0
- data/rbi/amocrm/models/entity_link_unlink_by_entity_params.rbi +317 -0
- data/rbi/amocrm/models/entity_link_unlink_by_entity_response.rbi +112 -0
- data/rbi/amocrm/models/entity_link_unlink_params.rbi +297 -0
- data/rbi/amocrm/models/entity_link_unlink_response.rbi +112 -0
- data/rbi/amocrm/models/entity_note_create_params.rbi +184 -0
- data/rbi/amocrm/models/entity_note_create_response.rbi +260 -0
- data/rbi/amocrm/models/entity_note_get_by_id_params.rbi +85 -0
- data/rbi/amocrm/models/entity_note_get_by_id_response.rbi +222 -0
- data/rbi/amocrm/models/entity_note_list_params.rbi +93 -0
- data/rbi/amocrm/models/entity_note_list_response.rbi +340 -0
- data/rbi/amocrm/models/entity_note_pin_params.rbi +74 -0
- data/rbi/amocrm/models/entity_note_pin_response.rbi +112 -0
- data/rbi/amocrm/models/entity_note_unpin_params.rbi +74 -0
- data/rbi/amocrm/models/entity_note_unpin_response.rbi +112 -0
- data/rbi/amocrm/models/entity_note_update_by_id_params.rbi +128 -0
- data/rbi/amocrm/models/entity_note_update_by_id_response.rbi +260 -0
- data/rbi/amocrm/models/entity_note_update_params.rbi +157 -0
- data/rbi/amocrm/models/entity_note_update_response.rbi +260 -0
- data/rbi/amocrm/models/entity_notes_by_parent_create_by_parent_params.rbi +209 -0
- data/rbi/amocrm/models/entity_notes_by_parent_create_by_parent_response.rbi +262 -0
- data/rbi/amocrm/models/entity_notes_by_parent_get_by_parent_id_params.rbi +104 -0
- data/rbi/amocrm/models/entity_notes_by_parent_get_by_parent_id_response.rbi +224 -0
- data/rbi/amocrm/models/entity_notes_by_parent_list_by_parent_params.rbi +121 -0
- data/rbi/amocrm/models/entity_notes_by_parent_list_by_parent_response.rbi +342 -0
- data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rbi +139 -0
- data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_id_response.rbi +262 -0
- data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_params.rbi +182 -0
- data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_response.rbi +262 -0
- data/rbi/amocrm/models/event_get_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/event_get_by_id_response.rbi +186 -0
- data/rbi/amocrm/models/event_list_params.rbi +71 -0
- data/rbi/amocrm/models/event_list_response.rbi +302 -0
- data/rbi/amocrm/models/event_list_types_params.rbi +38 -0
- data/rbi/amocrm/models/event_list_types_response.rbi +149 -0
- data/rbi/amocrm/models/lead_create_complex_params.rbi +1215 -0
- data/rbi/amocrm/models/lead_create_complex_response.rbi +260 -0
- data/rbi/amocrm/models/lead_create_params.rbi +1179 -0
- data/rbi/amocrm/models/lead_create_response.rbi +232 -0
- data/rbi/amocrm/models/lead_get_by_id_params.rbi +43 -0
- data/rbi/amocrm/models/lead_get_by_id_response.rbi +921 -0
- data/rbi/amocrm/models/lead_list_params.rbi +114 -0
- data/rbi/amocrm/models/lead_list_response.rbi +1044 -0
- data/rbi/amocrm/models/lead_update_by_id_params.rbi +1129 -0
- data/rbi/amocrm/models/lead_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/lead_update_params.rbi +1197 -0
- data/rbi/amocrm/models/lead_update_response.rbi +232 -0
- data/rbi/amocrm/models/pipeline_create_params.rbi +302 -0
- data/rbi/amocrm/models/pipeline_create_response.rbi +234 -0
- data/rbi/amocrm/models/pipeline_delete_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/pipeline_delete_by_id_response.rbi +112 -0
- data/rbi/amocrm/models/pipeline_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/pipeline_get_by_id_response.rbi +494 -0
- data/rbi/amocrm/models/pipeline_list_params.rbi +27 -0
- data/rbi/amocrm/models/pipeline_list_response.rbi +604 -0
- data/rbi/amocrm/models/pipeline_status_create_params.rbi +168 -0
- data/rbi/amocrm/models/pipeline_status_create_response.rbi +234 -0
- data/rbi/amocrm/models/pipeline_status_delete_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/pipeline_status_delete_by_id_response.rbi +112 -0
- data/rbi/amocrm/models/pipeline_status_get_by_id_params.rbi +52 -0
- data/rbi/amocrm/models/pipeline_status_get_by_id_response.rbi +318 -0
- data/rbi/amocrm/models/pipeline_status_list_params.rbi +43 -0
- data/rbi/amocrm/models/pipeline_status_list_response.rbi +428 -0
- data/rbi/amocrm/models/pipeline_status_update_by_id_params.rbi +148 -0
- data/rbi/amocrm/models/pipeline_status_update_by_id_response.rbi +246 -0
- data/rbi/amocrm/models/pipeline_status_update_params.rbi +177 -0
- data/rbi/amocrm/models/pipeline_status_update_response.rbi +246 -0
- data/rbi/amocrm/models/pipeline_update_by_id_params.rbi +89 -0
- data/rbi/amocrm/models/pipeline_update_by_id_response.rbi +246 -0
- data/rbi/amocrm/models/pipeline_update_params.rbi +122 -0
- data/rbi/amocrm/models/pipeline_update_response.rbi +246 -0
- data/rbi/amocrm/models/role_create_params.rbi +289 -0
- data/rbi/amocrm/models/role_create_response.rbi +587 -0
- data/rbi/amocrm/models/role_delete_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/role_delete_by_id_response.rbi +112 -0
- data/rbi/amocrm/models/role_get_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/role_get_by_id_response.rbi +452 -0
- data/rbi/amocrm/models/role_list_params.rbi +57 -0
- data/rbi/amocrm/models/role_list_response.rbi +600 -0
- data/rbi/amocrm/models/role_update_by_id_params.rbi +264 -0
- data/rbi/amocrm/models/role_update_by_id_response.rbi +454 -0
- data/rbi/amocrm/models/salesbot_run_params.rbi +72 -0
- data/rbi/amocrm/models/salesbot_run_response.rbi +212 -0
- data/rbi/amocrm/models/short_link_create_params.rbi +35 -0
- data/rbi/amocrm/models/short_link_create_response.rbi +102 -0
- data/rbi/amocrm/models/source_create_params.rbi +148 -0
- data/rbi/amocrm/models/source_create_response.rbi +371 -0
- data/rbi/amocrm/models/source_delete_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/source_delete_by_id_response.rbi +112 -0
- data/rbi/amocrm/models/source_delete_params.rbi +56 -0
- data/rbi/amocrm/models/source_delete_response.rbi +112 -0
- data/rbi/amocrm/models/source_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/source_get_by_id_response.rbi +242 -0
- data/rbi/amocrm/models/source_list_params.rbi +130 -0
- data/rbi/amocrm/models/source_list_response.rbi +360 -0
- data/rbi/amocrm/models/source_update_by_id_params.rbi +125 -0
- data/rbi/amocrm/models/source_update_by_id_response.rbi +371 -0
- data/rbi/amocrm/models/source_update_params.rbi +160 -0
- data/rbi/amocrm/models/source_update_response.rbi +371 -0
- data/rbi/amocrm/models/tag_create_params.rbi +98 -0
- data/rbi/amocrm/models/tag_create_response.rbi +239 -0
- data/rbi/amocrm/models/tag_list_params.rbi +93 -0
- data/rbi/amocrm/models/tag_list_response.rbi +236 -0
- data/rbi/amocrm/models/talk_close_params.rbi +43 -0
- data/rbi/amocrm/models/talk_close_response.rbi +110 -0
- data/rbi/amocrm/models/talk_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/talk_get_by_id_response.rbi +450 -0
- data/rbi/amocrm/models/task_create_params.rbi +142 -0
- data/rbi/amocrm/models/task_create_response.rbi +232 -0
- data/rbi/amocrm/models/task_get_by_id_params.rbi +27 -0
- data/rbi/amocrm/models/task_get_by_id_response.rbi +323 -0
- data/rbi/amocrm/models/task_list_params.rbi +103 -0
- data/rbi/amocrm/models/task_list_response.rbi +439 -0
- data/rbi/amocrm/models/task_update_by_id_params.rbi +131 -0
- data/rbi/amocrm/models/task_update_by_id_response.rbi +234 -0
- data/rbi/amocrm/models/task_update_params.rbi +168 -0
- data/rbi/amocrm/models/task_update_response.rbi +232 -0
- data/rbi/amocrm/models/unsorted_lead_accept_params.rbi +57 -0
- data/rbi/amocrm/models/unsorted_lead_accept_response.rbi +429 -0
- data/rbi/amocrm/models/unsorted_lead_create_forms_params.rbi +1896 -0
- data/rbi/amocrm/models/unsorted_lead_create_forms_response.rbi +490 -0
- data/rbi/amocrm/models/unsorted_lead_decline_params.rbi +43 -0
- data/rbi/amocrm/models/unsorted_lead_decline_response.rbi +429 -0
- data/rbi/amocrm/models/user_create_params.rbi +314 -0
- data/rbi/amocrm/models/user_create_response.rbi +1060 -0
- data/rbi/amocrm/models/user_get_by_id_params.rbi +38 -0
- data/rbi/amocrm/models/user_get_by_id_response.rbi +925 -0
- data/rbi/amocrm/models/user_list_params.rbi +57 -0
- data/rbi/amocrm/models/user_list_response.rbi +1073 -0
- data/rbi/amocrm/models/webhook_list_params.rbi +62 -0
- data/rbi/amocrm/models/webhook_list_response.rbi +304 -0
- data/rbi/amocrm/models/webhook_subscribe_params.rbi +51 -0
- data/rbi/amocrm/models/webhook_subscribe_response.rbi +186 -0
- data/rbi/amocrm/models/webhook_unsubscribe_params.rbi +35 -0
- data/rbi/amocrm/models/webhook_unsubscribe_response.rbi +112 -0
- data/rbi/amocrm/models/website_button_connect_online_chat_params.rbi +30 -0
- data/rbi/amocrm/models/website_button_connect_online_chat_response.rbi +114 -0
- data/rbi/amocrm/models/website_button_create_params.rbi +59 -0
- data/rbi/amocrm/models/website_button_create_response.rbi +117 -0
- data/rbi/amocrm/models/website_button_get_by_source_id_params.rbi +41 -0
- data/rbi/amocrm/models/website_button_get_by_source_id_response.rbi +171 -0
- data/rbi/amocrm/models/website_button_list_params.rbi +57 -0
- data/rbi/amocrm/models/website_button_list_response.rbi +289 -0
- data/rbi/amocrm/models/website_button_update_params.rbi +69 -0
- data/rbi/amocrm/models/website_button_update_response.rbi +171 -0
- data/rbi/amocrm/models/widget_bot_continue_continue_params.rbi +151 -0
- data/rbi/amocrm/models/widget_bot_continue_continue_response.rbi +112 -0
- data/rbi/amocrm/models/widget_get_by_code_params.rbi +27 -0
- data/rbi/amocrm/models/widget_get_by_code_response.rbi +342 -0
- data/rbi/amocrm/models/widget_install_params.rbi +35 -0
- data/rbi/amocrm/models/widget_install_response.rbi +342 -0
- data/rbi/amocrm/models/widget_list_params.rbi +49 -0
- data/rbi/amocrm/models/widget_list_response.rbi +458 -0
- data/rbi/amocrm/models/widget_uninstall_params.rbi +27 -0
- data/rbi/amocrm/models/widget_uninstall_response.rbi +112 -0
- data/rbi/amocrm/models.rbi +162 -178
- data/rbi/amocrm/resources/account.rbi +26 -0
- data/rbi/amocrm/resources/calls.rbi +22 -0
- data/rbi/amocrm/resources/catalog_elements.rbi +104 -0
- data/rbi/amocrm/resources/catalogs.rbi +76 -0
- data/rbi/amocrm/resources/companies.rbi +118 -0
- data/rbi/amocrm/resources/contact_chats.rbi +32 -0
- data/rbi/amocrm/resources/contacts.rbi +122 -0
- data/rbi/amocrm/resources/custom_field_groups.rbi +80 -0
- data/rbi/amocrm/resources/custom_fields.rbi +118 -0
- data/rbi/amocrm/resources/customer_bonus_points.rbi +24 -0
- data/rbi/amocrm/resources/customer_segments.rbi +73 -0
- data/rbi/amocrm/resources/customer_statuses.rbi +70 -0
- data/rbi/amocrm/resources/customer_transactions.rbi +78 -0
- data/rbi/amocrm/resources/customers.rbi +116 -0
- data/rbi/amocrm/resources/customers_mode.rbi +23 -0
- data/rbi/amocrm/resources/entity_followers.rbi +75 -0
- data/rbi/amocrm/resources/entity_links.rbi +99 -0
- data/rbi/amocrm/resources/entity_notes.rbi +127 -0
- data/rbi/amocrm/resources/entity_notes_by_parent.rbi +154 -0
- data/rbi/amocrm/resources/events.rbi +52 -0
- data/rbi/amocrm/resources/leads.rbi +132 -0
- data/rbi/amocrm/resources/pipeline_statuses.rbi +117 -0
- data/rbi/amocrm/resources/pipelines.rbi +86 -0
- data/rbi/amocrm/resources/roles.rbi +74 -0
- data/rbi/amocrm/resources/salesbot.rbi +22 -0
- data/rbi/amocrm/resources/short_links.rbi +22 -0
- data/rbi/amocrm/resources/sources.rbi +99 -0
- data/rbi/amocrm/resources/tags.rbi +44 -0
- data/rbi/amocrm/resources/talks.rbi +38 -0
- data/rbi/amocrm/resources/tasks.rbi +97 -0
- data/rbi/amocrm/resources/unsorted_leads.rbi +54 -0
- data/rbi/amocrm/resources/users.rbi +45 -0
- data/rbi/amocrm/resources/webhooks.rbi +44 -0
- data/rbi/amocrm/resources/website_buttons.rbi +76 -0
- data/rbi/amocrm/resources/widget_bot_continue.rbi +40 -0
- data/rbi/amocrm/resources/widgets.rbi +54 -0
- data/sig/amocrm/client.rbs +70 -2
- data/sig/amocrm/models/account_get_params.rbs +22 -0
- data/sig/amocrm/models/account_get_response.rbs +479 -0
- data/sig/amocrm/models/call_create_params.rbs +150 -0
- data/sig/amocrm/models/call_create_response.rbs +207 -0
- data/sig/amocrm/models/catalog_create_params.rbs +90 -0
- data/sig/amocrm/models/catalog_create_response.rbs +241 -0
- data/sig/amocrm/models/catalog_element_create_params.rbs +124 -0
- data/sig/amocrm/models/catalog_element_create_response.rbs +303 -0
- data/sig/amocrm/models/catalog_element_get_by_id_params.rbs +30 -0
- data/sig/amocrm/models/catalog_element_get_by_id_response.rbs +243 -0
- data/sig/amocrm/models/catalog_element_list_params.rbs +59 -0
- data/sig/amocrm/models/catalog_element_list_response.rbs +303 -0
- data/sig/amocrm/models/catalog_element_update_by_id_params.rbs +116 -0
- data/sig/amocrm/models/catalog_element_update_by_id_response.rbs +303 -0
- data/sig/amocrm/models/catalog_element_update_params.rbs +131 -0
- data/sig/amocrm/models/catalog_element_update_response.rbs +303 -0
- data/sig/amocrm/models/catalog_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/catalog_get_by_id_response.rbs +185 -0
- data/sig/amocrm/models/catalog_list_params.rbs +32 -0
- data/sig/amocrm/models/catalog_list_response.rbs +241 -0
- data/sig/amocrm/models/catalog_update_by_id_params.rbs +56 -0
- data/sig/amocrm/models/catalog_update_by_id_response.rbs +241 -0
- data/sig/amocrm/models/catalog_update_params.rbs +76 -0
- data/sig/amocrm/models/catalog_update_response.rbs +241 -0
- data/sig/amocrm/models/company_create_params.rbs +245 -0
- data/sig/amocrm/models/company_create_response.rbs +121 -0
- data/sig/amocrm/models/company_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/company_get_by_id_response.rbs +366 -0
- data/sig/amocrm/models/company_list_params.rbs +73 -0
- data/sig/amocrm/models/company_list_response.rbs +422 -0
- data/sig/amocrm/models/company_update_by_id_params.rbs +244 -0
- data/sig/amocrm/models/company_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/company_update_params.rbs +268 -0
- data/sig/amocrm/models/company_update_response.rbs +121 -0
- data/sig/amocrm/models/contact_chat_link_params.rbs +48 -0
- data/sig/amocrm/models/contact_chat_link_response.rbs +122 -0
- data/sig/amocrm/models/contact_chat_list_params.rbs +22 -0
- data/sig/amocrm/models/contact_chat_list_response.rbs +122 -0
- data/sig/amocrm/models/contact_create_params.rbs +259 -0
- data/sig/amocrm/models/contact_create_response.rbs +121 -0
- data/sig/amocrm/models/contact_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/contact_get_by_id_response.rbs +394 -0
- data/sig/amocrm/models/contact_list_params.rbs +73 -0
- data/sig/amocrm/models/contact_list_response.rbs +450 -0
- data/sig/amocrm/models/contact_update_by_id_params.rbs +258 -0
- data/sig/amocrm/models/contact_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/contact_update_params.rbs +282 -0
- data/sig/amocrm/models/contact_update_response.rbs +121 -0
- data/sig/amocrm/models/custom_field_create_params.rbs +116 -0
- data/sig/amocrm/models/custom_field_create_response.rbs +121 -0
- data/sig/amocrm/models/custom_field_delete_by_id_params.rbs +23 -0
- data/sig/amocrm/models/custom_field_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/custom_field_get_by_id_params.rbs +23 -0
- data/sig/amocrm/models/custom_field_get_by_id_response.rbs +151 -0
- data/sig/amocrm/models/custom_field_group_create_params.rbs +46 -0
- data/sig/amocrm/models/custom_field_group_create_response.rbs +121 -0
- data/sig/amocrm/models/custom_field_group_delete_by_id_params.rbs +23 -0
- data/sig/amocrm/models/custom_field_group_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/custom_field_group_get_by_id_params.rbs +23 -0
- data/sig/amocrm/models/custom_field_group_get_by_id_response.rbs +83 -0
- data/sig/amocrm/models/custom_field_group_list_params.rbs +32 -0
- data/sig/amocrm/models/custom_field_group_list_response.rbs +139 -0
- data/sig/amocrm/models/custom_field_group_update_by_id_params.rbs +36 -0
- data/sig/amocrm/models/custom_field_group_update_by_id_response.rbs +47 -0
- data/sig/amocrm/models/custom_field_list_params.rbs +32 -0
- data/sig/amocrm/models/custom_field_list_response.rbs +207 -0
- data/sig/amocrm/models/custom_field_update_by_id_params.rbs +103 -0
- data/sig/amocrm/models/custom_field_update_by_id_response.rbs +47 -0
- data/sig/amocrm/models/custom_field_update_params.rbs +118 -0
- data/sig/amocrm/models/custom_field_update_response.rbs +47 -0
- data/sig/amocrm/models/customer_bonus_point_change_params.rbs +28 -0
- data/sig/amocrm/models/customer_bonus_point_change_response.rbs +60 -0
- data/sig/amocrm/models/customer_create_params.rbs +300 -0
- data/sig/amocrm/models/customer_create_response.rbs +121 -0
- data/sig/amocrm/models/customer_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/customer_get_by_id_response.rbs +429 -0
- data/sig/amocrm/models/customer_list_params.rbs +73 -0
- data/sig/amocrm/models/customer_list_response.rbs +485 -0
- data/sig/amocrm/models/customer_segment_create_params.rbs +134 -0
- data/sig/amocrm/models/customer_segment_create_response.rbs +121 -0
- data/sig/amocrm/models/customer_segment_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/customer_segment_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/customer_segment_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/customer_segment_get_by_id_response.rbs +177 -0
- data/sig/amocrm/models/customer_segment_list_params.rbs +15 -0
- data/sig/amocrm/models/customer_segment_list_response.rbs +226 -0
- data/sig/amocrm/models/customer_segment_update_by_id_params.rbs +114 -0
- data/sig/amocrm/models/customer_segment_update_by_id_response.rbs +47 -0
- data/sig/amocrm/models/customer_status_create_params.rbs +57 -0
- data/sig/amocrm/models/customer_status_create_response.rbs +121 -0
- data/sig/amocrm/models/customer_status_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/customer_status_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/customer_status_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/customer_status_get_by_id_response.rbs +95 -0
- data/sig/amocrm/models/customer_status_list_params.rbs +15 -0
- data/sig/amocrm/models/customer_status_list_response.rbs +144 -0
- data/sig/amocrm/models/customer_status_update_by_id_params.rbs +38 -0
- data/sig/amocrm/models/customer_status_update_by_id_response.rbs +47 -0
- data/sig/amocrm/models/customer_transaction_create_params.rbs +78 -0
- data/sig/amocrm/models/customer_transaction_create_response.rbs +121 -0
- data/sig/amocrm/models/customer_transaction_delete_by_id_params.rbs +23 -0
- data/sig/amocrm/models/customer_transaction_delete_by_id_response.rbs +47 -0
- data/sig/amocrm/models/customer_transaction_list_by_customer_params.rbs +38 -0
- data/sig/amocrm/models/customer_transaction_list_by_customer_response.rbs +165 -0
- data/sig/amocrm/models/customer_transaction_list_params.rbs +38 -0
- data/sig/amocrm/models/customer_transaction_list_response.rbs +165 -0
- data/sig/amocrm/models/customer_update_by_id_params.rbs +288 -0
- data/sig/amocrm/models/customer_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/customer_update_params.rbs +312 -0
- data/sig/amocrm/models/customer_update_response.rbs +121 -0
- data/sig/amocrm/models/customers_mode_set_mode_params.rbs +42 -0
- data/sig/amocrm/models/customers_mode_set_mode_response.rbs +87 -0
- data/sig/amocrm/models/entity_follower_add_params.rbs +54 -0
- data/sig/amocrm/models/entity_follower_add_response.rbs +116 -0
- data/sig/amocrm/models/entity_follower_list_params.rbs +53 -0
- data/sig/amocrm/models/entity_follower_list_response.rbs +151 -0
- data/sig/amocrm/models/entity_follower_remove_params.rbs +54 -0
- data/sig/amocrm/models/entity_follower_remove_response.rbs +64 -0
- data/sig/amocrm/models/entity_link_link_by_entity_params.rbs +122 -0
- data/sig/amocrm/models/entity_link_link_by_entity_response.rbs +64 -0
- data/sig/amocrm/models/entity_link_link_params.rbs +115 -0
- data/sig/amocrm/models/entity_link_link_response.rbs +64 -0
- data/sig/amocrm/models/entity_link_list_by_entity_params.rbs +37 -0
- data/sig/amocrm/models/entity_link_list_by_entity_response.rbs +176 -0
- data/sig/amocrm/models/entity_link_list_params.rbs +35 -0
- data/sig/amocrm/models/entity_link_list_response.rbs +176 -0
- data/sig/amocrm/models/entity_link_unlink_by_entity_params.rbs +122 -0
- data/sig/amocrm/models/entity_link_unlink_by_entity_response.rbs +64 -0
- data/sig/amocrm/models/entity_link_unlink_params.rbs +115 -0
- data/sig/amocrm/models/entity_link_unlink_response.rbs +64 -0
- data/sig/amocrm/models/entity_note_create_params.rbs +110 -0
- data/sig/amocrm/models/entity_note_create_response.rbs +144 -0
- data/sig/amocrm/models/entity_note_get_by_id_params.rbs +46 -0
- data/sig/amocrm/models/entity_note_get_by_id_response.rbs +151 -0
- data/sig/amocrm/models/entity_note_list_params.rbs +51 -0
- data/sig/amocrm/models/entity_note_list_response.rbs +207 -0
- data/sig/amocrm/models/entity_note_pin_params.rbs +37 -0
- data/sig/amocrm/models/entity_note_pin_response.rbs +64 -0
- data/sig/amocrm/models/entity_note_unpin_params.rbs +37 -0
- data/sig/amocrm/models/entity_note_unpin_response.rbs +64 -0
- data/sig/amocrm/models/entity_note_update_by_id_params.rbs +74 -0
- data/sig/amocrm/models/entity_note_update_by_id_response.rbs +144 -0
- data/sig/amocrm/models/entity_note_update_params.rbs +89 -0
- data/sig/amocrm/models/entity_note_update_response.rbs +144 -0
- data/sig/amocrm/models/entity_notes_by_parent_create_by_parent_params.rbs +117 -0
- data/sig/amocrm/models/entity_notes_by_parent_create_by_parent_response.rbs +144 -0
- data/sig/amocrm/models/entity_notes_by_parent_get_by_parent_id_params.rbs +51 -0
- data/sig/amocrm/models/entity_notes_by_parent_get_by_parent_id_response.rbs +151 -0
- data/sig/amocrm/models/entity_notes_by_parent_list_by_parent_params.rbs +60 -0
- data/sig/amocrm/models/entity_notes_by_parent_list_by_parent_response.rbs +207 -0
- data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rbs +74 -0
- data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_id_response.rbs +144 -0
- data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_params.rbs +96 -0
- data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_response.rbs +144 -0
- data/sig/amocrm/models/event_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/event_get_by_id_response.rbs +123 -0
- data/sig/amocrm/models/event_list_params.rbs +44 -0
- data/sig/amocrm/models/event_list_response.rbs +179 -0
- data/sig/amocrm/models/event_list_types_params.rbs +25 -0
- data/sig/amocrm/models/event_list_types_response.rbs +81 -0
- data/sig/amocrm/models/lead_create_complex_params.rbs +603 -0
- data/sig/amocrm/models/lead_create_complex_response.rbs +144 -0
- data/sig/amocrm/models/lead_create_params.rbs +603 -0
- data/sig/amocrm/models/lead_create_response.rbs +121 -0
- data/sig/amocrm/models/lead_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/lead_get_by_id_response.rbs +482 -0
- data/sig/amocrm/models/lead_list_params.rbs +73 -0
- data/sig/amocrm/models/lead_list_response.rbs +538 -0
- data/sig/amocrm/models/lead_update_by_id_params.rbs +578 -0
- data/sig/amocrm/models/lead_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/lead_update_params.rbs +602 -0
- data/sig/amocrm/models/lead_update_response.rbs +121 -0
- data/sig/amocrm/models/pipeline_create_params.rbs +175 -0
- data/sig/amocrm/models/pipeline_create_response.rbs +121 -0
- data/sig/amocrm/models/pipeline_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/pipeline_delete_by_id_response.rbs +64 -0
- data/sig/amocrm/models/pipeline_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/pipeline_get_by_id_response.rbs +301 -0
- data/sig/amocrm/models/pipeline_list_params.rbs +15 -0
- data/sig/amocrm/models/pipeline_list_response.rbs +350 -0
- data/sig/amocrm/models/pipeline_status_create_params.rbs +95 -0
- data/sig/amocrm/models/pipeline_status_create_response.rbs +121 -0
- data/sig/amocrm/models/pipeline_status_delete_by_id_params.rbs +23 -0
- data/sig/amocrm/models/pipeline_status_delete_by_id_response.rbs +64 -0
- data/sig/amocrm/models/pipeline_status_get_by_id_params.rbs +30 -0
- data/sig/amocrm/models/pipeline_status_get_by_id_response.rbs +203 -0
- data/sig/amocrm/models/pipeline_status_list_params.rbs +22 -0
- data/sig/amocrm/models/pipeline_status_list_response.rbs +252 -0
- data/sig/amocrm/models/pipeline_status_update_by_id_params.rbs +87 -0
- data/sig/amocrm/models/pipeline_status_update_by_id_response.rbs +137 -0
- data/sig/amocrm/models/pipeline_status_update_params.rbs +102 -0
- data/sig/amocrm/models/pipeline_status_update_response.rbs +137 -0
- data/sig/amocrm/models/pipeline_update_by_id_params.rbs +63 -0
- data/sig/amocrm/models/pipeline_update_by_id_response.rbs +137 -0
- data/sig/amocrm/models/pipeline_update_params.rbs +83 -0
- data/sig/amocrm/models/pipeline_update_response.rbs +137 -0
- data/sig/amocrm/models/role_create_params.rbs +187 -0
- data/sig/amocrm/models/role_create_response.rbs +325 -0
- data/sig/amocrm/models/role_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/role_delete_by_id_response.rbs +64 -0
- data/sig/amocrm/models/role_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/role_get_by_id_response.rbs +262 -0
- data/sig/amocrm/models/role_list_params.rbs +38 -0
- data/sig/amocrm/models/role_list_response.rbs +332 -0
- data/sig/amocrm/models/role_update_by_id_params.rbs +170 -0
- data/sig/amocrm/models/role_update_by_id_response.rbs +262 -0
- data/sig/amocrm/models/salesbot_run_params.rbs +46 -0
- data/sig/amocrm/models/salesbot_run_response.rbs +113 -0
- data/sig/amocrm/models/short_link_create_params.rbs +20 -0
- data/sig/amocrm/models/short_link_create_response.rbs +60 -0
- data/sig/amocrm/models/source_create_params.rbs +91 -0
- data/sig/amocrm/models/source_create_response.rbs +199 -0
- data/sig/amocrm/models/source_delete_by_id_params.rbs +15 -0
- data/sig/amocrm/models/source_delete_by_id_response.rbs +64 -0
- data/sig/amocrm/models/source_delete_params.rbs +34 -0
- data/sig/amocrm/models/source_delete_response.rbs +64 -0
- data/sig/amocrm/models/source_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/source_get_by_id_response.rbs +136 -0
- data/sig/amocrm/models/source_list_params.rbs +69 -0
- data/sig/amocrm/models/source_list_response.rbs +192 -0
- data/sig/amocrm/models/source_update_by_id_params.rbs +80 -0
- data/sig/amocrm/models/source_update_by_id_response.rbs +199 -0
- data/sig/amocrm/models/source_update_params.rbs +100 -0
- data/sig/amocrm/models/source_update_response.rbs +199 -0
- data/sig/amocrm/models/tag_create_params.rbs +59 -0
- data/sig/amocrm/models/tag_create_response.rbs +132 -0
- data/sig/amocrm/models/tag_list_params.rbs +57 -0
- data/sig/amocrm/models/tag_list_response.rbs +128 -0
- data/sig/amocrm/models/talk_close_params.rbs +25 -0
- data/sig/amocrm/models/talk_close_response.rbs +64 -0
- data/sig/amocrm/models/talk_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/talk_get_by_id_response.rbs +248 -0
- data/sig/amocrm/models/task_create_params.rbs +97 -0
- data/sig/amocrm/models/task_create_response.rbs +121 -0
- data/sig/amocrm/models/task_get_by_id_params.rbs +15 -0
- data/sig/amocrm/models/task_get_by_id_response.rbs +202 -0
- data/sig/amocrm/models/task_list_params.rbs +66 -0
- data/sig/amocrm/models/task_list_response.rbs +259 -0
- data/sig/amocrm/models/task_update_by_id_params.rbs +91 -0
- data/sig/amocrm/models/task_update_by_id_response.rbs +121 -0
- data/sig/amocrm/models/task_update_params.rbs +111 -0
- data/sig/amocrm/models/task_update_response.rbs +121 -0
- data/sig/amocrm/models/unsorted_lead_accept_params.rbs +32 -0
- data/sig/amocrm/models/unsorted_lead_accept_response.rbs +199 -0
- data/sig/amocrm/models/unsorted_lead_create_forms_params.rbs +916 -0
- data/sig/amocrm/models/unsorted_lead_create_forms_response.rbs +233 -0
- data/sig/amocrm/models/unsorted_lead_decline_params.rbs +25 -0
- data/sig/amocrm/models/unsorted_lead_decline_response.rbs +199 -0
- data/sig/amocrm/models/user_create_params.rbs +204 -0
- data/sig/amocrm/models/user_create_response.rbs +594 -0
- data/sig/amocrm/models/user_get_by_id_params.rbs +22 -0
- data/sig/amocrm/models/user_get_by_id_response.rbs +527 -0
- data/sig/amocrm/models/user_list_params.rbs +38 -0
- data/sig/amocrm/models/user_list_response.rbs +601 -0
- data/sig/amocrm/models/webhook_list_params.rbs +40 -0
- data/sig/amocrm/models/webhook_list_response.rbs +179 -0
- data/sig/amocrm/models/webhook_subscribe_params.rbs +34 -0
- data/sig/amocrm/models/webhook_subscribe_response.rbs +123 -0
- data/sig/amocrm/models/webhook_unsubscribe_params.rbs +23 -0
- data/sig/amocrm/models/webhook_unsubscribe_response.rbs +64 -0
- data/sig/amocrm/models/website_button_connect_online_chat_params.rbs +15 -0
- data/sig/amocrm/models/website_button_connect_online_chat_response.rbs +64 -0
- data/sig/amocrm/models/website_button_create_params.rbs +40 -0
- data/sig/amocrm/models/website_button_create_response.rbs +71 -0
- data/sig/amocrm/models/website_button_get_by_source_id_params.rbs +22 -0
- data/sig/amocrm/models/website_button_get_by_source_id_response.rbs +112 -0
- data/sig/amocrm/models/website_button_list_params.rbs +38 -0
- data/sig/amocrm/models/website_button_list_response.rbs +168 -0
- data/sig/amocrm/models/website_button_update_params.rbs +34 -0
- data/sig/amocrm/models/website_button_update_response.rbs +112 -0
- data/sig/amocrm/models/widget_bot_continue_continue_params.rbs +74 -0
- data/sig/amocrm/models/widget_bot_continue_continue_response.rbs +64 -0
- data/sig/amocrm/models/widget_get_by_code_params.rbs +15 -0
- data/sig/amocrm/models/widget_get_by_code_response.rbs +194 -0
- data/sig/amocrm/models/widget_install_params.rbs +20 -0
- data/sig/amocrm/models/widget_install_response.rbs +194 -0
- data/sig/amocrm/models/widget_list_params.rbs +32 -0
- data/sig/amocrm/models/widget_list_response.rbs +250 -0
- data/sig/amocrm/models/widget_uninstall_params.rbs +15 -0
- data/sig/amocrm/models/widget_uninstall_response.rbs +64 -0
- data/sig/amocrm/models.rbs +140 -140
- data/sig/amocrm/resources/account.rbs +12 -0
- data/sig/amocrm/resources/calls.rbs +12 -0
- data/sig/amocrm/resources/catalog_elements.rbs +44 -0
- data/sig/amocrm/resources/catalogs.rbs +38 -0
- data/sig/amocrm/resources/companies.rbs +48 -0
- data/sig/amocrm/resources/contact_chats.rbs +17 -0
- data/sig/amocrm/resources/contacts.rbs +50 -0
- data/sig/amocrm/resources/custom_field_groups.rbs +40 -0
- data/sig/amocrm/resources/custom_fields.rbs +55 -0
- data/sig/amocrm/resources/customer_bonus_points.rbs +14 -0
- data/sig/amocrm/resources/customer_segments.rbs +34 -0
- data/sig/amocrm/resources/customer_statuses.rbs +34 -0
- data/sig/amocrm/resources/customer_transactions.rbs +35 -0
- data/sig/amocrm/resources/customers.rbs +51 -0
- data/sig/amocrm/resources/customers_mode.rbs +13 -0
- data/sig/amocrm/resources/entity_followers.rbs +29 -0
- data/sig/amocrm/resources/entity_links.rbs +45 -0
- data/sig/amocrm/resources/entity_notes.rbs +57 -0
- data/sig/amocrm/resources/entity_notes_by_parent.rbs +49 -0
- data/sig/amocrm/resources/events.rbs +26 -0
- data/sig/amocrm/resources/leads.rbs +56 -0
- data/sig/amocrm/resources/pipeline_statuses.rbs +49 -0
- data/sig/amocrm/resources/pipelines.rbs +42 -0
- data/sig/amocrm/resources/roles.rbs +38 -0
- data/sig/amocrm/resources/salesbot.rbs +12 -0
- data/sig/amocrm/resources/short_links.rbs +12 -0
- data/sig/amocrm/resources/sources.rbs +49 -0
- data/sig/amocrm/resources/tags.rbs +22 -0
- data/sig/amocrm/resources/talks.rbs +18 -0
- data/sig/amocrm/resources/tasks.rbs +44 -0
- data/sig/amocrm/resources/unsorted_leads.rbs +25 -0
- data/sig/amocrm/resources/users.rbs +25 -0
- data/sig/amocrm/resources/webhooks.rbs +24 -0
- data/sig/amocrm/resources/website_buttons.rbs +38 -0
- data/sig/amocrm/resources/widget_bot_continue.rbs +16 -0
- data/sig/amocrm/resources/widgets.rbs +29 -0
- metadata +949 -847
- data/lib/amocrm/models/v2_salesbot_run_params.rb +0 -42
- data/lib/amocrm/models/v2_salesbot_run_response.rb +0 -91
- data/lib/amocrm/models/v4_account_get_params.rb +0 -22
- data/lib/amocrm/models/v4_account_get_response.rb +0 -408
- data/lib/amocrm/models/v4_calls_create_params.rb +0 -155
- data/lib/amocrm/models/v4_calls_create_response.rb +0 -162
- data/lib/amocrm/models/v4_catalog_elements_create_params.rb +0 -100
- data/lib/amocrm/models/v4_catalog_elements_create_response.rb +0 -254
- data/lib/amocrm/models/v4_catalog_elements_get_by_id_params.rb +0 -29
- data/lib/amocrm/models/v4_catalog_elements_get_by_id_response.rb +0 -210
- data/lib/amocrm/models/v4_catalog_elements_list_params.rb +0 -49
- data/lib/amocrm/models/v4_catalog_elements_list_response.rb +0 -254
- data/lib/amocrm/models/v4_catalog_elements_update_by_id_params.rb +0 -96
- data/lib/amocrm/models/v4_catalog_elements_update_by_id_response.rb +0 -254
- data/lib/amocrm/models/v4_catalog_elements_update_params.rb +0 -106
- data/lib/amocrm/models/v4_catalog_elements_update_response.rb +0 -254
- data/lib/amocrm/models/v4_catalogs_create_params.rb +0 -88
- data/lib/amocrm/models/v4_catalogs_create_response.rb +0 -221
- data/lib/amocrm/models/v4_catalogs_get_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_catalogs_get_by_id_response.rb +0 -181
- data/lib/amocrm/models/v4_catalogs_list_params.rb +0 -26
- data/lib/amocrm/models/v4_catalogs_list_response.rb +0 -221
- data/lib/amocrm/models/v4_catalogs_update_by_id_params.rb +0 -44
- data/lib/amocrm/models/v4_catalogs_update_by_id_response.rb +0 -221
- data/lib/amocrm/models/v4_catalogs_update_params.rb +0 -60
- data/lib/amocrm/models/v4_catalogs_update_response.rb +0 -221
- data/lib/amocrm/models/v4_companies_create_params.rb +0 -225
- data/lib/amocrm/models/v4_companies_create_response.rb +0 -95
- data/lib/amocrm/models/v4_companies_get_by_id_params.rb +0 -22
- data/lib/amocrm/models/v4_companies_get_by_id_response.rb +0 -324
- data/lib/amocrm/models/v4_companies_list_params.rb +0 -74
- data/lib/amocrm/models/v4_companies_list_response.rb +0 -359
- data/lib/amocrm/models/v4_companies_update_by_id_params.rb +0 -236
- data/lib/amocrm/models/v4_companies_update_by_id_response.rb +0 -95
- data/lib/amocrm/models/v4_companies_update_params.rb +0 -256
- data/lib/amocrm/models/v4_companies_update_response.rb +0 -95
- data/lib/amocrm/models/v4_contact_chats_link_params.rb +0 -42
- data/lib/amocrm/models/v4_contact_chats_link_response.rb +0 -95
- data/lib/amocrm/models/v4_contact_chats_list_params.rb +0 -20
- data/lib/amocrm/models/v4_contact_chats_list_response.rb +0 -95
- data/lib/amocrm/models/v4_contacts_create_params.rb +0 -239
- data/lib/amocrm/models/v4_contacts_create_response.rb +0 -95
- data/lib/amocrm/models/v4_contacts_get_by_id_params.rb +0 -22
- data/lib/amocrm/models/v4_contacts_get_by_id_response.rb +0 -348
- data/lib/amocrm/models/v4_contacts_list_params.rb +0 -74
- data/lib/amocrm/models/v4_contacts_list_response.rb +0 -383
- data/lib/amocrm/models/v4_contacts_update_by_id_params.rb +0 -250
- data/lib/amocrm/models/v4_contacts_update_by_id_response.rb +0 -95
- data/lib/amocrm/models/v4_contacts_update_params.rb +0 -270
- data/lib/amocrm/models/v4_contacts_update_response.rb +0 -95
- data/lib/amocrm/models/v4_custom_field_groups_create_params.rb +0 -45
- data/lib/amocrm/models/v4_custom_field_groups_create_response.rb +0 -96
- data/lib/amocrm/models/v4_custom_field_groups_delete_by_id_params.rb +0 -20
- data/lib/amocrm/models/v4_custom_field_groups_delete_by_id_response.rb +0 -45
- data/lib/amocrm/models/v4_custom_field_groups_get_by_id_params.rb +0 -20
- data/lib/amocrm/models/v4_custom_field_groups_get_by_id_response.rb +0 -73
- data/lib/amocrm/models/v4_custom_field_groups_list_params.rb +0 -26
- data/lib/amocrm/models/v4_custom_field_groups_list_response.rb +0 -108
- data/lib/amocrm/models/v4_custom_field_groups_update_by_id_params.rb +0 -32
- data/lib/amocrm/models/v4_custom_field_groups_update_by_id_response.rb +0 -45
- data/lib/amocrm/models/v4_custom_fields_create_params.rb +0 -108
- data/lib/amocrm/models/v4_custom_fields_create_response.rb +0 -96
- data/lib/amocrm/models/v4_custom_fields_delete_by_id_params.rb +0 -20
- data/lib/amocrm/models/v4_custom_fields_delete_by_id_response.rb +0 -45
- data/lib/amocrm/models/v4_custom_fields_get_by_id_params.rb +0 -20
- data/lib/amocrm/models/v4_custom_fields_get_by_id_response.rb +0 -127
- data/lib/amocrm/models/v4_custom_fields_list_params.rb +0 -26
- data/lib/amocrm/models/v4_custom_fields_list_response.rb +0 -161
- data/lib/amocrm/models/v4_custom_fields_update_by_id_params.rb +0 -86
- data/lib/amocrm/models/v4_custom_fields_update_by_id_response.rb +0 -45
- data/lib/amocrm/models/v4_custom_fields_update_params.rb +0 -108
- data/lib/amocrm/models/v4_custom_fields_update_response.rb +0 -45
- data/lib/amocrm/models/v4_customer_bonus_points_change_params.rb +0 -26
- data/lib/amocrm/models/v4_customer_bonus_points_change_response.rb +0 -55
- data/lib/amocrm/models/v4_customer_segments_create_params.rb +0 -118
- data/lib/amocrm/models/v4_customer_segments_create_response.rb +0 -96
- data/lib/amocrm/models/v4_customer_segments_delete_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_customer_segments_delete_by_id_response.rb +0 -45
- data/lib/amocrm/models/v4_customer_segments_get_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_customer_segments_get_by_id_response.rb +0 -162
- data/lib/amocrm/models/v4_customer_segments_list_params.rb +0 -14
- data/lib/amocrm/models/v4_customer_segments_list_response.rb +0 -199
- data/lib/amocrm/models/v4_customer_segments_update_by_id_params.rb +0 -101
- data/lib/amocrm/models/v4_customer_segments_update_by_id_response.rb +0 -45
- data/lib/amocrm/models/v4_customer_statuses_create_params.rb +0 -48
- data/lib/amocrm/models/v4_customer_statuses_create_response.rb +0 -96
- data/lib/amocrm/models/v4_customer_statuses_delete_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_customer_statuses_delete_by_id_response.rb +0 -45
- data/lib/amocrm/models/v4_customer_statuses_get_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_customer_statuses_get_by_id_response.rb +0 -79
- data/lib/amocrm/models/v4_customer_statuses_list_params.rb +0 -14
- data/lib/amocrm/models/v4_customer_statuses_list_response.rb +0 -108
- data/lib/amocrm/models/v4_customer_statuses_update_by_id_params.rb +0 -32
- data/lib/amocrm/models/v4_customer_statuses_update_by_id_response.rb +0 -45
- data/lib/amocrm/models/v4_customer_transactions_create_params.rb +0 -60
- data/lib/amocrm/models/v4_customer_transactions_create_response.rb +0 -100
- data/lib/amocrm/models/v4_customer_transactions_delete_by_id_params.rb +0 -20
- data/lib/amocrm/models/v4_customer_transactions_delete_by_id_response.rb +0 -45
- data/lib/amocrm/models/v4_customer_transactions_list_by_customer_params.rb +0 -32
- data/lib/amocrm/models/v4_customer_transactions_list_by_customer_response.rb +0 -130
- data/lib/amocrm/models/v4_customer_transactions_list_params.rb +0 -32
- data/lib/amocrm/models/v4_customer_transactions_list_response.rb +0 -126
- data/lib/amocrm/models/v4_customers_create_params.rb +0 -257
- data/lib/amocrm/models/v4_customers_create_response.rb +0 -95
- data/lib/amocrm/models/v4_customers_get_by_id_params.rb +0 -22
- data/lib/amocrm/models/v4_customers_get_by_id_response.rb +0 -378
- data/lib/amocrm/models/v4_customers_list_params.rb +0 -68
- data/lib/amocrm/models/v4_customers_list_response.rb +0 -421
- data/lib/amocrm/models/v4_customers_mode_set_mode_params.rb +0 -36
- data/lib/amocrm/models/v4_customers_mode_set_mode_response.rb +0 -72
- data/lib/amocrm/models/v4_customers_update_by_id_params.rb +0 -267
- data/lib/amocrm/models/v4_customers_update_by_id_response.rb +0 -96
- data/lib/amocrm/models/v4_customers_update_params.rb +0 -286
- data/lib/amocrm/models/v4_customers_update_response.rb +0 -95
- data/lib/amocrm/models/v4_entity_followers_add_params.rb +0 -48
- data/lib/amocrm/models/v4_entity_followers_add_response.rb +0 -90
- data/lib/amocrm/models/v4_entity_followers_list_params.rb +0 -44
- data/lib/amocrm/models/v4_entity_followers_list_response.rb +0 -114
- data/lib/amocrm/models/v4_entity_followers_remove_params.rb +0 -48
- data/lib/amocrm/models/v4_entity_followers_remove_response.rb +0 -61
- data/lib/amocrm/models/v4_entity_links_link_by_entity_params.rb +0 -134
- data/lib/amocrm/models/v4_entity_links_link_by_entity_response.rb +0 -61
- data/lib/amocrm/models/v4_entity_links_link_params.rb +0 -128
- data/lib/amocrm/models/v4_entity_links_link_response.rb +0 -61
- data/lib/amocrm/models/v4_entity_links_list_by_entity_params.rb +0 -32
- data/lib/amocrm/models/v4_entity_links_list_by_entity_response.rb +0 -182
- data/lib/amocrm/models/v4_entity_links_list_params.rb +0 -32
- data/lib/amocrm/models/v4_entity_links_list_response.rb +0 -181
- data/lib/amocrm/models/v4_entity_links_unlink_by_entity_params.rb +0 -134
- data/lib/amocrm/models/v4_entity_links_unlink_by_entity_response.rb +0 -61
- data/lib/amocrm/models/v4_entity_links_unlink_params.rb +0 -128
- data/lib/amocrm/models/v4_entity_links_unlink_response.rb +0 -61
- data/lib/amocrm/models/v4_entity_notes_by_parent_create_by_parent_params.rb +0 -106
- data/lib/amocrm/models/v4_entity_notes_by_parent_create_by_parent_response.rb +0 -108
- data/lib/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_params.rb +0 -44
- data/lib/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_response.rb +0 -127
- data/lib/amocrm/models/v4_entity_notes_by_parent_list_by_parent_params.rb +0 -50
- data/lib/amocrm/models/v4_entity_notes_by_parent_list_by_parent_response.rb +0 -162
- data/lib/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_params.rb +0 -62
- data/lib/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_response.rb +0 -108
- data/lib/amocrm/models/v4_entity_notes_by_parent_update_by_parent_params.rb +0 -85
- data/lib/amocrm/models/v4_entity_notes_by_parent_update_by_parent_response.rb +0 -108
- data/lib/amocrm/models/v4_entity_notes_create_params.rb +0 -99
- data/lib/amocrm/models/v4_entity_notes_create_response.rb +0 -107
- data/lib/amocrm/models/v4_entity_notes_get_by_id_params.rb +0 -38
- data/lib/amocrm/models/v4_entity_notes_get_by_id_response.rb +0 -127
- data/lib/amocrm/models/v4_entity_notes_list_params.rb +0 -44
- data/lib/amocrm/models/v4_entity_notes_list_response.rb +0 -161
- data/lib/amocrm/models/v4_entity_notes_pin_params.rb +0 -32
- data/lib/amocrm/models/v4_entity_notes_pin_response.rb +0 -61
- data/lib/amocrm/models/v4_entity_notes_unpin_params.rb +0 -32
- data/lib/amocrm/models/v4_entity_notes_unpin_response.rb +0 -61
- data/lib/amocrm/models/v4_entity_notes_update_by_id_params.rb +0 -62
- data/lib/amocrm/models/v4_entity_notes_update_by_id_response.rb +0 -107
- data/lib/amocrm/models/v4_entity_notes_update_params.rb +0 -78
- data/lib/amocrm/models/v4_entity_notes_update_response.rb +0 -107
- data/lib/amocrm/models/v4_events_get_by_id_params.rb +0 -20
- data/lib/amocrm/models/v4_events_get_by_id_response.rb +0 -103
- data/lib/amocrm/models/v4_events_list_params.rb +0 -38
- data/lib/amocrm/models/v4_events_list_response.rb +0 -137
- data/lib/amocrm/models/v4_events_list_types_params.rb +0 -20
- data/lib/amocrm/models/v4_events_list_types_response.rb +0 -66
- data/lib/amocrm/models/v4_leads_create_complex_params.rb +0 -568
- data/lib/amocrm/models/v4_leads_create_complex_response.rb +0 -108
- data/lib/amocrm/models/v4_leads_create_params.rb +0 -566
- data/lib/amocrm/models/v4_leads_create_response.rb +0 -95
- data/lib/amocrm/models/v4_leads_get_by_id_params.rb +0 -22
- data/lib/amocrm/models/v4_leads_get_by_id_response.rb +0 -427
- data/lib/amocrm/models/v4_leads_list_params.rb +0 -74
- data/lib/amocrm/models/v4_leads_list_response.rb +0 -464
- data/lib/amocrm/models/v4_leads_update_by_id_params.rb +0 -546
- data/lib/amocrm/models/v4_leads_update_by_id_response.rb +0 -95
- data/lib/amocrm/models/v4_leads_update_params.rb +0 -565
- data/lib/amocrm/models/v4_leads_update_response.rb +0 -95
- data/lib/amocrm/models/v4_pipeline_statuses_create_params.rb +0 -77
- data/lib/amocrm/models/v4_pipeline_statuses_create_response.rb +0 -96
- data/lib/amocrm/models/v4_pipeline_statuses_delete_by_id_params.rb +0 -20
- data/lib/amocrm/models/v4_pipeline_statuses_delete_by_id_response.rb +0 -61
- data/lib/amocrm/models/v4_pipeline_statuses_get_by_id_params.rb +0 -29
- data/lib/amocrm/models/v4_pipeline_statuses_get_by_id_response.rb +0 -169
- data/lib/amocrm/models/v4_pipeline_statuses_list_params.rb +0 -22
- data/lib/amocrm/models/v4_pipeline_statuses_list_response.rb +0 -197
- data/lib/amocrm/models/v4_pipeline_statuses_update_by_id_params.rb +0 -73
- data/lib/amocrm/models/v4_pipeline_statuses_update_by_id_response.rb +0 -102
- data/lib/amocrm/models/v4_pipeline_statuses_update_params.rb +0 -83
- data/lib/amocrm/models/v4_pipeline_statuses_update_response.rb +0 -102
- data/lib/amocrm/models/v4_pipelines_create_params.rb +0 -129
- data/lib/amocrm/models/v4_pipelines_create_response.rb +0 -95
- data/lib/amocrm/models/v4_pipelines_delete_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_pipelines_delete_by_id_response.rb +0 -61
- data/lib/amocrm/models/v4_pipelines_get_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_pipelines_get_by_id_response.rb +0 -239
- data/lib/amocrm/models/v4_pipelines_list_params.rb +0 -14
- data/lib/amocrm/models/v4_pipelines_list_response.rb +0 -272
- data/lib/amocrm/models/v4_pipelines_update_by_id_params.rb +0 -50
- data/lib/amocrm/models/v4_pipelines_update_by_id_response.rb +0 -102
- data/lib/amocrm/models/v4_pipelines_update_params.rb +0 -66
- data/lib/amocrm/models/v4_pipelines_update_response.rb +0 -101
- data/lib/amocrm/models/v4_roles_create_params.rb +0 -151
- data/lib/amocrm/models/v4_roles_create_response.rb +0 -249
- data/lib/amocrm/models/v4_roles_delete_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_roles_delete_by_id_response.rb +0 -61
- data/lib/amocrm/models/v4_roles_get_by_id_params.rb +0 -20
- data/lib/amocrm/models/v4_roles_get_by_id_response.rb +0 -208
- data/lib/amocrm/models/v4_roles_list_params.rb +0 -32
- data/lib/amocrm/models/v4_roles_list_response.rb +0 -255
- data/lib/amocrm/models/v4_roles_update_by_id_params.rb +0 -138
- data/lib/amocrm/models/v4_roles_update_by_id_response.rb +0 -208
- data/lib/amocrm/models/v4_short_links_create_params.rb +0 -20
- data/lib/amocrm/models/v4_short_links_create_response.rb +0 -55
- data/lib/amocrm/models/v4_sources_create_params.rb +0 -84
- data/lib/amocrm/models/v4_sources_create_response.rb +0 -171
- data/lib/amocrm/models/v4_sources_delete_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_sources_delete_by_id_response.rb +0 -61
- data/lib/amocrm/models/v4_sources_delete_params.rb +0 -30
- data/lib/amocrm/models/v4_sources_delete_response.rb +0 -61
- data/lib/amocrm/models/v4_sources_get_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_sources_get_by_id_response.rb +0 -129
- data/lib/amocrm/models/v4_sources_list_params.rb +0 -65
- data/lib/amocrm/models/v4_sources_list_response.rb +0 -165
- data/lib/amocrm/models/v4_sources_update_by_id_params.rb +0 -73
- data/lib/amocrm/models/v4_sources_update_by_id_response.rb +0 -171
- data/lib/amocrm/models/v4_sources_update_params.rb +0 -90
- data/lib/amocrm/models/v4_sources_update_response.rb +0 -171
- data/lib/amocrm/models/v4_tags_create_params.rb +0 -54
- data/lib/amocrm/models/v4_tags_create_response.rb +0 -101
- data/lib/amocrm/models/v4_tags_list_params.rb +0 -50
- data/lib/amocrm/models/v4_tags_list_response.rb +0 -101
- data/lib/amocrm/models/v4_talks_close_params.rb +0 -22
- data/lib/amocrm/models/v4_talks_close_response.rb +0 -61
- data/lib/amocrm/models/v4_talks_get_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_talks_get_by_id_response.rb +0 -213
- data/lib/amocrm/models/v4_tasks_create_params.rb +0 -87
- data/lib/amocrm/models/v4_tasks_create_response.rb +0 -95
- data/lib/amocrm/models/v4_tasks_get_by_id_params.rb +0 -14
- data/lib/amocrm/models/v4_tasks_get_by_id_response.rb +0 -173
- data/lib/amocrm/models/v4_tasks_list_params.rb +0 -66
- data/lib/amocrm/models/v4_tasks_list_response.rb +0 -208
- data/lib/amocrm/models/v4_tasks_update_by_id_params.rb +0 -72
- data/lib/amocrm/models/v4_tasks_update_by_id_response.rb +0 -95
- data/lib/amocrm/models/v4_tasks_update_params.rb +0 -98
- data/lib/amocrm/models/v4_tasks_update_response.rb +0 -95
- data/lib/amocrm/models/v4_unsorted_leads_accept_params.rb +0 -30
- data/lib/amocrm/models/v4_unsorted_leads_accept_response.rb +0 -168
- data/lib/amocrm/models/v4_unsorted_leads_create_forms_params.rb +0 -878
- data/lib/amocrm/models/v4_unsorted_leads_create_forms_response.rb +0 -200
- data/lib/amocrm/models/v4_unsorted_leads_decline_params.rb +0 -22
- data/lib/amocrm/models/v4_unsorted_leads_decline_response.rb +0 -168
- data/lib/amocrm/models/v4_users_create_params.rb +0 -169
- data/lib/amocrm/models/v4_users_create_response.rb +0 -473
- data/lib/amocrm/models/v4_users_get_by_id_params.rb +0 -20
- data/lib/amocrm/models/v4_users_get_by_id_response.rb +0 -426
- data/lib/amocrm/models/v4_users_list_params.rb +0 -32
- data/lib/amocrm/models/v4_users_list_response.rb +0 -475
- data/lib/amocrm/models/v4_webhooks_list_params.rb +0 -30
- data/lib/amocrm/models/v4_webhooks_list_response.rb +0 -137
- data/lib/amocrm/models/v4_webhooks_subscribe_params.rb +0 -32
- data/lib/amocrm/models/v4_webhooks_subscribe_response.rb +0 -103
- data/lib/amocrm/models/v4_webhooks_unsubscribe_params.rb +0 -20
- data/lib/amocrm/models/v4_webhooks_unsubscribe_response.rb +0 -61
- data/lib/amocrm/models/v4_website_buttons_connect_online_chat_params.rb +0 -14
- data/lib/amocrm/models/v4_website_buttons_connect_online_chat_response.rb +0 -61
- data/lib/amocrm/models/v4_website_buttons_create_params.rb +0 -32
- data/lib/amocrm/models/v4_website_buttons_create_response.rb +0 -61
- data/lib/amocrm/models/v4_website_buttons_get_by_source_id_params.rb +0 -20
- data/lib/amocrm/models/v4_website_buttons_get_by_source_id_response.rb +0 -97
- data/lib/amocrm/models/v4_website_buttons_list_params.rb +0 -32
- data/lib/amocrm/models/v4_website_buttons_list_response.rb +0 -132
- data/lib/amocrm/models/v4_website_buttons_update_params.rb +0 -30
- data/lib/amocrm/models/v4_website_buttons_update_response.rb +0 -97
- data/lib/amocrm/models/v4_widget_bot_continue_continue_params.rb +0 -65
- data/lib/amocrm/models/v4_widget_bot_continue_continue_response.rb +0 -61
- data/lib/amocrm/models/v4_widgets_get_by_code_params.rb +0 -14
- data/lib/amocrm/models/v4_widgets_get_by_code_response.rb +0 -180
- data/lib/amocrm/models/v4_widgets_install_params.rb +0 -20
- data/lib/amocrm/models/v4_widgets_install_response.rb +0 -180
- data/lib/amocrm/models/v4_widgets_list_params.rb +0 -26
- data/lib/amocrm/models/v4_widgets_list_response.rb +0 -218
- data/lib/amocrm/models/v4_widgets_uninstall_params.rb +0 -14
- data/lib/amocrm/models/v4_widgets_uninstall_response.rb +0 -61
- data/lib/amocrm/resources/v2.rb +0 -35
- data/lib/amocrm/resources/v4.rb +0 -3434
- data/rbi/amocrm/models/v2_salesbot_run_params.rbi +0 -72
- data/rbi/amocrm/models/v2_salesbot_run_response.rbi +0 -212
- data/rbi/amocrm/models/v4_account_get_params.rbi +0 -43
- data/rbi/amocrm/models/v4_account_get_response.rbi +0 -851
- data/rbi/amocrm/models/v4_calls_create_params.rbi +0 -262
- data/rbi/amocrm/models/v4_calls_create_response.rbi +0 -400
- data/rbi/amocrm/models/v4_catalog_elements_create_params.rbi +0 -233
- data/rbi/amocrm/models/v4_catalog_elements_create_response.rbi +0 -566
- data/rbi/amocrm/models/v4_catalog_elements_get_by_id_params.rbi +0 -55
- data/rbi/amocrm/models/v4_catalog_elements_get_by_id_response.rbi +0 -445
- data/rbi/amocrm/models/v4_catalog_elements_list_params.rbi +0 -89
- data/rbi/amocrm/models/v4_catalog_elements_list_response.rbi +0 -565
- data/rbi/amocrm/models/v4_catalog_elements_update_by_id_params.rbi +0 -216
- data/rbi/amocrm/models/v4_catalog_elements_update_by_id_response.rbi +0 -568
- data/rbi/amocrm/models/v4_catalog_elements_update_params.rbi +0 -241
- data/rbi/amocrm/models/v4_catalog_elements_update_response.rbi +0 -566
- data/rbi/amocrm/models/v4_catalogs_create_params.rbi +0 -183
- data/rbi/amocrm/models/v4_catalogs_create_response.rbi +0 -450
- data/rbi/amocrm/models/v4_catalogs_get_by_id_params.rbi +0 -27
- data/rbi/amocrm/models/v4_catalogs_get_by_id_response.rbi +0 -331
- data/rbi/amocrm/models/v4_catalogs_list_params.rbi +0 -49
- data/rbi/amocrm/models/v4_catalogs_list_response.rbi +0 -449
- data/rbi/amocrm/models/v4_catalogs_update_by_id_params.rbi +0 -80
- data/rbi/amocrm/models/v4_catalogs_update_by_id_response.rbi +0 -450
- data/rbi/amocrm/models/v4_catalogs_update_params.rbi +0 -116
- data/rbi/amocrm/models/v4_catalogs_update_response.rbi +0 -450
- data/rbi/amocrm/models/v4_companies_create_params.rbi +0 -483
- data/rbi/amocrm/models/v4_companies_create_response.rbi +0 -234
- data/rbi/amocrm/models/v4_companies_get_by_id_params.rbi +0 -43
- data/rbi/amocrm/models/v4_companies_get_by_id_response.rbi +0 -743
- data/rbi/amocrm/models/v4_companies_list_params.rbi +0 -116
- data/rbi/amocrm/models/v4_companies_list_response.rbi +0 -869
- data/rbi/amocrm/models/v4_companies_update_by_id_params.rbi +0 -485
- data/rbi/amocrm/models/v4_companies_update_by_id_response.rbi +0 -234
- data/rbi/amocrm/models/v4_companies_update_params.rbi +0 -541
- data/rbi/amocrm/models/v4_companies_update_response.rbi +0 -234
- data/rbi/amocrm/models/v4_contact_chats_link_params.rbi +0 -78
- data/rbi/amocrm/models/v4_contact_chats_link_response.rbi +0 -228
- data/rbi/amocrm/models/v4_contact_chats_list_params.rbi +0 -38
- data/rbi/amocrm/models/v4_contact_chats_list_response.rbi +0 -228
- data/rbi/amocrm/models/v4_contacts_create_params.rbi +0 -497
- data/rbi/amocrm/models/v4_contacts_create_response.rbi +0 -234
- data/rbi/amocrm/models/v4_contacts_get_by_id_params.rbi +0 -43
- data/rbi/amocrm/models/v4_contacts_get_by_id_response.rbi +0 -779
- data/rbi/amocrm/models/v4_contacts_list_params.rbi +0 -116
- data/rbi/amocrm/models/v4_contacts_list_response.rbi +0 -905
- data/rbi/amocrm/models/v4_contacts_update_by_id_params.rbi +0 -503
- data/rbi/amocrm/models/v4_contacts_update_by_id_response.rbi +0 -234
- data/rbi/amocrm/models/v4_contacts_update_params.rbi +0 -555
- data/rbi/amocrm/models/v4_contacts_update_response.rbi +0 -234
- data/rbi/amocrm/models/v4_custom_field_groups_create_params.rbi +0 -86
- data/rbi/amocrm/models/v4_custom_field_groups_create_response.rbi +0 -232
- data/rbi/amocrm/models/v4_custom_field_groups_delete_by_id_params.rbi +0 -38
- data/rbi/amocrm/models/v4_custom_field_groups_delete_by_id_response.rbi +0 -80
- data/rbi/amocrm/models/v4_custom_field_groups_get_by_id_params.rbi +0 -38
- data/rbi/amocrm/models/v4_custom_field_groups_get_by_id_response.rbi +0 -136
- data/rbi/amocrm/models/v4_custom_field_groups_list_params.rbi +0 -52
- data/rbi/amocrm/models/v4_custom_field_groups_list_response.rbi +0 -254
- data/rbi/amocrm/models/v4_custom_field_groups_update_by_id_params.rbi +0 -57
- data/rbi/amocrm/models/v4_custom_field_groups_update_by_id_response.rbi +0 -80
- data/rbi/amocrm/models/v4_custom_fields_create_params.rbi +0 -169
- data/rbi/amocrm/models/v4_custom_fields_create_response.rbi +0 -232
- data/rbi/amocrm/models/v4_custom_fields_delete_by_id_params.rbi +0 -38
- data/rbi/amocrm/models/v4_custom_fields_delete_by_id_response.rbi +0 -78
- data/rbi/amocrm/models/v4_custom_fields_get_by_id_params.rbi +0 -35
- data/rbi/amocrm/models/v4_custom_fields_get_by_id_response.rbi +0 -222
- data/rbi/amocrm/models/v4_custom_fields_list_params.rbi +0 -49
- data/rbi/amocrm/models/v4_custom_fields_list_response.rbi +0 -340
- data/rbi/amocrm/models/v4_custom_fields_update_by_id_params.rbi +0 -143
- data/rbi/amocrm/models/v4_custom_fields_update_by_id_response.rbi +0 -78
- data/rbi/amocrm/models/v4_custom_fields_update_params.rbi +0 -172
- data/rbi/amocrm/models/v4_custom_fields_update_response.rbi +0 -78
- data/rbi/amocrm/models/v4_customer_bonus_points_change_params.rbi +0 -46
- data/rbi/amocrm/models/v4_customer_bonus_points_change_response.rbi +0 -104
- data/rbi/amocrm/models/v4_customer_segments_create_params.rbi +0 -268
- data/rbi/amocrm/models/v4_customer_segments_create_response.rbi +0 -234
- data/rbi/amocrm/models/v4_customer_segments_delete_by_id_params.rbi +0 -30
- data/rbi/amocrm/models/v4_customer_segments_delete_by_id_response.rbi +0 -80
- data/rbi/amocrm/models/v4_customer_segments_get_by_id_params.rbi +0 -30
- data/rbi/amocrm/models/v4_customer_segments_get_by_id_response.rbi +0 -329
- data/rbi/amocrm/models/v4_customer_segments_list_params.rbi +0 -27
- data/rbi/amocrm/models/v4_customer_segments_list_response.rbi +0 -439
- data/rbi/amocrm/models/v4_customer_segments_update_by_id_params.rbi +0 -232
- data/rbi/amocrm/models/v4_customer_segments_update_by_id_response.rbi +0 -80
- data/rbi/amocrm/models/v4_customer_statuses_create_params.rbi +0 -91
- data/rbi/amocrm/models/v4_customer_statuses_create_response.rbi +0 -234
- data/rbi/amocrm/models/v4_customer_statuses_delete_by_id_params.rbi +0 -30
- data/rbi/amocrm/models/v4_customer_statuses_delete_by_id_response.rbi +0 -80
- data/rbi/amocrm/models/v4_customer_statuses_get_by_id_params.rbi +0 -30
- data/rbi/amocrm/models/v4_customer_statuses_get_by_id_response.rbi +0 -144
- data/rbi/amocrm/models/v4_customer_statuses_list_params.rbi +0 -27
- data/rbi/amocrm/models/v4_customer_statuses_list_response.rbi +0 -254
- data/rbi/amocrm/models/v4_customer_statuses_update_by_id_params.rbi +0 -60
- data/rbi/amocrm/models/v4_customer_statuses_update_by_id_response.rbi +0 -80
- data/rbi/amocrm/models/v4_customer_transactions_create_params.rbi +0 -121
- data/rbi/amocrm/models/v4_customer_transactions_create_response.rbi +0 -236
- data/rbi/amocrm/models/v4_customer_transactions_delete_by_id_params.rbi +0 -38
- data/rbi/amocrm/models/v4_customer_transactions_delete_by_id_response.rbi +0 -80
- data/rbi/amocrm/models/v4_customer_transactions_list_by_customer_params.rbi +0 -60
- data/rbi/amocrm/models/v4_customer_transactions_list_by_customer_response.rbi +0 -288
- data/rbi/amocrm/models/v4_customer_transactions_list_params.rbi +0 -60
- data/rbi/amocrm/models/v4_customer_transactions_list_response.rbi +0 -286
- data/rbi/amocrm/models/v4_customers_create_params.rbi +0 -571
- data/rbi/amocrm/models/v4_customers_create_response.rbi +0 -234
- data/rbi/amocrm/models/v4_customers_get_by_id_params.rbi +0 -43
- data/rbi/amocrm/models/v4_customers_get_by_id_response.rbi +0 -824
- data/rbi/amocrm/models/v4_customers_list_params.rbi +0 -105
- data/rbi/amocrm/models/v4_customers_list_response.rbi +0 -950
- data/rbi/amocrm/models/v4_customers_mode_set_mode_params.rbi +0 -72
- data/rbi/amocrm/models/v4_customers_mode_set_mode_response.rbi +0 -167
- data/rbi/amocrm/models/v4_customers_update_by_id_params.rbi +0 -559
- data/rbi/amocrm/models/v4_customers_update_by_id_response.rbi +0 -234
- data/rbi/amocrm/models/v4_customers_update_params.rbi +0 -615
- data/rbi/amocrm/models/v4_customers_update_response.rbi +0 -234
- data/rbi/amocrm/models/v4_entity_followers_add_params.rbi +0 -106
- data/rbi/amocrm/models/v4_entity_followers_add_response.rbi +0 -220
- data/rbi/amocrm/models/v4_entity_followers_list_params.rbi +0 -97
- data/rbi/amocrm/models/v4_entity_followers_list_response.rbi +0 -267
- data/rbi/amocrm/models/v4_entity_followers_remove_params.rbi +0 -112
- data/rbi/amocrm/models/v4_entity_followers_remove_response.rbi +0 -112
- data/rbi/amocrm/models/v4_entity_links_link_by_entity_params.rbi +0 -317
- data/rbi/amocrm/models/v4_entity_links_link_by_entity_response.rbi +0 -112
- data/rbi/amocrm/models/v4_entity_links_link_params.rbi +0 -297
- data/rbi/amocrm/models/v4_entity_links_link_response.rbi +0 -112
- data/rbi/amocrm/models/v4_entity_links_list_by_entity_params.rbi +0 -86
- data/rbi/amocrm/models/v4_entity_links_list_by_entity_response.rbi +0 -402
- data/rbi/amocrm/models/v4_entity_links_list_params.rbi +0 -77
- data/rbi/amocrm/models/v4_entity_links_list_response.rbi +0 -402
- data/rbi/amocrm/models/v4_entity_links_unlink_by_entity_params.rbi +0 -318
- data/rbi/amocrm/models/v4_entity_links_unlink_by_entity_response.rbi +0 -114
- data/rbi/amocrm/models/v4_entity_links_unlink_params.rbi +0 -302
- data/rbi/amocrm/models/v4_entity_links_unlink_response.rbi +0 -112
- data/rbi/amocrm/models/v4_entity_notes_by_parent_create_by_parent_params.rbi +0 -211
- data/rbi/amocrm/models/v4_entity_notes_by_parent_create_by_parent_response.rbi +0 -262
- data/rbi/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_params.rbi +0 -104
- data/rbi/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_response.rbi +0 -224
- data/rbi/amocrm/models/v4_entity_notes_by_parent_list_by_parent_params.rbi +0 -121
- data/rbi/amocrm/models/v4_entity_notes_by_parent_list_by_parent_response.rbi +0 -342
- data/rbi/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_params.rbi +0 -139
- data/rbi/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_response.rbi +0 -262
- data/rbi/amocrm/models/v4_entity_notes_by_parent_update_by_parent_params.rbi +0 -184
- data/rbi/amocrm/models/v4_entity_notes_by_parent_update_by_parent_response.rbi +0 -262
- data/rbi/amocrm/models/v4_entity_notes_create_params.rbi +0 -186
- data/rbi/amocrm/models/v4_entity_notes_create_response.rbi +0 -260
- data/rbi/amocrm/models/v4_entity_notes_get_by_id_params.rbi +0 -88
- data/rbi/amocrm/models/v4_entity_notes_get_by_id_response.rbi +0 -222
- data/rbi/amocrm/models/v4_entity_notes_list_params.rbi +0 -96
- data/rbi/amocrm/models/v4_entity_notes_list_response.rbi +0 -340
- data/rbi/amocrm/models/v4_entity_notes_pin_params.rbi +0 -77
- data/rbi/amocrm/models/v4_entity_notes_pin_response.rbi +0 -112
- data/rbi/amocrm/models/v4_entity_notes_unpin_params.rbi +0 -77
- data/rbi/amocrm/models/v4_entity_notes_unpin_response.rbi +0 -112
- data/rbi/amocrm/models/v4_entity_notes_update_by_id_params.rbi +0 -134
- data/rbi/amocrm/models/v4_entity_notes_update_by_id_response.rbi +0 -260
- data/rbi/amocrm/models/v4_entity_notes_update_params.rbi +0 -159
- data/rbi/amocrm/models/v4_entity_notes_update_response.rbi +0 -260
- data/rbi/amocrm/models/v4_events_get_by_id_params.rbi +0 -38
- data/rbi/amocrm/models/v4_events_get_by_id_response.rbi +0 -186
- data/rbi/amocrm/models/v4_events_list_params.rbi +0 -71
- data/rbi/amocrm/models/v4_events_list_response.rbi +0 -304
- data/rbi/amocrm/models/v4_events_list_types_params.rbi +0 -38
- data/rbi/amocrm/models/v4_events_list_types_response.rbi +0 -149
- data/rbi/amocrm/models/v4_leads_create_complex_params.rbi +0 -1228
- data/rbi/amocrm/models/v4_leads_create_complex_response.rbi +0 -260
- data/rbi/amocrm/models/v4_leads_create_params.rbi +0 -1196
- data/rbi/amocrm/models/v4_leads_create_response.rbi +0 -234
- data/rbi/amocrm/models/v4_leads_get_by_id_params.rbi +0 -43
- data/rbi/amocrm/models/v4_leads_get_by_id_response.rbi +0 -921
- data/rbi/amocrm/models/v4_leads_list_params.rbi +0 -114
- data/rbi/amocrm/models/v4_leads_list_response.rbi +0 -1046
- data/rbi/amocrm/models/v4_leads_update_by_id_params.rbi +0 -1156
- data/rbi/amocrm/models/v4_leads_update_by_id_response.rbi +0 -234
- data/rbi/amocrm/models/v4_leads_update_params.rbi +0 -1214
- data/rbi/amocrm/models/v4_leads_update_response.rbi +0 -234
- data/rbi/amocrm/models/v4_pipeline_statuses_create_params.rbi +0 -175
- data/rbi/amocrm/models/v4_pipeline_statuses_create_response.rbi +0 -234
- data/rbi/amocrm/models/v4_pipeline_statuses_delete_by_id_params.rbi +0 -38
- data/rbi/amocrm/models/v4_pipeline_statuses_delete_by_id_response.rbi +0 -114
- data/rbi/amocrm/models/v4_pipeline_statuses_get_by_id_params.rbi +0 -55
- data/rbi/amocrm/models/v4_pipeline_statuses_get_by_id_response.rbi +0 -318
- data/rbi/amocrm/models/v4_pipeline_statuses_list_params.rbi +0 -43
- data/rbi/amocrm/models/v4_pipeline_statuses_list_response.rbi +0 -428
- data/rbi/amocrm/models/v4_pipeline_statuses_update_by_id_params.rbi +0 -148
- data/rbi/amocrm/models/v4_pipeline_statuses_update_by_id_response.rbi +0 -248
- data/rbi/amocrm/models/v4_pipeline_statuses_update_params.rbi +0 -184
- data/rbi/amocrm/models/v4_pipeline_statuses_update_response.rbi +0 -246
- data/rbi/amocrm/models/v4_pipelines_create_params.rbi +0 -311
- data/rbi/amocrm/models/v4_pipelines_create_response.rbi +0 -234
- data/rbi/amocrm/models/v4_pipelines_delete_by_id_params.rbi +0 -27
- data/rbi/amocrm/models/v4_pipelines_delete_by_id_response.rbi +0 -112
- data/rbi/amocrm/models/v4_pipelines_get_by_id_params.rbi +0 -27
- data/rbi/amocrm/models/v4_pipelines_get_by_id_response.rbi +0 -494
- data/rbi/amocrm/models/v4_pipelines_list_params.rbi +0 -27
- data/rbi/amocrm/models/v4_pipelines_list_response.rbi +0 -604
- data/rbi/amocrm/models/v4_pipelines_update_by_id_params.rbi +0 -89
- data/rbi/amocrm/models/v4_pipelines_update_by_id_response.rbi +0 -246
- data/rbi/amocrm/models/v4_pipelines_update_params.rbi +0 -125
- data/rbi/amocrm/models/v4_pipelines_update_response.rbi +0 -246
- data/rbi/amocrm/models/v4_roles_create_params.rbi +0 -289
- data/rbi/amocrm/models/v4_roles_create_response.rbi +0 -589
- data/rbi/amocrm/models/v4_roles_delete_by_id_params.rbi +0 -27
- data/rbi/amocrm/models/v4_roles_delete_by_id_response.rbi +0 -112
- data/rbi/amocrm/models/v4_roles_get_by_id_params.rbi +0 -38
- data/rbi/amocrm/models/v4_roles_get_by_id_response.rbi +0 -454
- data/rbi/amocrm/models/v4_roles_list_params.rbi +0 -57
- data/rbi/amocrm/models/v4_roles_list_response.rbi +0 -602
- data/rbi/amocrm/models/v4_roles_update_by_id_params.rbi +0 -264
- data/rbi/amocrm/models/v4_roles_update_by_id_response.rbi +0 -457
- data/rbi/amocrm/models/v4_short_links_create_params.rbi +0 -35
- data/rbi/amocrm/models/v4_short_links_create_response.rbi +0 -102
- data/rbi/amocrm/models/v4_sources_create_params.rbi +0 -151
- data/rbi/amocrm/models/v4_sources_create_response.rbi +0 -371
- data/rbi/amocrm/models/v4_sources_delete_by_id_params.rbi +0 -27
- data/rbi/amocrm/models/v4_sources_delete_by_id_response.rbi +0 -112
- data/rbi/amocrm/models/v4_sources_delete_params.rbi +0 -59
- data/rbi/amocrm/models/v4_sources_delete_response.rbi +0 -112
- data/rbi/amocrm/models/v4_sources_get_by_id_params.rbi +0 -27
- data/rbi/amocrm/models/v4_sources_get_by_id_response.rbi +0 -242
- data/rbi/amocrm/models/v4_sources_list_params.rbi +0 -137
- data/rbi/amocrm/models/v4_sources_list_response.rbi +0 -362
- data/rbi/amocrm/models/v4_sources_update_by_id_params.rbi +0 -127
- data/rbi/amocrm/models/v4_sources_update_by_id_response.rbi +0 -371
- data/rbi/amocrm/models/v4_sources_update_params.rbi +0 -163
- data/rbi/amocrm/models/v4_sources_update_response.rbi +0 -371
- data/rbi/amocrm/models/v4_tags_create_params.rbi +0 -105
- data/rbi/amocrm/models/v4_tags_create_response.rbi +0 -241
- data/rbi/amocrm/models/v4_tags_list_params.rbi +0 -96
- data/rbi/amocrm/models/v4_tags_list_response.rbi +0 -236
- data/rbi/amocrm/models/v4_talks_close_params.rbi +0 -43
- data/rbi/amocrm/models/v4_talks_close_response.rbi +0 -112
- data/rbi/amocrm/models/v4_talks_get_by_id_params.rbi +0 -27
- data/rbi/amocrm/models/v4_talks_get_by_id_response.rbi +0 -450
- data/rbi/amocrm/models/v4_tasks_create_params.rbi +0 -142
- data/rbi/amocrm/models/v4_tasks_create_response.rbi +0 -234
- data/rbi/amocrm/models/v4_tasks_get_by_id_params.rbi +0 -27
- data/rbi/amocrm/models/v4_tasks_get_by_id_response.rbi +0 -323
- data/rbi/amocrm/models/v4_tasks_list_params.rbi +0 -103
- data/rbi/amocrm/models/v4_tasks_list_response.rbi +0 -441
- data/rbi/amocrm/models/v4_tasks_update_by_id_params.rbi +0 -133
- data/rbi/amocrm/models/v4_tasks_update_by_id_response.rbi +0 -234
- data/rbi/amocrm/models/v4_tasks_update_params.rbi +0 -168
- data/rbi/amocrm/models/v4_tasks_update_response.rbi +0 -234
- data/rbi/amocrm/models/v4_unsorted_leads_accept_params.rbi +0 -57
- data/rbi/amocrm/models/v4_unsorted_leads_accept_response.rbi +0 -429
- data/rbi/amocrm/models/v4_unsorted_leads_create_forms_params.rbi +0 -1901
- data/rbi/amocrm/models/v4_unsorted_leads_create_forms_response.rbi +0 -490
- data/rbi/amocrm/models/v4_unsorted_leads_decline_params.rbi +0 -43
- data/rbi/amocrm/models/v4_unsorted_leads_decline_response.rbi +0 -429
- data/rbi/amocrm/models/v4_users_create_params.rbi +0 -314
- data/rbi/amocrm/models/v4_users_create_response.rbi +0 -1062
- data/rbi/amocrm/models/v4_users_get_by_id_params.rbi +0 -38
- data/rbi/amocrm/models/v4_users_get_by_id_response.rbi +0 -928
- data/rbi/amocrm/models/v4_users_list_params.rbi +0 -57
- data/rbi/amocrm/models/v4_users_list_response.rbi +0 -1075
- data/rbi/amocrm/models/v4_webhooks_list_params.rbi +0 -65
- data/rbi/amocrm/models/v4_webhooks_list_response.rbi +0 -304
- data/rbi/amocrm/models/v4_webhooks_subscribe_params.rbi +0 -51
- data/rbi/amocrm/models/v4_webhooks_subscribe_response.rbi +0 -186
- data/rbi/amocrm/models/v4_webhooks_unsubscribe_params.rbi +0 -35
- data/rbi/amocrm/models/v4_webhooks_unsubscribe_response.rbi +0 -112
- data/rbi/amocrm/models/v4_website_buttons_connect_online_chat_params.rbi +0 -30
- data/rbi/amocrm/models/v4_website_buttons_connect_online_chat_response.rbi +0 -114
- data/rbi/amocrm/models/v4_website_buttons_create_params.rbi +0 -59
- data/rbi/amocrm/models/v4_website_buttons_create_response.rbi +0 -117
- data/rbi/amocrm/models/v4_website_buttons_get_by_source_id_params.rbi +0 -41
- data/rbi/amocrm/models/v4_website_buttons_get_by_source_id_response.rbi +0 -173
- data/rbi/amocrm/models/v4_website_buttons_list_params.rbi +0 -57
- data/rbi/amocrm/models/v4_website_buttons_list_response.rbi +0 -289
- data/rbi/amocrm/models/v4_website_buttons_update_params.rbi +0 -69
- data/rbi/amocrm/models/v4_website_buttons_update_response.rbi +0 -171
- data/rbi/amocrm/models/v4_widget_bot_continue_continue_params.rbi +0 -154
- data/rbi/amocrm/models/v4_widget_bot_continue_continue_response.rbi +0 -114
- data/rbi/amocrm/models/v4_widgets_get_by_code_params.rbi +0 -27
- data/rbi/amocrm/models/v4_widgets_get_by_code_response.rbi +0 -342
- data/rbi/amocrm/models/v4_widgets_install_params.rbi +0 -35
- data/rbi/amocrm/models/v4_widgets_install_response.rbi +0 -342
- data/rbi/amocrm/models/v4_widgets_list_params.rbi +0 -49
- data/rbi/amocrm/models/v4_widgets_list_response.rbi +0 -460
- data/rbi/amocrm/models/v4_widgets_uninstall_params.rbi +0 -27
- data/rbi/amocrm/models/v4_widgets_uninstall_response.rbi +0 -112
- data/rbi/amocrm/resources/v2.rbi +0 -22
- data/rbi/amocrm/resources/v4.rbi +0 -2282
- data/sig/amocrm/models/v2_salesbot_run_params.rbs +0 -46
- data/sig/amocrm/models/v2_salesbot_run_response.rbs +0 -113
- data/sig/amocrm/models/v4_account_get_params.rbs +0 -22
- data/sig/amocrm/models/v4_account_get_response.rbs +0 -479
- data/sig/amocrm/models/v4_calls_create_params.rbs +0 -150
- data/sig/amocrm/models/v4_calls_create_response.rbs +0 -207
- data/sig/amocrm/models/v4_catalog_elements_create_params.rbs +0 -124
- data/sig/amocrm/models/v4_catalog_elements_create_response.rbs +0 -303
- data/sig/amocrm/models/v4_catalog_elements_get_by_id_params.rbs +0 -30
- data/sig/amocrm/models/v4_catalog_elements_get_by_id_response.rbs +0 -243
- data/sig/amocrm/models/v4_catalog_elements_list_params.rbs +0 -59
- data/sig/amocrm/models/v4_catalog_elements_list_response.rbs +0 -303
- data/sig/amocrm/models/v4_catalog_elements_update_by_id_params.rbs +0 -116
- data/sig/amocrm/models/v4_catalog_elements_update_by_id_response.rbs +0 -303
- data/sig/amocrm/models/v4_catalog_elements_update_params.rbs +0 -131
- data/sig/amocrm/models/v4_catalog_elements_update_response.rbs +0 -303
- data/sig/amocrm/models/v4_catalogs_create_params.rbs +0 -90
- data/sig/amocrm/models/v4_catalogs_create_response.rbs +0 -241
- data/sig/amocrm/models/v4_catalogs_get_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_catalogs_get_by_id_response.rbs +0 -185
- data/sig/amocrm/models/v4_catalogs_list_params.rbs +0 -32
- data/sig/amocrm/models/v4_catalogs_list_response.rbs +0 -241
- data/sig/amocrm/models/v4_catalogs_update_by_id_params.rbs +0 -56
- data/sig/amocrm/models/v4_catalogs_update_by_id_response.rbs +0 -241
- data/sig/amocrm/models/v4_catalogs_update_params.rbs +0 -76
- data/sig/amocrm/models/v4_catalogs_update_response.rbs +0 -241
- data/sig/amocrm/models/v4_companies_create_params.rbs +0 -247
- data/sig/amocrm/models/v4_companies_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_companies_get_by_id_params.rbs +0 -22
- data/sig/amocrm/models/v4_companies_get_by_id_response.rbs +0 -366
- data/sig/amocrm/models/v4_companies_list_params.rbs +0 -73
- data/sig/amocrm/models/v4_companies_list_response.rbs +0 -422
- data/sig/amocrm/models/v4_companies_update_by_id_params.rbs +0 -244
- data/sig/amocrm/models/v4_companies_update_by_id_response.rbs +0 -121
- data/sig/amocrm/models/v4_companies_update_params.rbs +0 -270
- data/sig/amocrm/models/v4_companies_update_response.rbs +0 -121
- data/sig/amocrm/models/v4_contact_chats_link_params.rbs +0 -48
- data/sig/amocrm/models/v4_contact_chats_link_response.rbs +0 -122
- data/sig/amocrm/models/v4_contact_chats_list_params.rbs +0 -22
- data/sig/amocrm/models/v4_contact_chats_list_response.rbs +0 -122
- data/sig/amocrm/models/v4_contacts_create_params.rbs +0 -259
- data/sig/amocrm/models/v4_contacts_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_contacts_get_by_id_params.rbs +0 -22
- data/sig/amocrm/models/v4_contacts_get_by_id_response.rbs +0 -394
- data/sig/amocrm/models/v4_contacts_list_params.rbs +0 -73
- data/sig/amocrm/models/v4_contacts_list_response.rbs +0 -450
- data/sig/amocrm/models/v4_contacts_update_by_id_params.rbs +0 -258
- data/sig/amocrm/models/v4_contacts_update_by_id_response.rbs +0 -121
- data/sig/amocrm/models/v4_contacts_update_params.rbs +0 -284
- data/sig/amocrm/models/v4_contacts_update_response.rbs +0 -121
- data/sig/amocrm/models/v4_custom_field_groups_create_params.rbs +0 -46
- data/sig/amocrm/models/v4_custom_field_groups_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_custom_field_groups_delete_by_id_params.rbs +0 -23
- data/sig/amocrm/models/v4_custom_field_groups_delete_by_id_response.rbs +0 -47
- data/sig/amocrm/models/v4_custom_field_groups_get_by_id_params.rbs +0 -23
- data/sig/amocrm/models/v4_custom_field_groups_get_by_id_response.rbs +0 -83
- data/sig/amocrm/models/v4_custom_field_groups_list_params.rbs +0 -32
- data/sig/amocrm/models/v4_custom_field_groups_list_response.rbs +0 -139
- data/sig/amocrm/models/v4_custom_field_groups_update_by_id_params.rbs +0 -36
- data/sig/amocrm/models/v4_custom_field_groups_update_by_id_response.rbs +0 -47
- data/sig/amocrm/models/v4_custom_fields_create_params.rbs +0 -116
- data/sig/amocrm/models/v4_custom_fields_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_custom_fields_delete_by_id_params.rbs +0 -23
- data/sig/amocrm/models/v4_custom_fields_delete_by_id_response.rbs +0 -47
- data/sig/amocrm/models/v4_custom_fields_get_by_id_params.rbs +0 -23
- data/sig/amocrm/models/v4_custom_fields_get_by_id_response.rbs +0 -151
- data/sig/amocrm/models/v4_custom_fields_list_params.rbs +0 -32
- data/sig/amocrm/models/v4_custom_fields_list_response.rbs +0 -207
- data/sig/amocrm/models/v4_custom_fields_update_by_id_params.rbs +0 -103
- data/sig/amocrm/models/v4_custom_fields_update_by_id_response.rbs +0 -47
- data/sig/amocrm/models/v4_custom_fields_update_params.rbs +0 -118
- data/sig/amocrm/models/v4_custom_fields_update_response.rbs +0 -47
- data/sig/amocrm/models/v4_customer_bonus_points_change_params.rbs +0 -28
- data/sig/amocrm/models/v4_customer_bonus_points_change_response.rbs +0 -60
- data/sig/amocrm/models/v4_customer_segments_create_params.rbs +0 -134
- data/sig/amocrm/models/v4_customer_segments_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_customer_segments_delete_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_customer_segments_delete_by_id_response.rbs +0 -47
- data/sig/amocrm/models/v4_customer_segments_get_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_customer_segments_get_by_id_response.rbs +0 -177
- data/sig/amocrm/models/v4_customer_segments_list_params.rbs +0 -15
- data/sig/amocrm/models/v4_customer_segments_list_response.rbs +0 -226
- data/sig/amocrm/models/v4_customer_segments_update_by_id_params.rbs +0 -114
- data/sig/amocrm/models/v4_customer_segments_update_by_id_response.rbs +0 -47
- data/sig/amocrm/models/v4_customer_statuses_create_params.rbs +0 -57
- data/sig/amocrm/models/v4_customer_statuses_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_customer_statuses_delete_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_customer_statuses_delete_by_id_response.rbs +0 -47
- data/sig/amocrm/models/v4_customer_statuses_get_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_customer_statuses_get_by_id_response.rbs +0 -95
- data/sig/amocrm/models/v4_customer_statuses_list_params.rbs +0 -15
- data/sig/amocrm/models/v4_customer_statuses_list_response.rbs +0 -144
- data/sig/amocrm/models/v4_customer_statuses_update_by_id_params.rbs +0 -38
- data/sig/amocrm/models/v4_customer_statuses_update_by_id_response.rbs +0 -47
- data/sig/amocrm/models/v4_customer_transactions_create_params.rbs +0 -78
- data/sig/amocrm/models/v4_customer_transactions_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_customer_transactions_delete_by_id_params.rbs +0 -23
- data/sig/amocrm/models/v4_customer_transactions_delete_by_id_response.rbs +0 -47
- data/sig/amocrm/models/v4_customer_transactions_list_by_customer_params.rbs +0 -38
- data/sig/amocrm/models/v4_customer_transactions_list_by_customer_response.rbs +0 -165
- data/sig/amocrm/models/v4_customer_transactions_list_params.rbs +0 -38
- data/sig/amocrm/models/v4_customer_transactions_list_response.rbs +0 -165
- data/sig/amocrm/models/v4_customers_create_params.rbs +0 -300
- data/sig/amocrm/models/v4_customers_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_customers_get_by_id_params.rbs +0 -22
- data/sig/amocrm/models/v4_customers_get_by_id_response.rbs +0 -429
- data/sig/amocrm/models/v4_customers_list_params.rbs +0 -73
- data/sig/amocrm/models/v4_customers_list_response.rbs +0 -485
- data/sig/amocrm/models/v4_customers_mode_set_mode_params.rbs +0 -42
- data/sig/amocrm/models/v4_customers_mode_set_mode_response.rbs +0 -87
- data/sig/amocrm/models/v4_customers_update_by_id_params.rbs +0 -288
- data/sig/amocrm/models/v4_customers_update_by_id_response.rbs +0 -121
- data/sig/amocrm/models/v4_customers_update_params.rbs +0 -312
- data/sig/amocrm/models/v4_customers_update_response.rbs +0 -121
- data/sig/amocrm/models/v4_entity_followers_add_params.rbs +0 -54
- data/sig/amocrm/models/v4_entity_followers_add_response.rbs +0 -116
- data/sig/amocrm/models/v4_entity_followers_list_params.rbs +0 -53
- data/sig/amocrm/models/v4_entity_followers_list_response.rbs +0 -151
- data/sig/amocrm/models/v4_entity_followers_remove_params.rbs +0 -54
- data/sig/amocrm/models/v4_entity_followers_remove_response.rbs +0 -64
- data/sig/amocrm/models/v4_entity_links_link_by_entity_params.rbs +0 -122
- data/sig/amocrm/models/v4_entity_links_link_by_entity_response.rbs +0 -64
- data/sig/amocrm/models/v4_entity_links_link_params.rbs +0 -115
- data/sig/amocrm/models/v4_entity_links_link_response.rbs +0 -64
- data/sig/amocrm/models/v4_entity_links_list_by_entity_params.rbs +0 -39
- data/sig/amocrm/models/v4_entity_links_list_by_entity_response.rbs +0 -176
- data/sig/amocrm/models/v4_entity_links_list_params.rbs +0 -35
- data/sig/amocrm/models/v4_entity_links_list_response.rbs +0 -176
- data/sig/amocrm/models/v4_entity_links_unlink_by_entity_params.rbs +0 -122
- data/sig/amocrm/models/v4_entity_links_unlink_by_entity_response.rbs +0 -64
- data/sig/amocrm/models/v4_entity_links_unlink_params.rbs +0 -115
- data/sig/amocrm/models/v4_entity_links_unlink_response.rbs +0 -64
- data/sig/amocrm/models/v4_entity_notes_by_parent_create_by_parent_params.rbs +0 -117
- data/sig/amocrm/models/v4_entity_notes_by_parent_create_by_parent_response.rbs +0 -144
- data/sig/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_params.rbs +0 -51
- data/sig/amocrm/models/v4_entity_notes_by_parent_get_by_parent_id_response.rbs +0 -151
- data/sig/amocrm/models/v4_entity_notes_by_parent_list_by_parent_params.rbs +0 -60
- data/sig/amocrm/models/v4_entity_notes_by_parent_list_by_parent_response.rbs +0 -207
- data/sig/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_params.rbs +0 -74
- data/sig/amocrm/models/v4_entity_notes_by_parent_update_by_parent_id_response.rbs +0 -144
- data/sig/amocrm/models/v4_entity_notes_by_parent_update_by_parent_params.rbs +0 -96
- data/sig/amocrm/models/v4_entity_notes_by_parent_update_by_parent_response.rbs +0 -144
- data/sig/amocrm/models/v4_entity_notes_create_params.rbs +0 -110
- data/sig/amocrm/models/v4_entity_notes_create_response.rbs +0 -144
- data/sig/amocrm/models/v4_entity_notes_get_by_id_params.rbs +0 -46
- data/sig/amocrm/models/v4_entity_notes_get_by_id_response.rbs +0 -151
- data/sig/amocrm/models/v4_entity_notes_list_params.rbs +0 -51
- data/sig/amocrm/models/v4_entity_notes_list_response.rbs +0 -207
- data/sig/amocrm/models/v4_entity_notes_pin_params.rbs +0 -37
- data/sig/amocrm/models/v4_entity_notes_pin_response.rbs +0 -64
- data/sig/amocrm/models/v4_entity_notes_unpin_params.rbs +0 -37
- data/sig/amocrm/models/v4_entity_notes_unpin_response.rbs +0 -64
- data/sig/amocrm/models/v4_entity_notes_update_by_id_params.rbs +0 -74
- data/sig/amocrm/models/v4_entity_notes_update_by_id_response.rbs +0 -144
- data/sig/amocrm/models/v4_entity_notes_update_params.rbs +0 -89
- data/sig/amocrm/models/v4_entity_notes_update_response.rbs +0 -144
- data/sig/amocrm/models/v4_events_get_by_id_params.rbs +0 -22
- data/sig/amocrm/models/v4_events_get_by_id_response.rbs +0 -123
- data/sig/amocrm/models/v4_events_list_params.rbs +0 -44
- data/sig/amocrm/models/v4_events_list_response.rbs +0 -179
- data/sig/amocrm/models/v4_events_list_types_params.rbs +0 -25
- data/sig/amocrm/models/v4_events_list_types_response.rbs +0 -81
- data/sig/amocrm/models/v4_leads_create_complex_params.rbs +0 -603
- data/sig/amocrm/models/v4_leads_create_complex_response.rbs +0 -144
- data/sig/amocrm/models/v4_leads_create_params.rbs +0 -603
- data/sig/amocrm/models/v4_leads_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_leads_get_by_id_params.rbs +0 -22
- data/sig/amocrm/models/v4_leads_get_by_id_response.rbs +0 -482
- data/sig/amocrm/models/v4_leads_list_params.rbs +0 -73
- data/sig/amocrm/models/v4_leads_list_response.rbs +0 -538
- data/sig/amocrm/models/v4_leads_update_by_id_params.rbs +0 -578
- data/sig/amocrm/models/v4_leads_update_by_id_response.rbs +0 -121
- data/sig/amocrm/models/v4_leads_update_params.rbs +0 -602
- data/sig/amocrm/models/v4_leads_update_response.rbs +0 -121
- data/sig/amocrm/models/v4_pipeline_statuses_create_params.rbs +0 -95
- data/sig/amocrm/models/v4_pipeline_statuses_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_pipeline_statuses_delete_by_id_params.rbs +0 -23
- data/sig/amocrm/models/v4_pipeline_statuses_delete_by_id_response.rbs +0 -64
- data/sig/amocrm/models/v4_pipeline_statuses_get_by_id_params.rbs +0 -30
- data/sig/amocrm/models/v4_pipeline_statuses_get_by_id_response.rbs +0 -203
- data/sig/amocrm/models/v4_pipeline_statuses_list_params.rbs +0 -22
- data/sig/amocrm/models/v4_pipeline_statuses_list_response.rbs +0 -252
- data/sig/amocrm/models/v4_pipeline_statuses_update_by_id_params.rbs +0 -87
- data/sig/amocrm/models/v4_pipeline_statuses_update_by_id_response.rbs +0 -137
- data/sig/amocrm/models/v4_pipeline_statuses_update_params.rbs +0 -102
- data/sig/amocrm/models/v4_pipeline_statuses_update_response.rbs +0 -137
- data/sig/amocrm/models/v4_pipelines_create_params.rbs +0 -175
- data/sig/amocrm/models/v4_pipelines_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_pipelines_delete_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_pipelines_delete_by_id_response.rbs +0 -64
- data/sig/amocrm/models/v4_pipelines_get_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_pipelines_get_by_id_response.rbs +0 -301
- data/sig/amocrm/models/v4_pipelines_list_params.rbs +0 -15
- data/sig/amocrm/models/v4_pipelines_list_response.rbs +0 -350
- data/sig/amocrm/models/v4_pipelines_update_by_id_params.rbs +0 -63
- data/sig/amocrm/models/v4_pipelines_update_by_id_response.rbs +0 -137
- data/sig/amocrm/models/v4_pipelines_update_params.rbs +0 -83
- data/sig/amocrm/models/v4_pipelines_update_response.rbs +0 -137
- data/sig/amocrm/models/v4_roles_create_params.rbs +0 -187
- data/sig/amocrm/models/v4_roles_create_response.rbs +0 -325
- data/sig/amocrm/models/v4_roles_delete_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_roles_delete_by_id_response.rbs +0 -64
- data/sig/amocrm/models/v4_roles_get_by_id_params.rbs +0 -22
- data/sig/amocrm/models/v4_roles_get_by_id_response.rbs +0 -262
- data/sig/amocrm/models/v4_roles_list_params.rbs +0 -38
- data/sig/amocrm/models/v4_roles_list_response.rbs +0 -332
- data/sig/amocrm/models/v4_roles_update_by_id_params.rbs +0 -170
- data/sig/amocrm/models/v4_roles_update_by_id_response.rbs +0 -262
- data/sig/amocrm/models/v4_short_links_create_params.rbs +0 -20
- data/sig/amocrm/models/v4_short_links_create_response.rbs +0 -60
- data/sig/amocrm/models/v4_sources_create_params.rbs +0 -91
- data/sig/amocrm/models/v4_sources_create_response.rbs +0 -199
- data/sig/amocrm/models/v4_sources_delete_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_sources_delete_by_id_response.rbs +0 -64
- data/sig/amocrm/models/v4_sources_delete_params.rbs +0 -34
- data/sig/amocrm/models/v4_sources_delete_response.rbs +0 -64
- data/sig/amocrm/models/v4_sources_get_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_sources_get_by_id_response.rbs +0 -136
- data/sig/amocrm/models/v4_sources_list_params.rbs +0 -71
- data/sig/amocrm/models/v4_sources_list_response.rbs +0 -192
- data/sig/amocrm/models/v4_sources_update_by_id_params.rbs +0 -80
- data/sig/amocrm/models/v4_sources_update_by_id_response.rbs +0 -199
- data/sig/amocrm/models/v4_sources_update_params.rbs +0 -100
- data/sig/amocrm/models/v4_sources_update_response.rbs +0 -199
- data/sig/amocrm/models/v4_tags_create_params.rbs +0 -59
- data/sig/amocrm/models/v4_tags_create_response.rbs +0 -132
- data/sig/amocrm/models/v4_tags_list_params.rbs +0 -57
- data/sig/amocrm/models/v4_tags_list_response.rbs +0 -128
- data/sig/amocrm/models/v4_talks_close_params.rbs +0 -25
- data/sig/amocrm/models/v4_talks_close_response.rbs +0 -64
- data/sig/amocrm/models/v4_talks_get_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_talks_get_by_id_response.rbs +0 -248
- data/sig/amocrm/models/v4_tasks_create_params.rbs +0 -97
- data/sig/amocrm/models/v4_tasks_create_response.rbs +0 -121
- data/sig/amocrm/models/v4_tasks_get_by_id_params.rbs +0 -15
- data/sig/amocrm/models/v4_tasks_get_by_id_response.rbs +0 -202
- data/sig/amocrm/models/v4_tasks_list_params.rbs +0 -66
- data/sig/amocrm/models/v4_tasks_list_response.rbs +0 -259
- data/sig/amocrm/models/v4_tasks_update_by_id_params.rbs +0 -91
- data/sig/amocrm/models/v4_tasks_update_by_id_response.rbs +0 -121
- data/sig/amocrm/models/v4_tasks_update_params.rbs +0 -111
- data/sig/amocrm/models/v4_tasks_update_response.rbs +0 -121
- data/sig/amocrm/models/v4_unsorted_leads_accept_params.rbs +0 -32
- data/sig/amocrm/models/v4_unsorted_leads_accept_response.rbs +0 -199
- data/sig/amocrm/models/v4_unsorted_leads_create_forms_params.rbs +0 -916
- data/sig/amocrm/models/v4_unsorted_leads_create_forms_response.rbs +0 -233
- data/sig/amocrm/models/v4_unsorted_leads_decline_params.rbs +0 -25
- data/sig/amocrm/models/v4_unsorted_leads_decline_response.rbs +0 -199
- data/sig/amocrm/models/v4_users_create_params.rbs +0 -204
- data/sig/amocrm/models/v4_users_create_response.rbs +0 -594
- data/sig/amocrm/models/v4_users_get_by_id_params.rbs +0 -22
- data/sig/amocrm/models/v4_users_get_by_id_response.rbs +0 -527
- data/sig/amocrm/models/v4_users_list_params.rbs +0 -38
- data/sig/amocrm/models/v4_users_list_response.rbs +0 -601
- data/sig/amocrm/models/v4_webhooks_list_params.rbs +0 -40
- data/sig/amocrm/models/v4_webhooks_list_response.rbs +0 -179
- data/sig/amocrm/models/v4_webhooks_subscribe_params.rbs +0 -34
- data/sig/amocrm/models/v4_webhooks_subscribe_response.rbs +0 -123
- data/sig/amocrm/models/v4_webhooks_unsubscribe_params.rbs +0 -23
- data/sig/amocrm/models/v4_webhooks_unsubscribe_response.rbs +0 -64
- data/sig/amocrm/models/v4_website_buttons_connect_online_chat_params.rbs +0 -15
- data/sig/amocrm/models/v4_website_buttons_connect_online_chat_response.rbs +0 -64
- data/sig/amocrm/models/v4_website_buttons_create_params.rbs +0 -40
- data/sig/amocrm/models/v4_website_buttons_create_response.rbs +0 -71
- data/sig/amocrm/models/v4_website_buttons_get_by_source_id_params.rbs +0 -22
- data/sig/amocrm/models/v4_website_buttons_get_by_source_id_response.rbs +0 -112
- data/sig/amocrm/models/v4_website_buttons_list_params.rbs +0 -38
- data/sig/amocrm/models/v4_website_buttons_list_response.rbs +0 -168
- data/sig/amocrm/models/v4_website_buttons_update_params.rbs +0 -36
- data/sig/amocrm/models/v4_website_buttons_update_response.rbs +0 -112
- data/sig/amocrm/models/v4_widget_bot_continue_continue_params.rbs +0 -74
- data/sig/amocrm/models/v4_widget_bot_continue_continue_response.rbs +0 -64
- data/sig/amocrm/models/v4_widgets_get_by_code_params.rbs +0 -15
- data/sig/amocrm/models/v4_widgets_get_by_code_response.rbs +0 -194
- data/sig/amocrm/models/v4_widgets_install_params.rbs +0 -20
- data/sig/amocrm/models/v4_widgets_install_response.rbs +0 -194
- data/sig/amocrm/models/v4_widgets_list_params.rbs +0 -32
- data/sig/amocrm/models/v4_widgets_list_response.rbs +0 -250
- data/sig/amocrm/models/v4_widgets_uninstall_params.rbs +0 -15
- data/sig/amocrm/models/v4_widgets_uninstall_response.rbs +0 -64
- data/sig/amocrm/resources/v2.rbs +0 -12
- data/sig/amocrm/resources/v4.rbs +0 -952
data/lib/amocrm/resources/v4.rb
DELETED
|
@@ -1,3434 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Amocrm
|
|
4
|
-
module Resources
|
|
5
|
-
class V4
|
|
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
|
|
3425
|
-
|
|
3426
|
-
# @api private
|
|
3427
|
-
#
|
|
3428
|
-
# @param client [Amocrm::Client]
|
|
3429
|
-
def initialize(client:)
|
|
3430
|
-
@client = client
|
|
3431
|
-
end
|
|
3432
|
-
end
|
|
3433
|
-
end
|
|
3434
|
-
end
|