hubspot-api-client 19.0.0 → 20.0.0.pre.beta.1

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 (550) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +70 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +83 -8
  5. data/lib/hubspot/client.rb +7 -0
  6. data/lib/hubspot/codegen/cms/blogs/blog_posts/api/basic_api.rb +1079 -0
  7. data/lib/hubspot/codegen/cms/blogs/blog_posts/api/batch_api.rb +306 -0
  8. data/lib/hubspot/codegen/cms/blogs/blog_posts/api/multi_language_api.rb +368 -0
  9. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/blog_post.rb +18 -18
  10. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +7 -7
  11. data/lib/hubspot/codegen/cms/hubdb/models/unified_collection_response_with_total_base_hub_db_table_row_v3.rb +1 -0
  12. data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +1 -1
  13. data/lib/hubspot/codegen/crm/associations/api_client.rb +1 -1
  14. data/lib/hubspot/codegen/crm/associations/api_error.rb +1 -1
  15. data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
  16. data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
  17. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +1 -1
  18. data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
  19. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +1 -1
  20. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +1 -1
  21. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi_with_errors.rb +1 -1
  22. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_with_errors.rb +1 -1
  23. data/lib/hubspot/codegen/crm/associations/models/error.rb +1 -1
  24. data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +1 -1
  25. data/lib/hubspot/codegen/crm/associations/models/next_page.rb +1 -1
  26. data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
  27. data/lib/hubspot/codegen/crm/associations/models/previous_page.rb +1 -1
  28. data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
  29. data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +1 -1
  30. data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +1 -1
  31. data/lib/hubspot/codegen/crm/associations/models/standard_error.rb +1 -1
  32. data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +1 -1
  33. data/lib/hubspot/codegen/crm/associations/schema/api_client.rb +1 -1
  34. data/lib/hubspot/codegen/crm/associations/schema/api_error.rb +1 -1
  35. data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +1 -1
  36. data/lib/hubspot/codegen/crm/associations/schema/models/collection_response_public_association_definition_no_paging.rb +1 -1
  37. data/lib/hubspot/codegen/crm/associations/schema/models/error.rb +1 -1
  38. data/lib/hubspot/codegen/crm/associations/schema/models/error_detail.rb +1 -1
  39. data/lib/hubspot/codegen/crm/associations/schema/models/public_association_definition.rb +1 -1
  40. data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +1 -1
  41. data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +3 -3
  42. data/lib/hubspot/codegen/crm/associations/v4/api/report_api.rb +91 -0
  43. data/lib/hubspot/codegen/crm/associations/v4/api_client.rb +1 -1
  44. data/lib/hubspot/codegen/crm/associations/v4/api_error.rb +1 -1
  45. data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +1 -1
  46. data/lib/hubspot/codegen/crm/associations/v4/models/association_spec.rb +1 -1
  47. data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +1 -1
  48. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_archive.rb +1 -1
  49. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_post.rb +1 -1
  50. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_default_association_multi_post.rb +1 -1
  51. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_fetch_associations_batch_request.rb +1 -1
  52. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +1 -1
  53. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +1 -1
  54. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +1 -1
  55. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +1 -1
  56. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +1 -1
  57. data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +1 -1
  58. data/lib/hubspot/codegen/crm/associations/v4/models/date_time.rb +258 -0
  59. data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +1 -1
  60. data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +1 -1
  61. data/lib/hubspot/codegen/crm/associations/v4/models/forward_paging.rb +1 -1
  62. data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +1 -1
  63. data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +1 -1
  64. data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +1 -1
  65. data/lib/hubspot/codegen/crm/associations/v4/models/paging.rb +1 -1
  66. data/lib/hubspot/codegen/crm/associations/v4/models/previous_page.rb +1 -1
  67. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_archive.rb +1 -1
  68. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +1 -1
  69. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +1 -1
  70. data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +1 -1
  71. data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association_multi_post.rb +1 -1
  72. data/lib/hubspot/codegen/crm/associations/v4/models/public_fetch_associations_batch_request.rb +1 -1
  73. data/lib/hubspot/codegen/crm/associations/v4/models/public_object_id.rb +1 -1
  74. data/lib/hubspot/codegen/crm/associations/v4/models/report_creation_response.rb +258 -0
  75. data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +1 -1
  76. data/lib/hubspot/codegen/crm/associations/v4/schema/api/definition_configurations_api.rb +396 -0
  77. data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +69 -69
  78. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_definition_configuration_create_request.rb +234 -0
  79. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_definition_configuration_update_request.rb +234 -0
  80. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_spec.rb +234 -0
  81. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_configuration_update_result.rb +330 -0
  82. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_configuration_update_result_with_errors.rb +350 -0
  83. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_user_configuration.rb +330 -0
  84. data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_user_configuration_with_errors.rb +350 -0
  85. data/lib/hubspot/codegen/crm/associations/v4/schema/models/collection_response_public_association_definition_user_configuration_no_paging.rb +234 -0
  86. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_create_request.rb +294 -0
  87. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_update_request.rb +294 -0
  88. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_update_result.rb +289 -0
  89. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_user_configuration.rb +298 -0
  90. data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_spec.rb +246 -0
  91. data/lib/hubspot/codegen/crm/associations/v4/schema/models/standard_error.rb +326 -0
  92. data/lib/hubspot/codegen/crm/commerce/invoices/api/basic_api.rb +391 -0
  93. data/lib/hubspot/codegen/crm/commerce/invoices/api/batch_api.rb +363 -0
  94. data/lib/hubspot/codegen/crm/{objects/feedback_submissions/api/public_object_api.rb → commerce/invoices/api/search_api.rb} +24 -22
  95. data/lib/hubspot/codegen/crm/commerce/invoices/api_client.rb +412 -0
  96. data/lib/hubspot/codegen/crm/commerce/invoices/api_error.rb +63 -0
  97. data/lib/hubspot/codegen/crm/commerce/invoices/configuration.rb +289 -0
  98. data/lib/hubspot/codegen/crm/commerce/invoices/models/associated_id.rb +244 -0
  99. data/lib/hubspot/codegen/crm/commerce/invoices/models/association_spec.rb +278 -0
  100. data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_batch_input.rb +232 -0
  101. data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  102. data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_id.rb +232 -0
  103. data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_input_for_create.rb +232 -0
  104. data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_read_input_simple_public_object_id.rb +273 -0
  105. data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_object.rb +328 -0
  106. data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_object_with_errors.rb +348 -0
  107. data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_upsert_object.rb +328 -0
  108. data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  109. data/lib/hubspot/codegen/crm/commerce/invoices/models/collection_response_associated_id.rb +241 -0
  110. data/lib/hubspot/codegen/crm/commerce/invoices/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
  111. data/lib/hubspot/codegen/crm/{objects/feedback_submissions/models/public_merge_input.rb → commerce/invoices/models/collection_response_with_total_simple_public_object_forward_paging.rb} +37 -26
  112. data/lib/hubspot/codegen/crm/commerce/invoices/models/error.rb +307 -0
  113. data/lib/hubspot/codegen/crm/commerce/invoices/models/error_detail.rb +273 -0
  114. data/lib/hubspot/codegen/crm/commerce/invoices/models/filter.rb +308 -0
  115. data/lib/hubspot/codegen/crm/commerce/invoices/models/filter_group.rb +232 -0
  116. data/lib/hubspot/codegen/crm/commerce/invoices/models/forward_paging.rb +225 -0
  117. data/lib/hubspot/codegen/crm/commerce/invoices/models/next_page.rb +239 -0
  118. data/lib/hubspot/codegen/crm/commerce/invoices/models/paging.rb +234 -0
  119. data/lib/hubspot/codegen/crm/{objects/feedback_submissions/models/batch_input_simple_public_object_input_for_create.rb → commerce/invoices/models/previous_page.rb} +26 -19
  120. data/lib/hubspot/codegen/crm/commerce/invoices/models/public_associations_for_object.rb +246 -0
  121. data/lib/hubspot/codegen/crm/commerce/invoices/models/public_object_id.rb +230 -0
  122. data/lib/hubspot/codegen/crm/commerce/invoices/models/public_object_search_request.rb +276 -0
  123. data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object.rb +303 -0
  124. data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_batch_input.rb +264 -0
  125. data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_batch_input_upsert.rb +264 -0
  126. data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_id.rb +230 -0
  127. data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_input.rb +241 -0
  128. data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_input_for_create.rb +257 -0
  129. data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_with_associations.rb +314 -0
  130. data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_upsert_object.rb +317 -0
  131. data/lib/hubspot/codegen/crm/commerce/invoices/models/standard_error.rb +324 -0
  132. data/lib/hubspot/codegen/crm/commerce/invoices/models/value_with_timestamp.rb +285 -0
  133. data/lib/hubspot/codegen/crm/exports/api/public_exports_api.rb +157 -0
  134. data/lib/hubspot/codegen/crm/exports/api_client.rb +410 -0
  135. data/lib/hubspot/codegen/crm/exports/api_error.rb +61 -0
  136. data/lib/hubspot/codegen/crm/exports/configuration.rb +287 -0
  137. data/lib/hubspot/codegen/crm/exports/models/action_response_with_single_result_uri.rb +339 -0
  138. data/lib/hubspot/codegen/crm/exports/models/error.rb +305 -0
  139. data/lib/hubspot/codegen/crm/exports/models/error_detail.rb +271 -0
  140. data/lib/hubspot/codegen/crm/exports/models/filter.rb +305 -0
  141. data/lib/hubspot/codegen/crm/exports/models/public_crm_search_request.rb +260 -0
  142. data/lib/hubspot/codegen/crm/exports/models/public_export_list_request.rb +420 -0
  143. data/lib/hubspot/codegen/crm/exports/models/public_export_list_request_all_of.rb +413 -0
  144. data/lib/hubspot/codegen/crm/exports/models/public_export_request.rb +109 -0
  145. data/lib/hubspot/codegen/crm/exports/models/public_export_view_request.rb +415 -0
  146. data/lib/hubspot/codegen/crm/exports/models/public_export_view_request_all_of.rb +408 -0
  147. data/lib/hubspot/codegen/crm/exports/models/standard_error.rb +322 -0
  148. data/lib/hubspot/codegen/crm/exports/models/task_locator.rb +239 -0
  149. data/lib/hubspot/codegen/crm/extensions/calling/api/channel_connection_settings_api.rb +302 -0
  150. data/lib/hubspot/codegen/crm/extensions/calling/api/recording_settings_api.rb +12 -12
  151. data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +10 -10
  152. data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_patch_request.rb +236 -0
  153. data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_request.rb +246 -0
  154. data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_response.rb +276 -0
  155. data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_response.rb +1 -0
  156. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +21 -1
  157. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +21 -1
  158. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +31 -1
  159. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
  160. data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +6 -0
  161. data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +15 -1
  162. data/lib/hubspot/codegen/crm/imports/models/property_value.rb +514 -0
  163. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +32 -5
  164. data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +17 -1
  165. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +7 -6
  166. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +11 -9
  167. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +4 -0
  168. data/lib/hubspot/codegen/crm/line_items/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  169. data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -0
  170. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +10 -1
  171. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +2 -0
  172. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input_for_create.rb +250 -0
  173. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input_upsert.rb +1 -0
  174. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +1 -10
  175. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input_for_create.rb +1 -15
  176. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +10 -1
  177. data/lib/hubspot/codegen/crm/line_items/models/simple_public_upsert_object.rb +10 -1
  178. data/lib/hubspot/codegen/crm/lists/models/public_form_submission_filter_coalescing_refine_by.rb +1 -0
  179. data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point_index_reference.rb +1 -0
  180. data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.rb +1 -0
  181. data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filters_inner.rb +1 -0
  182. data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_value_filter_value_comparison.rb +1 -0
  183. data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation_time_point.rb +1 -0
  184. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +2 -1
  185. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +12 -10
  186. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +1 -1
  187. data/lib/hubspot/codegen/crm/objects/api_client.rb +1 -1
  188. data/lib/hubspot/codegen/crm/objects/api_error.rb +1 -1
  189. data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +13 -12
  190. data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +17 -9
  191. data/lib/hubspot/codegen/crm/objects/calls/api/search_api.rb +4 -0
  192. data/lib/hubspot/codegen/crm/objects/calls/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  193. data/lib/hubspot/codegen/crm/objects/calls/models/batch_read_input_simple_public_object_id.rb +1 -0
  194. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object.rb +10 -1
  195. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input.rb +2 -0
  196. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input_for_create.rb +252 -0
  197. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input_upsert.rb +1 -0
  198. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input.rb +1 -10
  199. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input_for_create.rb +1 -15
  200. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_with_associations.rb +10 -1
  201. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_upsert_object.rb +10 -1
  202. data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +13 -12
  203. data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +17 -9
  204. data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +4 -0
  205. data/lib/hubspot/codegen/crm/objects/communications/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  206. data/lib/hubspot/codegen/crm/objects/communications/models/batch_read_input_simple_public_object_id.rb +1 -0
  207. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object.rb +10 -1
  208. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input.rb +2 -0
  209. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_for_create.rb +252 -0
  210. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_upsert.rb +1 -0
  211. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input.rb +1 -10
  212. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb +1 -15
  213. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_with_associations.rb +10 -1
  214. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_upsert_object.rb +10 -1
  215. data/lib/hubspot/codegen/crm/objects/configuration.rb +1 -1
  216. data/lib/hubspot/codegen/crm/objects/deal_splits/api/batch_api.rb +160 -0
  217. data/lib/hubspot/codegen/crm/objects/deal_splits/api_client.rb +412 -0
  218. data/lib/hubspot/codegen/crm/objects/deal_splits/api_error.rb +63 -0
  219. data/lib/hubspot/codegen/crm/objects/deal_splits/configuration.rb +289 -0
  220. data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_input_public_object_id.rb +232 -0
  221. data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_response_deal_to_deal_splits.rb +328 -0
  222. data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_response_deal_to_deal_splits_with_errors.rb +348 -0
  223. data/lib/hubspot/codegen/crm/objects/deal_splits/models/deal_to_deal_splits.rb +246 -0
  224. data/lib/hubspot/codegen/crm/objects/deal_splits/models/error.rb +307 -0
  225. data/lib/hubspot/codegen/crm/objects/deal_splits/models/error_detail.rb +273 -0
  226. data/lib/hubspot/codegen/crm/objects/{feedback_submissions/models/public_gdpr_delete_input.rb → deal_splits/models/public_deal_split_input.rb} +27 -22
  227. data/lib/hubspot/codegen/crm/objects/deal_splits/models/public_deal_splits_batch_create_request.rb +232 -0
  228. data/lib/hubspot/codegen/crm/objects/deal_splits/models/public_deal_splits_create_request.rb +246 -0
  229. data/lib/hubspot/codegen/crm/objects/{feedback_submissions → deal_splits}/models/public_object_id.rb +5 -5
  230. data/lib/hubspot/codegen/crm/objects/deal_splits/models/simple_public_object.rb +303 -0
  231. data/lib/hubspot/codegen/crm/objects/deal_splits/models/standard_error.rb +331 -0
  232. data/lib/hubspot/codegen/crm/objects/deal_splits/models/value_with_timestamp.rb +285 -0
  233. data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +7 -6
  234. data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +11 -9
  235. data/lib/hubspot/codegen/crm/objects/emails/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  236. data/lib/hubspot/codegen/crm/objects/emails/models/batch_read_input_simple_public_object_id.rb +1 -0
  237. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object.rb +10 -1
  238. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input.rb +2 -0
  239. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_for_create.rb +252 -0
  240. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_upsert.rb +1 -0
  241. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input.rb +1 -10
  242. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input_for_create.rb +1 -15
  243. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_with_associations.rb +10 -1
  244. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_upsert_object.rb +10 -1
  245. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +0 -208
  246. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -198
  247. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_search_request.rb +0 -25
  248. data/lib/hubspot/codegen/crm/objects/goals/api/basic_api.rb +208 -0
  249. data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +266 -0
  250. data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/association_spec.rb +5 -5
  251. data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/batch_input_simple_public_object_batch_input.rb +5 -5
  252. data/lib/hubspot/codegen/crm/objects/goals/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  253. data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/batch_input_simple_public_object_id.rb +5 -5
  254. data/lib/hubspot/codegen/crm/objects/{tasks → goals}/models/batch_input_simple_public_object_input_for_create.rb +5 -5
  255. data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_upsert_object.rb +328 -0
  256. data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  257. data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/public_associations_for_object.rb +5 -5
  258. data/lib/hubspot/codegen/crm/objects/goals/models/public_object_id.rb +230 -0
  259. data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_batch_input.rb +15 -6
  260. data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input_upsert.rb +264 -0
  261. data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_input.rb +15 -6
  262. data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_input_for_create.rb +15 -6
  263. data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_upsert_object.rb +317 -0
  264. data/lib/hubspot/codegen/crm/objects/leads/api/basic_api.rb +1 -0
  265. data/lib/hubspot/codegen/crm/objects/leads/api/batch_api.rb +13 -11
  266. data/lib/hubspot/codegen/crm/objects/leads/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  267. data/lib/hubspot/codegen/crm/objects/leads/models/batch_read_input_simple_public_object_id.rb +1 -0
  268. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object.rb +10 -1
  269. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input.rb +2 -0
  270. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input_for_create.rb +252 -0
  271. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input_upsert.rb +1 -0
  272. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_input.rb +1 -10
  273. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_input_for_create.rb +1 -15
  274. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_with_associations.rb +10 -1
  275. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_upsert_object.rb +10 -1
  276. data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +7 -6
  277. data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +11 -9
  278. data/lib/hubspot/codegen/crm/objects/meetings/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  279. data/lib/hubspot/codegen/crm/objects/meetings/models/batch_read_input_simple_public_object_id.rb +1 -0
  280. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object.rb +10 -1
  281. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input.rb +2 -0
  282. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input_for_create.rb +252 -0
  283. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input_upsert.rb +1 -0
  284. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input.rb +1 -10
  285. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input_for_create.rb +1 -15
  286. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_with_associations.rb +10 -1
  287. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_upsert_object.rb +10 -1
  288. data/lib/hubspot/codegen/crm/objects/models/associated_id.rb +1 -1
  289. data/lib/hubspot/codegen/crm/objects/models/association_spec.rb +1 -1
  290. data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +1 -1
  291. data/lib/hubspot/codegen/crm/objects/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +5 -5
  292. data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input_upsert.rb +1 -1
  293. data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +1 -1
  294. data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +2 -2
  295. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +1 -1
  296. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +1 -1
  297. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object.rb +1 -1
  298. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object_with_errors.rb +1 -1
  299. data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +1 -1
  300. data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_with_associations_forward_paging.rb +1 -1
  301. data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object_forward_paging.rb +1 -1
  302. data/lib/hubspot/codegen/crm/objects/models/error.rb +1 -1
  303. data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +1 -1
  304. data/lib/hubspot/codegen/crm/objects/models/filter.rb +1 -1
  305. data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +1 -1
  306. data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +1 -1
  307. data/lib/hubspot/codegen/crm/objects/models/next_page.rb +1 -1
  308. data/lib/hubspot/codegen/crm/objects/models/paging.rb +1 -1
  309. data/lib/hubspot/codegen/crm/objects/models/previous_page.rb +1 -1
  310. data/lib/hubspot/codegen/crm/objects/models/public_associations_for_object.rb +1 -1
  311. data/lib/hubspot/codegen/crm/objects/models/public_object_id.rb +1 -1
  312. data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +1 -1
  313. data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +11 -2
  314. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +1 -1
  315. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_for_create.rb +250 -0
  316. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_upsert.rb +1 -1
  317. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +1 -1
  318. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +2 -11
  319. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +2 -16
  320. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +11 -2
  321. data/lib/hubspot/codegen/crm/objects/models/simple_public_upsert_object.rb +11 -2
  322. data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +1 -1
  323. data/lib/hubspot/codegen/crm/objects/models/value_with_timestamp.rb +1 -1
  324. data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +7 -6
  325. data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +11 -9
  326. data/lib/hubspot/codegen/crm/objects/notes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  327. data/lib/hubspot/codegen/crm/objects/notes/models/batch_read_input_simple_public_object_id.rb +1 -0
  328. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object.rb +10 -1
  329. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input.rb +2 -0
  330. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input_for_create.rb +252 -0
  331. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input_upsert.rb +1 -0
  332. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input.rb +1 -10
  333. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input_for_create.rb +1 -15
  334. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_with_associations.rb +10 -1
  335. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_upsert_object.rb +10 -1
  336. data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +7 -6
  337. data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +11 -9
  338. data/lib/hubspot/codegen/crm/objects/postal_mail/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  339. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_read_input_simple_public_object_id.rb +1 -0
  340. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object.rb +10 -1
  341. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input.rb +2 -0
  342. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_for_create.rb +252 -0
  343. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_upsert.rb +1 -0
  344. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input.rb +1 -10
  345. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input_for_create.rb +1 -15
  346. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_with_associations.rb +10 -1
  347. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_upsert_object.rb +10 -1
  348. data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +7 -6
  349. data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +11 -9
  350. data/lib/hubspot/codegen/crm/objects/tasks/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
  351. data/lib/hubspot/codegen/crm/objects/tasks/models/batch_read_input_simple_public_object_id.rb +1 -0
  352. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object.rb +10 -1
  353. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input.rb +2 -0
  354. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_for_create.rb +252 -0
  355. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_upsert.rb +1 -0
  356. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input.rb +1 -10
  357. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input_for_create.rb +1 -15
  358. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_with_associations.rb +10 -1
  359. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_upsert_object.rb +10 -1
  360. data/lib/hubspot/codegen/crm/objects/taxes/api/basic_api.rb +7 -6
  361. data/lib/hubspot/codegen/crm/objects/taxes/api/batch_api.rb +11 -9
  362. data/lib/hubspot/codegen/crm/objects/taxes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  363. data/lib/hubspot/codegen/crm/objects/taxes/models/batch_read_input_simple_public_object_id.rb +1 -0
  364. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object.rb +10 -1
  365. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input.rb +2 -0
  366. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input_for_create.rb +252 -0
  367. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input_upsert.rb +1 -0
  368. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input.rb +1 -10
  369. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input_for_create.rb +1 -15
  370. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_with_associations.rb +10 -1
  371. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_upsert_object.rb +10 -1
  372. data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +58 -1
  373. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +7 -6
  374. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +11 -9
  375. data/lib/hubspot/codegen/crm/quotes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
  376. data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -0
  377. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +10 -1
  378. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +2 -0
  379. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input_for_create.rb +250 -0
  380. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input_upsert.rb +1 -0
  381. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -10
  382. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input_for_create.rb +1 -15
  383. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +10 -1
  384. data/lib/hubspot/codegen/crm/quotes/models/simple_public_upsert_object.rb +10 -1
  385. data/lib/hubspot/codegen/events/api/events_api.rb +22 -22
  386. data/lib/hubspot/codegen/events/send/api/{custom_event_data_api.rb → basic_api.rb} +13 -10
  387. data/lib/hubspot/codegen/events/send/api/batch_api.rb +94 -0
  388. data/lib/hubspot/codegen/events/send/api_client.rb +1 -1
  389. data/lib/hubspot/codegen/events/send/api_error.rb +1 -1
  390. data/lib/hubspot/codegen/events/send/configuration.rb +1 -1
  391. data/lib/hubspot/codegen/events/send/models/batched_behavioral_event_http_completion_request.rb +230 -0
  392. data/lib/hubspot/codegen/events/send/models/behavioral_event_http_completion_request.rb +8 -7
  393. data/lib/hubspot/codegen/events/send/models/error.rb +1 -1
  394. data/lib/hubspot/codegen/events/send/models/error_detail.rb +1 -1
  395. data/lib/hubspot/codegen/marketing/emails/api/marketing_emails_api.rb +1226 -0
  396. data/lib/hubspot/codegen/marketing/emails/api/statistics_api.rb +168 -0
  397. data/lib/hubspot/codegen/marketing/emails/api_client.rb +410 -0
  398. data/lib/hubspot/codegen/marketing/emails/api_error.rb +61 -0
  399. data/lib/hubspot/codegen/marketing/emails/configuration.rb +287 -0
  400. data/lib/hubspot/codegen/marketing/emails/models/ab_test_create_request_v_next.rb +244 -0
  401. data/lib/hubspot/codegen/marketing/emails/models/aggregate_email_statistics.rb +248 -0
  402. data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_email_statistic_interval_no_paging.rb +247 -0
  403. data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_public_email_forward_paging.rb +256 -0
  404. data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_version_public_email.rb +256 -0
  405. data/lib/hubspot/codegen/marketing/emails/models/content_clone_request_v_next.rb +240 -0
  406. data/lib/hubspot/codegen/marketing/emails/models/email_create_request.rb +468 -0
  407. data/lib/hubspot/codegen/marketing/emails/models/email_statistic_interval.rb +232 -0
  408. data/lib/hubspot/codegen/marketing/emails/models/email_statistics_data.rb +282 -0
  409. data/lib/hubspot/codegen/marketing/emails/models/email_update_request.rb +453 -0
  410. data/lib/hubspot/codegen/marketing/emails/models/error.rb +305 -0
  411. data/lib/hubspot/codegen/marketing/emails/models/error_detail.rb +271 -0
  412. data/lib/hubspot/codegen/marketing/emails/models/forward_paging.rb +223 -0
  413. data/lib/hubspot/codegen/marketing/emails/models/interval.rb +242 -0
  414. data/lib/hubspot/codegen/marketing/emails/models/next_page.rb +240 -0
  415. data/lib/hubspot/codegen/marketing/emails/models/paging.rb +238 -0
  416. data/lib/hubspot/codegen/marketing/emails/models/previous_page.rb +240 -0
  417. data/lib/hubspot/codegen/marketing/emails/models/public_button_style_settings.rb +241 -0
  418. data/lib/hubspot/codegen/marketing/emails/models/public_divider_style_settings.rb +241 -0
  419. data/lib/hubspot/codegen/marketing/emails/models/public_email.rb +654 -0
  420. data/lib/hubspot/codegen/marketing/emails/models/public_email_content.rb +304 -0
  421. data/lib/hubspot/codegen/marketing/emails/models/public_email_from_details.rb +245 -0
  422. data/lib/hubspot/codegen/marketing/emails/models/public_email_recipients.rb +239 -0
  423. data/lib/hubspot/codegen/marketing/emails/models/public_email_style_settings.rb +484 -0
  424. data/lib/hubspot/codegen/marketing/emails/models/public_email_subscription_details.rb +245 -0
  425. data/lib/hubspot/codegen/marketing/emails/models/public_email_testing_details.rb +355 -0
  426. data/lib/hubspot/codegen/marketing/emails/models/public_email_to_details.rb +262 -0
  427. data/lib/hubspot/codegen/marketing/emails/models/public_font_style.rb +268 -0
  428. data/lib/hubspot/codegen/marketing/emails/models/public_rss_email_details.rb +307 -0
  429. data/lib/hubspot/codegen/marketing/emails/models/public_webversion_details.rb +311 -0
  430. data/lib/hubspot/codegen/marketing/emails/models/version_public_email.rb +272 -0
  431. data/lib/hubspot/codegen/marketing/emails/models/version_user.rb +260 -0
  432. data/lib/hubspot/codegen/marketing/events/api/add_event_attendees_api.rb +352 -0
  433. data/lib/hubspot/codegen/marketing/events/api/basic_api.rb +177 -264
  434. data/lib/hubspot/codegen/marketing/events/api/batch_api.rb +298 -0
  435. data/lib/hubspot/codegen/marketing/events/api/change_property_api.rb +177 -0
  436. data/lib/hubspot/codegen/marketing/events/api/identifiers_api.rb +153 -0
  437. data/lib/hubspot/codegen/marketing/events/api/list_associations_api.rb +2 -2
  438. data/lib/hubspot/codegen/marketing/events/api/{participant_state_api.rb → retrieve_participant_state_api.rb} +23 -23
  439. data/lib/hubspot/codegen/marketing/events/api/subscriber_state_changes_api.rb +8 -8
  440. data/lib/hubspot/codegen/marketing/events/models/app_info.rb +242 -0
  441. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_public_object_id_delete_request.rb +230 -0
  442. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_public_update_request_full_v2.rb +230 -0
  443. data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response_v2.rb +326 -0
  444. data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response_v2_with_errors.rb +346 -0
  445. data/lib/hubspot/codegen/marketing/events/models/collection_response_marketing_event_public_read_response_v2_forward_paging.rb +239 -0
  446. data/lib/hubspot/codegen/marketing/events/models/{collection_response_marketing_event_external_unique_identifier_no_paging.rb → collection_response_search_public_response_wrapper_no_paging.rb} +4 -4
  447. data/lib/hubspot/codegen/marketing/events/models/collection_response_with_total_marketing_event_identifiers_response_no_paging.rb +244 -0
  448. data/lib/hubspot/codegen/marketing/events/models/crm_property_wrapper.rb +242 -0
  449. data/lib/hubspot/codegen/marketing/events/models/marketing_event_default_response.rb +13 -4
  450. data/lib/hubspot/codegen/marketing/events/models/marketing_event_email_subscriber.rb +1 -1
  451. data/lib/hubspot/codegen/marketing/events/models/marketing_event_identifiers_response.rb +274 -0
  452. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response.rb +10 -1
  453. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response_v2.rb +367 -0
  454. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_object_id_delete_request.rb +228 -0
  455. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response.rb +10 -1
  456. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response_v2.rb +421 -0
  457. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_update_request_full_v2.rb +316 -0
  458. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_update_request_v2.rb +302 -0
  459. data/lib/hubspot/codegen/marketing/events/models/marketing_event_subscriber.rb +1 -1
  460. data/lib/hubspot/codegen/marketing/events/models/property_value.rb +2 -2
  461. data/lib/hubspot/codegen/marketing/events/models/search_public_response_wrapper.rb +270 -0
  462. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition.rb +0 -1
  463. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_create_request.rb +0 -1
  464. data/lib/hubspot/codegen/webhooks/api/settings_api.rb +18 -6
  465. data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +42 -18
  466. data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +1 -0
  467. data/lib/hubspot/codegen/webhooks/models/settings_response.rb +1 -0
  468. data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +13 -3
  469. data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +1 -0
  470. data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +1 -0
  471. data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +13 -3
  472. data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +2 -50
  473. data/lib/hubspot/discovery/cms/blogs/blog_posts/api/{blog_posts_api.rb → basic_api.rb} +1 -1
  474. data/lib/hubspot/discovery/cms/blogs/blog_posts/api/batch_api.rb +15 -0
  475. data/lib/hubspot/discovery/cms/blogs/blog_posts/api/multi_language_api.rb +15 -0
  476. data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +3 -1
  477. data/lib/hubspot/discovery/crm/{objects/feedback_submissions/api/public_object_api.rb → associations/v4/api/report_api.rb} +3 -3
  478. data/lib/hubspot/discovery/crm/associations/v4/client.rb +1 -0
  479. data/lib/hubspot/discovery/crm/associations/v4/schema/api/definition_configurations_api.rb +17 -0
  480. data/lib/hubspot/discovery/crm/associations/v4/schema/client.rb +1 -0
  481. data/lib/hubspot/discovery/crm/client.rb +2 -0
  482. data/lib/hubspot/discovery/crm/commerce/client.rb +19 -0
  483. data/lib/hubspot/discovery/crm/commerce/invoices/api/basic_api.rb +15 -0
  484. data/lib/hubspot/discovery/crm/commerce/invoices/api/batch_api.rb +15 -0
  485. data/lib/hubspot/discovery/crm/commerce/invoices/api/search_api.rb +15 -0
  486. data/lib/hubspot/discovery/crm/commerce/invoices/client.rb +23 -0
  487. data/lib/hubspot/discovery/crm/exports/api/public_exports_api.rb +13 -0
  488. data/lib/hubspot/discovery/crm/exports/client.rb +19 -0
  489. data/lib/hubspot/discovery/crm/extensions/calling/api/channel_connection_settings_api.rb +15 -0
  490. data/lib/hubspot/discovery/crm/extensions/calling/client.rb +1 -0
  491. data/lib/hubspot/discovery/crm/objects/client.rb +1 -3
  492. data/lib/hubspot/discovery/crm/objects/{feedback_submissions/api/gdpr_api.rb → deal_splits/api/batch_api.rb} +2 -2
  493. data/lib/hubspot/discovery/crm/objects/deal_splits/client.rb +21 -0
  494. data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +0 -2
  495. data/lib/hubspot/discovery/events/send/api/{custom_event_data_api.rb → basic_api.rb} +1 -1
  496. data/lib/hubspot/discovery/events/send/api/batch_api.rb +13 -0
  497. data/lib/hubspot/discovery/events/send/client.rb +2 -1
  498. data/lib/hubspot/discovery/marketing/client.rb +1 -0
  499. data/lib/hubspot/discovery/marketing/emails/api/marketing_emails_api.rb +13 -0
  500. data/lib/hubspot/discovery/marketing/emails/api/statistics_api.rb +13 -0
  501. data/lib/hubspot/discovery/marketing/emails/client.rb +20 -0
  502. data/lib/hubspot/discovery/marketing/events/api/{attendance_subscriber_state_changes_api.rb → add_event_attendees_api.rb} +1 -1
  503. data/lib/hubspot/discovery/marketing/events/api/{participant_state_api.rb → batch_api.rb} +1 -1
  504. data/lib/hubspot/discovery/marketing/events/api/change_property_api.rb +13 -0
  505. data/lib/hubspot/discovery/marketing/events/api/identifiers_api.rb +13 -0
  506. data/lib/hubspot/discovery/marketing/events/api/retrieve_participant_state_api.rb +13 -0
  507. data/lib/hubspot/discovery/marketing/events/client.rb +5 -2
  508. data/lib/hubspot/helpers/requests/http_auth.rb +33 -0
  509. data/lib/hubspot/helpers/requests/http_request_builder.rb +120 -0
  510. data/lib/hubspot/helpers/signature.rb +54 -26
  511. data/lib/hubspot/version.rb +1 -1
  512. data/spec/discovery/client_spec.rb +1 -0
  513. data/spec/discovery/cms/blogs/blog-posts/{blog_posts_api_spec.rb → basic_api_spec.rb} +2 -6
  514. data/spec/discovery/cms/blogs/blog-posts/batch_api_spec.rb +11 -0
  515. data/spec/discovery/cms/blogs/blog-posts/multi_language_api_spec.rb +11 -0
  516. data/spec/discovery/crm/associations/v4/report_api_spec.rb +7 -0
  517. data/spec/discovery/crm/associations/v4/schema/definition_configurations_api_spec.rb +11 -0
  518. data/spec/discovery/crm/associations/v4/schema/definitions_api_spec.rb +2 -2
  519. data/spec/discovery/crm/commerce/client_spec.rb +7 -0
  520. data/spec/discovery/crm/commerce/invoices/basic_api_spec.rb +11 -0
  521. data/spec/discovery/crm/commerce/invoices/batch_api_spec.rb +11 -0
  522. data/spec/discovery/crm/commerce/invoices/search_api_spec.rb +7 -0
  523. data/spec/discovery/crm/exports/public_exports_api_spec.rb +8 -0
  524. data/spec/discovery/crm/extensions/calling/channel_connection_settings_api_spec.rb +10 -0
  525. data/spec/discovery/crm/objects/deal_splits/batch_api_spec.rb +8 -0
  526. data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +0 -3
  527. data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +0 -3
  528. data/spec/discovery/crm/objects/goals/basic_api_spec.rb +3 -0
  529. data/spec/discovery/crm/objects/goals/batch_api_spec.rb +4 -0
  530. data/spec/discovery/events/send/basic_api_spec.rb +7 -0
  531. data/spec/discovery/events/send/batch_api_spec.rb +7 -0
  532. data/spec/discovery/marketing/emails/marketing_emails_api_spec.rb +24 -0
  533. data/spec/discovery/marketing/emails/statistics_api_spec.rb +8 -0
  534. data/spec/discovery/marketing/events/add_event_attendees_api_spec.rb +10 -0
  535. data/spec/discovery/marketing/events/basic_api_spec.rb +5 -6
  536. data/spec/discovery/marketing/events/batch_api_spec.rb +10 -0
  537. data/spec/discovery/marketing/events/change_property_api_spec.rb +8 -0
  538. data/spec/discovery/marketing/events/identifiers_api_spec.rb +8 -0
  539. data/spec/discovery/marketing/events/{participant_state_api_spec.rb → retrieve_participant_state_api_spec.rb} +2 -2
  540. data/spec/helpers/requests/http_auth_spec.rb +58 -0
  541. data/spec/helpers/requests/http_request_spec.rb +71 -0
  542. data/spec/helpers/signature_spec.rb +15 -5
  543. metadata +276 -52
  544. data/lib/hubspot/codegen/cms/blogs/blog_posts/api/blog_posts_api.rb +0 -1694
  545. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/gdpr_api.rb +0 -96
  546. data/lib/hubspot/codegen/marketing/events/api/attendance_subscriber_state_changes_api.rb +0 -192
  547. data/spec/discovery/crm/objects/feedback_submissions/gdpr_api_spec.rb +0 -7
  548. data/spec/discovery/crm/objects/feedback_submissions/public_object_api_spec.rb +0 -7
  549. data/spec/discovery/events/send/custom_event_data_api_spec.rb +0 -7
  550. data/spec/discovery/marketing/events/attendance_subscriber_state_changes_api_spec.rb +0 -8
