amocrm 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/amocrm/internal/util.rb +31 -0
  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 +21 -1
  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 +10 -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: 66acee276094f8c7ad6f9967fa8dbb719e724e11b594481e9213fc6b8392e46f
4
- data.tar.gz: db9ee940b0c22fa31e7d66d45a650f659af433809a181144f37bf7d8f5562442
3
+ metadata.gz: b3a5391d4393e98f05990cfeb6fc9bd3b83bc46dc1b78e0095593d6a4783cd26
4
+ data.tar.gz: 12ca76dc9c7b54151c8b7a97dbc1d8d28f152df038f2f4d442e5307550fd235e
5
5
  SHA512:
6
- metadata.gz: 61bc0137157d30bedfbd13d6c4f17c37cac9f9c8bc4170074694d5b31686f8223362fdb942d4ac340f25deaa21caf47152280f3412b168e2177e360ec8ffee45
7
- data.tar.gz: bc62370d449f64aca43c42de080e402fb03134b61079d8a7f4c080b42ab26fac8042dc1b4c5d2489cb6d6f2c597feeeabdb35057a9adc526c99f0914806d5ab3
6
+ metadata.gz: 5ddc508445da427dbf30f710541e2d084e13146a1af9dd4e6b4750f60c92b8f611b5a572fbacb0609d2e1644dfb94026d4a1144d55852b6df61335375fb1b536
7
+ data.tar.gz: 61ee03c687f3460c72635ac1377e1ee662b4dc056580947d5238d25f766aeb9b66600d677dfb09610e4cdefb4104317985c91cb4207c075a932737d5de48c9aa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.3 (2026-03-08)
4
+
5
+ Full Changelog: [v0.5.2...v0.5.3](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.2...v0.5.3)
6
+
7
+ ### Bug Fixes
8
+
9
+ * properly mock time in ruby ci tests ([2c02d7c](https://github.com/Hexlet/amocrm-ruby/commit/2c02d7cdad78f91fc96b3572830b69c1e1781e69))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **ci:** add build step ([0111d8b](https://github.com/Hexlet/amocrm-ruby/commit/0111d8b871937e6422e3b348630971ae5a882d94))
15
+ * **ci:** skip uploading artifacts on stainless-internal branches ([59ed3cd](https://github.com/Hexlet/amocrm-ruby/commit/59ed3cd3a6282f58f826bde41e572836b42436d9))
16
+ * **internal:** codegen related update ([70ecc90](https://github.com/Hexlet/amocrm-ruby/commit/70ecc90ab1f89bff2aafa6ee7fc29934a9d9329d))
17
+ * **internal:** codegen related update ([906bc89](https://github.com/Hexlet/amocrm-ruby/commit/906bc8924e5c7ae9b50d3f194629ff7e8981d80a))
18
+ * **internal:** remove mock server code ([97b11dc](https://github.com/Hexlet/amocrm-ruby/commit/97b11dc026b0de710edaacc6a65526f9a6969ec7))
19
+ * update mock server docs ([4393e5d](https://github.com/Hexlet/amocrm-ruby/commit/4393e5d94350640a132c8df0d330715e7ca369ff))
20
+
21
+ ## 0.5.2 (2026-02-07)
22
+
23
+ Full Changelog: [v0.5.1...v0.5.2](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.1...v0.5.2)
24
+
25
+ ### Bug Fixes
26
+
27
+ * **client:** loosen json header parsing ([b2969f0](https://github.com/Hexlet/amocrm-ruby/commit/b2969f03cdd70e6690cb1b6767c8a7b453da4d49))
28
+
3
29
  ## 0.5.1 (2026-02-06)
4
30
 
5
31
  Full Changelog: [v0.5.0...v0.5.1](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.0...v0.5.1)
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.1"
18
+ gem "amocrm", "~> 0.5.3"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -492,6 +492,37 @@ module Amocrm
492
492
  JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
493
493
 
494
494
  class << self
495
+ # @api private
496
+ #
497
+ # @param query [Hash{Symbol=>Object}]
498
+ #
499
+ # @return [Hash{Symbol=>Object}]
500
+ def encode_query_params(query)
501
+ out = {}
502
+ query.each { write_query_param_element!(out, _1, _2) }
503
+ out
504
+ end
505
+
506
+ # @api private
507
+ #
508
+ # @param collection [Hash{Symbol=>Object}]
509
+ # @param key [String]
510
+ # @param element [Object]
511
+ #
512
+ # @return [nil]
513
+ private def write_query_param_element!(collection, key, element)
514
+ case element
515
+ in Hash
516
+ element.each do |name, value|
517
+ write_query_param_element!(collection, "#{key}[#{name}]", value)
518
+ end
519
+ in Array
520
+ collection[key] = element.map(&:to_s).join(",")
521
+ else
522
+ collection[key] = element.to_s
523
+ end
524
+ end
525
+
495
526
  # @api private
496
527
  #
497
528
  # @param y [Enumerator::Yielder]
@@ -7,12 +7,18 @@ module Amocrm
7
7
  extend Amocrm::Internal::Type::RequestParameters::Converter
8
8
  include Amocrm::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute catalog_id
11
+ #
12
+ # @return [Integer]
13
+ required :catalog_id, Integer
14
+
10
15
  # @!attribute body
11
16
  #
12
17
  # @return [Array<Amocrm::Models::CatalogElementCreateParams::Body>]
13
18
  required :body, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CatalogElementCreateParams::Body] }
14
19
 
15
- # @!method initialize(body:, request_options: {})
20
+ # @!method initialize(catalog_id:, body:, request_options: {})
21
+ # @param catalog_id [Integer]
16
22
  # @param body [Array<Amocrm::Models::CatalogElementCreateParams::Body>]
17
23
  # @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
18
24
 
@@ -12,15 +12,22 @@ module Amocrm
12
12
  # @return [Integer]
13
13
  required :catalog_id, Integer
14
14
 
15
+ # @!attribute id
16
+ #
17
+ # @return [Integer]
18
+ required :id, Integer
19
+
15
20
  # @!attribute with
16
21
  # Additional data to include (comma-separated).
17
22
  #
18
23
  # @return [String, nil]
19
24
  optional :with, String
20
25
 
21
- # @!method initialize(catalog_id:, with: nil, request_options: {})
26
+ # @!method initialize(catalog_id:, id:, with: nil, request_options: {})
22
27
  # @param catalog_id [Integer]
23
28
  #
29
+ # @param id [Integer]
30
+ #
24
31
  # @param with [String] Additional data to include (comma-separated).
25
32
  #
26
33
  # @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
@@ -7,6 +7,11 @@ module Amocrm
7
7
  extend Amocrm::Internal::Type::RequestParameters::Converter
8
8
  include Amocrm::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute catalog_id
11
+ #
12
+ # @return [Integer]
13
+ required :catalog_id, Integer
14
+
10
15
  # @!attribute filter
11
16
  #
12
17
  # @return [Object, nil]
@@ -27,7 +32,8 @@ module Amocrm
27
32
  # @return [String, Integer, nil]
28
33
  optional :query, union: -> { Amocrm::CatalogElementListParams::Query }
29
34
 
30
- # @!method initialize(filter: nil, limit: nil, page: nil, query: nil, request_options: {})
35
+ # @!method initialize(catalog_id:, filter: nil, limit: nil, page: nil, query: nil, request_options: {})
36
+ # @param catalog_id [Integer]
31
37
  # @param filter [Object]
32
38
  # @param limit [Integer]
33
39
  # @param page [Integer]
@@ -12,6 +12,11 @@ module Amocrm
12
12
  # @return [Integer]
13
13
  required :catalog_id, Integer
14
14
 
15
+ # @!attribute id
16
+ #
17
+ # @return [Integer]
18
+ required :id, Integer
19
+
15
20
  # @!attribute custom_fields_values
16
21
  #
17
22
  # @return [Array<Amocrm::Models::CatalogElementUpdateByIDParams::CustomFieldsValue>, nil]
@@ -28,8 +33,9 @@ module Amocrm
28
33
  # @return [String, nil]
29
34
  optional :request_id, String
30
35
 
31
- # @!method initialize(catalog_id:, custom_fields_values: nil, name: nil, request_id: nil, request_options: {})
36
+ # @!method initialize(catalog_id:, id:, custom_fields_values: nil, name: nil, request_id: nil, request_options: {})
32
37
  # @param catalog_id [Integer]
38
+ # @param id [Integer]
33
39
  # @param custom_fields_values [Array<Amocrm::Models::CatalogElementUpdateByIDParams::CustomFieldsValue>]
34
40
  # @param name [String]
35
41
  # @param request_id [String]
@@ -7,12 +7,18 @@ module Amocrm
7
7
  extend Amocrm::Internal::Type::RequestParameters::Converter
8
8
  include Amocrm::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute catalog_id
11
+ #
12
+ # @return [Integer]
13
+ required :catalog_id, Integer
14
+
10
15
  # @!attribute body
11
16
  #
12
17
  # @return [Array<Amocrm::Models::CatalogElementUpdateParams::Body>]
13
18
  required :body, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CatalogElementUpdateParams::Body] }
14
19
 
15
- # @!method initialize(body:, request_options: {})
20
+ # @!method initialize(catalog_id:, body:, request_options: {})
21
+ # @param catalog_id [Integer]
16
22
  # @param body [Array<Amocrm::Models::CatalogElementUpdateParams::Body>]
17
23
  # @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
18
24
 
@@ -7,7 +7,13 @@ module Amocrm
7
7
  extend Amocrm::Internal::Type::RequestParameters::Converter
8
8
  include Amocrm::Internal::Type::RequestParameters
9
9
 
10
- # @!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
 
@@ -7,20 +7,51 @@ module Amocrm
7
7
  extend Amocrm::Internal::Type::RequestParameters::Converter
8
8
  include Amocrm::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute earn
10
+ # @!attribute customer_id
11
11
  #
12
12
  # @return [Integer]
13
- required :earn, Integer
13
+ required :customer_id, Integer
14
14
 
15
- # @!attribute redeem
15
+ # @!attribute body
16
16
  #
17
- # @return [Integer]
18
- required :redeem, Integer
17
+ # @return [Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn, Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem]
18
+ required :body, union: -> { Amocrm::CustomerBonusPointChangeParams::Body }
19
19
 
20
- # @!method initialize(earn:, redeem:, request_options: {})
21
- # @param earn [Integer]
22
- # @param redeem [Integer]
20
+ # @!method initialize(customer_id:, body:, request_options: {})
21
+ # @param customer_id [Integer]
22
+ # @param body [Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn, Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem]
23
23
  # @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
24
+
25
+ module Body
26
+ extend Amocrm::Internal::Type::Union
27
+
28
+ variant -> { Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn }
29
+
30
+ variant -> { Amocrm::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem }
31
+
32
+ class CustomerBonusPointsEarn < Amocrm::Internal::Type::BaseModel
33
+ # @!attribute earn
34
+ #
35
+ # @return [Integer]
36
+ required :earn, Integer
37
+
38
+ # @!method initialize(earn:)
39
+ # @param earn [Integer]
40
+ end
41
+
42
+ class CustomerBonusPointsRedeem < Amocrm::Internal::Type::BaseModel
43
+ # @!attribute redeem
44
+ #
45
+ # @return [Integer]
46
+ required :redeem, Integer
47
+
48
+ # @!method initialize(redeem:)
49
+ # @param redeem [Integer]
50
+ end
51
+
52
+ # @!method self.variants
53
+ # @return [Array(Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsEarn, Amocrm::Models::CustomerBonusPointChangeParams::Body::CustomerBonusPointsRedeem)]
54
+ end
24
55
  end
25
56
  end
26
57
  end
@@ -7,13 +7,20 @@ module Amocrm
7
7
  extend Amocrm::Internal::Type::RequestParameters::Converter
8
8
  include Amocrm::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute id
11
+ #
12
+ # @return [Integer]
13
+ required :id, Integer
14
+
10
15
  # @!attribute with
11
16
  # Expand related entities; comma-separated values
12
17
  #
13
18
  # @return [String, nil]
14
19
  optional :with, String
15
20
 
16
- # @!method initialize(with: nil, request_options: {})
21
+ # @!method initialize(id:, with: nil, request_options: {})
22
+ # @param id [Integer]
23
+ #
17
24
  # @param with [String] Expand related entities; comma-separated values
18
25
  #
19
26
  # @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
@@ -7,7 +7,13 @@ module Amocrm
7
7
  extend Amocrm::Internal::Type::RequestParameters::Converter
8
8
  include Amocrm::Internal::Type::RequestParameters
9
9
 
10
- # @!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