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.
Files changed (303) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/README.md +1 -1
  4. data/lib/amocrm/internal/util.rb +53 -7
  5. data/lib/amocrm/models/catalog_element_create_params.rb +7 -1
  6. data/lib/amocrm/models/catalog_element_get_by_id_params.rb +8 -1
  7. data/lib/amocrm/models/catalog_element_list_params.rb +7 -1
  8. data/lib/amocrm/models/catalog_element_update_by_id_params.rb +7 -1
  9. data/lib/amocrm/models/catalog_element_update_params.rb +7 -1
  10. data/lib/amocrm/models/catalog_get_by_id_params.rb +7 -1
  11. data/lib/amocrm/models/catalog_update_by_id_params.rb +7 -1
  12. data/lib/amocrm/models/company_get_by_id_params.rb +8 -1
  13. data/lib/amocrm/models/company_update_by_id_params.rb +8 -1
  14. data/lib/amocrm/models/contact_get_by_id_params.rb +8 -1
  15. data/lib/amocrm/models/contact_update_by_id_params.rb +8 -1
  16. data/lib/amocrm/models/custom_field_create_params.rb +7 -1
  17. data/lib/amocrm/models/custom_field_delete_by_id_params.rb +7 -1
  18. data/lib/amocrm/models/custom_field_get_by_id_params.rb +7 -1
  19. data/lib/amocrm/models/custom_field_group_create_params.rb +7 -1
  20. data/lib/amocrm/models/custom_field_group_delete_by_id_params.rb +7 -1
  21. data/lib/amocrm/models/custom_field_group_get_by_id_params.rb +7 -1
  22. data/lib/amocrm/models/custom_field_group_list_params.rb +7 -1
  23. data/lib/amocrm/models/custom_field_group_update_by_id_params.rb +7 -1
  24. data/lib/amocrm/models/custom_field_list_params.rb +7 -1
  25. data/lib/amocrm/models/custom_field_update_by_id_params.rb +7 -1
  26. data/lib/amocrm/models/custom_field_update_params.rb +7 -1
  27. data/lib/amocrm/models/customer_bonus_point_change_params.rb +39 -8
  28. data/lib/amocrm/models/customer_get_by_id_params.rb +8 -1
  29. data/lib/amocrm/models/customer_segment_delete_by_id_params.rb +7 -1
  30. data/lib/amocrm/models/customer_segment_get_by_id_params.rb +7 -1
  31. data/lib/amocrm/models/customer_segment_update_by_id_params.rb +7 -1
  32. data/lib/amocrm/models/customer_status_delete_by_id_params.rb +7 -1
  33. data/lib/amocrm/models/customer_status_get_by_id_params.rb +7 -1
  34. data/lib/amocrm/models/customer_status_update_by_id_params.rb +7 -1
  35. data/lib/amocrm/models/customer_transaction_create_params.rb +7 -1
  36. data/lib/amocrm/models/customer_transaction_delete_by_id_params.rb +7 -1
  37. data/lib/amocrm/models/customer_transaction_list_by_customer_params.rb +7 -1
  38. data/lib/amocrm/models/customer_update_by_id_params.rb +7 -1
  39. data/lib/amocrm/models/entity_follower_add_params.rb +7 -1
  40. data/lib/amocrm/models/entity_follower_list_params.rb +7 -1
  41. data/lib/amocrm/models/entity_follower_remove_params.rb +7 -1
  42. data/lib/amocrm/models/entity_link_link_by_entity_params.rb +7 -1
  43. data/lib/amocrm/models/entity_link_link_params.rb +7 -1
  44. data/lib/amocrm/models/entity_link_list_by_entity_params.rb +7 -1
  45. data/lib/amocrm/models/entity_link_list_params.rb +7 -1
  46. data/lib/amocrm/models/entity_link_unlink_by_entity_params.rb +7 -1
  47. data/lib/amocrm/models/entity_link_unlink_params.rb +7 -1
  48. data/lib/amocrm/models/entity_note_create_params.rb +7 -1
  49. data/lib/amocrm/models/entity_note_get_by_id_params.rb +7 -1
  50. data/lib/amocrm/models/entity_note_list_params.rb +7 -1
  51. data/lib/amocrm/models/entity_note_pin_params.rb +7 -1
  52. data/lib/amocrm/models/entity_note_unpin_params.rb +7 -1
  53. data/lib/amocrm/models/entity_note_update_by_id_params.rb +7 -1
  54. data/lib/amocrm/models/entity_note_update_params.rb +7 -1
  55. data/lib/amocrm/models/entity_notes_by_parent_create_by_parent_params.rb +7 -1
  56. data/lib/amocrm/models/entity_notes_by_parent_get_by_parent_id_params.rb +7 -1
  57. data/lib/amocrm/models/entity_notes_by_parent_list_by_parent_params.rb +7 -1
  58. data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rb +13 -1
  59. data/lib/amocrm/models/entity_notes_by_parent_update_by_parent_params.rb +7 -1
  60. data/lib/amocrm/models/event_get_by_id_params.rb +7 -1
  61. data/lib/amocrm/models/lead_get_by_id_params.rb +8 -1
  62. data/lib/amocrm/models/lead_update_by_id_params.rb +8 -1
  63. data/lib/amocrm/models/pipeline_delete_by_id_params.rb +7 -1
  64. data/lib/amocrm/models/pipeline_get_by_id_params.rb +7 -1
  65. data/lib/amocrm/models/pipeline_status_create_params.rb +7 -1
  66. data/lib/amocrm/models/pipeline_status_delete_by_id_params.rb +7 -1
  67. data/lib/amocrm/models/pipeline_status_get_by_id_params.rb +8 -1
  68. data/lib/amocrm/models/pipeline_status_list_params.rb +8 -1
  69. data/lib/amocrm/models/pipeline_status_update_by_id_params.rb +7 -1
  70. data/lib/amocrm/models/pipeline_status_update_params.rb +7 -1
  71. data/lib/amocrm/models/pipeline_update_by_id_params.rb +7 -1
  72. data/lib/amocrm/models/role_delete_by_id_params.rb +7 -1
  73. data/lib/amocrm/models/role_get_by_id_params.rb +7 -1
  74. data/lib/amocrm/models/role_update_by_id_params.rb +7 -1
  75. data/lib/amocrm/models/source_delete_by_id_params.rb +7 -1
  76. data/lib/amocrm/models/source_get_by_id_params.rb +7 -1
  77. data/lib/amocrm/models/source_update_by_id_params.rb +7 -1
  78. data/lib/amocrm/models/tag_create_params.rb +7 -1
  79. data/lib/amocrm/models/tag_list_params.rb +7 -1
  80. data/lib/amocrm/models/talk_close_params.rb +8 -1
  81. data/lib/amocrm/models/talk_get_by_id_params.rb +7 -1
  82. data/lib/amocrm/models/task_get_by_id_params.rb +7 -1
  83. data/lib/amocrm/models/task_update_by_id_params.rb +7 -1
  84. data/lib/amocrm/models/unsorted_lead_accept_params.rb +8 -1
  85. data/lib/amocrm/models/unsorted_lead_decline_params.rb +8 -1
  86. data/lib/amocrm/models/user_get_by_id_params.rb +7 -1
  87. data/lib/amocrm/models/website_button_connect_online_chat_params.rb +7 -1
  88. data/lib/amocrm/models/website_button_get_by_source_id_params.rb +7 -1
  89. data/lib/amocrm/models/website_button_update_params.rb +7 -1
  90. data/lib/amocrm/models/widget_bot_continue_continue_params.rb +7 -1
  91. data/lib/amocrm/models/widget_get_by_code_params.rb +7 -1
  92. data/lib/amocrm/models/widget_install_params.rb +7 -1
  93. data/lib/amocrm/models/widget_uninstall_params.rb +7 -1
  94. data/lib/amocrm/resources/account.rb +2 -1
  95. data/lib/amocrm/resources/catalog_elements.rb +4 -2
  96. data/lib/amocrm/resources/catalogs.rb +2 -1
  97. data/lib/amocrm/resources/companies.rb +4 -2
  98. data/lib/amocrm/resources/contact_chats.rb +2 -1
  99. data/lib/amocrm/resources/contacts.rb +4 -2
  100. data/lib/amocrm/resources/custom_field_groups.rb +2 -1
  101. data/lib/amocrm/resources/custom_fields.rb +2 -1
  102. data/lib/amocrm/resources/customer_bonus_points.rb +3 -4
  103. data/lib/amocrm/resources/customer_transactions.rb +6 -3
  104. data/lib/amocrm/resources/customers.rb +4 -2
  105. data/lib/amocrm/resources/entity_followers.rb +2 -1
  106. data/lib/amocrm/resources/entity_links.rb +2 -1
  107. data/lib/amocrm/resources/entity_notes.rb +4 -2
  108. data/lib/amocrm/resources/entity_notes_by_parent.rb +4 -2
  109. data/lib/amocrm/resources/events.rb +6 -3
  110. data/lib/amocrm/resources/leads.rb +4 -2
  111. data/lib/amocrm/resources/pipeline_statuses.rb +4 -2
  112. data/lib/amocrm/resources/roles.rb +4 -2
  113. data/lib/amocrm/resources/sources.rb +2 -1
  114. data/lib/amocrm/resources/tags.rb +2 -1
  115. data/lib/amocrm/resources/tasks.rb +2 -1
  116. data/lib/amocrm/resources/users.rb +4 -2
  117. data/lib/amocrm/resources/webhooks.rb +2 -1
  118. data/lib/amocrm/resources/website_buttons.rb +4 -2
  119. data/lib/amocrm/resources/widgets.rb +2 -1
  120. data/lib/amocrm/version.rb +1 -1
  121. data/rbi/amocrm/internal/util.rbi +28 -0
  122. data/rbi/amocrm/models/catalog_element_create_params.rbi +6 -1
  123. data/rbi/amocrm/models/catalog_element_get_by_id_params.rbi +6 -0
  124. data/rbi/amocrm/models/catalog_element_list_params.rbi +6 -0
  125. data/rbi/amocrm/models/catalog_element_update_by_id_params.rbi +6 -0
  126. data/rbi/amocrm/models/catalog_element_update_params.rbi +6 -1
  127. data/rbi/amocrm/models/catalog_get_by_id_params.rbi +13 -5
  128. data/rbi/amocrm/models/catalog_update_by_id_params.rbi +6 -0
  129. data/rbi/amocrm/models/company_get_by_id_params.rbi +6 -1
  130. data/rbi/amocrm/models/company_update_by_id_params.rbi +6 -0
  131. data/rbi/amocrm/models/contact_get_by_id_params.rbi +6 -1
  132. data/rbi/amocrm/models/contact_update_by_id_params.rbi +6 -0
  133. data/rbi/amocrm/models/custom_field_create_params.rbi +6 -1
  134. data/rbi/amocrm/models/custom_field_delete_by_id_params.rbi +10 -2
  135. data/rbi/amocrm/models/custom_field_get_by_id_params.rbi +10 -2
  136. data/rbi/amocrm/models/custom_field_group_create_params.rbi +6 -1
  137. data/rbi/amocrm/models/custom_field_group_delete_by_id_params.rbi +10 -2
  138. data/rbi/amocrm/models/custom_field_group_get_by_id_params.rbi +10 -2
  139. data/rbi/amocrm/models/custom_field_group_list_params.rbi +6 -1
  140. data/rbi/amocrm/models/custom_field_group_update_by_id_params.rbi +6 -1
  141. data/rbi/amocrm/models/custom_field_list_params.rbi +6 -1
  142. data/rbi/amocrm/models/custom_field_update_by_id_params.rbi +6 -0
  143. data/rbi/amocrm/models/custom_field_update_params.rbi +6 -1
  144. data/rbi/amocrm/models/customer_bonus_point_change_params.rbi +85 -8
  145. data/rbi/amocrm/models/customer_get_by_id_params.rbi +6 -1
  146. data/rbi/amocrm/models/customer_segment_delete_by_id_params.rbi +13 -5
  147. data/rbi/amocrm/models/customer_segment_get_by_id_params.rbi +13 -5
  148. data/rbi/amocrm/models/customer_segment_update_by_id_params.rbi +6 -0
  149. data/rbi/amocrm/models/customer_status_delete_by_id_params.rbi +13 -5
  150. data/rbi/amocrm/models/customer_status_get_by_id_params.rbi +13 -5
  151. data/rbi/amocrm/models/customer_status_update_by_id_params.rbi +6 -1
  152. data/rbi/amocrm/models/customer_transaction_create_params.rbi +6 -1
  153. data/rbi/amocrm/models/customer_transaction_delete_by_id_params.rbi +10 -2
  154. data/rbi/amocrm/models/customer_transaction_list_by_customer_params.rbi +12 -1
  155. data/rbi/amocrm/models/customer_update_by_id_params.rbi +6 -0
  156. data/rbi/amocrm/models/entity_follower_add_params.rbi +6 -1
  157. data/rbi/amocrm/models/entity_follower_list_params.rbi +12 -1
  158. data/rbi/amocrm/models/entity_follower_remove_params.rbi +6 -1
  159. data/rbi/amocrm/models/entity_link_link_by_entity_params.rbi +6 -1
  160. data/rbi/amocrm/models/entity_link_link_params.rbi +6 -1
  161. data/rbi/amocrm/models/entity_link_list_by_entity_params.rbi +6 -1
  162. data/rbi/amocrm/models/entity_link_list_params.rbi +10 -2
  163. data/rbi/amocrm/models/entity_link_unlink_by_entity_params.rbi +6 -1
  164. data/rbi/amocrm/models/entity_link_unlink_params.rbi +6 -1
  165. data/rbi/amocrm/models/entity_note_create_params.rbi +6 -1
  166. data/rbi/amocrm/models/entity_note_get_by_id_params.rbi +6 -1
  167. data/rbi/amocrm/models/entity_note_list_params.rbi +12 -1
  168. data/rbi/amocrm/models/entity_note_pin_params.rbi +6 -1
  169. data/rbi/amocrm/models/entity_note_unpin_params.rbi +6 -1
  170. data/rbi/amocrm/models/entity_note_update_by_id_params.rbi +6 -0
  171. data/rbi/amocrm/models/entity_note_update_params.rbi +6 -1
  172. data/rbi/amocrm/models/entity_notes_by_parent_create_by_parent_params.rbi +6 -1
  173. data/rbi/amocrm/models/entity_notes_by_parent_get_by_parent_id_params.rbi +12 -1
  174. data/rbi/amocrm/models/entity_notes_by_parent_list_by_parent_params.rbi +6 -0
  175. data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rbi +12 -0
  176. data/rbi/amocrm/models/entity_notes_by_parent_update_by_parent_params.rbi +6 -1
  177. data/rbi/amocrm/models/event_get_by_id_params.rbi +6 -2
  178. data/rbi/amocrm/models/lead_get_by_id_params.rbi +6 -1
  179. data/rbi/amocrm/models/lead_update_by_id_params.rbi +6 -0
  180. data/rbi/amocrm/models/pipeline_delete_by_id_params.rbi +13 -5
  181. data/rbi/amocrm/models/pipeline_get_by_id_params.rbi +13 -5
  182. data/rbi/amocrm/models/pipeline_status_create_params.rbi +6 -1
  183. data/rbi/amocrm/models/pipeline_status_delete_by_id_params.rbi +10 -2
  184. data/rbi/amocrm/models/pipeline_status_get_by_id_params.rbi +6 -0
  185. data/rbi/amocrm/models/pipeline_status_list_params.rbi +10 -1
  186. data/rbi/amocrm/models/pipeline_status_update_by_id_params.rbi +6 -0
  187. data/rbi/amocrm/models/pipeline_status_update_params.rbi +6 -1
  188. data/rbi/amocrm/models/pipeline_update_by_id_params.rbi +6 -0
  189. data/rbi/amocrm/models/role_delete_by_id_params.rbi +13 -5
  190. data/rbi/amocrm/models/role_get_by_id_params.rbi +6 -2
  191. data/rbi/amocrm/models/role_update_by_id_params.rbi +12 -1
  192. data/rbi/amocrm/models/source_delete_by_id_params.rbi +13 -5
  193. data/rbi/amocrm/models/source_get_by_id_params.rbi +13 -5
  194. data/rbi/amocrm/models/source_update_by_id_params.rbi +6 -0
  195. data/rbi/amocrm/models/tag_create_params.rbi +6 -1
  196. data/rbi/amocrm/models/tag_list_params.rbi +6 -0
  197. data/rbi/amocrm/models/talk_close_params.rbi +10 -1
  198. data/rbi/amocrm/models/talk_get_by_id_params.rbi +13 -5
  199. data/rbi/amocrm/models/task_get_by_id_params.rbi +13 -5
  200. data/rbi/amocrm/models/task_update_by_id_params.rbi +6 -0
  201. data/rbi/amocrm/models/unsorted_lead_accept_params.rbi +6 -0
  202. data/rbi/amocrm/models/unsorted_lead_decline_params.rbi +10 -1
  203. data/rbi/amocrm/models/user_get_by_id_params.rbi +6 -2
  204. data/rbi/amocrm/models/website_button_connect_online_chat_params.rbi +13 -5
  205. data/rbi/amocrm/models/website_button_get_by_source_id_params.rbi +10 -2
  206. data/rbi/amocrm/models/website_button_update_params.rbi +6 -1
  207. data/rbi/amocrm/models/widget_bot_continue_continue_params.rbi +6 -0
  208. data/rbi/amocrm/models/widget_get_by_code_params.rbi +13 -5
  209. data/rbi/amocrm/models/widget_install_params.rbi +10 -2
  210. data/rbi/amocrm/models/widget_uninstall_params.rbi +13 -5
  211. data/rbi/amocrm/resources/customer_bonus_points.rbi +6 -3
  212. data/sig/amocrm/internal/util.rbs +14 -0
  213. data/sig/amocrm/models/catalog_element_create_params.rbs +8 -1
  214. data/sig/amocrm/models/catalog_element_get_by_id_params.rbs +5 -1
  215. data/sig/amocrm/models/catalog_element_list_params.rbs +5 -0
  216. data/sig/amocrm/models/catalog_element_update_by_id_params.rbs +5 -0
  217. data/sig/amocrm/models/catalog_element_update_params.rbs +8 -1
  218. data/sig/amocrm/models/catalog_get_by_id_params.rbs +8 -3
  219. data/sig/amocrm/models/catalog_update_by_id_params.rbs +5 -0
  220. data/sig/amocrm/models/company_get_by_id_params.rbs +9 -2
  221. data/sig/amocrm/models/company_update_by_id_params.rbs +5 -0
  222. data/sig/amocrm/models/contact_get_by_id_params.rbs +9 -2
  223. data/sig/amocrm/models/contact_update_by_id_params.rbs +5 -0
  224. data/sig/amocrm/models/custom_field_create_params.rbs +8 -1
  225. data/sig/amocrm/models/custom_field_delete_by_id_params.rbs +6 -1
  226. data/sig/amocrm/models/custom_field_get_by_id_params.rbs +6 -1
  227. data/sig/amocrm/models/custom_field_group_create_params.rbs +8 -1
  228. data/sig/amocrm/models/custom_field_group_delete_by_id_params.rbs +6 -1
  229. data/sig/amocrm/models/custom_field_group_get_by_id_params.rbs +6 -1
  230. data/sig/amocrm/models/custom_field_group_list_params.rbs +5 -1
  231. data/sig/amocrm/models/custom_field_group_update_by_id_params.rbs +5 -1
  232. data/sig/amocrm/models/custom_field_list_params.rbs +5 -1
  233. data/sig/amocrm/models/custom_field_update_by_id_params.rbs +5 -0
  234. data/sig/amocrm/models/custom_field_update_params.rbs +8 -1
  235. data/sig/amocrm/models/customer_bonus_point_change_params.rbs +40 -7
  236. data/sig/amocrm/models/customer_get_by_id_params.rbs +9 -2
  237. data/sig/amocrm/models/customer_segment_delete_by_id_params.rbs +8 -3
  238. data/sig/amocrm/models/customer_segment_get_by_id_params.rbs +8 -3
  239. data/sig/amocrm/models/customer_segment_update_by_id_params.rbs +5 -0
  240. data/sig/amocrm/models/customer_status_delete_by_id_params.rbs +8 -3
  241. data/sig/amocrm/models/customer_status_get_by_id_params.rbs +8 -3
  242. data/sig/amocrm/models/customer_status_update_by_id_params.rbs +5 -1
  243. data/sig/amocrm/models/customer_transaction_create_params.rbs +5 -0
  244. data/sig/amocrm/models/customer_transaction_delete_by_id_params.rbs +6 -1
  245. data/sig/amocrm/models/customer_transaction_list_by_customer_params.rbs +5 -1
  246. data/sig/amocrm/models/customer_update_by_id_params.rbs +5 -0
  247. data/sig/amocrm/models/entity_follower_add_params.rbs +5 -0
  248. data/sig/amocrm/models/entity_follower_list_params.rbs +5 -0
  249. data/sig/amocrm/models/entity_follower_remove_params.rbs +5 -0
  250. data/sig/amocrm/models/entity_link_link_by_entity_params.rbs +5 -0
  251. data/sig/amocrm/models/entity_link_link_params.rbs +8 -1
  252. data/sig/amocrm/models/entity_link_list_by_entity_params.rbs +8 -1
  253. data/sig/amocrm/models/entity_link_list_params.rbs +13 -2
  254. data/sig/amocrm/models/entity_link_unlink_by_entity_params.rbs +5 -0
  255. data/sig/amocrm/models/entity_link_unlink_params.rbs +8 -1
  256. data/sig/amocrm/models/entity_note_create_params.rbs +8 -1
  257. data/sig/amocrm/models/entity_note_get_by_id_params.rbs +5 -0
  258. data/sig/amocrm/models/entity_note_list_params.rbs +10 -1
  259. data/sig/amocrm/models/entity_note_pin_params.rbs +8 -1
  260. data/sig/amocrm/models/entity_note_unpin_params.rbs +8 -1
  261. data/sig/amocrm/models/entity_note_update_by_id_params.rbs +5 -0
  262. data/sig/amocrm/models/entity_note_update_params.rbs +8 -1
  263. data/sig/amocrm/models/entity_notes_by_parent_create_by_parent_params.rbs +5 -0
  264. data/sig/amocrm/models/entity_notes_by_parent_get_by_parent_id_params.rbs +5 -0
  265. data/sig/amocrm/models/entity_notes_by_parent_list_by_parent_params.rbs +5 -0
  266. data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_id_params.rbs +10 -0
  267. data/sig/amocrm/models/entity_notes_by_parent_update_by_parent_params.rbs +5 -0
  268. data/sig/amocrm/models/event_get_by_id_params.rbs +9 -2
  269. data/sig/amocrm/models/lead_get_by_id_params.rbs +9 -2
  270. data/sig/amocrm/models/lead_update_by_id_params.rbs +5 -0
  271. data/sig/amocrm/models/pipeline_delete_by_id_params.rbs +8 -3
  272. data/sig/amocrm/models/pipeline_get_by_id_params.rbs +8 -3
  273. data/sig/amocrm/models/pipeline_status_create_params.rbs +8 -1
  274. data/sig/amocrm/models/pipeline_status_delete_by_id_params.rbs +6 -1
  275. data/sig/amocrm/models/pipeline_status_get_by_id_params.rbs +5 -1
  276. data/sig/amocrm/models/pipeline_status_list_params.rbs +10 -2
  277. data/sig/amocrm/models/pipeline_status_update_by_id_params.rbs +5 -0
  278. data/sig/amocrm/models/pipeline_status_update_params.rbs +8 -1
  279. data/sig/amocrm/models/pipeline_update_by_id_params.rbs +5 -0
  280. data/sig/amocrm/models/role_delete_by_id_params.rbs +8 -3
  281. data/sig/amocrm/models/role_get_by_id_params.rbs +9 -2
  282. data/sig/amocrm/models/role_update_by_id_params.rbs +5 -0
  283. data/sig/amocrm/models/source_delete_by_id_params.rbs +8 -3
  284. data/sig/amocrm/models/source_get_by_id_params.rbs +8 -3
  285. data/sig/amocrm/models/source_update_by_id_params.rbs +5 -0
  286. data/sig/amocrm/models/tag_create_params.rbs +8 -1
  287. data/sig/amocrm/models/tag_list_params.rbs +11 -1
  288. data/sig/amocrm/models/talk_close_params.rbs +6 -1
  289. data/sig/amocrm/models/talk_get_by_id_params.rbs +8 -3
  290. data/sig/amocrm/models/task_get_by_id_params.rbs +8 -3
  291. data/sig/amocrm/models/task_update_by_id_params.rbs +5 -0
  292. data/sig/amocrm/models/unsorted_lead_accept_params.rbs +5 -1
  293. data/sig/amocrm/models/unsorted_lead_decline_params.rbs +6 -1
  294. data/sig/amocrm/models/user_get_by_id_params.rbs +9 -2
  295. data/sig/amocrm/models/website_button_connect_online_chat_params.rbs +11 -3
  296. data/sig/amocrm/models/website_button_get_by_source_id_params.rbs +10 -2
  297. data/sig/amocrm/models/website_button_update_params.rbs +8 -1
  298. data/sig/amocrm/models/widget_bot_continue_continue_params.rbs +5 -0
  299. data/sig/amocrm/models/widget_get_by_code_params.rbs +11 -3
  300. data/sig/amocrm/models/widget_install_params.rbs +10 -2
  301. data/sig/amocrm/models/widget_uninstall_params.rbs +11 -3
  302. data/sig/amocrm/resources/customer_bonus_points.rbs +1 -2
  303. metadata +2 -2