@@ -16,16 +16,17 @@ module Hubspot
16
16
  module Marketing
17
17
  module Events
18
18
  class BasicApi
19
+ include Hubspot::Helpers::GetAllHelper
19
20
 
20
21
  attr_accessor :api_client
21
22
 
22
23
  def initialize(api_client = ApiClient.default)
23
24
  @api_client = api_client
24
25
  end
25
- # Delete a marketing event
26
- # Deletes an existing Marketing Event with the specified id, if one exists.
27
- # @param external_event_id [String] The id of the marketing event to delete
28
- # @param external_account_id [String] The account id associated with the marketing event
26
+ # Delete Marketing Event by External Ids
27
+ # Deletes the existing Marketing Event with the specified externalAccountId, externalEventId, if it exists. Only Marketing Events created by the same app can be deleted.
28
+ # @param external_event_id [String] The id of the marketing event in the external event application
29
+ # @param external_account_id [String] The accountId that is associated with this marketing event in the external event application
29
30
  # @param [Hash] opts the optional parameters
30
31
  # @return [nil]
31
32
  def archive(external_event_id, external_account_id, opts = {})
@@ -33,10 +34,10 @@ module Hubspot
33
34
  nil
34
35
  end
35
36
 
36
- # Delete a marketing event
37
- # Deletes an existing Marketing Event with the specified id, if one exists.
38
- # @param external_event_id [String] The id of the marketing event to delete
39
- # @param external_account_id [String] The account id associated with the marketing event
37
+ # Delete Marketing Event by External Ids
38
+ # Deletes the existing Marketing Event with the specified externalAccountId, externalEventId, if it exists. Only Marketing Events created by the same app can be deleted.
39
+ # @param external_event_id [String] The id of the marketing event in the external event application
40
+ # @param external_account_id [String] The accountId that is associated with this marketing event in the external event application
40
41
  # @param [Hash] opts the optional parameters
