hubspot-api-client 2.3.2 → 3.0.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (379) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +2 -31
  4. data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +22 -22
  5. data/lib/hubspot/codegen/crm/associations/api/types_api.rb +8 -8
  6. data/lib/hubspot/codegen/crm/associations/api_client.rb +3 -3
  7. data/lib/hubspot/codegen/crm/associations/api_error.rb +2 -2
  8. data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
  9. data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
  10. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +2 -2
  11. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
  12. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +1 -1
  13. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +1 -1
  14. data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +1 -1
  15. data/lib/hubspot/codegen/crm/associations/models/error.rb +1 -1
  16. data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +1 -1
  17. data/lib/hubspot/codegen/crm/associations/models/next_page.rb +1 -1
  18. data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
  19. data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
  20. data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +1 -1
  21. data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +1 -1
  22. data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +2 -2
  23. data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +26 -26
  24. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +1 -1
  25. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +21 -21
  26. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
  27. data/lib/hubspot/codegen/crm/companies/api_client.rb +3 -3
  28. data/lib/hubspot/codegen/crm/companies/api_error.rb +2 -2
  29. data/lib/hubspot/codegen/crm/companies/configuration.rb +1 -1
  30. data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +1 -1
  31. data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +2 -2
  32. data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +2 -2
  33. data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +2 -2
  34. data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +1 -1
  35. data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -1
  36. data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +1 -1
  37. data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +2 -2
  38. data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +2 -2
  39. data/lib/hubspot/codegen/crm/companies/models/error.rb +1 -1
  40. data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +1 -1
  41. data/lib/hubspot/codegen/crm/companies/models/filter.rb +4 -4
  42. data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +2 -2
  43. data/lib/hubspot/codegen/crm/companies/models/next_page.rb +2 -2
  44. data/lib/hubspot/codegen/crm/companies/models/paging.rb +2 -2
  45. data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +2 -2
  46. data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -1
  47. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +2 -2
  48. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +2 -2
  49. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
  50. data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +26 -26
  51. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +1 -1
  52. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +21 -21
  53. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
  54. data/lib/hubspot/codegen/crm/contacts/api_client.rb +3 -3
  55. data/lib/hubspot/codegen/crm/contacts/api_error.rb +2 -2
  56. data/lib/hubspot/codegen/crm/contacts/configuration.rb +1 -1
  57. data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +1 -1
  58. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +2 -2
  59. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +2 -2
  60. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +2 -2
  61. data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +1 -1
  62. data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -1
  63. data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +1 -1
  64. data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +2 -2
  65. data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +2 -2
  66. data/lib/hubspot/codegen/crm/contacts/models/error.rb +1 -1
  67. data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +1 -1
  68. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +1 -1
  69. data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +2 -2
  70. data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +2 -2
  71. data/lib/hubspot/codegen/crm/contacts/models/paging.rb +2 -2
  72. data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +2 -2
  73. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -1
  74. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +2 -2
  75. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +2 -2
  76. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +2 -2
  77. data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +26 -26
  78. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +1 -1
  79. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +21 -21
  80. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
  81. data/lib/hubspot/codegen/crm/deals/api_client.rb +3 -3
  82. data/lib/hubspot/codegen/crm/deals/api_error.rb +2 -2
  83. data/lib/hubspot/codegen/crm/deals/configuration.rb +1 -1
  84. data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +1 -1
  85. data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +2 -2
  86. data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +2 -2
  87. data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +2 -2
  88. data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +1 -1
  89. data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -1
  90. data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +1 -1
  91. data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +2 -2
  92. data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +2 -2
  93. data/lib/hubspot/codegen/crm/deals/models/error.rb +1 -1
  94. data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +1 -1
  95. data/lib/hubspot/codegen/crm/deals/models/filter.rb +1 -1
  96. data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +2 -2
  97. data/lib/hubspot/codegen/crm/deals/models/next_page.rb +2 -2
  98. data/lib/hubspot/codegen/crm/deals/models/paging.rb +2 -2
  99. data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +2 -2
  100. data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -1
  101. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +2 -2
  102. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +2 -2
  103. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +2 -2
  104. data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +1 -1
  105. data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +1 -1
  106. data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +2 -2
  107. data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +4 -4
  108. data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
  109. data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +1 -1
  110. data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +1 -1
  111. data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -2
  112. data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -2
  113. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -2
  114. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -2
  115. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -2
  116. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +0 -1
  117. data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -2
  118. data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +1 -1
  119. data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -2
  120. data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -2
  121. data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -2
  122. data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +1 -1
  123. data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +1 -1
  124. data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +1 -1
  125. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -2
  126. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +2 -2
  127. data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +1 -1
  128. data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +2 -2
  129. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +279 -0
  130. data/lib/hubspot/codegen/crm/imports/api_client.rb +422 -0
  131. data/lib/hubspot/codegen/crm/imports/api_error.rb +61 -0
  132. data/lib/hubspot/codegen/crm/imports/configuration.rb +258 -0
  133. data/lib/hubspot/codegen/crm/{timeline/models/divide_numbers.rb → imports/models/action_response.rb} +54 -48
  134. data/lib/hubspot/codegen/crm/{timeline/models/now.rb → imports/models/collection_response_public_import_response.rb} +25 -79
  135. data/lib/hubspot/codegen/crm/{timeline/models/date.rb → imports/models/error.rb} +82 -70
  136. data/lib/hubspot/codegen/crm/{timeline/models/add_numbers.rb → imports/models/error_detail.rb} +51 -73
  137. data/lib/hubspot/codegen/crm/{timeline/models/model_or.rb → imports/models/next_page.rb} +24 -80
  138. data/lib/hubspot/codegen/crm/{timeline/models/month.rb → imports/models/paging.rb} +15 -85
  139. data/lib/hubspot/codegen/crm/{timeline/models/pipeline_probability.rb → imports/models/public_import_metadata.rb} +48 -76
  140. data/lib/hubspot/codegen/crm/{timeline/models/contains.rb → imports/models/public_import_response.rb} +93 -57
  141. data/lib/hubspot/codegen/crm/{timeline/models/xor.rb → imports/models/public_object_list_record.rb} +31 -80
  142. data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +26 -26
  143. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +1 -1
  144. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +21 -21
  145. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
  146. data/lib/hubspot/codegen/crm/line_items/api_client.rb +3 -3
  147. data/lib/hubspot/codegen/crm/line_items/api_error.rb +2 -2
  148. data/lib/hubspot/codegen/crm/line_items/configuration.rb +1 -1
  149. data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +1 -1
  150. data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +2 -2
  151. data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +2 -2
  152. data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +2 -2
  153. data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -1
  154. data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -1
  155. data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +1 -1
  156. data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +2 -2
  157. data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +2 -2
  158. data/lib/hubspot/codegen/crm/line_items/models/error.rb +1 -1
  159. data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +1 -1
  160. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +1 -1
  161. data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +2 -2
  162. data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +2 -2
  163. data/lib/hubspot/codegen/crm/line_items/models/paging.rb +2 -2
  164. data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +2 -2
  165. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -1
  166. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +2 -2
  167. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +2 -2
  168. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +2 -2
  169. data/lib/hubspot/codegen/crm/owners/api/default_api.rb +1 -1
  170. data/lib/hubspot/codegen/crm/owners/api_client.rb +3 -3
  171. data/lib/hubspot/codegen/crm/owners/api_error.rb +2 -2
  172. data/lib/hubspot/codegen/crm/owners/configuration.rb +1 -1
  173. data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
  174. data/lib/hubspot/codegen/crm/owners/models/error.rb +2 -2
  175. data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +2 -2
  176. data/lib/hubspot/codegen/crm/owners/models/next_page.rb +3 -3
  177. data/lib/hubspot/codegen/crm/owners/models/paging.rb +3 -3
  178. data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +2 -2
  179. data/lib/hubspot/codegen/crm/owners/models/public_team.rb +3 -3
  180. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +2 -2
  181. data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
  182. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +3 -3
  183. data/lib/hubspot/codegen/crm/pipelines/api_error.rb +2 -2
  184. data/lib/hubspot/codegen/crm/pipelines/configuration.rb +2 -2
  185. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +2 -2
  186. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +2 -2
  187. data/lib/hubspot/codegen/crm/pipelines/models/error.rb +1 -1
  188. data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +1 -1
  189. data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +2 -2
  190. data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +2 -2
  191. data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +2 -3
  192. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +2 -3
  193. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +2 -3
  194. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +2 -3
  195. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +2 -3
  196. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +2 -3
  197. data/lib/hubspot/codegen/crm/products/api/associations_api.rb +26 -26
  198. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +1 -1
  199. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +21 -21
  200. data/lib/hubspot/codegen/crm/products/api/search_api.rb +2 -2
  201. data/lib/hubspot/codegen/crm/products/api_client.rb +3 -3
  202. data/lib/hubspot/codegen/crm/products/api_error.rb +2 -2
  203. data/lib/hubspot/codegen/crm/products/configuration.rb +2 -2
  204. data/lib/hubspot/codegen/crm/products/models/associated_id.rb +1 -1
  205. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +3 -3
  206. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +2 -2
  207. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +2 -2
  208. data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -1
  209. data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -1
  210. data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +1 -1
  211. data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +2 -2
  212. data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +2 -2
  213. data/lib/hubspot/codegen/crm/products/models/error.rb +1 -1
  214. data/lib/hubspot/codegen/crm/products/models/error_detail.rb +1 -1
  215. data/lib/hubspot/codegen/crm/products/models/filter.rb +1 -1
  216. data/lib/hubspot/codegen/crm/products/models/filter_group.rb +2 -2
  217. data/lib/hubspot/codegen/crm/products/models/next_page.rb +2 -2
  218. data/lib/hubspot/codegen/crm/products/models/paging.rb +2 -2
  219. data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +2 -2
  220. data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -1
  221. data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +2 -2
  222. data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +1 -1
  223. data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -1
  224. data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +19 -19
  225. data/lib/hubspot/codegen/crm/properties/api/core_api.rb +1 -1
  226. data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +1 -1
  227. data/lib/hubspot/codegen/crm/properties/api_client.rb +3 -3
  228. data/lib/hubspot/codegen/crm/properties/api_error.rb +2 -2
  229. data/lib/hubspot/codegen/crm/properties/configuration.rb +2 -2
  230. data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +2 -2
  231. data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +2 -2
  232. data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +2 -2
  233. data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +2 -2
  234. data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +2 -2
  235. data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +2 -2
  236. data/lib/hubspot/codegen/crm/properties/models/error.rb +1 -1
  237. data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +1 -1
  238. data/lib/hubspot/codegen/crm/properties/models/next_page.rb +2 -2
  239. data/lib/hubspot/codegen/crm/properties/models/option.rb +2 -2
  240. data/lib/hubspot/codegen/crm/properties/models/option_input.rb +2 -2
  241. data/lib/hubspot/codegen/crm/properties/models/paging.rb +2 -2
  242. data/lib/hubspot/codegen/crm/properties/models/property.rb +2 -2
  243. data/lib/hubspot/codegen/crm/properties/models/property_create.rb +2 -2
  244. data/lib/hubspot/codegen/crm/properties/models/property_group.rb +2 -3
  245. data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +2 -2
  246. data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +2 -2
  247. data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +2 -2
  248. data/lib/hubspot/codegen/crm/properties/models/property_name.rb +2 -2
  249. data/lib/hubspot/codegen/crm/properties/models/property_update.rb +2 -2
  250. data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +26 -26
  251. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +1 -1
  252. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +21 -21
  253. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +2 -2
  254. data/lib/hubspot/codegen/crm/quotes/api_client.rb +3 -3
  255. data/lib/hubspot/codegen/crm/quotes/api_error.rb +2 -2
  256. data/lib/hubspot/codegen/crm/quotes/configuration.rb +2 -2
  257. data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +1 -1
  258. data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +2 -2
  259. data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +2 -2
  260. data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +2 -2
  261. data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -1
  262. data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -1
  263. data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +1 -1
  264. data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +2 -2
  265. data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +2 -2
  266. data/lib/hubspot/codegen/crm/quotes/models/error.rb +1 -1
  267. data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +1 -1
  268. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +1 -1
  269. data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +2 -2
  270. data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +1 -1
  271. data/lib/hubspot/codegen/crm/quotes/models/paging.rb +1 -1
  272. data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +1 -1
  273. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +1 -1
  274. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +1 -1
  275. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -1
  276. data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +25 -25
  277. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +20 -20
  278. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
  279. data/lib/hubspot/codegen/crm/tickets/api_client.rb +2 -2
  280. data/lib/hubspot/codegen/crm/tickets/api_error.rb +1 -1
  281. data/lib/hubspot/codegen/crm/tickets/configuration.rb +2 -2
  282. data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +1 -1
  283. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +1 -1
  284. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +1 -1
  285. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +1 -1
  286. data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +1 -1
  287. data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +1 -1
  288. data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +1 -1
  289. data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +1 -1
  290. data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +1 -1
  291. data/lib/hubspot/codegen/crm/tickets/models/paging.rb +1 -1
  292. data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +1 -1
  293. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +1 -1
  294. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +2 -2
  295. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +2 -2
  296. data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +1 -1
  297. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +34 -34
  298. data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +24 -24
  299. data/lib/hubspot/codegen/crm/timeline/api_client.rb +2 -2
  300. data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
  301. data/lib/hubspot/codegen/crm/timeline/configuration.rb +1 -1
  302. data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +1 -2
  303. data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +1 -2
  304. data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +1 -2
  305. data/lib/hubspot/codegen/crm/timeline/models/error.rb +1 -1
  306. data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +1 -1
  307. data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +1 -2
  308. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +1 -1
  309. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +1 -1
  310. data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +1 -2
  311. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +1 -1
  312. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +1 -2
  313. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +1 -2
  314. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +1 -2
  315. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +1 -2
  316. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +1 -1
  317. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +1 -2
  318. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +1 -2
  319. data/lib/hubspot/codegen/oauth/api_client.rb +3 -3
  320. data/lib/hubspot/codegen/oauth/api_error.rb +2 -2
  321. data/lib/hubspot/codegen/oauth/configuration.rb +1 -1
  322. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +2 -2
  323. data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +2 -2
  324. data/lib/hubspot/codegen/webhooks/api/settings_api.rb +25 -21
  325. data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +59 -55
  326. data/lib/hubspot/codegen/webhooks/api_client.rb +1 -1
  327. data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +0 -1
  328. data/lib/hubspot/codegen/webhooks/models/settings_response.rb +0 -1
  329. data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +0 -1
  330. data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +0 -1
  331. data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +0 -1
  332. data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +0 -1
  333. data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +0 -1
  334. data/lib/hubspot/version.rb +1 -1
  335. data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
  336. data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
  337. data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
  338. data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
  339. data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +1 -1
  340. metadata +32 -211
  341. data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +0 -294
  342. data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +0 -280
  343. data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +0 -280
  344. data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +0 -280
  345. data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +0 -280
  346. data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +0 -280
  347. data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +0 -280
  348. data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +0 -280
  349. data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +0 -280
  350. data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +0 -280
  351. data/lib/hubspot/codegen/crm/timeline/models/has_email_reply.rb +0 -280
  352. data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +0 -280
  353. data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +0 -303
  354. data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +0 -303
  355. data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +0 -303
  356. data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +0 -294
  357. data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +0 -280
  358. data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +0 -280
  359. data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +0 -280
  360. data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +0 -280
  361. data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +0 -280
  362. data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +0 -280
  363. data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +0 -280
  364. data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +0 -280
  365. data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +0 -280
  366. data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +0 -280
  367. data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +0 -280
  368. data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +0 -280
  369. data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +0 -280
  370. data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +0 -280
  371. data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +0 -280
  372. data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +0 -280
  373. data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +0 -280
  374. data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +0 -280
  375. data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +0 -280
  376. data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +0 -280
  377. data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +0 -280
  378. data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +0 -280
  379. data/lib/hubspot/codegen/crm/timeline/models/year.rb +0 -280
