amocrm 0.5.1 → 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 +26 -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 +21 -1
- 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
|
@@ -14,6 +14,9 @@ module Amocrm
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(Integer) }
|
|
18
|
+
attr_accessor :source_id
|
|
19
|
+
|
|
17
20
|
sig { returns(T.nilable(String)) }
|
|
18
21
|
attr_reader :with
|
|
19
22
|
|
|
@@ -22,16 +25,21 @@ module Amocrm
|
|
|
22
25
|
|
|
23
26
|
sig do
|
|
24
27
|
params(
|
|
28
|
+
source_id: Integer,
|
|
25
29
|
with: String,
|
|
26
30
|
request_options: Amocrm::RequestOptions::OrHash
|
|
27
31
|
).returns(T.attached_class)
|
|
28
32
|
end
|
|
29
|
-
def self.new(with: nil, request_options: {})
|
|
33
|
+
def self.new(source_id:, with: nil, request_options: {})
|
|
30
34
|
end
|
|
31
35
|
|
|
32
36
|
sig do
|
|
33
37
|
override.returns(
|
|
34
|
-
{
|
|
38
|
+
{
|
|
39
|
+
source_id: Integer,
|
|
40
|
+
with: String,
|
|
41
|
+
request_options: Amocrm::RequestOptions
|
|
42
|
+
}
|
|
35
43
|
)
|
|
36
44
|
end
|
|
37
45
|
def to_hash
|
|
@@ -11,6 +11,9 @@ module Amocrm
|
|
|
11
11
|
T.any(Amocrm::WebsiteButtonUpdateParams, Amocrm::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(Integer) }
|
|
15
|
+
attr_accessor :source_id
|
|
16
|
+
|
|
14
17
|
sig { returns(Amocrm::WebsiteButtonUpdateParams::TrustedWebsites) }
|
|
15
18
|
attr_reader :trusted_websites
|
|
16
19
|
|
|
@@ -24,17 +27,19 @@ module Amocrm
|
|
|
24
27
|
|
|
25
28
|
sig do
|
|
26
29
|
params(
|
|
30
|
+
source_id: Integer,
|
|
27
31
|
trusted_websites:
|
|
28
32
|
Amocrm::WebsiteButtonUpdateParams::TrustedWebsites::OrHash,
|
|
29
33
|
request_options: Amocrm::RequestOptions::OrHash
|
|
30
34
|
).returns(T.attached_class)
|
|
31
35
|
end
|
|
32
|
-
def self.new(trusted_websites:, request_options: {})
|
|
36
|
+
def self.new(source_id:, trusted_websites:, request_options: {})
|
|
33
37
|
end
|
|
34
38
|
|
|
35
39
|
sig do
|
|
36
40
|
override.returns(
|
|
37
41
|
{
|
|
42
|
+
source_id: Integer,
|
|
38
43
|
trusted_websites:
|
|
39
44
|
Amocrm::WebsiteButtonUpdateParams::TrustedWebsites,
|
|
40
45
|
request_options: Amocrm::RequestOptions
|
|
@@ -22,6 +22,9 @@ module Amocrm
|
|
|
22
22
|
sig { returns(Integer) }
|
|
23
23
|
attr_accessor :bot_id
|
|
24
24
|
|
|
25
|
+
sig { returns(Integer) }
|
|
26
|
+
attr_accessor :continue_id
|
|
27
|
+
|
|
25
28
|
sig { returns(T.nilable(T.anything)) }
|
|
26
29
|
attr_reader :data
|
|
27
30
|
|
|
@@ -51,6 +54,7 @@ module Amocrm
|
|
|
51
54
|
params(
|
|
52
55
|
bot_type: Amocrm::WidgetBotContinueContinueParams::BotType::OrSymbol,
|
|
53
56
|
bot_id: Integer,
|
|
57
|
+
continue_id: Integer,
|
|
54
58
|
data: T.anything,
|
|
55
59
|
execute_handlers:
|
|
56
60
|
T::Array[
|
|
@@ -62,6 +66,7 @@ module Amocrm
|
|
|
62
66
|
def self.new(
|
|
63
67
|
bot_type:,
|
|
64
68
|
bot_id:,
|
|
69
|
+
continue_id:,
|
|
65
70
|
data: nil,
|
|
66
71
|
execute_handlers: nil,
|
|
67
72
|
request_options: {}
|
|
@@ -74,6 +79,7 @@ module Amocrm
|
|
|
74
79
|
bot_type:
|
|
75
80
|
Amocrm::WidgetBotContinueContinueParams::BotType::OrSymbol,
|
|
76
81
|
bot_id: Integer,
|
|
82
|
+
continue_id: Integer,
|
|
77
83
|
data: T.anything,
|
|
78
84
|
execute_handlers:
|
|
79
85
|
T::Array[Amocrm::WidgetBotContinueContinueParams::ExecuteHandler],
|
|
@@ -11,15 +11,23 @@ module Amocrm
|
|
|
11
11
|
T.any(Amocrm::WidgetGetByCodeParams, Amocrm::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :widget_code
|
|
16
|
+
|
|
14
17
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
params(
|
|
19
|
+
widget_code: String,
|
|
20
|
+
request_options: Amocrm::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
18
22
|
end
|
|
19
|
-
def self.new(request_options: {})
|
|
23
|
+
def self.new(widget_code:, request_options: {})
|
|
20
24
|
end
|
|
21
25
|
|
|
22
|
-
sig
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ widget_code: String, request_options: Amocrm::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
23
31
|
def to_hash
|
|
24
32
|
end
|
|
25
33
|
end
|
|
@@ -11,21 +11,29 @@ module Amocrm
|
|
|
11
11
|
T.any(Amocrm::WidgetInstallParams, Amocrm::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :widget_code
|
|
16
|
+
|
|
14
17
|
sig { returns(T.anything) }
|
|
15
18
|
attr_accessor :body
|
|
16
19
|
|
|
17
20
|
sig do
|
|
18
21
|
params(
|
|
22
|
+
widget_code: String,
|
|
19
23
|
body: T.anything,
|
|
20
24
|
request_options: Amocrm::RequestOptions::OrHash
|
|
21
25
|
).returns(T.attached_class)
|
|
22
26
|
end
|
|
23
|
-
def self.new(body:, request_options: {})
|
|
27
|
+
def self.new(widget_code:, body:, request_options: {})
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
sig do
|
|
27
31
|
override.returns(
|
|
28
|
-
{
|
|
32
|
+
{
|
|
33
|
+
widget_code: String,
|
|
34
|
+
body: T.anything,
|
|
35
|
+
request_options: Amocrm::RequestOptions
|
|
36
|
+
}
|
|
29
37
|
)
|
|
30
38
|
end
|
|
31
39
|
def to_hash
|
|
@@ -11,15 +11,23 @@ module Amocrm
|
|
|
11
11
|
T.any(Amocrm::WidgetUninstallParams, Amocrm::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :widget_code
|
|
16
|
+
|
|
14
17
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
params(
|
|
19
|
+
widget_code: String,
|
|
20
|
+
request_options: Amocrm::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
18
22
|
end
|
|
19
|
-
def self.new(request_options: {})
|
|
23
|
+
def self.new(widget_code:, request_options: {})
|
|
20
24
|
end
|
|
21
25
|
|
|
22
|
-
sig
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ widget_code: String, request_options: Amocrm::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
23
31
|
def to_hash
|
|
24
32
|
end
|
|
25
33
|
end
|
|
@@ -7,12 +7,15 @@ module Amocrm
|
|
|
7
7
|
sig do
|
|
8
8
|
params(
|
|
9
9
|
customer_id: Integer,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
body:
|
|
11
|
+
T.any(
|
|
12
|
+
Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn::OrHash,
|
|
13
|
+
Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem::OrHash
|
|
14
|
+
),
|
|
12
15
|
request_options: Amocrm::RequestOptions::OrHash
|
|
13
16
|
).returns(Amocrm::Models::CustomerBonusPointChangeResponse::Variants)
|
|
14
17
|
end
|
|
15
|
-
def change(customer_id,
|
|
18
|
+
def change(customer_id, body:, request_options: {})
|
|
16
19
|
end
|
|
17
20
|
|
|
18
21
|
# @api private
|
|
@@ -106,6 +106,16 @@ module Amocrm
|
|
|
106
106
|
JSON_CONTENT: Regexp
|
|
107
107
|
JSONL_CONTENT: Regexp
|
|
108
108
|
|
|
109
|
+
def encode_query_params: (
|
|
110
|
+
::Hash[Symbol, top] query
|
|
111
|
+
) -> ::Hash[Symbol, top]
|
|
112
|
+
|
|
113
|
+
private def write_query_param_element!: (
|
|
114
|
+
::Hash[Symbol, top] collection,
|
|
115
|
+
String key,
|
|
116
|
+
top element
|
|
117
|
+
) -> nil
|
|
118
|
+
|
|
109
119
|
def self?.write_multipart_content: (
|
|
110
120
|
Enumerator::Yielder y,
|
|
111
121
|
val: top,
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type catalog_element_create_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
catalog_id: Integer,
|
|
6
|
+
body: ::Array[Amocrm::CatalogElementCreateParams::Body]
|
|
7
|
+
}
|
|
5
8
|
& Amocrm::Internal::Type::request_parameters
|
|
6
9
|
|
|
7
10
|
class CatalogElementCreateParams < Amocrm::Internal::Type::BaseModel
|
|
8
11
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
9
12
|
include Amocrm::Internal::Type::RequestParameters
|
|
10
13
|
|
|
14
|
+
attr_accessor catalog_id: Integer
|
|
15
|
+
|
|
11
16
|
attr_accessor body: ::Array[Amocrm::CatalogElementCreateParams::Body]
|
|
12
17
|
|
|
13
18
|
def initialize: (
|
|
19
|
+
catalog_id: Integer,
|
|
14
20
|
body: ::Array[Amocrm::CatalogElementCreateParams::Body],
|
|
15
21
|
?request_options: Amocrm::request_opts
|
|
16
22
|
) -> void
|
|
17
23
|
|
|
18
24
|
def to_hash: -> {
|
|
25
|
+
catalog_id: Integer,
|
|
19
26
|
body: ::Array[Amocrm::CatalogElementCreateParams::Body],
|
|
20
27
|
request_options: Amocrm::RequestOptions
|
|
21
28
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type catalog_element_get_by_id_params =
|
|
4
|
-
{ catalog_id: Integer, with: String }
|
|
4
|
+
{ catalog_id: Integer, id: Integer, with: String }
|
|
5
5
|
& Amocrm::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class CatalogElementGetByIDParams < Amocrm::Internal::Type::BaseModel
|
|
@@ -10,18 +10,22 @@ module Amocrm
|
|
|
10
10
|
|
|
11
11
|
attr_accessor catalog_id: Integer
|
|
12
12
|
|
|
13
|
+
attr_accessor id: Integer
|
|
14
|
+
|
|
13
15
|
attr_reader with: String?
|
|
14
16
|
|
|
15
17
|
def with=: (String) -> String
|
|
16
18
|
|
|
17
19
|
def initialize: (
|
|
18
20
|
catalog_id: Integer,
|
|
21
|
+
id: Integer,
|
|
19
22
|
?with: String,
|
|
20
23
|
?request_options: Amocrm::request_opts
|
|
21
24
|
) -> void
|
|
22
25
|
|
|
23
26
|
def to_hash: -> {
|
|
24
27
|
catalog_id: Integer,
|
|
28
|
+
id: Integer,
|
|
25
29
|
with: String,
|
|
26
30
|
request_options: Amocrm::RequestOptions
|
|
27
31
|
}
|
|
@@ -2,6 +2,7 @@ module Amocrm
|
|
|
2
2
|
module Models
|
|
3
3
|
type catalog_element_list_params =
|
|
4
4
|
{
|
|
5
|
+
catalog_id: Integer,
|
|
5
6
|
filter: top,
|
|
6
7
|
limit: Integer,
|
|
7
8
|
page: Integer,
|
|
@@ -13,6 +14,8 @@ module Amocrm
|
|
|
13
14
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
14
15
|
include Amocrm::Internal::Type::RequestParameters
|
|
15
16
|
|
|
17
|
+
attr_accessor catalog_id: Integer
|
|
18
|
+
|
|
16
19
|
attr_reader filter: top?
|
|
17
20
|
|
|
18
21
|
def filter=: (top) -> top
|
|
@@ -32,6 +35,7 @@ module Amocrm
|
|
|
32
35
|
) -> Amocrm::Models::CatalogElementListParams::query
|
|
33
36
|
|
|
34
37
|
def initialize: (
|
|
38
|
+
catalog_id: Integer,
|
|
35
39
|
?filter: top,
|
|
36
40
|
?limit: Integer,
|
|
37
41
|
?page: Integer,
|
|
@@ -40,6 +44,7 @@ module Amocrm
|
|
|
40
44
|
) -> void
|
|
41
45
|
|
|
42
46
|
def to_hash: -> {
|
|
47
|
+
catalog_id: Integer,
|
|
43
48
|
filter: top,
|
|
44
49
|
limit: Integer,
|
|
45
50
|
page: Integer,
|
|
@@ -3,6 +3,7 @@ module Amocrm
|
|
|
3
3
|
type catalog_element_update_by_id_params =
|
|
4
4
|
{
|
|
5
5
|
catalog_id: Integer,
|
|
6
|
+
id: Integer,
|
|
6
7
|
custom_fields_values: ::Array[Amocrm::CatalogElementUpdateByIDParams::CustomFieldsValue],
|
|
7
8
|
name: String,
|
|
8
9
|
request_id: String
|
|
@@ -15,6 +16,8 @@ module Amocrm
|
|
|
15
16
|
|
|
16
17
|
attr_accessor catalog_id: Integer
|
|
17
18
|
|
|
19
|
+
attr_accessor id: Integer
|
|
20
|
+
|
|
18
21
|
attr_reader custom_fields_values: ::Array[Amocrm::CatalogElementUpdateByIDParams::CustomFieldsValue]?
|
|
19
22
|
|
|
20
23
|
def custom_fields_values=: (
|
|
@@ -31,6 +34,7 @@ module Amocrm
|
|
|
31
34
|
|
|
32
35
|
def initialize: (
|
|
33
36
|
catalog_id: Integer,
|
|
37
|
+
id: Integer,
|
|
34
38
|
?custom_fields_values: ::Array[Amocrm::CatalogElementUpdateByIDParams::CustomFieldsValue],
|
|
35
39
|
?name: String,
|
|
36
40
|
?request_id: String,
|
|
@@ -39,6 +43,7 @@ module Amocrm
|
|
|
39
43
|
|
|
40
44
|
def to_hash: -> {
|
|
41
45
|
catalog_id: Integer,
|
|
46
|
+
id: Integer,
|
|
42
47
|
custom_fields_values: ::Array[Amocrm::CatalogElementUpdateByIDParams::CustomFieldsValue],
|
|
43
48
|
name: String,
|
|
44
49
|
request_id: String,
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type catalog_element_update_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
catalog_id: Integer,
|
|
6
|
+
body: ::Array[Amocrm::CatalogElementUpdateParams::Body]
|
|
7
|
+
}
|
|
5
8
|
& Amocrm::Internal::Type::request_parameters
|
|
6
9
|
|
|
7
10
|
class CatalogElementUpdateParams < Amocrm::Internal::Type::BaseModel
|
|
8
11
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
9
12
|
include Amocrm::Internal::Type::RequestParameters
|
|
10
13
|
|
|
14
|
+
attr_accessor catalog_id: Integer
|
|
15
|
+
|
|
11
16
|
attr_accessor body: ::Array[Amocrm::CatalogElementUpdateParams::Body]
|
|
12
17
|
|
|
13
18
|
def initialize: (
|
|
19
|
+
catalog_id: Integer,
|
|
14
20
|
body: ::Array[Amocrm::CatalogElementUpdateParams::Body],
|
|
15
21
|
?request_options: Amocrm::request_opts
|
|
16
22
|
) -> void
|
|
17
23
|
|
|
18
24
|
def to_hash: -> {
|
|
25
|
+
catalog_id: Integer,
|
|
19
26
|
body: ::Array[Amocrm::CatalogElementUpdateParams::Body],
|
|
20
27
|
request_options: Amocrm::RequestOptions
|
|
21
28
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type catalog_get_by_id_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: Integer } & Amocrm::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CatalogGetByIDParams < Amocrm::Internal::Type::BaseModel
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: Integer
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: Integer,
|
|
14
|
+
?request_options: Amocrm::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { id: Integer, request_options: Amocrm::RequestOptions }
|
|
13
18
|
end
|
|
14
19
|
end
|
|
15
20
|
end
|
|
@@ -2,6 +2,7 @@ module Amocrm
|
|
|
2
2
|
module Models
|
|
3
3
|
type catalog_update_by_id_params =
|
|
4
4
|
{
|
|
5
|
+
id: Integer,
|
|
5
6
|
can_add_elements: bool,
|
|
6
7
|
can_link_multiple: bool,
|
|
7
8
|
name: String,
|
|
@@ -14,6 +15,8 @@ module Amocrm
|
|
|
14
15
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
15
16
|
include Amocrm::Internal::Type::RequestParameters
|
|
16
17
|
|
|
18
|
+
attr_accessor id: Integer
|
|
19
|
+
|
|
17
20
|
attr_reader can_add_elements: bool?
|
|
18
21
|
|
|
19
22
|
def can_add_elements=: (bool) -> bool
|
|
@@ -35,6 +38,7 @@ module Amocrm
|
|
|
35
38
|
def sort=: (Integer) -> Integer
|
|
36
39
|
|
|
37
40
|
def initialize: (
|
|
41
|
+
id: Integer,
|
|
38
42
|
?can_add_elements: bool,
|
|
39
43
|
?can_link_multiple: bool,
|
|
40
44
|
?name: String,
|
|
@@ -44,6 +48,7 @@ module Amocrm
|
|
|
44
48
|
) -> void
|
|
45
49
|
|
|
46
50
|
def to_hash: -> {
|
|
51
|
+
id: Integer,
|
|
47
52
|
can_add_elements: bool,
|
|
48
53
|
can_link_multiple: bool,
|
|
49
54
|
name: String,
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type company_get_by_id_params =
|
|
4
|
-
{ with: String } & Amocrm::Internal::Type::request_parameters
|
|
4
|
+
{ id: Integer, with: String } & Amocrm::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CompanyGetByIDParams < Amocrm::Internal::Type::BaseModel
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
attr_accessor id: Integer
|
|
11
|
+
|
|
10
12
|
attr_reader with: String?
|
|
11
13
|
|
|
12
14
|
def with=: (String) -> String
|
|
13
15
|
|
|
14
16
|
def initialize: (
|
|
17
|
+
id: Integer,
|
|
15
18
|
?with: String,
|
|
16
19
|
?request_options: Amocrm::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
|
-
def to_hash: -> {
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
id: Integer,
|
|
24
|
+
with: String,
|
|
25
|
+
request_options: Amocrm::RequestOptions
|
|
26
|
+
}
|
|
20
27
|
end
|
|
21
28
|
end
|
|
22
29
|
end
|
|
@@ -2,6 +2,7 @@ module Amocrm
|
|
|
2
2
|
module Models
|
|
3
3
|
type company_update_by_id_params =
|
|
4
4
|
{
|
|
5
|
+
id: Integer,
|
|
5
6
|
_embedded: Amocrm::CompanyUpdateByIDParams::Embedded,
|
|
6
7
|
created_at: Integer,
|
|
7
8
|
created_by: Integer,
|
|
@@ -19,6 +20,8 @@ module Amocrm
|
|
|
19
20
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
20
21
|
include Amocrm::Internal::Type::RequestParameters
|
|
21
22
|
|
|
23
|
+
attr_accessor id: Integer
|
|
24
|
+
|
|
22
25
|
attr_reader _embedded: Amocrm::CompanyUpdateByIDParams::Embedded?
|
|
23
26
|
|
|
24
27
|
def _embedded=: (
|
|
@@ -68,6 +71,7 @@ module Amocrm
|
|
|
68
71
|
def updated_by=: (Integer) -> Integer
|
|
69
72
|
|
|
70
73
|
def initialize: (
|
|
74
|
+
id: Integer,
|
|
71
75
|
?_embedded: Amocrm::CompanyUpdateByIDParams::Embedded,
|
|
72
76
|
?created_at: Integer,
|
|
73
77
|
?created_by: Integer,
|
|
@@ -82,6 +86,7 @@ module Amocrm
|
|
|
82
86
|
) -> void
|
|
83
87
|
|
|
84
88
|
def to_hash: -> {
|
|
89
|
+
id: Integer,
|
|
85
90
|
_embedded: Amocrm::CompanyUpdateByIDParams::Embedded,
|
|
86
91
|
created_at: Integer,
|
|
87
92
|
created_by: Integer,
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type contact_get_by_id_params =
|
|
4
|
-
{ with: String } & Amocrm::Internal::Type::request_parameters
|
|
4
|
+
{ id: Integer, with: String } & Amocrm::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class ContactGetByIDParams < Amocrm::Internal::Type::BaseModel
|
|
7
7
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Amocrm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
attr_accessor id: Integer
|
|
11
|
+
|
|
10
12
|
attr_reader with: String?
|
|
11
13
|
|
|
12
14
|
def with=: (String) -> String
|
|
13
15
|
|
|
14
16
|
def initialize: (
|
|
17
|
+
id: Integer,
|
|
15
18
|
?with: String,
|
|
16
19
|
?request_options: Amocrm::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
|
-
def to_hash: -> {
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
id: Integer,
|
|
24
|
+
with: String,
|
|
25
|
+
request_options: Amocrm::RequestOptions
|
|
26
|
+
}
|
|
20
27
|
end
|
|
21
28
|
end
|
|
22
29
|
end
|
|
@@ -2,6 +2,7 @@ module Amocrm
|
|
|
2
2
|
module Models
|
|
3
3
|
type contact_update_by_id_params =
|
|
4
4
|
{
|
|
5
|
+
id: Integer,
|
|
5
6
|
_embedded: Amocrm::ContactUpdateByIDParams::Embedded,
|
|
6
7
|
created_at: Integer,
|
|
7
8
|
created_by: Integer,
|
|
@@ -21,6 +22,8 @@ module Amocrm
|
|
|
21
22
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
22
23
|
include Amocrm::Internal::Type::RequestParameters
|
|
23
24
|
|
|
25
|
+
attr_accessor id: Integer
|
|
26
|
+
|
|
24
27
|
attr_reader _embedded: Amocrm::ContactUpdateByIDParams::Embedded?
|
|
25
28
|
|
|
26
29
|
def _embedded=: (
|
|
@@ -78,6 +81,7 @@ module Amocrm
|
|
|
78
81
|
def updated_by=: (Integer) -> Integer
|
|
79
82
|
|
|
80
83
|
def initialize: (
|
|
84
|
+
id: Integer,
|
|
81
85
|
?_embedded: Amocrm::ContactUpdateByIDParams::Embedded,
|
|
82
86
|
?created_at: Integer,
|
|
83
87
|
?created_by: Integer,
|
|
@@ -94,6 +98,7 @@ module Amocrm
|
|
|
94
98
|
) -> void
|
|
95
99
|
|
|
96
100
|
def to_hash: -> {
|
|
101
|
+
id: Integer,
|
|
97
102
|
_embedded: Amocrm::ContactUpdateByIDParams::Embedded,
|
|
98
103
|
created_at: Integer,
|
|
99
104
|
created_by: Integer,
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type custom_field_create_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
entity_type: String,
|
|
6
|
+
body: ::Array[Amocrm::CustomFieldCreateParams::Body]
|
|
7
|
+
}
|
|
5
8
|
& Amocrm::Internal::Type::request_parameters
|
|
6
9
|
|
|
7
10
|
class CustomFieldCreateParams < Amocrm::Internal::Type::BaseModel
|
|
8
11
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
9
12
|
include Amocrm::Internal::Type::RequestParameters
|
|
10
13
|
|
|
14
|
+
attr_accessor entity_type: String
|
|
15
|
+
|
|
11
16
|
attr_accessor body: ::Array[Amocrm::CustomFieldCreateParams::Body]
|
|
12
17
|
|
|
13
18
|
def initialize: (
|
|
19
|
+
entity_type: String,
|
|
14
20
|
body: ::Array[Amocrm::CustomFieldCreateParams::Body],
|
|
15
21
|
?request_options: Amocrm::request_opts
|
|
16
22
|
) -> void
|
|
17
23
|
|
|
18
24
|
def to_hash: -> {
|
|
25
|
+
entity_type: String,
|
|
19
26
|
body: ::Array[Amocrm::CustomFieldCreateParams::Body],
|
|
20
27
|
request_options: Amocrm::RequestOptions
|
|
21
28
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type custom_field_delete_by_id_params =
|
|
4
|
-
{ entity_type: String
|
|
4
|
+
{ entity_type: String, id: Integer }
|
|
5
|
+
& Amocrm::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class CustomFieldDeleteByIDParams < Amocrm::Internal::Type::BaseModel
|
|
7
8
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
@@ -9,13 +10,17 @@ module Amocrm
|
|
|
9
10
|
|
|
10
11
|
attr_accessor entity_type: String
|
|
11
12
|
|
|
13
|
+
attr_accessor id: Integer
|
|
14
|
+
|
|
12
15
|
def initialize: (
|
|
13
16
|
entity_type: String,
|
|
17
|
+
id: Integer,
|
|
14
18
|
?request_options: Amocrm::request_opts
|
|
15
19
|
) -> void
|
|
16
20
|
|
|
17
21
|
def to_hash: -> {
|
|
18
22
|
entity_type: String,
|
|
23
|
+
id: Integer,
|
|
19
24
|
request_options: Amocrm::RequestOptions
|
|
20
25
|
}
|
|
21
26
|
end
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type custom_field_get_by_id_params =
|
|
4
|
-
{ entity_type: String
|
|
4
|
+
{ entity_type: String, id: Integer }
|
|
5
|
+
& Amocrm::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class CustomFieldGetByIDParams < Amocrm::Internal::Type::BaseModel
|
|
7
8
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
@@ -9,13 +10,17 @@ module Amocrm
|
|
|
9
10
|
|
|
10
11
|
attr_accessor entity_type: String
|
|
11
12
|
|
|
13
|
+
attr_accessor id: Integer
|
|
14
|
+
|
|
12
15
|
def initialize: (
|
|
13
16
|
entity_type: String,
|
|
17
|
+
id: Integer,
|
|
14
18
|
?request_options: Amocrm::request_opts
|
|
15
19
|
) -> void
|
|
16
20
|
|
|
17
21
|
def to_hash: -> {
|
|
18
22
|
entity_type: String,
|
|
23
|
+
id: Integer,
|
|
19
24
|
request_options: Amocrm::RequestOptions
|
|
20
25
|
}
|
|
21
26
|
end
|