41
42
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
42
43
  def archive_with_http_info(external_event_id, external_account_id, opts = {})
@@ -92,31 +93,31 @@ module Hubspot
92
93
  return data, status_code, headers
93
94
  end
94
95
 
95
- # Delete multiple marketing events
96
- # Bulk delete a number of marketing events in HubSpot
97
- # @param batch_input_marketing_event_external_unique_identifier [BatchInputMarketingEventExternalUniqueIdentifier]
96
+ # Delete Marketing Event by objectId
97
+ # Deletes the existing Marketing Event with the specified objectId, if it exists.
98
+ # @param object_id [String] The internal ID of the marketing event in HubSpot
98
99
  # @param [Hash] opts the optional parameters
99
- # @return [Error]
100
- def batch_archive(batch_input_marketing_event_external_unique_identifier, opts = {})
101
- data, _status_code, _headers = batch_archive_with_http_info(batch_input_marketing_event_external_unique_identifier, opts)
102
- data
100
+ # @return [nil]
101
+ def archive_by_object_id(object_id, opts = {})
102
+ archive_by_object_id_with_http_info(object_id, opts)
103
+ nil
103
104
  end
104
105
 
105
- # Delete multiple marketing events
106
- # Bulk delete a number of marketing events in HubSpot
107
- # @param batch_input_marketing_event_external_unique_identifier [BatchInputMarketingEventExternalUniqueIdentifier]
106
+ # Delete Marketing Event by objectId
107
+ # Deletes the existing Marketing Event with the specified objectId, if it exists.
108
+ # @param object_id [String] The internal ID of the marketing event in HubSpot
108
109
  # @param [Hash] opts the optional parameters