@@ -1,303 +0,0 @@
1
- =begin
2
- #Timeline events
3
-
4
- #This feature allows an app to create and configure custom events that can show up in the timelines of certain CRM object like contacts, companies, or deals. You'll find multiple use cases for this API in the sections below.
5
-
6
- The version of the OpenAPI document: v3
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module Hubspot
16
- module Crm
17
- module Timeline
18
- class IfString
19
- attr_accessor :operator
20
-
21
- attr_accessor :value
22
-
23
- attr_accessor :inputs
24
-
25
- attr_accessor :if_expression
26
-
27
- attr_accessor :else_expression
28
-
29
- attr_accessor :property_name
30
-
31
- class EnumAttributeValidator
32
- attr_reader :datatype
33
- attr_reader :allowable_values
34
-
35
- def initialize(datatype, allowable_values)
36
- @allowable_values = allowable_values.map do |value|
37
- case datatype.to_s
38
- when /Integer/i
39
- value.to_i
40
- when /Float/i
41
- value.to_f
42
- else
43
- value
44
- end
45
- end
46
- end
47
-
48
- def valid?(value)
49
- !value || allowable_values.include?(value)
50
- end
51
- end
52
-
53
- # Attribute mapping from ruby-style variable name to JSON key.
54
- def self.attribute_map
55
- {
56
- :'operator' => :'operator',
57
- :'value' => :'value',
58
- :'inputs' => :'inputs',
59
- :'if_expression' => :'ifExpression',
60
- :'else_expression' => :'elseExpression',
61
- :'property_name' => :'propertyName'
62
- }
63
- end
64
-
65
- # Attribute type mapping.
66
- def self.openapi_types
67
- {
68
- :'operator' => :'String',
69
- :'value' => :'String',
70
- :'inputs' => :'Array<AnyOfConstantBooleanConstantNumberConstantStringBooleanPropertyVariableStringPropertyVariableNumberPropertyVariableAddNumbersSubtractNumbersMultiplyNumbersDivideNumbersRoundDownNumbersRoundUpNumbersUpperCaseLowerCaseConcatStringsContainsBeginsWithNumberToStringParseNumberFetchExchangeRatePipelineProbabilityMaxNumbersMinNumbersLessThanLessThanOrEqualMoreThanMoreThanOrEqualNumberEqualsStringEqualsNotDateMonthYearNowTimeBetweenPeriodToMonthsAndOrXorIfStringIfNumberIfBooleanIsPresentHasEmailReplyHasPlainTextEmailReplyExtractMostRecentEmailReplyHtmlExtractMostRecentEmailReplyTextExtractMostRecentPlainTextEmailReply>',
71
- :'if_expression' => :'OneOfConstantBooleanConstantNumberConstantStringBooleanPropertyVariableStringPropertyVariableNumberPropertyVariableAddNumbersSubtractNumbersMultiplyNumbersDivideNumbersRoundDownNumbersRoundUpNumbersUpperCaseLowerCaseConcatStringsContainsBeginsWithNumberToStringParseNumberFetchExchangeRatePipelineProbabilityMaxNumbersMinNumbersLessThanLessThanOrEqualMoreThanMoreThanOrEqualNumberEqualsStringEqualsNotDateMonthYearNowTimeBetweenPeriodToMonthsAndOrXorIfStringIfNumberIfBooleanIsPresentHasEmailReplyHasPlainTextEmailReplyExtractMostRecentEmailReplyHtmlExtractMostRecentEmailReplyTextExtractMostRecentPlainTextEmailReply',
72
- :'else_expression' => :'OneOfConstantBooleanConstantNumberConstantStringBooleanPropertyVariableStringPropertyVariableNumberPropertyVariableAddNumbersSubtractNumbersMultiplyNumbersDivideNumbersRoundDownNumbersRoundUpNumbersUpperCaseLowerCaseConcatStringsContainsBeginsWithNumberToStringParseNumberFetchExchangeRatePipelineProbabilityMaxNumbersMinNumbersLessThanLessThanOrEqualMoreThanMoreThanOrEqualNumberEqualsStringEqualsNotDateMonthYearNowTimeBetweenPeriodToMonthsAndOrXorIfStringIfNumberIfBooleanIsPresentHasEmailReplyHasPlainTextEmailReplyExtractMostRecentEmailReplyHtmlExtractMostRecentEmailReplyTextExtractMostRecentPlainTextEmailReply',
73
- :'property_name' => :'String'
74
- }
75
- end
76
-
77
- # List of attributes with nullable: true
78
- def self.openapi_nullable
79
- Set.new([
80
- ])
81
- end
82
-
83
- # Initializes the object
84
- # @param [Hash] attributes Model attributes in the form of hash
85
- def initialize(attributes = {})
86
- if (!attributes.is_a?(Hash))
87
- fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Timeline::IfString` initialize method"
88
- end
89
-
90
- # check to see if the attribute exists and convert string to symbol for hash key
91
- attributes = attributes.each_with_object({}) { |(k, v), h|
92
- if (!self.class.attribute_map.key?(k.to_sym))
93
- fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Timeline::IfString`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
94
- end
95
- h[k.to_sym] = v
96
- }
97
-
98
- if attributes.key?(:'operator')
99
- self.operator = attributes[:'operator']
100
- else
101
- self.operator = 'IF_STRING'
102
- end
103
-
104
- if attributes.key?(:'value')
105
- self.value = attributes[:'value']
106
- end
107
-
108
- if attributes.key?(:'inputs')
109
- if (value = attributes[:'inputs']).is_a?(Array)
110
- self.inputs = value
111
- end
112
- end
113
-
114
- if attributes.key?(:'if_expression')
115
- self.if_expression = attributes[:'if_expression']
116
- end
117
-
118
- if attributes.key?(:'else_expression')
119
- self.else_expression = attributes[:'else_expression']
120
- end
121
-
122
- if attributes.key?(:'property_name')
123
- self.property_name = attributes[:'property_name']
124
- end
125
- end
126
-
127
- # Show invalid properties with the reasons. Usually used together with valid?
128
- # @return Array for valid properties with the reasons
129
- def list_invalid_properties
130
- invalid_properties = Array.new
131
- if @operator.nil?
132
- invalid_properties.push('invalid value for "operator", operator cannot be nil.')
133
- end
134
-
135
- if @if_expression.nil?
136
- invalid_properties.push('invalid value for "if_expression", if_expression cannot be nil.')
137
- end
138
-
139
- invalid_properties
140
- end
141
-
142
- # Check to see if the all the properties in the model are valid
143
- # @return true if the model is valid
144
- def valid?
145
- return false if @operator.nil?
146
- operator_validator = EnumAttributeValidator.new('String', ["IF_STRING"])
147
- return false unless operator_validator.valid?(@operator)
148
- return false if @if_expression.nil?
149
- true
150
- end
151
-
152
- # Custom attribute writer method checking allowed values (enum).
153
- # @param [Object] operator Object to be assigned
154
- def operator=(operator)
155
- validator = EnumAttributeValidator.new('String', ["IF_STRING"])
156
- unless validator.valid?(operator)
157
- fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
158
- end
159
- @operator = operator
160
- end
161
-
162
- # Checks equality by comparing each attribute.
163
- # @param [Object] Object to be compared
164
- def ==(o)
165
- return true if self.equal?(o)
166
- self.class == o.class &&
167
- operator == o.operator &&
168
- value == o.value &&
169
- inputs == o.inputs &&
170
- if_expression == o.if_expression &&
171
- else_expression == o.else_expression &&
172
- property_name == o.property_name
173
- end
174
-
175
- # @see the `==` method
176
- # @param [Object] Object to be compared
177
- def eql?(o)
178
- self == o
179
- end
180
-
181
- # Calculates hash code according to all attributes.
182
- # @return [Integer] Hash code
183
- def hash
184
- [operator, value, inputs, if_expression, else_expression, property_name].hash
185
- end
186
-
187
- # Builds the object from hash
188
- # @param [Hash] attributes Model attributes in the form of hash
189
- # @return [Object] Returns the model itself
190
- def self.build_from_hash(attributes)
191
- new.build_from_hash(attributes)
192
- end
193
-
194
- # Builds the object from hash
195
- # @param [Hash] attributes Model attributes in the form of hash
196
- # @return [Object] Returns the model itself
197
- def build_from_hash(attributes)
198
- return nil unless attributes.is_a?(Hash)
199
- self.class.openapi_types.each_pair do |key, type|
200
- if type =~ /\AArray<(.*)>/i
201
- # check to ensure the input is an array given that the attribute
202
- # is documented as an array but the input is not
203
- if attributes[self.class.attribute_map[key]].is_a?(Array)
204
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
205
- end
206
- elsif !attributes[self.class.attribute_map[key]].nil?
207
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
208
- end # or else data not found in attributes(hash), not an issue as the data can be optional
209
- end
210
-
211
- self
212
- end
213
-
214
- # Deserializes the data based on type
215
- # @param string type Data type
216
- # @param string value Value to be deserialized
217
- # @return [Object] Deserialized data
218
- def _deserialize(type, value)
219
- case type.to_sym
220
- when :DateTime
221
- DateTime.parse(value)
222
- when :Date
223
- Date.parse(value)
224
- when :String
225
- value.to_s
226
- when :Integer
227
- value.to_i
228
- when :Float
229
- value.to_f
230
- when :Boolean
231
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
232
- true
233
- else
234
- false
235
- end
236
- when :Object
237
- # generic object (usually a Hash), return directly
238
- value
239
- when /\AArray<(?<inner_type>.+)>\z/
240
- inner_type = Regexp.last_match[:inner_type]
241
- value.map { |v| _deserialize(inner_type, v) }
242
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
243
- k_type = Regexp.last_match[:k_type]
244
- v_type = Regexp.last_match[:v_type]
245
- {}.tap do |hash|
246
- value.each do |k, v|
247
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
248
- end
249
- end
250
- else # model
251
- Hubspot::Crm::Timeline.const_get(type).build_from_hash(value)
252
- end
253
- end
254
-
255
- # Returns the string representation of the object
256
- # @return [String] String presentation of the object
257
- def to_s
258
- to_hash.to_s
259
- end
260
-
261
- # to_body is an alias to to_hash (backward compatibility)
262
- # @return [Hash] Returns the object in the form of hash
263
- def to_body
264
- to_hash
265
- end
266
-
267
- # Returns the object in the form of hash
268
- # @return [Hash] Returns the object in the form of hash
269
- def to_hash
270
- hash = {}
271
- self.class.attribute_map.each_pair do |attr, param|
272
- value = self.send(attr)
273
- if value.nil?
274
- is_nullable = self.class.openapi_nullable.include?(attr)
275
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
276
- end
277
-
278
- hash[param] = _to_hash(value)
279
- end
280
- hash
281
- end
282
-
283
- # Outputs non-array value in the form of hash
284
- # For object, use to_hash. Otherwise, just return the value
285
- # @param [Object] value Any valid value
286
- # @return [Hash] Returns the value in the form of hash
287
- def _to_hash(value)
288
- if value.is_a?(Array)
289
- value.compact.map { |v| _to_hash(v) }
290
- elsif value.is_a?(Hash)
291
- {}.tap do |hash|
292
- value.each { |k, v| hash[k] = _to_hash(v) }
293
- end
294
- elsif value.respond_to? :to_hash
295
- value.to_hash
296
- else
297
- value
298
- end
299
- end
300
- end
301
- end
302
- end
303
- end
@@ -1,294 +0,0 @@
1
- =begin
2
- #Timeline events
3
-
4
- #This feature allows an app to create and configure custom events that can show up in the timelines of certain CRM object like contacts, companies, or deals. You'll find multiple use cases for this API in the sections below.
5
-
6
- The version of the OpenAPI document: v3
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module Hubspot
16
- module Crm
17
- module Timeline
18
- class IsPresent
19
- attr_accessor :operator
20
-
21
- attr_accessor :value
22
-
23
- attr_accessor :inputs
24
-
25
- attr_accessor :expression_to_evaluate
26
-
27
- attr_accessor :property_name
28
-
29
- class EnumAttributeValidator
30
- attr_reader :datatype
31
- attr_reader :allowable_values
32
-
33
- def initialize(datatype, allowable_values)
34
- @allowable_values = allowable_values.map do |value|
35
- case datatype.to_s
36
- when /Integer/i
37
- value.to_i
38
- when /Float/i
39
- value.to_f
40
- else
41
- value
42
- end
43
- end
44
- end
45
-
46
- def valid?(value)
47
- !value || allowable_values.include?(value)
48
- end
49
- end
50
-
51
- # Attribute mapping from ruby-style variable name to JSON key.
52
- def self.attribute_map
53
- {
54
- :'operator' => :'operator',
55
- :'value' => :'value',
56
- :'inputs' => :'inputs',
57
- :'expression_to_evaluate' => :'expressionToEvaluate',
58
- :'property_name' => :'propertyName'
59
- }
60
- end
61
-
62
- # Attribute type mapping.
63
- def self.openapi_types
64
- {
65
- :'operator' => :'String',
66
- :'value' => :'Boolean',
67
- :'inputs' => :'Array<AnyOfConstantBooleanConstantNumberConstantStringBooleanPropertyVariableStringPropertyVariableNumberPropertyVariableAddNumbersSubtractNumbersMultiplyNumbersDivideNumbersRoundDownNumbersRoundUpNumbersUpperCaseLowerCaseConcatStringsContainsBeginsWithNumberToStringParseNumberFetchExchangeRatePipelineProbabilityMaxNumbersMinNumbersLessThanLessThanOrEqualMoreThanMoreThanOrEqualNumberEqualsStringEqualsNotDateMonthYearNowTimeBetweenPeriodToMonthsAndOrXorIfStringIfNumberIfBooleanIsPresentHasEmailReplyHasPlainTextEmailReplyExtractMostRecentEmailReplyHtmlExtractMostRecentEmailReplyTextExtractMostRecentPlainTextEmailReply>',
68
- :'expression_to_evaluate' => :'OneOfConstantBooleanConstantNumberConstantStringBooleanPropertyVariableStringPropertyVariableNumberPropertyVariableAddNumbersSubtractNumbersMultiplyNumbersDivideNumbersRoundDownNumbersRoundUpNumbersUpperCaseLowerCaseConcatStringsContainsBeginsWithNumberToStringParseNumberFetchExchangeRatePipelineProbabilityMaxNumbersMinNumbersLessThanLessThanOrEqualMoreThanMoreThanOrEqualNumberEqualsStringEqualsNotDateMonthYearNowTimeBetweenPeriodToMonthsAndOrXorIfStringIfNumberIfBooleanIsPresentHasEmailReplyHasPlainTextEmailReplyExtractMostRecentEmailReplyHtmlExtractMostRecentEmailReplyTextExtractMostRecentPlainTextEmailReply',
69
- :'property_name' => :'String'
70
- }
71
- end
72
-
73
- # List of attributes with nullable: true
74
- def self.openapi_nullable
75
- Set.new([
76
- ])
77
- end
78
-
79
- # Initializes the object
80
- # @param [Hash] attributes Model attributes in the form of hash
81
- def initialize(attributes = {})
82
- if (!attributes.is_a?(Hash))
83
- fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Timeline::IsPresent` initialize method"
84
- end
85
-
86
- # check to see if the attribute exists and convert string to symbol for hash key
87
- attributes = attributes.each_with_object({}) { |(k, v), h|
88
- if (!self.class.attribute_map.key?(k.to_sym))
89
- fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Timeline::IsPresent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
- end
91
- h[k.to_sym] = v
92
- }
93
-
94
- if attributes.key?(:'operator')
95
- self.operator = attributes[:'operator']
96
- else
97
- self.operator = 'IS_PRESENT'
98
- end
99
-
100
- if attributes.key?(:'value')
101
- self.value = attributes[:'value']
102
- end
103
-
104
- if attributes.key?(:'inputs')
105
- if (value = attributes[:'inputs']).is_a?(Array)
106
- self.inputs = value
107
- end
108
- end
109
-
110
- if attributes.key?(:'expression_to_evaluate')
111
- self.expression_to_evaluate = attributes[:'expression_to_evaluate']
112
- end
113
-
114
- if attributes.key?(:'property_name')
115
- self.property_name = attributes[:'property_name']
116
- end
117
- end
118
-
119
- # Show invalid properties with the reasons. Usually used together with valid?
120
- # @return Array for valid properties with the reasons
121
- def list_invalid_properties
122
- invalid_properties = Array.new
123
- if @operator.nil?
124
- invalid_properties.push('invalid value for "operator", operator cannot be nil.')
125
- end
126
-
127
- if @expression_to_evaluate.nil?
128
- invalid_properties.push('invalid value for "expression_to_evaluate", expression_to_evaluate cannot be nil.')
129
- end
130
-
131
- invalid_properties
132
- end
133
-
134
- # Check to see if the all the properties in the model are valid
135
- # @return true if the model is valid
136
- def valid?
137
- return false if @operator.nil?
138
- operator_validator = EnumAttributeValidator.new('String', ["IS_PRESENT"])
139
- return false unless operator_validator.valid?(@operator)
140
- return false if @expression_to_evaluate.nil?
141
- true
142
- end
143
-
144
- # Custom attribute writer method checking allowed values (enum).
145
- # @param [Object] operator Object to be assigned
146
- def operator=(operator)
147
- validator = EnumAttributeValidator.new('String', ["IS_PRESENT"])
148
- unless validator.valid?(operator)
149
- fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
150
- end
151
- @operator = operator
152
- end
153
-
154
- # Checks equality by comparing each attribute.
155
- # @param [Object] Object to be compared
156
- def ==(o)
157
- return true if self.equal?(o)
158
- self.class == o.class &&
159
- operator == o.operator &&
160
- value == o.value &&
161
- inputs == o.inputs &&
162
- expression_to_evaluate == o.expression_to_evaluate &&
163
- property_name == o.property_name
164
- end
165
-
166
- # @see the `==` method
167
- # @param [Object] Object to be compared
168
- def eql?(o)
169
- self == o
170
- end
171
-
172
- # Calculates hash code according to all attributes.
173
- # @return [Integer] Hash code
174
- def hash
175
- [operator, value, inputs, expression_to_evaluate, property_name].hash
176
- end
177
-
178
- # Builds the object from hash
179
- # @param [Hash] attributes Model attributes in the form of hash
180
- # @return [Object] Returns the model itself
181
- def self.build_from_hash(attributes)
182
- new.build_from_hash(attributes)
183
- end
184
-
185
- # Builds the object from hash
186
- # @param [Hash] attributes Model attributes in the form of hash
187
- # @return [Object] Returns the model itself
188
- def build_from_hash(attributes)
189
- return nil unless attributes.is_a?(Hash)
190
- self.class.openapi_types.each_pair do |key, type|
191
- if type =~ /\AArray<(.*)>/i
192
- # check to ensure the input is an array given that the attribute
193
- # is documented as an array but the input is not
194
- if attributes[self.class.attribute_map[key]].is_a?(Array)
195
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
196
- end
197
- elsif !attributes[self.class.attribute_map[key]].nil?
198
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
199
- end # or else data not found in attributes(hash), not an issue as the data can be optional
200
- end
201
-
202
- self
203
- end
204
-
205
- # Deserializes the data based on type
206
- # @param string type Data type
207
- # @param string value Value to be deserialized
208
- # @return [Object] Deserialized data
209
- def _deserialize(type, value)
210
- case type.to_sym
211
- when :DateTime
212
- DateTime.parse(value)
213
- when :Date
214
- Date.parse(value)
215
- when :String
216
- value.to_s
217
- when :Integer
218
- value.to_i
219
- when :Float
220
- value.to_f
221
- when :Boolean
222
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
223
- true
224
- else
225
- false
226
- end
227
- when :Object
228
- # generic object (usually a Hash), return directly
229
- value
230
- when /\AArray<(?<inner_type>.+)>\z/
231
- inner_type = Regexp.last_match[:inner_type]
232
- value.map { |v| _deserialize(inner_type, v) }
233
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
234
- k_type = Regexp.last_match[:k_type]
235
- v_type = Regexp.last_match[:v_type]
236
- {}.tap do |hash|
237
- value.each do |k, v|
238
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
239
- end
240
- end
241
- else # model
242
- Hubspot::Crm::Timeline.const_get(type).build_from_hash(value)
243
- end
244
- end
245
-
246
- # Returns the string representation of the object
247
- # @return [String] String presentation of the object
248
- def to_s
249
- to_hash.to_s
250
- end
251
-
252
- # to_body is an alias to to_hash (backward compatibility)
253
- # @return [Hash] Returns the object in the form of hash
254
- def to_body
255
- to_hash
256
- end
257
-
258
- # Returns the object in the form of hash
259
- # @return [Hash] Returns the object in the form of hash
260
- def to_hash
261
- hash = {}
262
- self.class.attribute_map.each_pair do |attr, param|
263
- value = self.send(attr)
264
- if value.nil?
265
- is_nullable = self.class.openapi_nullable.include?(attr)
266
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
267
- end
268
-
269
- hash[param] = _to_hash(value)
270
- end
271
- hash
272
- end
273
-
274
- # Outputs non-array value in the form of hash
275
- # For object, use to_hash. Otherwise, just return the value
276
- # @param [Object] value Any valid value
277
- # @return [Hash] Returns the value in the form of hash
278
- def _to_hash(value)
279
- if value.is_a?(Array)
280
- value.compact.map { |v| _to_hash(v) }
281
- elsif value.is_a?(Hash)
282
- {}.tap do |hash|
283
- value.each { |k, v| hash[k] = _to_hash(v) }
284
- end
285
- elsif value.respond_to? :to_hash
286
- value.to_hash
287
- else
288
- value
289
- end
290
- end
291
- end
292
- end
293
- end
294
- end