amocrm 0.5.2 → 0.5.3
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 +18 -0
- data/README.md +1 -1
- data/lib/amocrm/internal/util.rb +31 -0
- data/lib/amocrm/models/catalog_element_create_params.rb +7 -1
- data/lib/amocrm/models/catalog_element_get_by_id_params.rb +8 -1
- data/lib/amocrm/models/catalog_element_list_params.rb +7 -1
- data/lib/amocrm/models/catalog_element_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/catalog_element_update_params.rb +7 -1
- data/lib/amocrm/models/catalog_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/catalog_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/company_get_by_id_params.rb +8 -1
- data/lib/amocrm/models/company_update_by_id_params.rb +8 -1
- data/lib/amocrm/models/contact_get_by_id_params.rb +8 -1
- data/lib/amocrm/models/contact_update_by_id_params.rb +8 -1
- data/lib/amocrm/models/custom_field_create_params.rb +7 -1
- data/lib/amocrm/models/custom_field_delete_by_id_params.rb +7 -1
- data/lib/amocrm/models/custom_field_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/custom_field_group_create_params.rb +7 -1
- data/lib/amocrm/models/custom_field_group_delete_by_id_params.rb +7 -1
- data/lib/amocrm/models/custom_field_group_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/custom_field_group_list_params.rb +7 -1
- data/lib/amocrm/models/custom_field_group_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/custom_field_list_params.rb +7 -1
- data/lib/amocrm/models/custom_field_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/custom_field_update_params.rb +7 -1
- data/lib/amocrm/models/customer_bonus_point_change_params.rb +39 -8
- data/lib/amocrm/models/customer_get_by_id_params.rb +8 -1
- data/lib/amocrm/models/customer_segment_delete_by_id_params.rb +7 -1
- data/lib/amocrm/models/customer_segment_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/customer_segment_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/customer_status_delete_by_id_params.rb +7 -1
- data/lib/amocrm/models/customer_status_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/customer_status_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/customer_transaction_create_params.rb +7 -1
- data/lib/amocrm/models/customer_transaction_delete_by_id_params.rb +7 -1
- data/lib/amocrm/models/customer_transaction_list_by_customer_params.rb +7 -1
- data/lib/amocrm/models/customer_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/entity_follower_add_params.rb +7 -1
- data/lib/amocrm/models/entity_follower_list_params.rb +7 -1
- data/lib/amocrm/models/entity_follower_remove_params.rb +7 -1
- data/lib/amocrm/models/entity_link_link_by_entity_params.rb +7 -1
- data/lib/amocrm/models/entity_link_link_params.rb +7 -1
- data/lib/amocrm/models/entity_link_list_by_entity_params.rb +7 -1
- data/lib/amocrm/models/entity_link_list_params.rb +7 -1
- data/lib/amocrm/models/entity_link_unlink_by_entity_params.rb +7 -1
- data/lib/amocrm/models/entity_link_unlink_params.rb +7 -1
- data/lib/amocrm/models/entity_note_create_params.rb +7 -1
- data/lib/amocrm/models/entity_note_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/entity_note_list_params.rb +7 -1
- data/lib/amocrm/models/entity_note_pin_params.rb +7 -1
- data/lib/amocrm/models/entity_note_unpin_params.rb +7 -1
- data/lib/amocrm/models/entity_note_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/entity_note_update_params.rb +7 -1
- data/lib/amocrm/models/entity_notes_by_parent_create_by_parent_params.rb +7 -1
- data/lib/amocrm/models/entity_notes_by_parent_get_by_parent_id_params.rb +7 -1
- data/lib/amocrm/models/entity_notes_by_parent_list_by_parent_params.rb +7 -1
- data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rb +13 -1
- data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_params.rb +7 -1
- data/lib/amocrm/models/event_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/lead_get_by_id_params.rb +8 -1
- data/lib/amocrm/models/lead_update_by_id_params.rb +8 -1
- data/lib/amocrm/models/pipeline_delete_by_id_params.rb +7 -1
- data/lib/amocrm/models/pipeline_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/pipeline_status_create_params.rb +7 -1
- data/lib/amocrm/models/pipeline_status_delete_by_id_params.rb +7 -1
- data/lib/amocrm/models/pipeline_status_get_by_id_params.rb +8 -1
- data/lib/amocrm/models/pipeline_status_list_params.rb +8 -1
- data/lib/amocrm/models/pipeline_status_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/pipeline_status_update_params.rb +7 -1
- data/lib/amocrm/models/pipeline_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/role_delete_by_id_params.rb +7 -1
- data/lib/amocrm/models/role_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/role_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/source_delete_by_id_params.rb +7 -1
- data/lib/amocrm/models/source_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/source_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/tag_create_params.rb +7 -1
- data/lib/amocrm/models/tag_list_params.rb +7 -1
- data/lib/amocrm/models/talk_close_params.rb +8 -1
- data/lib/amocrm/models/talk_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/task_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/task_update_by_id_params.rb +7 -1
- data/lib/amocrm/models/unsorted_lead_accept_params.rb +8 -1
- data/lib/amocrm/models/unsorted_lead_decline_params.rb +8 -1
- data/lib/amocrm/models/user_get_by_id_params.rb +7 -1
- data/lib/amocrm/models/website_button_connect_online_chat_params.rb +7 -1
- data/lib/amocrm/models/website_button_get_by_source_id_params.rb +7 -1
- data/lib/amocrm/models/website_button_update_params.rb +7 -1
- data/lib/amocrm/models/widget_bot_continue_continue_params.rb +7 -1
- data/lib/amocrm/models/widget_get_by_code_params.rb +7 -1
- data/lib/amocrm/models/widget_install_params.rb +7 -1
- data/lib/amocrm/models/widget_uninstall_params.rb +7 -1
- data/lib/amocrm/resources/account.rb +2 -1
- data/lib/amocrm/resources/catalog_elements.rb +4 -2
- data/lib/amocrm/resources/catalogs.rb +2 -1
- data/lib/amocrm/resources/companies.rb +4 -2
- data/lib/amocrm/resources/contact_chats.rb +2 -1
- data/lib/amocrm/resources/contacts.rb +4 -2
- data/lib/amocrm/resources/custom_field_groups.rb +2 -1
- data/lib/amocrm/resources/custom_fields.rb +2 -1
- data/lib/amocrm/resources/customer_bonus_points.rb +3 -4
- data/lib/amocrm/resources/customer_transactions.rb +6 -3
- data/lib/amocrm/resources/customers.rb +4 -2
- data/lib/amocrm/resources/entity_followers.rb +2 -1
- data/lib/amocrm/resources/entity_links.rb +2 -1
- data/lib/amocrm/resources/entity_notes.rb +4 -2
- data/lib/amocrm/resources/entity_notes_by_parent.rb +4 -2
- data/lib/amocrm/resources/events.rb +6 -3
- data/lib/amocrm/resources/leads.rb +4 -2
- data/lib/amocrm/resources/pipeline_statuses.rb +4 -2
- data/lib/amocrm/resources/roles.rb +4 -2
- data/lib/amocrm/resources/sources.rb +2 -1
- data/lib/amocrm/resources/tags.rb +2 -1
- data/lib/amocrm/resources/tasks.rb +2 -1
- data/lib/amocrm/resources/users.rb +4 -2
- data/lib/amocrm/resources/webhooks.rb +2 -1
- data/lib/amocrm/resources/website_buttons.rb +4 -2
- data/lib/amocrm/resources/widgets.rb +2 -1
- data/lib/amocrm/version.rb +1 -1
- data/rbi/amocrm/internal/util.rbi +20 -0
- data/rbi/amocrm/models/catalog_element_create_params.rbi +6 -1
- data/rbi/amocrm/models/catalog_element_get_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/catalog_element_list_params.rbi +6 -0
- data/rbi/amocrm/models/catalog_element_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/catalog_element_update_params.rbi +6 -1
- data/rbi/amocrm/models/catalog_get_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/catalog_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/company_get_by_id_params.rbi +6 -1
- data/rbi/amocrm/models/company_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/contact_get_by_id_params.rbi +6 -1
- data/rbi/amocrm/models/contact_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/custom_field_create_params.rbi +6 -1
- data/rbi/amocrm/models/custom_field_delete_by_id_params.rbi +10 -2
- data/rbi/amocrm/models/custom_field_get_by_id_params.rbi +10 -2
- data/rbi/amocrm/models/custom_field_group_create_params.rbi +6 -1
- data/rbi/amocrm/models/custom_field_group_delete_by_id_params.rbi +10 -2
- data/rbi/amocrm/models/custom_field_group_get_by_id_params.rbi +10 -2
- data/rbi/amocrm/models/custom_field_group_list_params.rbi +6 -1
- data/rbi/amocrm/models/custom_field_group_update_by_id_params.rbi +6 -1
- data/rbi/amocrm/models/custom_field_list_params.rbi +6 -1
- data/rbi/amocrm/models/custom_field_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/custom_field_update_params.rbi +6 -1
- data/rbi/amocrm/models/customer_bonus_point_change_params.rbi +85 -8
- data/rbi/amocrm/models/customer_get_by_id_params.rbi +6 -1
- data/rbi/amocrm/models/customer_segment_delete_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/customer_segment_get_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/customer_segment_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/customer_status_delete_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/customer_status_get_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/customer_status_update_by_id_params.rbi +6 -1
- data/rbi/amocrm/models/customer_transaction_create_params.rbi +6 -1
- data/rbi/amocrm/models/customer_transaction_delete_by_id_params.rbi +10 -2
- data/rbi/amocrm/models/customer_transaction_list_by_customer_params.rbi +12 -1
- data/rbi/amocrm/models/customer_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/entity_follower_add_params.rbi +6 -1
- data/rbi/amocrm/models/entity_follower_list_params.rbi +12 -1
- data/rbi/amocrm/models/entity_follower_remove_params.rbi +6 -1
- data/rbi/amocrm/models/entity_link_link_by_entity_params.rbi +6 -1
- data/rbi/amocrm/models/entity_link_link_params.rbi +6 -1
- data/rbi/amocrm/models/entity_link_list_by_entity_params.rbi +6 -1
- data/rbi/amocrm/models/entity_link_list_params.rbi +10 -2
- data/rbi/amocrm/models/entity_link_unlink_by_entity_params.rbi +6 -1
- data/rbi/amocrm/models/entity_link_unlink_params.rbi +6 -1
- data/rbi/amocrm/models/entity_note_create_params.rbi +6 -1
- data/rbi/amocrm/models/entity_note_get_by_id_params.rbi +6 -1
- data/rbi/amocrm/models/entity_note_list_params.rbi +12 -1
- data/rbi/amocrm/models/entity_note_pin_params.rbi +6 -1
- data/rbi/amocrm/models/entity_note_unpin_params.rbi +6 -1
- data/rbi/amocrm/models/entity_note_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/entity_note_update_params.rbi +6 -1
- data/rbi/amocrm/models/entity_notes_by_parent_create_by_parent_params.rbi +6 -1
- data/rbi/amocrm/models/entity_notes_by_parent_get_by_parent_id_params.rbi +12 -1
- data/rbi/amocrm/models/entity_notes_by_parent_list_by_parent_params.rbi +6 -0
- data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rbi +12 -0
- data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_params.rbi +6 -1
- data/rbi/amocrm/models/event_get_by_id_params.rbi +6 -2
- data/rbi/amocrm/models/lead_get_by_id_params.rbi +6 -1
- data/rbi/amocrm/models/lead_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/pipeline_delete_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/pipeline_get_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/pipeline_status_create_params.rbi +6 -1
- data/rbi/amocrm/models/pipeline_status_delete_by_id_params.rbi +10 -2
- data/rbi/amocrm/models/pipeline_status_get_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/pipeline_status_list_params.rbi +10 -1
- data/rbi/amocrm/models/pipeline_status_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/pipeline_status_update_params.rbi +6 -1
- data/rbi/amocrm/models/pipeline_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/role_delete_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/role_get_by_id_params.rbi +6 -2
- data/rbi/amocrm/models/role_update_by_id_params.rbi +12 -1
- data/rbi/amocrm/models/source_delete_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/source_get_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/source_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/tag_create_params.rbi +6 -1
- data/rbi/amocrm/models/tag_list_params.rbi +6 -0
- data/rbi/amocrm/models/talk_close_params.rbi +10 -1
- data/rbi/amocrm/models/talk_get_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/task_get_by_id_params.rbi +13 -5
- data/rbi/amocrm/models/task_update_by_id_params.rbi +6 -0
- data/rbi/amocrm/models/unsorted_lead_accept_params.rbi +6 -0
- data/rbi/amocrm/models/unsorted_lead_decline_params.rbi +10 -1
- data/rbi/amocrm/models/user_get_by_id_params.rbi +6 -2
- data/rbi/amocrm/models/website_button_connect_online_chat_params.rbi +13 -5
- data/rbi/amocrm/models/website_button_get_by_source_id_params.rbi +10 -2
- data/rbi/amocrm/models/website_button_update_params.rbi +6 -1
- data/rbi/amocrm/models/widget_bot_continue_continue_params.rbi +6 -0
- data/rbi/amocrm/models/widget_get_by_code_params.rbi +13 -5
- data/rbi/amocrm/models/widget_install_params.rbi +10 -2
- data/rbi/amocrm/models/widget_uninstall_params.rbi +13 -5
- data/rbi/amocrm/resources/customer_bonus_points.rbi +6 -3
- data/sig/amocrm/internal/util.rbs +10 -0
- data/sig/amocrm/models/catalog_element_create_params.rbs +8 -1
- data/sig/amocrm/models/catalog_element_get_by_id_params.rbs +5 -1
- data/sig/amocrm/models/catalog_element_list_params.rbs +5 -0
- data/sig/amocrm/models/catalog_element_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/catalog_element_update_params.rbs +8 -1
- data/sig/amocrm/models/catalog_get_by_id_params.rbs +8 -3
- data/sig/amocrm/models/catalog_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/company_get_by_id_params.rbs +9 -2
- data/sig/amocrm/models/company_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/contact_get_by_id_params.rbs +9 -2
- data/sig/amocrm/models/contact_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/custom_field_create_params.rbs +8 -1
- data/sig/amocrm/models/custom_field_delete_by_id_params.rbs +6 -1
- data/sig/amocrm/models/custom_field_get_by_id_params.rbs +6 -1
- data/sig/amocrm/models/custom_field_group_create_params.rbs +8 -1
- data/sig/amocrm/models/custom_field_group_delete_by_id_params.rbs +6 -1
- data/sig/amocrm/models/custom_field_group_get_by_id_params.rbs +6 -1
- data/sig/amocrm/models/custom_field_group_list_params.rbs +5 -1
- data/sig/amocrm/models/custom_field_group_update_by_id_params.rbs +5 -1
- data/sig/amocrm/models/custom_field_list_params.rbs +5 -1
- data/sig/amocrm/models/custom_field_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/custom_field_update_params.rbs +8 -1
- data/sig/amocrm/models/customer_bonus_point_change_params.rbs +40 -7
- data/sig/amocrm/models/customer_get_by_id_params.rbs +9 -2
- data/sig/amocrm/models/customer_segment_delete_by_id_params.rbs +8 -3
- data/sig/amocrm/models/customer_segment_get_by_id_params.rbs +8 -3
- data/sig/amocrm/models/customer_segment_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/customer_status_delete_by_id_params.rbs +8 -3
- data/sig/amocrm/models/customer_status_get_by_id_params.rbs +8 -3
- data/sig/amocrm/models/customer_status_update_by_id_params.rbs +5 -1
- data/sig/amocrm/models/customer_transaction_create_params.rbs +5 -0
- data/sig/amocrm/models/customer_transaction_delete_by_id_params.rbs +6 -1
- data/sig/amocrm/models/customer_transaction_list_by_customer_params.rbs +5 -1
- data/sig/amocrm/models/customer_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/entity_follower_add_params.rbs +5 -0
- data/sig/amocrm/models/entity_follower_list_params.rbs +5 -0
- data/sig/amocrm/models/entity_follower_remove_params.rbs +5 -0
- data/sig/amocrm/models/entity_link_link_by_entity_params.rbs +5 -0
- data/sig/amocrm/models/entity_link_link_params.rbs +8 -1
- data/sig/amocrm/models/entity_link_list_by_entity_params.rbs +8 -1
- data/sig/amocrm/models/entity_link_list_params.rbs +13 -2
- data/sig/amocrm/models/entity_link_unlink_by_entity_params.rbs +5 -0
- data/sig/amocrm/models/entity_link_unlink_params.rbs +8 -1
- data/sig/amocrm/models/entity_note_create_params.rbs +8 -1
- data/sig/amocrm/models/entity_note_get_by_id_params.rbs +5 -0
- data/sig/amocrm/models/entity_note_list_params.rbs +10 -1
- data/sig/amocrm/models/entity_note_pin_params.rbs +8 -1
- data/sig/amocrm/models/entity_note_unpin_params.rbs +8 -1
- data/sig/amocrm/models/entity_note_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/entity_note_update_params.rbs +8 -1
- data/sig/amocrm/models/entity_notes_by_parent_create_by_parent_params.rbs +5 -0
- data/sig/amocrm/models/entity_notes_by_parent_get_by_parent_id_params.rbs +5 -0
- data/sig/amocrm/models/entity_notes_by_parent_list_by_parent_params.rbs +5 -0
- data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rbs +10 -0
- data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_params.rbs +5 -0
- data/sig/amocrm/models/event_get_by_id_params.rbs +9 -2
- data/sig/amocrm/models/lead_get_by_id_params.rbs +9 -2
- data/sig/amocrm/models/lead_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/pipeline_delete_by_id_params.rbs +8 -3
- data/sig/amocrm/models/pipeline_get_by_id_params.rbs +8 -3
- data/sig/amocrm/models/pipeline_status_create_params.rbs +8 -1
- data/sig/amocrm/models/pipeline_status_delete_by_id_params.rbs +6 -1
- data/sig/amocrm/models/pipeline_status_get_by_id_params.rbs +5 -1
- data/sig/amocrm/models/pipeline_status_list_params.rbs +10 -2
- data/sig/amocrm/models/pipeline_status_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/pipeline_status_update_params.rbs +8 -1
- data/sig/amocrm/models/pipeline_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/role_delete_by_id_params.rbs +8 -3
- data/sig/amocrm/models/role_get_by_id_params.rbs +9 -2
- data/sig/amocrm/models/role_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/source_delete_by_id_params.rbs +8 -3
- data/sig/amocrm/models/source_get_by_id_params.rbs +8 -3
- data/sig/amocrm/models/source_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/tag_create_params.rbs +8 -1
- data/sig/amocrm/models/tag_list_params.rbs +11 -1
- data/sig/amocrm/models/talk_close_params.rbs +6 -1
- data/sig/amocrm/models/talk_get_by_id_params.rbs +8 -3
- data/sig/amocrm/models/task_get_by_id_params.rbs +8 -3
- data/sig/amocrm/models/task_update_by_id_params.rbs +5 -0
- data/sig/amocrm/models/unsorted_lead_accept_params.rbs +5 -1
- data/sig/amocrm/models/unsorted_lead_decline_params.rbs +6 -1
- data/sig/amocrm/models/user_get_by_id_params.rbs +9 -2
- data/sig/amocrm/models/website_button_connect_online_chat_params.rbs +11 -3
- data/sig/amocrm/models/website_button_get_by_source_id_params.rbs +10 -2
- data/sig/amocrm/models/website_button_update_params.rbs +8 -1
- data/sig/amocrm/models/widget_bot_continue_continue_params.rbs +5 -0
- data/sig/amocrm/models/widget_get_by_code_params.rbs +11 -3
- data/sig/amocrm/models/widget_install_params.rbs +10 -2
- data/sig/amocrm/models/widget_uninstall_params.rbs +11 -3
- data/sig/amocrm/resources/customer_bonus_points.rbs +1 -2
- metadata +2 -2
|
@@ -7,7 +7,13 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute widget_code
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :widget_code, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(widget_code:, request_options: {})
|
|
16
|
+
# @param widget_code [String]
|
|
11
17
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -16,10 +16,11 @@ module Amocrm
|
|
|
16
16
|
# @see Amocrm::Models::AccountGetParams
|
|
17
17
|
def get(params = {})
|
|
18
18
|
parsed, options = Amocrm::AccountGetParams.dump_request(params)
|
|
19
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
19
20
|
@client.request(
|
|
20
21
|
method: :get,
|
|
21
22
|
path: "api/v4/account",
|
|
22
|
-
query:
|
|
23
|
+
query: query,
|
|
23
24
|
model: Amocrm::Models::AccountGetResponse,
|
|
24
25
|
options: options
|
|
25
26
|
)
|
|
@@ -63,10 +63,11 @@ module Amocrm
|
|
|
63
63
|
# @see Amocrm::Models::CatalogElementListParams
|
|
64
64
|
def list(catalog_id, params = {})
|
|
65
65
|
parsed, options = Amocrm::CatalogElementListParams.dump_request(params)
|
|
66
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
66
67
|
@client.request(
|
|
67
68
|
method: :get,
|
|
68
69
|
path: ["api/v4/catalogs/%1$s/elements", catalog_id],
|
|
69
|
-
query:
|
|
70
|
+
query: query,
|
|
70
71
|
model: Amocrm::Models::CatalogElementListResponse,
|
|
71
72
|
options: options
|
|
72
73
|
)
|
|
@@ -89,6 +90,7 @@ module Amocrm
|
|
|
89
90
|
# @see Amocrm::Models::CatalogElementGetByIDParams
|
|
90
91
|
def get_by_id(id, params)
|
|
91
92
|
parsed, options = Amocrm::CatalogElementGetByIDParams.dump_request(params)
|
|
93
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
92
94
|
catalog_id =
|
|
93
95
|
parsed.delete(:catalog_id) do
|
|
94
96
|
raise ArgumentError.new("missing required path argument #{_1}")
|
|
@@ -96,7 +98,7 @@ module Amocrm
|
|
|
96
98
|
@client.request(
|
|
97
99
|
method: :get,
|
|
98
100
|
path: ["api/v4/catalogs/%1$s/elements/%2$s", catalog_id, id],
|
|
99
|
-
query:
|
|
101
|
+
query: query,
|
|
100
102
|
model: Amocrm::Models::CatalogElementGetByIDResponse,
|
|
101
103
|
options: options
|
|
102
104
|
)
|
|
@@ -58,10 +58,11 @@ module Amocrm
|
|
|
58
58
|
# @see Amocrm::Models::CatalogListParams
|
|
59
59
|
def list(params = {})
|
|
60
60
|
parsed, options = Amocrm::CatalogListParams.dump_request(params)
|
|
61
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
61
62
|
@client.request(
|
|
62
63
|
method: :get,
|
|
63
64
|
path: "api/v4/catalogs",
|
|
64
|
-
query:
|
|
65
|
+
query: query,
|
|
65
66
|
model: Amocrm::Models::CatalogListResponse,
|
|
66
67
|
options: options
|
|
67
68
|
)
|
|
@@ -68,10 +68,11 @@ module Amocrm
|
|
|
68
68
|
# @see Amocrm::Models::CompanyListParams
|
|
69
69
|
def list(params = {})
|
|
70
70
|
parsed, options = Amocrm::CompanyListParams.dump_request(params)
|
|
71
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
71
72
|
@client.request(
|
|
72
73
|
method: :get,
|
|
73
74
|
path: "api/v4/companies",
|
|
74
|
-
query:
|
|
75
|
+
query: query,
|
|
75
76
|
model: Amocrm::Models::CompanyListResponse,
|
|
76
77
|
options: options
|
|
77
78
|
)
|
|
@@ -92,10 +93,11 @@ module Amocrm
|
|
|
92
93
|
# @see Amocrm::Models::CompanyGetByIDParams
|
|
93
94
|
def get_by_id(id, params = {})
|
|
94
95
|
parsed, options = Amocrm::CompanyGetByIDParams.dump_request(params)
|
|
96
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
95
97
|
@client.request(
|
|
96
98
|
method: :get,
|
|
97
99
|
path: ["api/v4/companies/%1$s", id],
|
|
98
|
-
query:
|
|
100
|
+
query: query,
|
|
99
101
|
model: Amocrm::Models::CompanyGetByIDResponse,
|
|
100
102
|
options: options
|
|
101
103
|
)
|
|
@@ -15,10 +15,11 @@ module Amocrm
|
|
|
15
15
|
# @see Amocrm::Models::ContactChatListParams
|
|
16
16
|
def list(params = {})
|
|
17
17
|
parsed, options = Amocrm::ContactChatListParams.dump_request(params)
|
|
18
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
18
19
|
@client.request(
|
|
19
20
|
method: :get,
|
|
20
21
|
path: "api/v4/contacts/chats",
|
|
21
|
-
query:
|
|
22
|
+
query: query,
|
|
22
23
|
model: Amocrm::Models::ContactChatListResponse,
|
|
23
24
|
options: options
|
|
24
25
|
)
|
|
@@ -68,10 +68,11 @@ module Amocrm
|
|
|
68
68
|
# @see Amocrm::Models::ContactListParams
|
|
69
69
|
def list(params = {})
|
|
70
70
|
parsed, options = Amocrm::ContactListParams.dump_request(params)
|
|
71
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
71
72
|
@client.request(
|
|
72
73
|
method: :get,
|
|
73
74
|
path: "api/v4/contacts",
|
|
74
|
-
query:
|
|
75
|
+
query: query,
|
|
75
76
|
model: Amocrm::Models::ContactListResponse,
|
|
76
77
|
options: options
|
|
77
78
|
)
|
|
@@ -92,10 +93,11 @@ module Amocrm
|
|
|
92
93
|
# @see Amocrm::Models::ContactGetByIDParams
|
|
93
94
|
def get_by_id(id, params = {})
|
|
94
95
|
parsed, options = Amocrm::ContactGetByIDParams.dump_request(params)
|
|
96
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
95
97
|
@client.request(
|
|
96
98
|
method: :get,
|
|
97
99
|
path: ["api/v4/contacts/%1$s", id],
|
|
98
|
-
query:
|
|
100
|
+
query: query,
|
|
99
101
|
model: Amocrm::Models::ContactGetByIDResponse,
|
|
100
102
|
options: options
|
|
101
103
|
)
|
|
@@ -39,10 +39,11 @@ module Amocrm
|
|
|
39
39
|
# @see Amocrm::Models::CustomFieldGroupListParams
|
|
40
40
|
def list(entity_type, params = {})
|
|
41
41
|
parsed, options = Amocrm::CustomFieldGroupListParams.dump_request(params)
|
|
42
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
42
43
|
@client.request(
|
|
43
44
|
method: :get,
|
|
44
45
|
path: ["api/v4/%1$s/custom_fields/groups", entity_type],
|
|
45
|
-
query:
|
|
46
|
+
query: query,
|
|
46
47
|
model: Amocrm::Models::CustomFieldGroupListResponse,
|
|
47
48
|
options: options
|
|
48
49
|
)
|
|
@@ -61,10 +61,11 @@ module Amocrm
|
|
|
61
61
|
# @see Amocrm::Models::CustomFieldListParams
|
|
62
62
|
def list(entity_type, params = {})
|
|
63
63
|
parsed, options = Amocrm::CustomFieldListParams.dump_request(params)
|
|
64
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
64
65
|
@client.request(
|
|
65
66
|
method: :get,
|
|
66
67
|
path: ["api/v4/%1$s/custom_fields", entity_type],
|
|
67
|
-
query:
|
|
68
|
+
query: query,
|
|
68
69
|
model: Amocrm::Models::CustomFieldListResponse,
|
|
69
70
|
options: options
|
|
70
71
|
)
|
|
@@ -5,11 +5,10 @@ module Amocrm
|
|
|
5
5
|
class CustomerBonusPoints
|
|
6
6
|
# Earn or redeem bonus points.
|
|
7
7
|
#
|
|
8
|
-
# @overload change(customer_id,
|
|
8
|
+
# @overload change(customer_id, body:, request_options: {})
|
|
9
9
|
#
|
|
10
10
|
# @param customer_id [Integer]
|
|
11
|
-
# @param
|
|
12
|
-
# @param redeem [Integer]
|
|
11
|
+
# @param body [Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn, Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem]
|
|
13
12
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
14
13
|
#
|
|
15
14
|
# @return [Amocrm::Models::CustomerBonusPointChangeResponse::CustomerBonusPointsResponse, Amocrm::Models::CustomerBonusPointChangeResponse::Problem]
|
|
@@ -20,7 +19,7 @@ module Amocrm
|
|
|
20
19
|
@client.request(
|
|
21
20
|
method: :post,
|
|
22
21
|
path: ["api/v4/customers/%1$s/bonus_points", customer_id],
|
|
23
|
-
body: parsed,
|
|
22
|
+
body: parsed[:body],
|
|
24
23
|
model: Amocrm::Models::CustomerBonusPointChangeResponse,
|
|
25
24
|
options: options
|
|
26
25
|
)
|
|
@@ -20,10 +20,11 @@ module Amocrm
|
|
|
20
20
|
# @see Amocrm::Models::CustomerTransactionCreateParams
|
|
21
21
|
def create(customer_id, params)
|
|
22
22
|
parsed, options = Amocrm::CustomerTransactionCreateParams.dump_request(params)
|
|
23
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed.except(:body))
|
|
23
24
|
@client.request(
|
|
24
25
|
method: :post,
|
|
25
26
|
path: ["api/v4/customers/%1$s/transactions", customer_id],
|
|
26
|
-
query:
|
|
27
|
+
query: query,
|
|
27
28
|
body: parsed[:body],
|
|
28
29
|
model: Amocrm::Models::CustomerTransactionCreateResponse,
|
|
29
30
|
options: options
|
|
@@ -44,10 +45,11 @@ module Amocrm
|
|
|
44
45
|
# @see Amocrm::Models::CustomerTransactionListParams
|
|
45
46
|
def list(params = {})
|
|
46
47
|
parsed, options = Amocrm::CustomerTransactionListParams.dump_request(params)
|
|
48
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
47
49
|
@client.request(
|
|
48
50
|
method: :get,
|
|
49
51
|
path: "api/v4/customers/transactions",
|
|
50
|
-
query:
|
|
52
|
+
query: query,
|
|
51
53
|
model: Amocrm::Models::CustomerTransactionListResponse,
|
|
52
54
|
options: options
|
|
53
55
|
)
|
|
@@ -93,10 +95,11 @@ module Amocrm
|
|
|
93
95
|
# @see Amocrm::Models::CustomerTransactionListByCustomerParams
|
|
94
96
|
def list_by_customer(customer_id, params = {})
|
|
95
97
|
parsed, options = Amocrm::CustomerTransactionListByCustomerParams.dump_request(params)
|
|
98
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
96
99
|
@client.request(
|
|
97
100
|
method: :get,
|
|
98
101
|
path: ["api/v4/customers/%1$s/transactions", customer_id],
|
|
99
|
-
query:
|
|
102
|
+
query: query,
|
|
100
103
|
model: Amocrm::Models::CustomerTransactionListByCustomerResponse,
|
|
101
104
|
options: options
|
|
102
105
|
)
|
|
@@ -68,10 +68,11 @@ module Amocrm
|
|
|
68
68
|
# @see Amocrm::Models::CustomerListParams
|
|
69
69
|
def list(params = {})
|
|
70
70
|
parsed, options = Amocrm::CustomerListParams.dump_request(params)
|
|
71
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
71
72
|
@client.request(
|
|
72
73
|
method: :get,
|
|
73
74
|
path: "api/v4/customers",
|
|
74
|
-
query:
|
|
75
|
+
query: query,
|
|
75
76
|
model: Amocrm::Models::CustomerListResponse,
|
|
76
77
|
options: options
|
|
77
78
|
)
|
|
@@ -92,10 +93,11 @@ module Amocrm
|
|
|
92
93
|
# @see Amocrm::Models::CustomerGetByIDParams
|
|
93
94
|
def get_by_id(id, params = {})
|
|
94
95
|
parsed, options = Amocrm::CustomerGetByIDParams.dump_request(params)
|
|
96
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
95
97
|
@client.request(
|
|
96
98
|
method: :get,
|
|
97
99
|
path: ["api/v4/customers/%1$s", id],
|
|
98
|
-
query:
|
|
100
|
+
query: query,
|
|
99
101
|
model: Amocrm::Models::CustomerGetByIDResponse,
|
|
100
102
|
options: options
|
|
101
103
|
)
|
|
@@ -22,6 +22,7 @@ module Amocrm
|
|
|
22
22
|
# @see Amocrm::Models::EntityFollowerListParams
|
|
23
23
|
def list(entity_id, params)
|
|
24
24
|
parsed, options = Amocrm::EntityFollowerListParams.dump_request(params)
|
|
25
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
25
26
|
entity_type =
|
|
26
27
|
parsed.delete(:entity_type) do
|
|
27
28
|
raise ArgumentError.new("missing required path argument #{_1}")
|
|
@@ -29,7 +30,7 @@ module Amocrm
|
|
|
29
30
|
@client.request(
|
|
30
31
|
method: :get,
|
|
31
32
|
path: ["api/v4/%1$s/%2$s/followers", entity_type, entity_id],
|
|
32
|
-
query:
|
|
33
|
+
query: query,
|
|
33
34
|
model: Amocrm::Models::EntityFollowerListResponse,
|
|
34
35
|
options: options
|
|
35
36
|
)
|
|
@@ -16,10 +16,11 @@ module Amocrm
|
|
|
16
16
|
# @see Amocrm::Models::EntityLinkListParams
|
|
17
17
|
def list(entity_type, params = {})
|
|
18
18
|
parsed, options = Amocrm::EntityLinkListParams.dump_request(params)
|
|
19
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
19
20
|
@client.request(
|
|
20
21
|
method: :get,
|
|
21
22
|
path: ["api/v4/%1$s/links", entity_type],
|
|
22
|
-
query:
|
|
23
|
+
query: query,
|
|
23
24
|
model: Amocrm::Models::EntityLinkListResponse,
|
|
24
25
|
options: options
|
|
25
26
|
)
|
|
@@ -62,10 +62,11 @@ module Amocrm
|
|
|
62
62
|
# @see Amocrm::Models::EntityNoteListParams
|
|
63
63
|
def list(entity_type, params = {})
|
|
64
64
|
parsed, options = Amocrm::EntityNoteListParams.dump_request(params)
|
|
65
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
65
66
|
@client.request(
|
|
66
67
|
method: :get,
|
|
67
68
|
path: ["api/v4/%1$s/notes", entity_type],
|
|
68
|
-
query:
|
|
69
|
+
query: query,
|
|
69
70
|
model: Amocrm::Models::EntityNoteListResponse,
|
|
70
71
|
options: options
|
|
71
72
|
)
|
|
@@ -88,6 +89,7 @@ module Amocrm
|
|
|
88
89
|
# @see Amocrm::Models::EntityNoteGetByIDParams
|
|
89
90
|
def get_by_id(id, params)
|
|
90
91
|
parsed, options = Amocrm::EntityNoteGetByIDParams.dump_request(params)
|
|
92
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
91
93
|
entity_type =
|
|
92
94
|
parsed.delete(:entity_type) do
|
|
93
95
|
raise ArgumentError.new("missing required path argument #{_1}")
|
|
@@ -95,7 +97,7 @@ module Amocrm
|
|
|
95
97
|
@client.request(
|
|
96
98
|
method: :get,
|
|
97
99
|
path: ["api/v4/%1$s/notes/%2$s", entity_type, id],
|
|
98
|
-
query:
|
|
100
|
+
query: query,
|
|
99
101
|
model: Amocrm::Models::EntityNoteGetByIDResponse,
|
|
100
102
|
options: options
|
|
101
103
|
)
|
|
@@ -52,6 +52,7 @@ module Amocrm
|
|
|
52
52
|
# @see Amocrm::Models::EntityNotesByParentGetByParentIDParams
|
|
53
53
|
def get_by_parent_id(note_id, params)
|
|
54
54
|
parsed, options = Amocrm::EntityNotesByParentGetByParentIDParams.dump_request(params)
|
|
55
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
55
56
|
entity_type =
|
|
56
57
|
parsed.delete(:entity_type) do
|
|
57
58
|
raise ArgumentError.new("missing required path argument #{_1}")
|
|
@@ -63,7 +64,7 @@ module Amocrm
|
|
|
63
64
|
@client.request(
|
|
64
65
|
method: :get,
|
|
65
66
|
path: ["api/v4/%1$s/%2$s/notes/%3$s", entity_type, entity_id, note_id],
|
|
66
|
-
query:
|
|
67
|
+
query: query,
|
|
67
68
|
model: Amocrm::Models::EntityNotesByParentGetByParentIDResponse,
|
|
68
69
|
options: options
|
|
69
70
|
)
|
|
@@ -90,6 +91,7 @@ module Amocrm
|
|
|
90
91
|
# @see Amocrm::Models::EntityNotesByParentListByParentParams
|
|
91
92
|
def list_by_parent(entity_id, params)
|
|
92
93
|
parsed, options = Amocrm::EntityNotesByParentListByParentParams.dump_request(params)
|
|
94
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
93
95
|
entity_type =
|
|
94
96
|
parsed.delete(:entity_type) do
|
|
95
97
|
raise ArgumentError.new("missing required path argument #{_1}")
|
|
@@ -97,7 +99,7 @@ module Amocrm
|
|
|
97
99
|
@client.request(
|
|
98
100
|
method: :get,
|
|
99
101
|
path: ["api/v4/%1$s/%2$s/notes", entity_type, entity_id],
|
|
100
|
-
query:
|
|
102
|
+
query: query,
|
|
101
103
|
model: Amocrm::Models::EntityNotesByParentListByParentResponse,
|
|
102
104
|
options: options
|
|
103
105
|
)
|
|
@@ -18,10 +18,11 @@ module Amocrm
|
|
|
18
18
|
# @see Amocrm::Models::EventListParams
|
|
19
19
|
def list(params = {})
|
|
20
20
|
parsed, options = Amocrm::EventListParams.dump_request(params)
|
|
21
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
21
22
|
@client.request(
|
|
22
23
|
method: :get,
|
|
23
24
|
path: "api/v4/events",
|
|
24
|
-
query:
|
|
25
|
+
query: query,
|
|
25
26
|
model: Amocrm::Models::EventListResponse,
|
|
26
27
|
options: options
|
|
27
28
|
)
|
|
@@ -40,10 +41,11 @@ module Amocrm
|
|
|
40
41
|
# @see Amocrm::Models::EventGetByIDParams
|
|
41
42
|
def get_by_id(id, params = {})
|
|
42
43
|
parsed, options = Amocrm::EventGetByIDParams.dump_request(params)
|
|
44
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
43
45
|
@client.request(
|
|
44
46
|
method: :get,
|
|
45
47
|
path: ["api/v4/events/%1$s", id],
|
|
46
|
-
query:
|
|
48
|
+
query: query,
|
|
47
49
|
model: Amocrm::Models::EventGetByIDResponse,
|
|
48
50
|
options: options
|
|
49
51
|
)
|
|
@@ -61,10 +63,11 @@ module Amocrm
|
|
|
61
63
|
# @see Amocrm::Models::EventListTypesParams
|
|
62
64
|
def list_types(params = {})
|
|
63
65
|
parsed, options = Amocrm::EventListTypesParams.dump_request(params)
|
|
66
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
64
67
|
@client.request(
|
|
65
68
|
method: :get,
|
|
66
69
|
path: "api/v4/events/types",
|
|
67
|
-
query:
|
|
70
|
+
query: query,
|
|
68
71
|
model: Amocrm::Models::EventListTypesResponse,
|
|
69
72
|
options: options
|
|
70
73
|
)
|
|
@@ -68,10 +68,11 @@ module Amocrm
|
|
|
68
68
|
# @see Amocrm::Models::LeadListParams
|
|
69
69
|
def list(params = {})
|
|
70
70
|
parsed, options = Amocrm::LeadListParams.dump_request(params)
|
|
71
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
71
72
|
@client.request(
|
|
72
73
|
method: :get,
|
|
73
74
|
path: "api/v4/leads",
|
|
74
|
-
query:
|
|
75
|
+
query: query,
|
|
75
76
|
model: Amocrm::Models::LeadListResponse,
|
|
76
77
|
options: options
|
|
77
78
|
)
|
|
@@ -113,10 +114,11 @@ module Amocrm
|
|
|
113
114
|
# @see Amocrm::Models::LeadGetByIDParams
|
|
114
115
|
def get_by_id(id, params = {})
|
|
115
116
|
parsed, options = Amocrm::LeadGetByIDParams.dump_request(params)
|
|
117
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
116
118
|
@client.request(
|
|
117
119
|
method: :get,
|
|
118
120
|
path: ["api/v4/leads/%1$s", id],
|
|
119
|
-
query:
|
|
121
|
+
query: query,
|
|
120
122
|
model: Amocrm::Models::LeadGetByIDResponse,
|
|
121
123
|
options: options
|
|
122
124
|
)
|
|
@@ -62,10 +62,11 @@ module Amocrm
|
|
|
62
62
|
# @see Amocrm::Models::PipelineStatusListParams
|
|
63
63
|
def list(pipeline_id, params = {})
|
|
64
64
|
parsed, options = Amocrm::PipelineStatusListParams.dump_request(params)
|
|
65
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
65
66
|
@client.request(
|
|
66
67
|
method: :get,
|
|
67
68
|
path: ["api/v4/leads/pipelines/%1$s/statuses", pipeline_id],
|
|
68
|
-
query:
|
|
69
|
+
query: query,
|
|
69
70
|
model: Amocrm::Models::PipelineStatusListResponse,
|
|
70
71
|
options: options
|
|
71
72
|
)
|
|
@@ -116,6 +117,7 @@ module Amocrm
|
|
|
116
117
|
# @see Amocrm::Models::PipelineStatusGetByIDParams
|
|
117
118
|
def get_by_id(id, params)
|
|
118
119
|
parsed, options = Amocrm::PipelineStatusGetByIDParams.dump_request(params)
|
|
120
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
119
121
|
pipeline_id =
|
|
120
122
|
parsed.delete(:pipeline_id) do
|
|
121
123
|
raise ArgumentError.new("missing required path argument #{_1}")
|
|
@@ -123,7 +125,7 @@ module Amocrm
|
|
|
123
125
|
@client.request(
|
|
124
126
|
method: :get,
|
|
125
127
|
path: ["api/v4/leads/pipelines/%1$s/statuses/%2$s", pipeline_id, id],
|
|
126
|
-
query:
|
|
128
|
+
query: query,
|
|
127
129
|
model: Amocrm::Models::PipelineStatusGetByIDResponse,
|
|
128
130
|
options: options
|
|
129
131
|
)
|
|
@@ -38,10 +38,11 @@ module Amocrm
|
|
|
38
38
|
# @see Amocrm::Models::RoleListParams
|
|
39
39
|
def list(params = {})
|
|
40
40
|
parsed, options = Amocrm::RoleListParams.dump_request(params)
|
|
41
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
41
42
|
@client.request(
|
|
42
43
|
method: :get,
|
|
43
44
|
path: "api/v4/roles",
|
|
44
|
-
query:
|
|
45
|
+
query: query,
|
|
45
46
|
model: Amocrm::Models::RoleListResponse,
|
|
46
47
|
options: options
|
|
47
48
|
)
|
|
@@ -79,10 +80,11 @@ module Amocrm
|
|
|
79
80
|
# @see Amocrm::Models::RoleGetByIDParams
|
|
80
81
|
def get_by_id(id, params = {})
|
|
81
82
|
parsed, options = Amocrm::RoleGetByIDParams.dump_request(params)
|
|
83
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
82
84
|
@client.request(
|
|
83
85
|
method: :get,
|
|
84
86
|
path: ["api/v4/roles/%1$s", id],
|
|
85
|
-
query:
|
|
87
|
+
query: query,
|
|
86
88
|
model: Amocrm::Models::RoleGetByIDResponse,
|
|
87
89
|
options: options
|
|
88
90
|
)
|
|
@@ -57,10 +57,11 @@ module Amocrm
|
|
|
57
57
|
# @see Amocrm::Models::SourceListParams
|
|
58
58
|
def list(params = {})
|
|
59
59
|
parsed, options = Amocrm::SourceListParams.dump_request(params)
|
|
60
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
60
61
|
@client.request(
|
|
61
62
|
method: :get,
|
|
62
63
|
path: "api/v4/sources",
|
|
63
|
-
query:
|
|
64
|
+
query: query,
|
|
64
65
|
model: Amocrm::Models::SourceListResponse,
|
|
65
66
|
options: options
|
|
66
67
|
)
|
|
@@ -41,10 +41,11 @@ module Amocrm
|
|
|
41
41
|
# @see Amocrm::Models::TagListParams
|
|
42
42
|
def list(entity_type, params = {})
|
|
43
43
|
parsed, options = Amocrm::TagListParams.dump_request(params)
|
|
44
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
44
45
|
@client.request(
|
|
45
46
|
method: :get,
|
|
46
47
|
path: ["api/v4/%1$s/tags", entity_type],
|
|
47
|
-
query:
|
|
48
|
+
query: query,
|
|
48
49
|
model: Amocrm::Models::TagListResponse,
|
|
49
50
|
options: options
|
|
50
51
|
)
|
|
@@ -66,10 +66,11 @@ module Amocrm
|
|
|
66
66
|
# @see Amocrm::Models::TaskListParams
|
|
67
67
|
def list(params = {})
|
|
68
68
|
parsed, options = Amocrm::TaskListParams.dump_request(params)
|
|
69
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
69
70
|
@client.request(
|
|
70
71
|
method: :get,
|
|
71
72
|
path: "api/v4/tasks",
|
|
72
|
-
query:
|
|
73
|
+
query: query,
|
|
73
74
|
model: Amocrm::Models::TaskListResponse,
|
|
74
75
|
options: options
|
|
75
76
|
)
|
|
@@ -38,10 +38,11 @@ module Amocrm
|
|
|
38
38
|
# @see Amocrm::Models::UserListParams
|
|
39
39
|
def list(params = {})
|
|
40
40
|
parsed, options = Amocrm::UserListParams.dump_request(params)
|
|
41
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
41
42
|
@client.request(
|
|
42
43
|
method: :get,
|
|
43
44
|
path: "api/v4/users",
|
|
44
|
-
query:
|
|
45
|
+
query: query,
|
|
45
46
|
model: Amocrm::Models::UserListResponse,
|
|
46
47
|
options: options
|
|
47
48
|
)
|
|
@@ -60,10 +61,11 @@ module Amocrm
|
|
|
60
61
|
# @see Amocrm::Models::UserGetByIDParams
|
|
61
62
|
def get_by_id(id, params = {})
|
|
62
63
|
parsed, options = Amocrm::UserGetByIDParams.dump_request(params)
|
|
64
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
63
65
|
@client.request(
|
|
64
66
|
method: :get,
|
|
65
67
|
path: ["api/v4/users/%1$s", id],
|
|
66
|
-
query:
|
|
68
|
+
query: query,
|
|
67
69
|
model: Amocrm::Models::UserGetByIDResponse,
|
|
68
70
|
options: options
|
|
69
71
|
)
|
|
@@ -15,10 +15,11 @@ module Amocrm
|
|
|
15
15
|
# @see Amocrm::Models::WebhookListParams
|
|
16
16
|
def list(params = {})
|
|
17
17
|
parsed, options = Amocrm::WebhookListParams.dump_request(params)
|
|
18
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
18
19
|
@client.request(
|
|
19
20
|
method: :get,
|
|
20
21
|
path: "api/v4/webhooks",
|
|
21
|
-
query:
|
|
22
|
+
query: query,
|
|
22
23
|
model: Amocrm::Models::WebhookListResponse,
|
|
23
24
|
options: options
|
|
24
25
|
)
|
|
@@ -62,10 +62,11 @@ module Amocrm
|
|
|
62
62
|
# @see Amocrm::Models::WebsiteButtonListParams
|
|
63
63
|
def list(params = {})
|
|
64
64
|
parsed, options = Amocrm::WebsiteButtonListParams.dump_request(params)
|
|
65
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
65
66
|
@client.request(
|
|
66
67
|
method: :get,
|
|
67
68
|
path: "api/v4/website_buttons",
|
|
68
|
-
query:
|
|
69
|
+
query: query,
|
|
69
70
|
model: Amocrm::Models::WebsiteButtonListResponse,
|
|
70
71
|
options: options
|
|
71
72
|
)
|
|
@@ -103,10 +104,11 @@ module Amocrm
|
|
|
103
104
|
# @see Amocrm::Models::WebsiteButtonGetBySourceIDParams
|
|
104
105
|
def get_by_source_id(source_id, params = {})
|
|
105
106
|
parsed, options = Amocrm::WebsiteButtonGetBySourceIDParams.dump_request(params)
|
|
107
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
106
108
|
@client.request(
|
|
107
109
|
method: :get,
|
|
108
110
|
path: ["api/v4/website_buttons/%1$s", source_id],
|
|
109
|
-
query:
|
|
111
|
+
query: query,
|
|
110
112
|
model: Amocrm::Models::WebsiteButtonGetBySourceIDResponse,
|
|
111
113
|
options: options
|
|
112
114
|
)
|
|
@@ -16,10 +16,11 @@ module Amocrm
|
|
|
16
16
|
# @see Amocrm::Models::WidgetListParams
|
|
17
17
|
def list(params = {})
|
|
18
18
|
parsed, options = Amocrm::WidgetListParams.dump_request(params)
|
|
19
|
+
query = Amocrm::Internal::Util.encode_query_params(parsed)
|
|
19
20
|
@client.request(
|
|
20
21
|
method: :get,
|
|
21
22
|
path: "api/v4/widgets",
|
|
22
|
-
query:
|
|
23
|
+
query: query,
|
|
23
24
|
model: Amocrm::Models::WidgetListResponse,
|
|
24
25
|
options: options
|
|
25
26
|
)
|
data/lib/amocrm/version.rb
CHANGED
|
@@ -301,6 +301,26 @@ module Amocrm
|
|
|
301
301
|
T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp)
|
|
302
302
|
|
|
303
303
|
class << self
|
|
304
|
+
# @api private
|
|
305
|
+
sig do
|
|
306
|
+
params(query: Amocrm::Internal::AnyHash).returns(
|
|
307
|
+
Amocrm::Internal::AnyHash
|
|
308
|
+
)
|
|
309
|
+
end
|
|
310
|
+
def encode_query_params(query)
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# @api private
|
|
314
|
+
sig do
|
|
315
|
+
params(
|
|
316
|
+
collection: Amocrm::Internal::AnyHash,
|
|
317
|
+
key: String,
|
|
318
|
+
element: T.anything
|
|
319
|
+
).void
|
|
320
|
+
end
|
|
321
|
+
private def write_query_param_element!(collection, key, element)
|
|
322
|
+
end
|
|
323
|
+
|
|
304
324
|
# @api private
|
|
305
325
|
sig do
|
|
306
326
|
params(
|