109
- # @return [Array<(Error, Integer, Hash)>] Error data, response status code and response headers
110
- def batch_archive_with_http_info(batch_input_marketing_event_external_unique_identifier, opts = {})
110
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
111
+ def archive_by_object_id_with_http_info(object_id, opts = {})
111
112
  if @api_client.config.debugging
112
- @api_client.config.logger.debug 'Calling API: BasicApi.batch_archive ...'
113
+ @api_client.config.logger.debug 'Calling API: BasicApi.archive_by_object_id ...'
113
114
  end
114
- # verify the required parameter 'batch_input_marketing_event_external_unique_identifier' is set
115
- if @api_client.config.client_side_validation && batch_input_marketing_event_external_unique_identifier.nil?
116
- fail ArgumentError, "Missing the required parameter 'batch_input_marketing_event_external_unique_identifier' when calling BasicApi.batch_archive"
115
+ # verify the required parameter 'object_id' is set
116
+ if @api_client.config.client_side_validation && object_id.nil?
117
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.archive_by_object_id"
117
118
  end
118
119
  # resource path
119
- local_var_path = '/marketing/v3/marketing-events/events/delete'
120
+ local_var_path = '/marketing/v3/marketing-events/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
120
121
 
121
122
  # query parameters
122
123
  query_params = opts[:query_params] || {}
