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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3a5391d4393e98f05990cfeb6fc9bd3b83bc46dc1b78e0095593d6a4783cd26
|
|
4
|
+
data.tar.gz: 12ca76dc9c7b54151c8b7a97dbc1d8d28f152df038f2f4d442e5307550fd235e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ddc508445da427dbf30f710541e2d084e13146a1af9dd4e6b4750f60c92b8f611b5a572fbacb0609d2e1644dfb94026d4a1144d55852b6df61335375fb1b536
|
|
7
|
+
data.tar.gz: 61ee03c687f3460c72635ac1377e1ee662b4dc056580947d5238d25f766aeb9b66600d677dfb09610e4cdefb4104317985c91cb4207c075a932737d5de48c9aa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.3 (2026-03-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.5.2...v0.5.3](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.2...v0.5.3)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* properly mock time in ruby ci tests ([2c02d7c](https://github.com/Hexlet/amocrm-ruby/commit/2c02d7cdad78f91fc96b3572830b69c1e1781e69))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **ci:** add build step ([0111d8b](https://github.com/Hexlet/amocrm-ruby/commit/0111d8b871937e6422e3b348630971ae5a882d94))
|
|
15
|
+
* **ci:** skip uploading artifacts on stainless-internal branches ([59ed3cd](https://github.com/Hexlet/amocrm-ruby/commit/59ed3cd3a6282f58f826bde41e572836b42436d9))
|
|
16
|
+
* **internal:** codegen related update ([70ecc90](https://github.com/Hexlet/amocrm-ruby/commit/70ecc90ab1f89bff2aafa6ee7fc29934a9d9329d))
|
|
17
|
+
* **internal:** codegen related update ([906bc89](https://github.com/Hexlet/amocrm-ruby/commit/906bc8924e5c7ae9b50d3f194629ff7e8981d80a))
|
|
18
|
+
* **internal:** remove mock server code ([97b11dc](https://github.com/Hexlet/amocrm-ruby/commit/97b11dc026b0de710edaacc6a65526f9a6969ec7))
|
|
19
|
+
* update mock server docs ([4393e5d](https://github.com/Hexlet/amocrm-ruby/commit/4393e5d94350640a132c8df0d330715e7ca369ff))
|
|
20
|
+
|
|
3
21
|
## 0.5.2 (2026-02-07)
|
|
4
22
|
|
|
5
23
|
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
|
@@ -492,6 +492,37 @@ module Amocrm
|
|
|
492
492
|
JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
|
|
493
493
|
|
|
494
494
|
class << self
|
|
495
|
+
# @api private
|
|
496
|
+
#
|
|
497
|
+
# @param query [Hash{Symbol=>Object}]
|
|
498
|
+
#
|
|
499
|
+
# @return [Hash{Symbol=>Object}]
|
|
500
|
+
def encode_query_params(query)
|
|
501
|
+
out = {}
|
|
502
|
+
query.each { write_query_param_element!(out, _1, _2) }
|
|
503
|
+
out
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# @api private
|
|
507
|
+
#
|
|
508
|
+
# @param collection [Hash{Symbol=>Object}]
|
|
509
|
+
# @param key [String]
|
|
510
|
+
# @param element [Object]
|
|
511
|
+
#
|
|
512
|
+
# @return [nil]
|
|
513
|
+
private def write_query_param_element!(collection, key, element)
|
|
514
|
+
case element
|
|
515
|
+
in Hash
|
|
516
|
+
element.each do |name, value|
|
|
517
|
+
write_query_param_element!(collection, "#{key}[#{name}]", value)
|
|
518
|
+
end
|
|
519
|
+
in Array
|
|
520
|
+
collection[key] = element.map(&:to_s).join(",")
|
|
521
|
+
else
|
|
522
|
+
collection[key] = element.to_s
|
|
523
|
+
end
|
|
524
|
+
end
|
|
525
|
+
|
|
495
526
|
# @api private
|
|
496
527
|
#
|
|
497
528
|
# @param y [Enumerator::Yielder]
|
|
@@ -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
|
|
|
@@ -7,20 +7,51 @@ module Amocrm
|
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!attribute
|
|
10
|
+
# @!attribute customer_id
|
|
11
11
|
#
|
|
12
12
|
# @return [Integer]
|
|
13
|
-
required :
|
|
13
|
+
required :customer_id, Integer
|
|
14
14
|
|
|
15
|
-
# @!attribute
|
|
15
|
+
# @!attribute body
|
|
16
16
|
#
|
|
17
|
-
# @return [
|
|
18
|
-
required :
|
|
17
|
+
# @return [Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn, Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem]
|
|
18
|
+
required :body, union: -> { Amocrm::CustomerBonusPointChangeParams::Body }
|
|
19
19
|
|
|
20
|
-
# @!method initialize(
|
|
21
|
-
# @param
|
|
22
|
-
# @param
|
|
20
|
+
# @!method initialize(customer_id:, body:, request_options: {})
|
|
21
|
+
# @param customer_id [Integer]
|
|
22
|
+
# @param body [Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn, Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem]
|
|
23
23
|
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
|
|
24
|
+
|
|
25
|
+
module Body
|
|
26
|
+
extend Amocrm::Internal::Type::Union
|
|
27
|
+
|
|
28
|
+
variant -> { Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn }
|
|
29
|
+
|
|
30
|
+
variant -> { Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem }
|
|
31
|
+
|
|
32
|
+
class CustomerBonusPointsEarn < Amocrm::Internal::Type::BaseModel
|
|
33
|
+
# @!attribute earn
|
|
34
|
+
#
|
|
35
|
+
# @return [Integer]
|
|
36
|
+
required :earn, Integer
|
|
37
|
+
|
|
38
|
+
# @!method initialize(earn:)
|
|
39
|
+
# @param earn [Integer]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class CustomerBonusPointsRedeem < Amocrm::Internal::Type::BaseModel
|
|
43
|
+
# @!attribute redeem
|
|
44
|
+
#
|
|
45
|
+
# @return [Integer]
|
|
46
|
+
required :redeem, Integer
|
|
47
|
+
|
|
48
|
+
# @!method initialize(redeem:)
|
|
49
|
+
# @param redeem [Integer]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# @!method self.variants
|
|
53
|
+
# @return [Array(Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn, Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem)]
|
|
54
|
+
end
|
|
24
55
|
end
|
|
25
56
|
end
|
|
26
57
|
end
|
|
@@ -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,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
|