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
|
@@ -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
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type custom_field_group_create_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
entity_type: String,
|
|
6
|
+
body: ::Array[Amocrm::CustomFieldGroupCreateParams::Body]
|
|
7
|
+
}
|
|
5
8
|
& Amocrm::Internal::Type::request_parameters
|
|
6
9
|
|
|
7
10
|
class CustomFieldGroupCreateParams < 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::CustomFieldGroupCreateParams::Body]
|
|
12
17
|
|
|
13
18
|
def initialize: (
|
|
19
|
+
entity_type: String,
|
|
14
20
|
body: ::Array[Amocrm::CustomFieldGroupCreateParams::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::CustomFieldGroupCreateParams::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_group_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 CustomFieldGroupDeleteByIDParams < 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_group_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 CustomFieldGroupGetByIDParams < 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,13 +1,15 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type custom_field_group_list_params =
|
|
4
|
-
{ limit: Integer, page: Integer }
|
|
4
|
+
{ entity_type: String, limit: Integer, page: Integer }
|
|
5
5
|
& Amocrm::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class CustomFieldGroupListParams < Amocrm::Internal::Type::BaseModel
|
|
8
8
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Amocrm::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
attr_accessor entity_type: String
|
|
12
|
+
|
|
11
13
|
attr_reader limit: Integer?
|
|
12
14
|
|
|
13
15
|
def limit=: (Integer) -> Integer
|
|
@@ -17,12 +19,14 @@ module Amocrm
|
|
|
17
19
|
def page=: (Integer) -> Integer
|
|
18
20
|
|
|
19
21
|
def initialize: (
|
|
22
|
+
entity_type: String,
|
|
20
23
|
?limit: Integer,
|
|
21
24
|
?page: Integer,
|
|
22
25
|
?request_options: Amocrm::request_opts
|
|
23
26
|
) -> void
|
|
24
27
|
|
|
25
28
|
def to_hash: -> {
|
|
29
|
+
entity_type: String,
|
|
26
30
|
limit: Integer,
|
|
27
31
|
page: Integer,
|
|
28
32
|
request_options: Amocrm::RequestOptions
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type custom_field_group_update_by_id_params =
|
|
4
|
-
{ entity_type: String, name: String, sort: Integer }
|
|
4
|
+
{ entity_type: String, id: Integer, name: String, sort: Integer }
|
|
5
5
|
& Amocrm::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class CustomFieldGroupUpdateByIDParams < Amocrm::Internal::Type::BaseModel
|
|
@@ -10,6 +10,8 @@ module Amocrm
|
|
|
10
10
|
|
|
11
11
|
attr_accessor entity_type: String
|
|
12
12
|
|
|
13
|
+
attr_accessor id: Integer
|
|
14
|
+
|
|
13
15
|
attr_reader name: String?
|
|
14
16
|
|
|
15
17
|
def name=: (String) -> String
|
|
@@ -20,6 +22,7 @@ module Amocrm
|
|
|
20
22
|
|
|
21
23
|
def initialize: (
|
|
22
24
|
entity_type: String,
|
|
25
|
+
id: Integer,
|
|
23
26
|
?name: String,
|
|
24
27
|
?sort: Integer,
|
|
25
28
|
?request_options: Amocrm::request_opts
|
|
@@ -27,6 +30,7 @@ module Amocrm
|
|
|
27
30
|
|
|
28
31
|
def to_hash: -> {
|
|
29
32
|
entity_type: String,
|
|
33
|
+
id: Integer,
|
|
30
34
|
name: String,
|
|
31
35
|
sort: Integer,
|
|
32
36
|
request_options: Amocrm::RequestOptions
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type custom_field_list_params =
|
|
4
|
-
{ limit: Integer, page: Integer }
|
|
4
|
+
{ entity_type: String, limit: Integer, page: Integer }
|
|
5
5
|
& Amocrm::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class CustomFieldListParams < Amocrm::Internal::Type::BaseModel
|
|
8
8
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Amocrm::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
attr_accessor entity_type: String
|
|
12
|
+
|
|
11
13
|
attr_reader limit: Integer?
|
|
12
14
|
|
|
13
15
|
def limit=: (Integer) -> Integer
|
|
@@ -17,12 +19,14 @@ module Amocrm
|
|
|
17
19
|
def page=: (Integer) -> Integer
|
|
18
20
|
|
|
19
21
|
def initialize: (
|
|
22
|
+
entity_type: String,
|
|
20
23
|
?limit: Integer,
|
|
21
24
|
?page: Integer,
|
|
22
25
|
?request_options: Amocrm::request_opts
|
|
23
26
|
) -> void
|
|
24
27
|
|
|
25
28
|
def to_hash: -> {
|
|
29
|
+
entity_type: String,
|
|
26
30
|
limit: Integer,
|
|
27
31
|
page: Integer,
|
|
28
32
|
request_options: Amocrm::RequestOptions
|
|
@@ -3,6 +3,7 @@ module Amocrm
|
|
|
3
3
|
type custom_field_update_by_id_params =
|
|
4
4
|
{
|
|
5
5
|
entity_type: String,
|
|
6
|
+
id: Integer,
|
|
6
7
|
code: String,
|
|
7
8
|
enums: ::Array[top],
|
|
8
9
|
group_id: Integer,
|
|
@@ -23,6 +24,8 @@ module Amocrm
|
|
|
23
24
|
|
|
24
25
|
attr_accessor entity_type: String
|
|
25
26
|
|
|
27
|
+
attr_accessor id: Integer
|
|
28
|
+
|
|
26
29
|
attr_reader code: String?
|
|
27
30
|
|
|
28
31
|
def code=: (String) -> String
|
|
@@ -69,6 +72,7 @@ module Amocrm
|
|
|
69
72
|
|
|
70
73
|
def initialize: (
|
|
71
74
|
entity_type: String,
|
|
75
|
+
id: Integer,
|
|
72
76
|
?code: String,
|
|
73
77
|
?enums: ::Array[top],
|
|
74
78
|
?group_id: Integer,
|
|
@@ -85,6 +89,7 @@ module Amocrm
|
|
|
85
89
|
|
|
86
90
|
def to_hash: -> {
|
|
87
91
|
entity_type: String,
|
|
92
|
+
id: Integer,
|
|
88
93
|
code: String,
|
|
89
94
|
enums: ::Array[top],
|
|
90
95
|
group_id: Integer,
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type custom_field_update_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
entity_type: String,
|
|
6
|
+
body: ::Array[Amocrm::CustomFieldUpdateParams::Body]
|
|
7
|
+
}
|
|
5
8
|
& Amocrm::Internal::Type::request_parameters
|
|
6
9
|
|
|
7
10
|
class CustomFieldUpdateParams < 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::CustomFieldUpdateParams::Body]
|
|
12
17
|
|
|
13
18
|
def initialize: (
|
|
19
|
+
entity_type: String,
|
|
14
20
|
body: ::Array[Amocrm::CustomFieldUpdateParams::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::CustomFieldUpdateParams::Body],
|
|
20
27
|
request_options: Amocrm::RequestOptions
|
|
21
28
|
}
|
|
@@ -1,28 +1,61 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type customer_bonus_point_change_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
customer_id: Integer,
|
|
6
|
+
body: Amocrm::Models::CustomerBonusPointChangeParams::body
|
|
7
|
+
}
|
|
5
8
|
& Amocrm::Internal::Type::request_parameters
|
|
6
9
|
|
|
7
10
|
class CustomerBonusPointChangeParams < Amocrm::Internal::Type::BaseModel
|
|
8
11
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
9
12
|
include Amocrm::Internal::Type::RequestParameters
|
|
10
13
|
|
|
11
|
-
attr_accessor
|
|
14
|
+
attr_accessor customer_id: Integer
|
|
12
15
|
|
|
13
|
-
attr_accessor
|
|
16
|
+
attr_accessor body: Amocrm::Models::CustomerBonusPointChangeParams::body
|
|
14
17
|
|
|
15
18
|
def initialize: (
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
customer_id: Integer,
|
|
20
|
+
body: Amocrm::Models::CustomerBonusPointChangeParams::body,
|
|
18
21
|
?request_options: Amocrm::request_opts
|
|
19
22
|
) -> void
|
|
20
23
|
|
|
21
24
|
def to_hash: -> {
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
customer_id: Integer,
|
|
26
|
+
body: Amocrm::Models::CustomerBonusPointChangeParams::body,
|
|
24
27
|
request_options: Amocrm::RequestOptions
|
|
25
28
|
}
|
|
29
|
+
|
|
30
|
+
type body =
|
|
31
|
+
Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn
|
|
32
|
+
| Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem
|
|
33
|
+
|
|
34
|
+
module Body
|
|
35
|
+
extend Amocrm::Internal::Type::Union
|
|
36
|
+
|
|
37
|
+
type customer_bonus_points_earn = { earn: Integer }
|
|
38
|
+
|
|
39
|
+
class CustomerBonusPointsEarn < Amocrm::Internal::Type::BaseModel
|
|
40
|
+
attr_accessor earn: Integer
|
|
41
|
+
|
|
42
|
+
def initialize: (earn: Integer) -> void
|
|
43
|
+
|
|
44
|
+
def to_hash: -> { earn: Integer }
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
type customer_bonus_points_redeem = { redeem: Integer }
|
|
48
|
+
|
|
49
|
+
class CustomerBonusPointsRedeem < Amocrm::Internal::Type::BaseModel
|
|
50
|
+
attr_accessor redeem: Integer
|
|
51
|
+
|
|
52
|
+
def initialize: (redeem: Integer) -> void
|
|
53
|
+
|
|
54
|
+
def to_hash: -> { redeem: Integer }
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def self?.variants: -> ::Array[Amocrm::Models::CustomerBonusPointChangeParams::body]
|
|
58
|
+
end
|
|
26
59
|
end
|
|
27
60
|
end
|
|
28
61
|
end
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type customer_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 CustomerGetByIDParams < 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
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type customer_segment_delete_by_id_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: Integer } & Amocrm::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerSegmentDeleteByIDParams < 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
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type customer_segment_get_by_id_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: Integer } & Amocrm::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerSegmentGetByIDParams < 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 customer_segment_update_by_id_params =
|
|
4
4
|
{
|
|
5
|
+
id: Integer,
|
|
5
6
|
color: String,
|
|
6
7
|
custom_fields_values: ::Array[Amocrm::CustomerSegmentUpdateByIDParams::CustomFieldsValue],
|
|
7
8
|
name: String
|
|
@@ -12,6 +13,8 @@ module Amocrm
|
|
|
12
13
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
13
14
|
include Amocrm::Internal::Type::RequestParameters
|
|
14
15
|
|
|
16
|
+
attr_accessor id: Integer
|
|
17
|
+
|
|
15
18
|
attr_reader color: String?
|
|
16
19
|
|
|
17
20
|
def color=: (String) -> String
|
|
@@ -27,6 +30,7 @@ module Amocrm
|
|
|
27
30
|
def name=: (String) -> String
|
|
28
31
|
|
|
29
32
|
def initialize: (
|
|
33
|
+
id: Integer,
|
|
30
34
|
?color: String,
|
|
31
35
|
?custom_fields_values: ::Array[Amocrm::CustomerSegmentUpdateByIDParams::CustomFieldsValue],
|
|
32
36
|
?name: String,
|
|
@@ -34,6 +38,7 @@ module Amocrm
|
|
|
34
38
|
) -> void
|
|
35
39
|
|
|
36
40
|
def to_hash: -> {
|
|
41
|
+
id: Integer,
|
|
37
42
|
color: String,
|
|
38
43
|
custom_fields_values: ::Array[Amocrm::CustomerSegmentUpdateByIDParams::CustomFieldsValue],
|
|
39
44
|
name: String,
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type customer_status_delete_by_id_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: Integer } & Amocrm::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerStatusDeleteByIDParams < 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
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type customer_status_get_by_id_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: Integer } & Amocrm::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class CustomerStatusGetByIDParams < 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
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
module Amocrm
|
|
2
2
|
module Models
|
|
3
3
|
type customer_status_update_by_id_params =
|
|
4
|
-
{ color: String, name: String, sort: Integer }
|
|
4
|
+
{ id: Integer, color: String, name: String, sort: Integer }
|
|
5
5
|
& Amocrm::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class CustomerStatusUpdateByIDParams < Amocrm::Internal::Type::BaseModel
|
|
8
8
|
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Amocrm::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
attr_accessor id: Integer
|
|
12
|
+
|
|
11
13
|
attr_reader color: String?
|
|
12
14
|
|
|
13
15
|
def color=: (String) -> String
|
|
@@ -21,6 +23,7 @@ module Amocrm
|
|
|
21
23
|
def sort=: (Integer) -> Integer
|
|
22
24
|
|
|
23
25
|
def initialize: (
|
|
26
|
+
id: Integer,
|
|
24
27
|
?color: String,
|
|
25
28
|
?name: String,
|
|
26
29
|
?sort: Integer,
|
|
@@ -28,6 +31,7 @@ module Amocrm
|
|
|
28
31
|
) -> void
|
|
29
32
|
|
|
30
33
|
def to_hash: -> {
|
|
34
|
+
id: Integer,
|
|
31
35
|
color: String,
|
|
32
36
|
name: String,
|
|
33
37
|
sort: Integer,
|