@@ -125,26 +126,21 @@ module Hubspot
125
126
  header_params = opts[:header_params] || {}
126
127
  # HTTP header 'Accept' (if needed)
127
128
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])
128
- # HTTP header 'Content-Type'
129
- content_type = @api_client.select_header_content_type(['application/json'])
130
- if !content_type.nil?
131
- header_params['Content-Type'] = content_type
132
- end
133
129
 
134
130
  # form parameters
135
131
  form_params = opts[:form_params] || {}
136
132
 
137
133
  # http body (model)
138
- post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_marketing_event_external_unique_identifier)
134
+ post_body = opts[:debug_body]
139
135
 
140
136
  # return_type
141
- return_type = opts[:debug_return_type] || 'Error'
137
+ return_type = opts[:debug_return_type]
142
138
 
143
139
  # auth_names
144
140
  auth_names = opts[:debug_auth_names] || ['oauth2']
145
141
 
146
142
  new_options = opts.merge(
147
- :operation => :"BasicApi.batch_archive",
143
+ :operation => :"BasicApi.archive_by_object_id",
148
144
  :header_params => header_params,
149
145
  :query_params => query_params,
150
146
  :form_params => form_params,
@@ -153,38 +149,38 @@ module Hubspot
153
149
  :return_type => return_type
154
150
  )
155
151
 
156
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
152
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
157
153
  if @api_client.config.debugging
158
- @api_client.config.logger.debug "API called: BasicApi#batch_archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
+ @api_client.config.logger.debug "API called: BasicApi#archive_by_object_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
155
  end
160
156
  return data, status_code, headers
161
157
  end
162
158
 
163
- # Create or update multiple marketing events
164
- # Upsert multiple marketing events. If there is an existing Marketing event with the specified ID, it will be updated; otherwise a new event will be created.
165
- # @param batch_input_marketing_event_create_request_params [BatchInputMarketingEventCreateRequestParams]
159
+ # Create a marketing event
160
+ # Creates a new marketing event in HubSpot
161
+ # @param marketing_event_create_request_params [MarketingEventCreateRequestParams]
166
162
  # @param [Hash] opts the optional parameters
167
- # @return [BatchResponseMarketingEventPublicDefaultResponse]
168
- def batch_upsert(batch_input_marketing_event_create_request_params, opts = {})
169
- data, _status_code, _headers = batch_upsert_with_http_info(batch_input_marketing_event_create_request_params, opts)
163
+ # @return [MarketingEventDefaultResponse]
164
+ def create(marketing_event_create_request_params, opts = {})
165
+ data, _status_code, _headers = create_with_http_info(marketing_event_create_request_params, opts)
170
166
  data
171
167
  end
172
168
 
173
- # Create or update multiple marketing events
174
- # Upsert multiple marketing events. If there is an existing Marketing event with the specified ID, it will be updated; otherwise a new event will be created.
175
- # @param batch_input_marketing_event_create_request_params [BatchInputMarketingEventCreateRequestParams]
169
+ # Create a marketing event
170
+ # Creates a new marketing event in HubSpot
171
+ # @param marketing_event_create_request_params [MarketingEventCreateRequestParams]
176
172
  # @param [Hash] opts the optional parameters
177
- # @return [Array<(BatchResponseMarketingEventPublicDefaultResponse, Integer, Hash)>] BatchResponseMarketingEventPublicDefaultResponse data, response status code and response headers
178
- def batch_upsert_with_http_info(batch_input_marketing_event_create_request_params, opts = {})
173
+ # @return [Array<(MarketingEventDefaultResponse, Integer, Hash)>] MarketingEventDefaultResponse data, response status code and response headers
174
+ def create_with_http_info(marketing_event_create_request_params, opts = {})
179
175
  if @api_client.config.debugging
180
- @api_client.config.logger.debug 'Calling API: BasicApi.batch_upsert ...'
176
+ @api_client.config.logger.debug 'Calling API: BasicApi.create ...'
181
177
  end
182
- # verify the required parameter 'batch_input_marketing_event_create_request_params' is set
183
- if @api_client.config.client_side_validation && batch_input_marketing_event_create_request_params.nil?
184
- fail ArgumentError, "Missing the required parameter 'batch_input_marketing_event_create_request_params' when calling BasicApi.batch_upsert"
178
+ # verify the required parameter 'marketing_event_create_request_params' is set
179
+ if @api_client.config.client_side_validation && marketing_event_create_request_params.nil?
180
+ fail ArgumentError, "Missing the required parameter 'marketing_event_create_request_params' when calling BasicApi.create"
185
181
  end
186
182
  # resource path
187
- local_var_path = '/marketing/v3/marketing-events/events/upsert'
183
+ local_var_path = '/marketing/v3/marketing-events/events'
188
184
 
189
185
  # query parameters
190
186
  query_params = opts[:query_params] || {}
@@ -203,16 +199,16 @@ module Hubspot
203
199
  form_params = opts[:form_params] || {}
204
200
 
205
201
  # http body (model)
206
- post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_marketing_event_create_request_params)
202
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(marketing_event_create_request_params)
207
203
 
208
204
  # return_type
209
- return_type = opts[:debug_return_type] || 'BatchResponseMarketingEventPublicDefaultResponse'
205
+ return_type = opts[:debug_return_type] || 'MarketingEventDefaultResponse'
210
206
 
211
207
  # auth_names
212
208
  auth_names = opts[:debug_auth_names] || ['oauth2']
213
209
 
