amocrm 0.5.2 → 0.5.4
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 +37 -0
- data/README.md +1 -1
- data/lib/amocrm/internal/util.rb +53 -7
- 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 +28 -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 +14 -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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83afca7fb94dfd18c711481dc036012cde436a3afc8d85f45b64e29700889bb0
|
|
4
|
+
data.tar.gz: bca4f82f6a2ba7117579147264774aefa157d12315a0ce0bc57c2d9ebf027ecf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43337c214560438991131f4190d8e25f244bc1d81f1c8a9b5fc7e60c16c375e2d35789db44feedc20fd7fd6081b73720fe1f3a20846aca595239f30ee3c3eeb1
|
|
7
|
+
data.tar.gz: d8e6278c6edc8093bca08afc7b3748c7807a8a1bc4214a9b35e7ac81bc49e5131184b31633c280df49f3f356d1c3dc62623176dca74657c00d6887d130af7484
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.4 (2026-04-09)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.5.3...v0.5.4](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.3...v0.5.4)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* align path encoding with RFC 3986 section 3.3 ([e553b8e](https://github.com/Hexlet/amocrm-ruby/commit/e553b8e0b21dfb819d67c93a63a71009b0f728a8))
|
|
10
|
+
* **internal:** correct multipart form field name encoding ([4975893](https://github.com/Hexlet/amocrm-ruby/commit/4975893b8eb2d4f427e7d40c07a3b7c1413168fb))
|
|
11
|
+
* multipart encoding for file arrays ([6e86c5d](https://github.com/Hexlet/amocrm-ruby/commit/6e86c5d69289bc86c02b5a8f0d441fa5c7bb2ffc))
|
|
12
|
+
* variable name typo ([e8f5466](https://github.com/Hexlet/amocrm-ruby/commit/e8f546639d827bb38a89df2e42465f9c6d019ea4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Chores
|
|
16
|
+
|
|
17
|
+
* **ci:** skip lint on metadata-only changes ([dad96e5](https://github.com/Hexlet/amocrm-ruby/commit/dad96e5408642a9781334f2bb4dbc32cd73872d9))
|
|
18
|
+
* **ci:** support opting out of skipping builds on metadata-only commits ([34c8c04](https://github.com/Hexlet/amocrm-ruby/commit/34c8c04b937d0249fe49073193997e9311228d8f))
|
|
19
|
+
* **internal:** tweak CI branches ([9a3e737](https://github.com/Hexlet/amocrm-ruby/commit/9a3e7375b6cca91433c8732e6fa060ecea85519c))
|
|
20
|
+
* **internal:** update gitignore ([9fb96c7](https://github.com/Hexlet/amocrm-ruby/commit/9fb96c78308d30c29ead727cc05a101cdd1b97d1))
|
|
21
|
+
|
|
22
|
+
## 0.5.3 (2026-03-08)
|
|
23
|
+
|
|
24
|
+
Full Changelog: [v0.5.2...v0.5.3](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.2...v0.5.3)
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* properly mock time in ruby ci tests ([2c02d7c](https://github.com/Hexlet/amocrm-ruby/commit/2c02d7cdad78f91fc96b3572830b69c1e1781e69))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Chores
|
|
32
|
+
|
|
33
|
+
* **ci:** add build step ([0111d8b](https://github.com/Hexlet/amocrm-ruby/commit/0111d8b871937e6422e3b348630971ae5a882d94))
|
|
34
|
+
* **ci:** skip uploading artifacts on stainless-internal branches ([59ed3cd](https://github.com/Hexlet/amocrm-ruby/commit/59ed3cd3a6282f58f826bde41e572836b42436d9))
|
|
35
|
+
* **internal:** codegen related update ([70ecc90](https://github.com/Hexlet/amocrm-ruby/commit/70ecc90ab1f89bff2aafa6ee7fc29934a9d9329d))
|
|
36
|
+
* **internal:** codegen related update ([906bc89](https://github.com/Hexlet/amocrm-ruby/commit/906bc8924e5c7ae9b50d3f194629ff7e8981d80a))
|
|
37
|
+
* **internal:** remove mock server code ([97b11dc](https://github.com/Hexlet/amocrm-ruby/commit/97b11dc026b0de710edaacc6a65526f9a6969ec7))
|
|
38
|
+
* update mock server docs ([4393e5d](https://github.com/Hexlet/amocrm-ruby/commit/4393e5d94350640a132c8df0d330715e7ca369ff))
|
|
39
|
+
|
|
3
40
|
## 0.5.2 (2026-02-07)
|
|
4
41
|
|
|
5
42
|
Full Changelog: [v0.5.1...v0.5.2](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.1...v0.5.2)
|
data/README.md
CHANGED
data/lib/amocrm/internal/util.rb
CHANGED
|
@@ -157,7 +157,7 @@ module Amocrm
|
|
|
157
157
|
in Hash | nil => coerced
|
|
158
158
|
coerced
|
|
159
159
|
else
|
|
160
|
-
message = "Expected a #{Hash} or #{Amocrm::Internal::Type::BaseModel}, got #{
|
|
160
|
+
message = "Expected a #{Hash} or #{Amocrm::Internal::Type::BaseModel}, got #{input.inspect}"
|
|
161
161
|
raise ArgumentError.new(message)
|
|
162
162
|
end
|
|
163
163
|
end
|
|
@@ -237,6 +237,11 @@ module Amocrm
|
|
|
237
237
|
end
|
|
238
238
|
end
|
|
239
239
|
|
|
240
|
+
# @type [Regexp]
|
|
241
|
+
#
|
|
242
|
+
# https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3
|
|
243
|
+
RFC_3986_NOT_PCHARS = /[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/
|
|
244
|
+
|
|
240
245
|
class << self
|
|
241
246
|
# @api private
|
|
242
247
|
#
|
|
@@ -247,6 +252,15 @@ module Amocrm
|
|
|
247
252
|
"#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
|
|
248
253
|
end
|
|
249
254
|
|
|
255
|
+
# @api private
|
|
256
|
+
#
|
|
257
|
+
# @param path [String, Integer]
|
|
258
|
+
#
|
|
259
|
+
# @return [String]
|
|
260
|
+
def encode_path(path)
|
|
261
|
+
path.to_s.gsub(Amocrm::Internal::Util::RFC_3986_NOT_PCHARS) { ERB::Util.url_encode(_1) }
|
|
262
|
+
end
|
|
263
|
+
|
|
250
264
|
# @api private
|
|
251
265
|
#
|
|
252
266
|
# @param path [String, Array<String>]
|
|
@@ -259,7 +273,7 @@ module Amocrm
|
|
|
259
273
|
in []
|
|
260
274
|
""
|
|
261
275
|
in [String => p, *interpolations]
|
|
262
|
-
encoded = interpolations.map {
|
|
276
|
+
encoded = interpolations.map { encode_path(_1) }
|
|
263
277
|
format(p, *encoded)
|
|
264
278
|
end
|
|
265
279
|
end
|
|
@@ -492,6 +506,37 @@ module Amocrm
|
|
|
492
506
|
JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
|
|
493
507
|
|
|
494
508
|
class << self
|
|
509
|
+
# @api private
|
|
510
|
+
#
|
|
511
|
+
# @param query [Hash{Symbol=>Object}]
|
|
512
|
+
#
|
|
513
|
+
# @return [Hash{Symbol=>Object}]
|
|
514
|
+
def encode_query_params(query)
|
|
515
|
+
out = {}
|
|
516
|
+
query.each { write_query_param_element!(out, _1, _2) }
|
|
517
|
+
out
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
# @api private
|
|
521
|
+
#
|
|
522
|
+
# @param collection [Hash{Symbol=>Object}]
|
|
523
|
+
# @param key [String]
|
|
524
|
+
# @param element [Object]
|
|
525
|
+
#
|
|
526
|
+
# @return [nil]
|
|
527
|
+
private def write_query_param_element!(collection, key, element)
|
|
528
|
+
case element
|
|
529
|
+
in Hash
|
|
530
|
+
element.each do |name, value|
|
|
531
|
+
write_query_param_element!(collection, "#{key}[#{name}]", value)
|
|
532
|
+
end
|
|
533
|
+
in Array
|
|
534
|
+
collection[key] = element.map(&:to_s).join(",")
|
|
535
|
+
else
|
|
536
|
+
collection[key] = element.to_s
|
|
537
|
+
end
|
|
538
|
+
end
|
|
539
|
+
|
|
495
540
|
# @api private
|
|
496
541
|
#
|
|
497
542
|
# @param y [Enumerator::Yielder]
|
|
@@ -542,16 +587,15 @@ module Amocrm
|
|
|
542
587
|
y << "Content-Disposition: form-data"
|
|
543
588
|
|
|
544
589
|
unless key.nil?
|
|
545
|
-
|
|
546
|
-
y << "; name=\"#{name}\""
|
|
590
|
+
y << "; name=\"#{key}\""
|
|
547
591
|
end
|
|
548
592
|
|
|
549
593
|
case val
|
|
550
594
|
in Amocrm::FilePart unless val.filename.nil?
|
|
551
|
-
filename =
|
|
595
|
+
filename = encode_path(val.filename)
|
|
552
596
|
y << "; filename=\"#{filename}\""
|
|
553
597
|
in Pathname | IO
|
|
554
|
-
filename =
|
|
598
|
+
filename = encode_path(::File.basename(val.to_path))
|
|
555
599
|
y << "; filename=\"#{filename}\""
|
|
556
600
|
else
|
|
557
601
|
end
|
|
@@ -568,6 +612,7 @@ module Amocrm
|
|
|
568
612
|
#
|
|
569
613
|
# @return [Array(String, Enumerable<String>)]
|
|
570
614
|
private def encode_multipart_streaming(body)
|
|
615
|
+
# rubocop:disable Style/CaseEquality
|
|
571
616
|
# RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
|
|
572
617
|
boundary = SecureRandom.urlsafe_base64(46)
|
|
573
618
|
|
|
@@ -577,7 +622,7 @@ module Amocrm
|
|
|
577
622
|
in Hash
|
|
578
623
|
body.each do |key, val|
|
|
579
624
|
case val
|
|
580
|
-
in Array if val.all? { primitive?(_1) }
|
|
625
|
+
in Array if val.all? { primitive?(_1) || Amocrm::Internal::Type::FileInput === _1 }
|
|
581
626
|
val.each do |v|
|
|
582
627
|
write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
|
|
583
628
|
end
|
|
@@ -593,6 +638,7 @@ module Amocrm
|
|
|
593
638
|
|
|
594
639
|
fused_io = fused_enum(strio) { closing.each(&:call) }
|
|
595
640
|
[boundary, fused_io]
|
|
641
|
+
# rubocop:enable Style/CaseEquality
|
|
596
642
|
end
|
|
597
643
|
|
|
598
644
|
# @api private
|
|
@@ -7,12 +7,18 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute catalog_id
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :catalog_id, Integer
|
|
14
|
+
|
|
10
15
|
# @!attribute body
|
|
11
16
|
#
|
|
12
17
|
# @return [Array<Amocrm::Models::CatalogElementCreateParams::Body>]
|
|
13
18
|
required :body, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CatalogElementCreateParams::Body] }
|
|
14
19
|
|
|
15
|
-
# @!method initialize(body:, request_options: {})
|
|
20
|
+
# @!method initialize(catalog_id:, body:, request_options: {})
|
|
21
|
+
# @param catalog_id [Integer]
|
|
16
22
|
# @param body [Array<Amocrm::Models::CatalogElementCreateParams::Body>]
|
|
17
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
|
|
@@ -12,15 +12,22 @@ module Amocrm
|
|
|
12
12
|
# @return [Integer]
|
|
13
13
|
required :catalog_id, Integer
|
|
14
14
|
|
|
15
|
+
# @!attribute id
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :id, Integer
|
|
19
|
+
|
|
15
20
|
# @!attribute with
|
|
16
21
|
# Additional data to include (comma-separated).
|
|
17
22
|
#
|
|
18
23
|
# @return [String, nil]
|
|
19
24
|
optional :with, String
|
|
20
25
|
|
|
21
|
-
# @!method initialize(catalog_id:, with: nil, request_options: {})
|
|
26
|
+
# @!method initialize(catalog_id:, id:, with: nil, request_options: {})
|
|
22
27
|
# @param catalog_id [Integer]
|
|
23
28
|
#
|
|
29
|
+
# @param id [Integer]
|
|
30
|
+
#
|
|
24
31
|
# @param with [String] Additional data to include (comma-separated).
|
|
25
32
|
#
|
|
26
33
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -7,6 +7,11 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute catalog_id
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :catalog_id, Integer
|
|
14
|
+
|
|
10
15
|
# @!attribute filter
|
|
11
16
|
#
|
|
12
17
|
# @return [Object, nil]
|
|
@@ -27,7 +32,8 @@ module Amocrm
|
|
|
27
32
|
# @return [String, Integer, nil]
|
|
28
33
|
optional :query, union: -> { Amocrm::CatalogElementListParams::Query }
|
|
29
34
|
|
|
30
|
-
# @!method initialize(filter: nil, limit: nil, page: nil, query: nil, request_options: {})
|
|
35
|
+
# @!method initialize(catalog_id:, filter: nil, limit: nil, page: nil, query: nil, request_options: {})
|
|
36
|
+
# @param catalog_id [Integer]
|
|
31
37
|
# @param filter [Object]
|
|
32
38
|
# @param limit [Integer]
|
|
33
39
|
# @param page [Integer]
|
|
@@ -12,6 +12,11 @@ module Amocrm
|
|
|
12
12
|
# @return [Integer]
|
|
13
13
|
required :catalog_id, Integer
|
|
14
14
|
|
|
15
|
+
# @!attribute id
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :id, Integer
|
|
19
|
+
|
|
15
20
|
# @!attribute custom_fields_values
|
|
16
21
|
#
|
|
17
22
|
# @return [Array<Amocrm::Models::CatalogElementUpdateByIDParams::CustomFieldsValue>, nil]
|
|
@@ -28,8 +33,9 @@ module Amocrm
|
|
|
28
33
|
# @return [String, nil]
|
|
29
34
|
optional :request_id, String
|
|
30
35
|
|
|
31
|
-
# @!method initialize(catalog_id:, custom_fields_values: nil, name: nil, request_id: nil, request_options: {})
|
|
36
|
+
# @!method initialize(catalog_id:, id:, custom_fields_values: nil, name: nil, request_id: nil, request_options: {})
|
|
32
37
|
# @param catalog_id [Integer]
|
|
38
|
+
# @param id [Integer]
|
|
33
39
|
# @param custom_fields_values [Array<Amocrm::Models::CatalogElementUpdateByIDParams::CustomFieldsValue>]
|
|
34
40
|
# @param name [String]
|
|
35
41
|
# @param request_id [String]
|
|
@@ -7,12 +7,18 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute catalog_id
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :catalog_id, Integer
|
|
14
|
+
|
|
10
15
|
# @!attribute body
|
|
11
16
|
#
|
|
12
17
|
# @return [Array<Amocrm::Models::CatalogElementUpdateParams::Body>]
|
|
13
18
|
required :body, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CatalogElementUpdateParams::Body] }
|
|
14
19
|
|
|
15
|
-
# @!method initialize(body:, request_options: {})
|
|
20
|
+
# @!method initialize(catalog_id:, body:, request_options: {})
|
|
21
|
+
# @param catalog_id [Integer]
|
|
16
22
|
# @param body [Array<Amocrm::Models::CatalogElementUpdateParams::Body>]
|
|
17
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
|
|
@@ -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 id
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :id, Integer
|
|
14
|
+
|
|
15
|
+
# @!method initialize(id:, request_options: {})
|
|
16
|
+
# @param id [Integer]
|
|
11
17
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -7,6 +7,11 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :id, Integer
|
|
14
|
+
|
|
10
15
|
# @!attribute can_add_elements
|
|
11
16
|
#
|
|
12
17
|
# @return [Boolean, nil]
|
|
@@ -32,7 +37,8 @@ module Amocrm
|
|
|
32
37
|
# @return [Integer, nil]
|
|
33
38
|
optional :sort, Integer
|
|
34
39
|
|
|
35
|
-
# @!method initialize(can_add_elements: nil, can_link_multiple: nil, name: nil, request_id: nil, sort: nil, request_options: {})
|
|
40
|
+
# @!method initialize(id:, can_add_elements: nil, can_link_multiple: nil, name: nil, request_id: nil, sort: nil, request_options: {})
|
|
41
|
+
# @param id [Integer]
|
|
36
42
|
# @param can_add_elements [Boolean]
|
|
37
43
|
# @param can_link_multiple [Boolean]
|
|
38
44
|
# @param name [String]
|
|
@@ -7,13 +7,20 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :id, Integer
|
|
14
|
+
|
|
10
15
|
# @!attribute with
|
|
11
16
|
# Expand related entities; comma-separated values
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
14
19
|
optional :with, String
|
|
15
20
|
|
|
16
|
-
# @!method initialize(with: nil, request_options: {})
|
|
21
|
+
# @!method initialize(id:, with: nil, request_options: {})
|
|
22
|
+
# @param id [Integer]
|
|
23
|
+
#
|
|
17
24
|
# @param with [String] Expand related entities; comma-separated values
|
|
18
25
|
#
|
|
19
26
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -7,6 +7,11 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :id, Integer
|
|
14
|
+
|
|
10
15
|
# @!attribute _embedded
|
|
11
16
|
#
|
|
12
17
|
# @return [Amocrm::Models::CompanyUpdateByIDParams::Embedded, nil]
|
|
@@ -62,7 +67,9 @@ module Amocrm
|
|
|
62
67
|
# @return [Integer, nil]
|
|
63
68
|
optional :updated_by, Integer
|
|
64
69
|
|
|
65
|
-
# @!method initialize(_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: {})
|
|
70
|
+
# @!method initialize(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: {})
|
|
71
|
+
# @param id [Integer]
|
|
72
|
+
#
|
|
66
73
|
# @param _embedded [Amocrm::Models::CompanyUpdateByIDParams::Embedded]
|
|
67
74
|
#
|
|
68
75
|
# @param created_at [Integer]
|
|
@@ -7,13 +7,20 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :id, Integer
|
|
14
|
+
|
|
10
15
|
# @!attribute with
|
|
11
16
|
# Expand related entities; comma-separated values
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
14
19
|
optional :with, String
|
|
15
20
|
|
|
16
|
-
# @!method initialize(with: nil, request_options: {})
|
|
21
|
+
# @!method initialize(id:, with: nil, request_options: {})
|
|
22
|
+
# @param id [Integer]
|
|
23
|
+
#
|
|
17
24
|
# @param with [String] Expand related entities; comma-separated values
|
|
18
25
|
#
|
|
19
26
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -7,6 +7,11 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
required :id, Integer
|
|
14
|
+
|
|
10
15
|
# @!attribute _embedded
|
|
11
16
|
#
|
|
12
17
|
# @return [Amocrm::Models::ContactUpdateByIDParams::Embedded, nil]
|
|
@@ -72,7 +77,9 @@ module Amocrm
|
|
|
72
77
|
# @return [Integer, nil]
|
|
73
78
|
optional :updated_by, Integer
|
|
74
79
|
|
|
75
|
-
# @!method initialize(_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: {})
|
|
80
|
+
# @!method initialize(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: {})
|
|
81
|
+
# @param id [Integer]
|
|
82
|
+
#
|
|
76
83
|
# @param _embedded [Amocrm::Models::ContactUpdateByIDParams::Embedded]
|
|
77
84
|
#
|
|
78
85
|
# @param created_at [Integer]
|
|
@@ -7,12 +7,18 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute entity_type
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :entity_type, String
|
|
14
|
+
|
|
10
15
|
# @!attribute body
|
|
11
16
|
#
|
|
12
17
|
# @return [Array<Amocrm::Models::CustomFieldCreateParams::Body>]
|
|
13
18
|
required :body, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomFieldCreateParams::Body] }
|
|
14
19
|
|
|
15
|
-
# @!method initialize(body:, request_options: {})
|
|
20
|
+
# @!method initialize(entity_type:, body:, request_options: {})
|
|
21
|
+
# @param entity_type [String]
|
|
16
22
|
# @param body [Array<Amocrm::Models::CustomFieldCreateParams::Body>]
|
|
17
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
|
|
@@ -12,8 +12,14 @@ module Amocrm
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :entity_type, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute id
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :id, Integer
|
|
19
|
+
|
|
20
|
+
# @!method initialize(entity_type:, id:, request_options: {})
|
|
16
21
|
# @param entity_type [String]
|
|
22
|
+
# @param id [Integer]
|
|
17
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
end
|
|
19
25
|
end
|
|
@@ -12,8 +12,14 @@ module Amocrm
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :entity_type, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute id
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :id, Integer
|
|
19
|
+
|
|
20
|
+
# @!method initialize(entity_type:, id:, request_options: {})
|
|
16
21
|
# @param entity_type [String]
|
|
22
|
+
# @param id [Integer]
|
|
17
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
end
|
|
19
25
|
end
|
|
@@ -7,12 +7,18 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute entity_type
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :entity_type, String
|
|
14
|
+
|
|
10
15
|
# @!attribute body
|
|
11
16
|
#
|
|
12
17
|
# @return [Array<Amocrm::Models::CustomFieldGroupCreateParams::Body>]
|
|
13
18
|
required :body, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomFieldGroupCreateParams::Body] }
|
|
14
19
|
|
|
15
|
-
# @!method initialize(body:, request_options: {})
|
|
20
|
+
# @!method initialize(entity_type:, body:, request_options: {})
|
|
21
|
+
# @param entity_type [String]
|
|
16
22
|
# @param body [Array<Amocrm::Models::CustomFieldGroupCreateParams::Body>]
|
|
17
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
|
|
@@ -12,8 +12,14 @@ module Amocrm
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :entity_type, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute id
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :id, Integer
|
|
19
|
+
|
|
20
|
+
# @!method initialize(entity_type:, id:, request_options: {})
|
|
16
21
|
# @param entity_type [String]
|
|
22
|
+
# @param id [Integer]
|
|
17
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
end
|
|
19
25
|
end
|
|
@@ -12,8 +12,14 @@ module Amocrm
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :entity_type, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute id
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :id, Integer
|
|
19
|
+
|
|
20
|
+
# @!method initialize(entity_type:, id:, request_options: {})
|
|
16
21
|
# @param entity_type [String]
|
|
22
|
+
# @param id [Integer]
|
|
17
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
end
|
|
19
25
|
end
|
|
@@ -7,6 +7,11 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute entity_type
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :entity_type, String
|
|
14
|
+
|
|
10
15
|
# @!attribute limit
|
|
11
16
|
#
|
|
12
17
|
# @return [Integer, nil]
|
|
@@ -17,7 +22,8 @@ module Amocrm
|
|
|
17
22
|
# @return [Integer, nil]
|
|
18
23
|
optional :page, Integer
|
|
19
24
|
|
|
20
|
-
# @!method initialize(limit: nil, page: nil, request_options: {})
|
|
25
|
+
# @!method initialize(entity_type:, limit: nil, page: nil, request_options: {})
|
|
26
|
+
# @param entity_type [String]
|
|
21
27
|
# @param limit [Integer]
|
|
22
28
|
# @param page [Integer]
|
|
23
29
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -12,6 +12,11 @@ module Amocrm
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :entity_type, String
|
|
14
14
|
|
|
15
|
+
# @!attribute id
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :id, Integer
|
|
19
|
+
|
|
15
20
|
# @!attribute name
|
|
16
21
|
#
|
|
17
22
|
# @return [String, nil]
|
|
@@ -22,8 +27,9 @@ module Amocrm
|
|
|
22
27
|
# @return [Integer, nil]
|
|
23
28
|
optional :sort, Integer
|
|
24
29
|
|
|
25
|
-
# @!method initialize(entity_type:, name: nil, sort: nil, request_options: {})
|
|
30
|
+
# @!method initialize(entity_type:, id:, name: nil, sort: nil, request_options: {})
|
|
26
31
|
# @param entity_type [String]
|
|
32
|
+
# @param id [Integer]
|
|
27
33
|
# @param name [String]
|
|
28
34
|
# @param sort [Integer]
|
|
29
35
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -7,6 +7,11 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute entity_type
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :entity_type, String
|
|
14
|
+
|
|
10
15
|
# @!attribute limit
|
|
11
16
|
#
|
|
12
17
|
# @return [Integer, nil]
|
|
@@ -17,7 +22,8 @@ module Amocrm
|
|
|
17
22
|
# @return [Integer, nil]
|
|
18
23
|
optional :page, Integer
|
|
19
24
|
|
|
20
|
-
# @!method initialize(limit: nil, page: nil, request_options: {})
|
|
25
|
+
# @!method initialize(entity_type:, limit: nil, page: nil, request_options: {})
|
|
26
|
+
# @param entity_type [String]
|
|
21
27
|
# @param limit [Integer]
|
|
22
28
|
# @param page [Integer]
|
|
23
29
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -12,6 +12,11 @@ module Amocrm
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :entity_type, String
|
|
14
14
|
|
|
15
|
+
# @!attribute id
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :id, Integer
|
|
19
|
+
|
|
15
20
|
# @!attribute code
|
|
16
21
|
#
|
|
17
22
|
# @return [String, nil]
|
|
@@ -67,8 +72,9 @@ module Amocrm
|
|
|
67
72
|
# @return [String, nil]
|
|
68
73
|
optional :type, String
|
|
69
74
|
|
|
70
|
-
# @!method initialize(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: {})
|
|
75
|
+
# @!method initialize(entity_type:, id:, 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: {})
|
|
71
76
|
# @param entity_type [String]
|
|
77
|
+
# @param id [Integer]
|
|
72
78
|
# @param code [String]
|
|
73
79
|
# @param enums [Array<Object>]
|
|
74
80
|
# @param group_id [Integer]
|
|
@@ -7,12 +7,18 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute entity_type
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :entity_type, String
|
|
14
|
+
|
|
10
15
|
# @!attribute body
|
|
11
16
|
#
|
|
12
17
|
# @return [Array<Amocrm::Models::CustomFieldUpdateParams::Body>]
|
|
13
18
|
required :body, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomFieldUpdateParams::Body] }
|
|
14
19
|
|
|
15
|
-
# @!method initialize(body:, request_options: {})
|
|
20
|
+
# @!method initialize(entity_type:, body:, request_options: {})
|
|
21
|
+
# @param entity_type [String]
|
|
16
22
|
# @param body [Array<Amocrm::Models::CustomFieldUpdateParams::Body>]
|
|
17
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
|