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