214
210
  new_options = opts.merge(
215
- :operation => :"BasicApi.batch_upsert",
211
+ :operation => :"BasicApi.create",
216
212
  :header_params => header_params,
217
213
  :query_params => query_params,
218
214
  :form_params => form_params,
@@ -223,46 +219,39 @@ module Hubspot
223
219
 
224
220
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
225
221
  if @api_client.config.debugging
226
- @api_client.config.logger.debug "API called: BasicApi#batch_upsert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
+ @api_client.config.logger.debug "API called: BasicApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
227
223
  end
228
224
  return data, status_code, headers
229
225
  end
230
226
 
231
- # Mark a marketing event as cancelled
232
- # Mark a marketing event as cancelled.
233
- # @param external_event_id [String] The id of the marketing event to mark as cancelled
234
- # @param external_account_id [String] The account id associated with the marketing event
227
+ # Get all marketing event
228
+ # Returns all Marketing Events available on the portal, along with their properties, regardless of whether they were created manually or through the application. The marketing events returned by this endpoint are sorted by objectId.
235
229
  # @param [Hash] opts the optional parameters
236
- # @return [MarketingEventDefaultResponse]
237
- def cancel(external_event_id, external_account_id, opts = {})
238
- data, _status_code, _headers = cancel_with_http_info(external_event_id, external_account_id, opts)
230
+ # @option opts [String] :after The cursor indicating the position of the last retrieved item.
231
+ # @option opts [Integer] :limit The limit for response size. The default value is 10, the max number is 100 (default to 10)
232
+ # @return [CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging]
233
+ def get_all(opts = {})
234
+ data, _status_code, _headers = get_all_with_http_info(opts)
239
235
  data
240
236
  end
241
237
 
242
- # Mark a marketing event as cancelled
243
- # Mark a marketing event as cancelled.
244
- # @param external_event_id [String] The id of the marketing event to mark as cancelled
245
- # @param external_account_id [String] The account id associated with the marketing event
238
+ # Get all marketing event
239
+ # Returns all Marketing Events available on the portal, along with their properties, regardless of whether they were created manually or through the application. The marketing events returned by this endpoint are sorted by objectId.
246
240
  # @param [Hash] opts the optional parameters
247
- # @return [Array<(MarketingEventDefaultResponse, Integer, Hash)>] MarketingEventDefaultResponse data, response status code and response headers
248
- def cancel_with_http_info(external_event_id, external_account_id, opts = {})
241
+ # @option opts [String] :after The cursor indicating the position of the last retrieved item.
242
+ # @option opts [Integer] :limit The limit for response size. The default value is 10, the max number is 100 (default to 10)
243
+ # @return [Array<(CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging, Integer, Hash)>] CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging data, response status code and response headers
244
+ def get_all_with_http_info(opts = {})
249
245
  if @api_client.config.debugging
250
- @api_client.config.logger.debug 'Calling API: BasicApi.cancel ...'
251
- end
252
- # verify the required parameter 'external_event_id' is set
253
- if @api_client.config.client_side_validation && external_event_id.nil?
254
- fail ArgumentError, "Missing the required parameter 'external_event_id' when calling BasicApi.cancel"
255
- end
256
- # verify the required parameter 'external_account_id' is set
257
- if @api_client.config.client_side_validation && external_account_id.nil?
258
- fail ArgumentError, "Missing the required parameter 'external_account_id' when calling BasicApi.cancel"
246
+ @api_client.config.logger.debug 'Calling API: BasicApi.get_all ...'
259
247
  end
260
248
  # resource path
261
- local_var_path = '/marketing/v3/marketing-events/events/{externalEventId}/cancel'.sub('{' + 'externalEventId' + '}', CGI.escape(external_event_id.to_s))
249
+ local_var_path = '/marketing/v3/marketing-events/'
262
250
 
263
251
  # query parameters
264
252
  query_params = opts[:query_params] || {}
265
- query_params[:'externalAccountId'] = external_account_id
253
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
254
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
266
255
 
267
256
  # header parameters
268
257
  header_params = opts[:header_params] || {}
@@ -276,13 +265,13 @@ module Hubspot
276
265
  post_body = opts[:debug_body]
277
266
 
278
267
  # return_type
279
- return_type = opts[:debug_return_type] || 'MarketingEventDefaultResponse'
268
+ return_type = opts[:debug_return_type] || 'CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging'
280
269
 
281
270
  # auth_names
282
271
  auth_names = opts[:debug_auth_names] || ['oauth2']
283
272
 
284
273
  new_options = opts.merge(
285
- :operation => :"BasicApi.cancel",
274
+ :operation => :"BasicApi.get_all",
286
275
  :header_params => header_params,
287
276
  :query_params => query_params,
288
277
  :form_params => form_params,
@@ -291,79 +280,61 @@ module Hubspot
291
280
  :return_type => return_type
292
281
  )
293
282
 
294
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
283
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
295
284
  if @api_client.config.debugging
296
- @api_client.config.logger.debug "API called: BasicApi#cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
285
+ @api_client.config.logger.debug "API called: BasicApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
297
286
  end
298
287
  return data, status_code, headers
299
288
  end
300
289
 
301
- # Mark a marketing event as completed
302
- # Mark a marketing event as completed
303
- # @param external_event_id [String] The id of the marketing event in the external event application.
304
- # @param external_account_id [String] The accountId that is associated with this marketing event in the external event application.
305
- # @param marketing_event_complete_request_params [MarketingEventCompleteRequestParams]
290
+ # Get Marketing Event by objectId
291
+ # Returns the details of a Marketing Event with the specified objectId, if it exists.
292
+ # @param object_id [String] The internal ID of the marketing event in HubSpot
306
293
  # @param [Hash] opts the optional parameters
307
- # @return [MarketingEventDefaultResponse]
308
- def complete(external_event_id, external_account_id, marketing_event_complete_request_params, opts = {})
309
- data, _status_code, _headers = complete_with_http_info(external_event_id, external_account_id, marketing_event_complete_request_params, opts)
294
+ # @return [MarketingEventPublicReadResponseV2]
295
+ def get_by_object_id(object_id, opts = {})
296
+ data, _status_code, _headers = get_by_object_id_with_http_info(object_id, opts)
310
297
  data
311
298
  end
312
299
 
313
- # Mark a marketing event as completed
314
- # Mark a marketing event as completed
315
- # @param external_event_id [String] The id of the marketing event in the external event application.
316
- # @param external_account_id [String] The accountId that is associated with this marketing event in the external event application.
317
- # @param marketing_event_complete_request_params [MarketingEventCompleteRequestParams]
300
+ # Get Marketing Event by objectId
301
+ # Returns the details of a Marketing Event with the specified objectId, if it exists.
302
+ # @param object_id [String] The internal ID of the marketing event in HubSpot
318
303
  # @param [Hash] opts the optional parameters
319
- # @return [Array<(MarketingEventDefaultResponse, Integer, Hash)>] MarketingEventDefaultResponse data, response status code and response headers
320
- def complete_with_http_info(external_event_id, external_account_id, marketing_event_complete_request_params, opts = {})
304
+ # @return [Array<(MarketingEventPublicReadResponseV2, Integer, Hash)>] MarketingEventPublicReadResponseV2 data, response status code and response headers
305
+ def get_by_object_id_with_http_info(object_id, opts = {})
321
306
  if @api_client.config.debugging
322
- @api_client.config.logger.debug 'Calling API: BasicApi.complete ...'
323
- end
324
- # verify the required parameter 'external_event_id' is set
325
- if @api_client.config.client_side_validation && external_event_id.nil?
326
- fail ArgumentError, "Missing the required parameter 'external_event_id' when calling BasicApi.complete"
327
- end
328
- # verify the required parameter 'external_account_id' is set
329
- if @api_client.config.client_side_validation && external_account_id.nil?
330
- fail ArgumentError, "Missing the required parameter 'external_account_id' when calling BasicApi.complete"
307
+ @api_client.config.logger.debug 'Calling API: BasicApi.get_by_object_id ...'
331
308
  end
332
- # verify the required parameter 'marketing_event_complete_request_params' is set
333
- if @api_client.config.client_side_validation && marketing_event_complete_request_params.nil?
334
- fail ArgumentError, "Missing the required parameter 'marketing_event_complete_request_params' when calling BasicApi.complete"
309
+ # verify the required parameter 'object_id' is set
310
+ if @api_client.config.client_side_validation && object_id.nil?
311
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.get_by_object_id"
335
312
  end
336
313
  # resource path
337
- local_var_path = '/marketing/v3/marketing-events/events/{externalEventId}/complete'.sub('{' + 'externalEventId' + '}', CGI.escape(external_event_id.to_s))
314
+ local_var_path = '/marketing/v3/marketing-events/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
338
315
 
339
316
  # query parameters
340
317
  query_params = opts[:query_params] || {}
341
- query_params[:'externalAccountId'] = external_account_id
342
318
 
343
319
  # header parameters
344
320
  header_params = opts[:header_params] || {}
345
321
  # HTTP header 'Accept' (if needed)
346
322
  header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
347
- # HTTP header 'Content-Type'
348
- content_type = @api_client.select_header_content_type(['application/json'])
349
- if !content_type.nil?
350
- header_params['Content-Type'] = content_type
351
- end
352
323
 
353
324
  # form parameters
354
325
  form_params = opts[:form_params] || {}
355
326
 
356
327
  # http body (model)
357
- post_body = opts[:debug_body] || @api_client.object_to_http_body(marketing_event_complete_request_params)
328
+ post_body = opts[:debug_body]
358
329
 
359
330
  # return_type
360
- return_type = opts[:debug_return_type] || 'MarketingEventDefaultResponse'
331
+ return_type = opts[:debug_return_type] || 'MarketingEventPublicReadResponseV2'
361
332
 
362
333
  # auth_names
363
334
  auth_names = opts[:debug_auth_names] || ['oauth2']
364
335
 
365
336
  new_options = opts.merge(
366
- :operation => :"BasicApi.complete",
337
+ :operation => :"BasicApi.get_by_object_id",
367
338
  :header_params => header_params,
368
339
  :query_params => query_params,
369
340
  :form_params => form_params,
@@ -372,110 +343,48 @@ module Hubspot
372
343
  :return_type => return_type
373
344
  )
374
345
 
375
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
346
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
376
347
  if @api_client.config.debugging
377
- @api_client.config.logger.debug "API called: BasicApi#complete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
348
+ @api_client.config.logger.debug "API called: BasicApi#get_by_object_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
378
349
  end
379
350
  return data, status_code, headers
380
351
  end
381
352
 
382
- # Create a marketing event
383
- # Creates a new marketing event in HubSpot
384
- # @param marketing_event_create_request_params [MarketingEventCreateRequestParams]
353
+ # Get Marketing Event by External IDs
354
+ # Returns the details of a Marketing Event with the specified externalAccountId, externalEventId, if it exists. Only Marketing Events created by the same app making the request can be retrieved.
355
+ # @param external_event_id [String] The id of the marketing event in the external event application
356
+ # @param external_account_id [String] The accountId that is associated with this marketing event in the external event application
385
357
  # @param [Hash] opts the optional parameters
386
- # @return [MarketingEventDefaultResponse]
387
- def create(marketing_event_create_request_params, opts = {})
388
- data, _status_code, _headers = create_with_http_info(marketing_event_create_request_params, opts)
358
+ # @return [MarketingEventPublicReadResponse]
359
+ def get_details(external_event_id, external_account_id, opts = {})
360
+ data, _status_code, _headers = get_details_with_http_info(external_event_id, external_account_id, opts)
389
361
  data
390
362
  end
391
363
 
392
- # Create a marketing event
393
- # Creates a new marketing event in HubSpot
394
- # @param marketing_event_create_request_params [MarketingEventCreateRequestParams]
364
+ # Get Marketing Event by External IDs
365
+ # Returns the details of a Marketing Event with the specified externalAccountId, externalEventId, if it exists. Only Marketing Events created by the same app making the request can be retrieved.
366
+ # @param external_event_id [String] The id of the marketing event in the external event application
367
+ # @param external_account_id [String] The accountId that is associated with this marketing event in the external event application
395
368
  # @param [Hash] opts the optional parameters
396
- # @return [Array<(MarketingEventDefaultResponse, Integer, Hash)>] MarketingEventDefaultResponse data, response status code and response headers
397
- def create_with_http_info(marketing_event_create_request_params, opts = {})
398
- if @api_client.config.debugging
399
- @api_client.config.logger.debug 'Calling API: BasicApi.create ...'
400
- end
401
- # verify the required parameter 'marketing_event_create_request_params' is set
402
- if @api_client.config.client_side_validation && marketing_event_create_request_params.nil?
403
- fail ArgumentError, "Missing the required parameter 'marketing_event_create_request_params' when calling BasicApi.create"
404
- end
405
- # resource path
406
- local_var_path = '/marketing/v3/marketing-events/events'
407
-
408
- # query parameters
409
- query_params = opts[:query_params] || {}
410
-
411
- # header parameters
412
- header_params = opts[:header_params] || {}
413
- # HTTP header 'Accept' (if needed)
414
- header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
415
- # HTTP header 'Content-Type'
416
- content_type = @api_client.select_header_content_type(['application/json'])
417
- if !content_type.nil?
418
- header_params['Content-Type'] = content_type
419
- end
420
-
421
- # form parameters
422
- form_params = opts[:form_params] || {}
423
-
424
- # http body (model)
425
- post_body = opts[:debug_body] || @api_client.object_to_http_body(marketing_event_create_request_params)
426
-
427
- # return_type
428
- return_type = opts[:debug_return_type] || 'MarketingEventDefaultResponse'
429
-
430
- # auth_names
431
- auth_names = opts[:debug_auth_names] || ['oauth2']
432
-
433
- new_options = opts.merge(
434
- :operation => :"BasicApi.create",
435
- :header_params => header_params,
436
- :query_params => query_params,
437
- :form_params => form_params,
438
- :body => post_body,
439
- :auth_names => auth_names,
440
- :return_type => return_type
441
- )
442
-
443
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
369
+ # @return [Array<(MarketingEventPublicReadResponse, Integer, Hash)>] MarketingEventPublicReadResponse data, response status code and response headers
370
+ def get_details_with_http_info(external_event_id, external_account_id, opts = {})
444
371
  if @api_client.config.debugging
445
- @api_client.config.logger.debug "API called: BasicApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
372
+ @api_client.config.logger.debug 'Calling API: BasicApi.get_details ...'
446
373
  end
447
- return data, status_code, headers
448
- end
449
-
450
- # Search for marketing events
451
- # Search for marketing events that have an event id that starts with the query string
452
- # @param q [String] The id of the marketing event in the external event application
453
- # @param [Hash] opts the optional parameters
454
- # @return [CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging]
455
- def do_search(q, opts = {})
456
- data, _status_code, _headers = do_search_with_http_info(q, opts)
457
- data
458
- end
459
-
460
- # Search for marketing events
461
- # Search for marketing events that have an event id that starts with the query string
462
- # @param q [String] The id of the marketing event in the external event application
463
- # @param [Hash] opts the optional parameters
464
- # @return [Array<(CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging, Integer, Hash)>] CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging data, response status code and response headers
465
- def do_search_with_http_info(q, opts = {})
466
- if @api_client.config.debugging
467
- @api_client.config.logger.debug 'Calling API: BasicApi.do_search ...'
374
+ # verify the required parameter 'external_event_id' is set
375
+ if @api_client.config.client_side_validation && external_event_id.nil?
376
+ fail ArgumentError, "Missing the required parameter 'external_event_id' when calling BasicApi.get_details"
468
377
  end
469
- # verify the required parameter 'q' is set
470
- if @api_client.config.client_side_validation && q.nil?
471
- fail ArgumentError, "Missing the required parameter 'q' when calling BasicApi.do_search"
378
+ # verify the required parameter 'external_account_id' is set
379
+ if @api_client.config.client_side_validation && external_account_id.nil?
380
+ fail ArgumentError, "Missing the required parameter 'external_account_id' when calling BasicApi.get_details"
472
381
  end
473
382
  # resource path
474
- local_var_path = '/marketing/v3/marketing-events/events/search'
383
+ local_var_path = '/marketing/v3/marketing-events/events/{externalEventId}'.sub('{' + 'externalEventId' + '}', CGI.escape(external_event_id.to_s))
475
384
 
476
385
  # query parameters
477
386
  query_params = opts[:query_params] || {}
478
- query_params[:'q'] = q
387
+ query_params[:'externalAccountId'] = external_account_id
479
388
 
480
389
  # header parameters
481
390
  header_params = opts[:header_params] || {}
@@ -489,13 +398,13 @@ module Hubspot
489
398
  post_body = opts[:debug_body]
490
399
 
491
400
  # return_type
492
- return_type = opts[:debug_return_type] || 'CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging'
401
+ return_type = opts[:debug_return_type] || 'MarketingEventPublicReadResponse'
493
402
 
494
403
  # auth_names
495
404
  auth_names = opts[:debug_auth_names] || ['oauth2']
496
405
 
497
406
  new_options = opts.merge(
498
- :operation => :"BasicApi.do_search",
407
+ :operation => :"BasicApi.get_details",
499
408
  :header_params => header_params,
500
409
  :query_params => query_params,
501
410
  :form_params => form_params,
@@ -506,39 +415,45 @@ module Hubspot
506
415
 
507
416
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
508
417
  if @api_client.config.debugging
509
- @api_client.config.logger.debug "API called: BasicApi#do_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
418
+ @api_client.config.logger.debug "API called: BasicApi#get_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
510
419
  end
511
420
  return data, status_code, headers
512
421
  end
513
422
 
514
- # Get a marketing event
515
- # Returns the details of the Marketing Event with the specified id, if one exists.
516
- # @param external_event_id [String] The id of the marketing event to return
517
- # @param external_account_id [String] The account id associated with the marketing event
423
+ # Update Marketing Event by External IDs
424
+ # Updates the details of an existing Marketing Event identified by its externalAccountId, externalEventId if it exists. Only Marketing Events created by the same app can be updated.
425
+ # @param external_event_id [String] The id of the marketing event in the external event application
426
+ # @param external_account_id [String] The accountId that is associated with this marketing event in the external event application
427
+ # @param marketing_event_update_request_params [MarketingEventUpdateRequestParams]
518
428
  # @param [Hash] opts the optional parameters
519
- # @return [MarketingEventPublicReadResponse]
520
- def get_details(external_event_id, external_account_id, opts = {})
521
- data, _status_code, _headers = get_details_with_http_info(external_event_id, external_account_id, opts)
429
+ # @return [MarketingEventPublicDefaultResponse]
430
+ def update(external_event_id, external_account_id, marketing_event_update_request_params, opts = {})
431
+ data, _status_code, _headers = update_with_http_info(external_event_id, external_account_id, marketing_event_update_request_params, opts)
522
432
  data
523
433
  end
524
434
 
525
- # Get a marketing event
526
- # Returns the details of the Marketing Event with the specified id, if one exists.
527
- # @param external_event_id [String] The id of the marketing event to return
528
- # @param external_account_id [String] The account id associated with the marketing event
435
+ # Update Marketing Event by External IDs
436
+ # Updates the details of an existing Marketing Event identified by its externalAccountId, externalEventId if it exists. Only Marketing Events created by the same app can be updated.
437
+ # @param external_event_id [String] The id of the marketing event in the external event application
438
+ # @param external_account_id [String] The accountId that is associated with this marketing event in the external event application
439
+ # @param marketing_event_update_request_params [MarketingEventUpdateRequestParams]
529
440
  # @param [Hash] opts the optional parameters
530
- # @return [Array<(MarketingEventPublicReadResponse, Integer, Hash)>] MarketingEventPublicReadResponse data, response status code and response headers
531
- def get_details_with_http_info(external_event_id, external_account_id, opts = {})
441
+ # @return [Array<(MarketingEventPublicDefaultResponse, Integer, Hash)>] MarketingEventPublicDefaultResponse data, response status code and response headers
442
+ def update_with_http_info(external_event_id, external_account_id, marketing_event_update_request_params, opts = {})
532
443
  if @api_client.config.debugging
533
- @api_client.config.logger.debug 'Calling API: BasicApi.get_details ...'
444
+ @api_client.config.logger.debug 'Calling API: BasicApi.update ...'
534
445
  end
535
446
  # verify the required parameter 'external_event_id' is set
536
447
  if @api_client.config.client_side_validation && external_event_id.nil?
537
- fail ArgumentError, "Missing the required parameter 'external_event_id' when calling BasicApi.get_details"
448
+ fail ArgumentError, "Missing the required parameter 'external_event_id' when calling BasicApi.update"
538
449
  end
539
450
  # verify the required parameter 'external_account_id' is set
540
451
  if @api_client.config.client_side_validation && external_account_id.nil?
541
- fail ArgumentError, "Missing the required parameter 'external_account_id' when calling BasicApi.get_details"
452
+ fail ArgumentError, "Missing the required parameter 'external_account_id' when calling BasicApi.update"
453
+ end
454
+ # verify the required parameter 'marketing_event_update_request_params' is set
455
+ if @api_client.config.client_side_validation && marketing_event_update_request_params.nil?
456
+ fail ArgumentError, "Missing the required parameter 'marketing_event_update_request_params' when calling BasicApi.update"
542
457
  end
543
458
  # resource path
544
459
  local_var_path = '/marketing/v3/marketing-events/events/{externalEventId}'.sub('{' + 'externalEventId' + '}', CGI.escape(external_event_id.to_s))
@@ -551,21 +466,26 @@ module Hubspot
551
466
  header_params = opts[:header_params] || {}
552
467
  # HTTP header 'Accept' (if needed)
553
468
  header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
469
+ # HTTP header 'Content-Type'
470
+ content_type = @api_client.select_header_content_type(['application/json'])
471
+ if !content_type.nil?
472
+ header_params['Content-Type'] = content_type
473
+ end
554
474
 
555
475
  # form parameters
556
476
  form_params = opts[:form_params] || {}
557
477
 
558
478
  # http body (model)
559
- post_body = opts[:debug_body]
479
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(marketing_event_update_request_params)
560
480
 
561
481
  # return_type
562
- return_type = opts[:debug_return_type] || 'MarketingEventPublicReadResponse'
482
+ return_type = opts[:debug_return_type] || 'MarketingEventPublicDefaultResponse'
563
483
 
564
484
  # auth_names
565
485
  auth_names = opts[:debug_auth_names] || ['oauth2']
566
486
 
567
487
  new_options = opts.merge(
568
- :operation => :"BasicApi.get_details",
488
+ :operation => :"BasicApi.update",
569
489
  :header_params => header_params,
570
490
  :query_params => query_params,
571
491
  :form_params => form_params,
@@ -574,54 +494,47 @@ module Hubspot
574
494
  :return_type => return_type
575
495
  )
576
496
 
577
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
497
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
578
498
  if @api_client.config.debugging
579
- @api_client.config.logger.debug "API called: BasicApi#get_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
499
+ @api_client.config.logger.debug "API called: BasicApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
580
500
  end
581
501
  return data, status_code, headers
582
502
  end
583
503
 
584
- # Update a marketing event
585
- # Updates an existing Marketing Event with the specified id, if one exists.
586
- # @param external_event_id [String] The id of the marketing event to update
587
- # @param external_account_id [String] The account id associated with the marketing event
588
- # @param marketing_event_update_request_params [MarketingEventUpdateRequestParams]
504
+ # Update Marketing Event by objectId
505
+ # Updates the details of an existing Marketing Event identified by its objectId, if it exists.
506
+ # @param object_id [String] The internal ID of the marketing event in HubSpot
507
+ # @param marketing_event_public_update_request_v2 [MarketingEventPublicUpdateRequestV2]
589
508
  # @param [Hash] opts the optional parameters
590
- # @return [MarketingEventPublicDefaultResponse]
591
- def update(external_event_id, external_account_id, marketing_event_update_request_params, opts = {})
592
- data, _status_code, _headers = update_with_http_info(external_event_id, external_account_id, marketing_event_update_request_params, opts)
509
+ # @return [MarketingEventPublicDefaultResponseV2]
510
+ def update_by_object_id(object_id, marketing_event_public_update_request_v2, opts = {})
511
+ data, _status_code, _headers = update_by_object_id_with_http_info(object_id, marketing_event_public_update_request_v2, opts)
593
512
  data
594
513
  end
595
514
 
596
- # Update a marketing event
597
- # Updates an existing Marketing Event with the specified id, if one exists.
598
- # @param external_event_id [String] The id of the marketing event to update
599
- # @param external_account_id [String] The account id associated with the marketing event
600
- # @param marketing_event_update_request_params [MarketingEventUpdateRequestParams]
515
+ # Update Marketing Event by objectId
516
+ # Updates the details of an existing Marketing Event identified by its objectId, if it exists.
517
+ # @param object_id [String] The internal ID of the marketing event in HubSpot
518
+ # @param marketing_event_public_update_request_v2 [MarketingEventPublicUpdateRequestV2]
601
519
  # @param [Hash] opts the optional parameters
602
- # @return [Array<(MarketingEventPublicDefaultResponse, Integer, Hash)>] MarketingEventPublicDefaultResponse data, response status code and response headers
603
- def update_with_http_info(external_event_id, external_account_id, marketing_event_update_request_params, opts = {})
520
+ # @return [Array<(MarketingEventPublicDefaultResponseV2, Integer, Hash)>] MarketingEventPublicDefaultResponseV2 data, response status code and response headers
521
+ def update_by_object_id_with_http_info(object_id, marketing_event_public_update_request_v2, opts = {})
604
522
  if @api_client.config.debugging
605
- @api_client.config.logger.debug 'Calling API: BasicApi.update ...'
606
- end
607
- # verify the required parameter 'external_event_id' is set
608
- if @api_client.config.client_side_validation && external_event_id.nil?
609
- fail ArgumentError, "Missing the required parameter 'external_event_id' when calling BasicApi.update"
523
+ @api_client.config.logger.debug 'Calling API: BasicApi.update_by_object_id ...'
610
524
  end
611
- # verify the required parameter 'external_account_id' is set
612
- if @api_client.config.client_side_validation && external_account_id.nil?
613
- fail ArgumentError, "Missing the required parameter 'external_account_id' when calling BasicApi.update"
525
+ # verify the required parameter 'object_id' is set
526
+ if @api_client.config.client_side_validation && object_id.nil?
527
+ fail ArgumentError, "Missing the required parameter 'object_id' when calling BasicApi.update_by_object_id"
614
528
  end
615
- # verify the required parameter 'marketing_event_update_request_params' is set
616
- if @api_client.config.client_side_validation && marketing_event_update_request_params.nil?
617
- fail ArgumentError, "Missing the required parameter 'marketing_event_update_request_params' when calling BasicApi.update"
529
+ # verify the required parameter 'marketing_event_public_update_request_v2' is set
530
+ if @api_client.config.client_side_validation && marketing_event_public_update_request_v2.nil?
531
+ fail ArgumentError, "Missing the required parameter 'marketing_event_public_update_request_v2' when calling BasicApi.update_by_object_id"
618
532
  end
619
533
  # resource path
620
- local_var_path = '/marketing/v3/marketing-events/events/{externalEventId}'.sub('{' + 'externalEventId' + '}', CGI.escape(external_event_id.to_s))
534
+ local_var_path = '/marketing/v3/marketing-events/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
621
535
 
622
536
  # query parameters
623
537
  query_params = opts[:query_params] || {}
624
- query_params[:'externalAccountId'] = external_account_id
625
538
 
626
539
  # header parameters
627
540
  header_params = opts[:header_params] || {}
@@ -637,16 +550,16 @@ module Hubspot
637
550
  form_params = opts[:form_params] || {}
638
551
 
639
552
  # http body (model)
640
- post_body = opts[:debug_body] || @api_client.object_to_http_body(marketing_event_update_request_params)
553
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(marketing_event_public_update_request_v2)
641
554
 
642
555
  # return_type
643
- return_type = opts[:debug_return_type] || 'MarketingEventPublicDefaultResponse'
556
+ return_type = opts[:debug_return_type] || 'MarketingEventPublicDefaultResponseV2'
644
557
 
645
558
  # auth_names
646
559
  auth_names = opts[:debug_auth_names] || ['oauth2']
647
560
 
648
561
  new_options = opts.merge(
649
- :operation => :"BasicApi.update",
562
+ :operation => :"BasicApi.update_by_object_id",
650
563
  :header_params => header_params,
651
564
  :query_params => query_params,
652
565
  :form_params => form_params,
@@ -657,14 +570,14 @@ module Hubspot
657
570
 
658
571
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
659
572
  if @api_client.config.debugging
660
- @api_client.config.logger.debug "API called: BasicApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
573
+ @api_client.config.logger.debug "API called: BasicApi#update_by_object_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
661
574
  end
662
575
  return data, status_code, headers
663
576
  end
664
577
 
665
578
  # Create or update a marketing event
666
579
  # Upserts a marketing event If there is an existing marketing event with the specified ID, it will be updated; otherwise a new event will be created.
667
- # @param external_event_id [String] The ID of the marketing event to upsert
580
+ # @param external_event_id [String] The id of the marketing event in the external event application
668
581
  # @param marketing_event_create_request_params [MarketingEventCreateRequestParams]
669
582
  # @param [Hash] opts the optional parameters
670
583
  # @return [MarketingEventPublicDefaultResponse]
@@ -675,7 +588,7 @@ module Hubspot
675
588
 
676
589
  # Create or update a marketing event
677
590
  # Upserts a marketing event If there is an existing marketing event with the specified ID, it will be updated; otherwise a new event will be created.
678
- # @param external_event_id [String] The ID of the marketing event to upsert
591
+ # @param external_event_id [String] The id of the marketing event in the external event application
679
592
  # @param marketing_event_create_request_params [MarketingEventCreateRequestParams]
680
593
  # @param [Hash] opts the optional parameters
681
594
  # @return [Array<(MarketingEventPublicDefaultResponse, Integer, Hash)>] MarketingEventPublicDefaultResponse data, response status code and response headers