@@ -11,6 +11,9 @@ module Amocrm
11
11
  T.any(Amocrm::TaskUpdateByIDParams, Amocrm::Internal::AnyHash)
12
12
  end
13
13
 
14
+ sig { returns(Integer) }
15
+ attr_accessor :id
16
+
14
17
  sig { returns(T.nilable(Integer)) }
15
18
  attr_reader :complete_till
16
19
 
@@ -61,6 +64,7 @@ module Amocrm
61
64
 
62
65
  sig do
63
66
  params(
67
+ id: Integer,
64
68
  complete_till: Integer,
65
69
  entity_id: Integer,
66
70
  entity_type: String,
@@ -73,6 +77,7 @@ module Amocrm
73
77
  ).returns(T.attached_class)
74
78
  end
75
79
  def self.new(
80
+ id:,
76
81
  complete_till: nil,
77
82
  entity_id: nil,
78
83
  entity_type: nil,
@@ -88,6 +93,7 @@ module Amocrm
88
93
  sig do
89
94
  override.returns(
90
95
  {
96
+ id: Integer,
91
97
  complete_till: Integer,
92
98
  entity_id: Integer,
93
99
  entity_type: String,
@@ -11,6 +11,9 @@ module Amocrm
11
11
  T.any(Amocrm::UnsortedLeadAcceptParams, Amocrm::Internal::AnyHash)
12
12
  end
13
13
 
14
+ sig { returns(String) }
15
+ attr_accessor :uid
16
+
14
17
  # Status id for the created lead
15
18
  sig { returns(T.nilable(Integer)) }
16
19
  attr_reader :status_id
@@ -27,12 +30,14 @@ module Amocrm
27
30
 
28
31
  sig do
29
32
  params(
33
+ uid: String,
30
34
  status_id: Integer,
31
35
  user_id: Integer,
32
36
  request_options: Amocrm::RequestOptions::OrHash
33
37
  ).returns(T.attached_class)
34
38
  end
35
39
  def self.new(
40
+ uid:,
36
41
  # Status id for the created lead
37
42
  status_id: nil,
38
43
  # User id on whose behalf the item is accepted
@@ -44,6 +49,7 @@ module Amocrm
44
49
  sig do
45
50
  override.returns(
46
51
  {
52
+ uid: String,
47
53
  status_id: Integer,
48
54
  user_id: Integer,
49
55
  request_options: Amocrm::RequestOptions
@@ -11,6 +11,9 @@ module Amocrm
11
11
  T.any(Amocrm::UnsortedLeadDeclineParams, Amocrm::Internal::AnyHash)
12
12
  end
13
13
 
14
+ sig { returns(String) }
15
+ attr_accessor :uid
16
+
14
17
  # User id on whose behalf the item is declined
15
18
  sig { returns(T.nilable(Integer)) }
16
19
  attr_reader :user_id
@@ -20,11 +23,13 @@ module Amocrm
20
23
 
21
24
  sig do
22
25
  params(
26
+ uid: String,
23
27
  user_id: Integer,
24
28
  request_options: Amocrm::RequestOptions::OrHash
25
29
  ).returns(T.attached_class)
26
30
  end
27
31
  def self.new(
32
+ uid:,
28
33
  # User id on whose behalf the item is declined
29
34
  user_id: nil,
30
35
  request_options: {}
@@ -33,7 +38,11 @@ module Amocrm
33
38
 
34
39
  sig do
35
40
  override.returns(
36
- { user_id: Integer, request_options: Amocrm::RequestOptions }
41
+ {
42
+ uid: String,
43
+ user_id: Integer,
44
+ request_options: Amocrm::RequestOptions
45
+ }
37
46
  )
38
47
  end
39
48
  def to_hash
@@ -11,6 +11,9 @@ module Amocrm
11
11
  T.any(Amocrm::UserGetByIDParams, Amocrm::Internal::AnyHash)
12
12
  end
13
13
 
14
+ sig { returns(Integer) }
15
+ attr_accessor :id
16
+
14
17
  sig { returns(T.nilable(String)) }
15
18
  attr_reader :with
16
19
 
@@ -19,16 +22,17 @@ module Amocrm
19
22
 
20
23
  sig do
21
24
  params(
25
+ id: Integer,
22
26
  with: String,
23
27
  request_options: Amocrm::RequestOptions::OrHash
24
28
  ).returns(T.attached_class)
25
29
  end
26
- def self.new(with: nil, request_options: {})
30
+ def self.new(id:, with: nil, request_options: {})
27
31
  end
28
32
 
29
33
  sig do
30
34
  override.returns(
31
- { with: String, request_options: Amocrm::RequestOptions }
35
+ { id: Integer, with: String, request_options: Amocrm::RequestOptions }
32
36
  )
33
37
  end
34
38
  def to_hash
@@ -14,15 +14,23 @@ module Amocrm
14
14
  )
15
15
  end
16
16
 
17
+ sig { returns(Integer) }
18
+ attr_accessor :source_id
19
+
17
20
  sig do
18
- params(request_options: Amocrm::RequestOptions::OrHash).returns(
19
- T.attached_class
20
- )
21
+ params(
22
+ source_id: Integer,
23
+ request_options: Amocrm::RequestOptions::OrHash
24
+ ).returns(T.attached_class)
21
25
  end
22
- def self.new(request_options: {})
26
+ def self.new(source_id:, request_options: {})
23
27
  end
24
28
 
25
- sig { override.returns({ request_options: Amocrm::RequestOptions }) }
29
+ sig do
30
+ override.returns(
31
+ { source_id: Integer, request_options: Amocrm::RequestOptions }
32
+ )
33
+ end
26
34
  def to_hash
27
35
  end
28
36
  end
@@ -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
- { with: String, request_options: Amocrm::RequestOptions }
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(request_options: Amocrm::RequestOptions::OrHash).returns(
16
- T.attached_class
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 { override.returns({ request_options: Amocrm::RequestOptions }) }
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
- { body: T.anything, request_options: Amocrm::RequestOptions }
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(request_options: Amocrm::RequestOptions::OrHash).returns(
16
- T.attached_class
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 { override.returns({ request_options: Amocrm::RequestOptions }) }
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
- earn: Integer,
11
- redeem: Integer,
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, earn:, redeem:, request_options: {})
18
+ def change(customer_id, body:, request_options: {})
16
19
  end
17
20
 
18
21
  # @api private
@@ -45,8 +45,12 @@ module Amocrm
45
45
  -> top?
46
46
  } -> top?
47
47
 
48
+ RFC_3986_NOT_PCHARS: Regexp
49
+
48
50
  def self?.uri_origin: (URI::Generic uri) -> String
49
51
 
52
+ def self?.encode_path: (String | Integer path) -> String
53
+
50
54
  def self?.interpolate_path: (String | ::Array[String] path) -> String
51
55
 
52
56
  def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]]
@@ -106,6 +110,16 @@ module Amocrm
106
110
  JSON_CONTENT: Regexp
107
111
  JSONL_CONTENT: Regexp
108
112
 
113
+ def encode_query_params: (
114
+ ::Hash[Symbol, top] query
115
+ ) -> ::Hash[Symbol, top]
116
+
117
+ private def write_query_param_element!: (
118
+ ::Hash[Symbol, top] collection,
119
+ String key,
120
+ top element
121
+ ) -> nil
122
+
109
123
  def self?.write_multipart_content: (
110
124
  Enumerator::Yielder y,
111
125
  val: top,
@@ -1,21 +1,28 @@
1
1
  module Amocrm
2
2
  module Models
3
3
  type catalog_element_create_params =
4
- { body: ::Array[Amocrm::CatalogElementCreateParams::Body] }
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
- { body: ::Array[Amocrm::CatalogElementUpdateParams::Body] }
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
- { } & Amocrm::Internal::Type::request_parameters
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
- def initialize: (?request_options: Amocrm::request_opts) -> void
10
+ attr_accessor id: Integer
11
11
 
12
- def to_hash: -> { request_options: Amocrm::RequestOptions }
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: -> { with: String, request_options: Amocrm::RequestOptions }
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,