hubspot-api-client 18.0.0 → 19.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (844) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +218 -53
  3. data/Gemfile.lock +1 -1
  4. data/lib/hubspot/codegen/cms/blogs/blog_posts/api/blog_posts_api.rb +2 -2
  5. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/attach_to_lang_primary_request_v_next.rb +34 -0
  6. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/blog_post.rb +21 -21
  7. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/breakpoint_styles.rb +258 -0
  8. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/content_language_variation.rb +15 -1
  9. data/lib/hubspot/codegen/cms/blogs/blog_posts/models/styles.rb +12 -1
  10. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +52 -31
  11. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +36 -36
  12. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +55 -40
  13. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
  14. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  15. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  16. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_batch_clone_request.rb +230 -0
  17. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_batch_update_request.rb +1 -1
  18. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_request.rb +1 -1
  19. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/models/bounded_next_page.rb +237 -0
  23. data/lib/hubspot/codegen/cms/hubdb/models/bounded_paging.rb +223 -0
  24. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +61 -7
  26. data/lib/hubspot/codegen/cms/hubdb/models/column_request.rb +3 -3
  27. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  30. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  31. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +16 -2
  32. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_batch_clone_request.rb +237 -0
  33. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +1 -1
  34. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_batch_update_request.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_request.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +2 -2
  37. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_request.rb +2 -2
  38. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  39. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  40. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +69 -5
  41. data/lib/hubspot/codegen/cms/hubdb/models/paging.rb +232 -0
  42. data/lib/hubspot/codegen/cms/hubdb/models/previous_page.rb +237 -0
  43. data/lib/hubspot/codegen/{crm/lists/models/public_unified_events_in_list_filter.rb → cms/hubdb/models/random_access_collection_response_with_total_hub_db_table_row_v3.rb} +54 -61
  44. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  45. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  46. data/lib/hubspot/codegen/cms/hubdb/models/streaming_collection_response_with_total_hub_db_table_row_v3.rb +303 -0
  47. data/lib/hubspot/codegen/cms/hubdb/models/unified_collection_response_with_total_base_hub_db_table_row_v3.rb +108 -0
  48. data/lib/hubspot/codegen/cms/source_code/api/content_api.rb +5 -5
  49. data/lib/hubspot/codegen/cms/source_code/api/extract_api.rb +89 -26
  50. data/lib/hubspot/codegen/cms/source_code/api/metadata_api.rb +1 -1
  51. data/lib/hubspot/codegen/cms/source_code/api/validation_api.rb +3 -3
  52. data/lib/hubspot/codegen/cms/source_code/api_client.rb +1 -1
  53. data/lib/hubspot/codegen/cms/source_code/api_error.rb +1 -1
  54. data/lib/hubspot/codegen/cms/source_code/configuration.rb +1 -1
  55. data/lib/hubspot/codegen/cms/source_code/models/action_response.rb +1 -1
  56. data/lib/hubspot/codegen/cms/source_code/models/asset_file_metadata.rb +1 -1
  57. data/lib/hubspot/codegen/cms/source_code/models/error.rb +1 -1
  58. data/lib/hubspot/codegen/cms/source_code/models/error_detail.rb +1 -1
  59. data/lib/hubspot/codegen/cms/source_code/models/file_extract_request.rb +1 -1
  60. data/lib/hubspot/codegen/cms/source_code/models/task_locator.rb +1 -1
  61. data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +2 -2
  62. data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +2 -2
  63. data/lib/hubspot/codegen/communication_preferences/api_client.rb +2 -2
  64. data/lib/hubspot/codegen/communication_preferences/api_error.rb +2 -2
  65. data/lib/hubspot/codegen/communication_preferences/configuration.rb +2 -2
  66. data/lib/hubspot/codegen/communication_preferences/models/error.rb +2 -2
  67. data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +2 -2
  68. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +2 -2
  69. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +2 -2
  70. data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +2 -2
  71. data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +12 -3
  72. data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +2 -2
  73. data/lib/hubspot/codegen/conversations/visitor_identification/api/generate_api.rb +1 -1
  74. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +6 -6
  75. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +70 -2
  76. data/lib/hubspot/codegen/crm/companies/api/{public_object_api.rb → merge_api.rb} +5 -5
  77. data/lib/hubspot/codegen/crm/companies/models/association_spec.rb +0 -10
  78. data/lib/hubspot/codegen/crm/companies/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_upsert.rb} +15 -22
  79. data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_upsert_object.rb +326 -0
  80. data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
  81. data/lib/hubspot/codegen/crm/companies/models/public_associations_for_object.rb +0 -10
  82. data/lib/hubspot/codegen/crm/companies/models/public_object_id.rb +0 -5
  83. data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +0 -25
  84. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +10 -1
  85. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input_upsert.rb +262 -0
  86. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +10 -1
  87. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input_for_create.rb +10 -6
  88. data/lib/hubspot/codegen/crm/companies/models/simple_public_upsert_object.rb +315 -0
  89. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +2 -2
  90. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +70 -2
  91. data/lib/hubspot/codegen/crm/contacts/api/{public_object_api.rb → merge_api.rb} +5 -5
  92. data/lib/hubspot/codegen/crm/contacts/models/association_spec.rb +0 -10
  93. data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
  94. data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_upsert_object.rb +326 -0
  95. data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
  96. data/lib/hubspot/codegen/crm/contacts/models/public_associations_for_object.rb +0 -10
  97. data/lib/hubspot/codegen/crm/contacts/models/public_object_id.rb +0 -5
  98. data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +0 -25
  99. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +10 -1
  100. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input_upsert.rb +262 -0
  101. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +10 -1
  102. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input_for_create.rb +10 -6
  103. data/lib/hubspot/codegen/crm/contacts/models/simple_public_upsert_object.rb +315 -0
  104. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +6 -6
  105. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +70 -2
  106. data/lib/hubspot/codegen/crm/deals/api/{public_object_api.rb → merge_api.rb} +7 -7
  107. data/lib/hubspot/codegen/crm/deals/models/association_spec.rb +0 -10
  108. data/lib/hubspot/codegen/crm/deals/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_upsert.rb} +15 -22
  109. data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_upsert_object.rb +326 -0
  110. data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
  111. data/lib/hubspot/codegen/crm/deals/models/public_associations_for_object.rb +0 -10
  112. data/lib/hubspot/codegen/crm/deals/models/public_object_id.rb +0 -5
  113. data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +0 -25
  114. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +10 -1
  115. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input_upsert.rb +262 -0
  116. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +10 -1
  117. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input_for_create.rb +10 -6
  118. data/lib/hubspot/codegen/crm/deals/models/simple_public_upsert_object.rb +315 -0
  119. data/lib/hubspot/codegen/crm/extensions/calling/api/recording_settings_api.rb +88 -8
  120. data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +14 -14
  121. data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +2 -2
  122. data/lib/hubspot/codegen/crm/extensions/calling/api_error.rb +2 -2
  123. data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +9 -2
  124. data/lib/hubspot/codegen/crm/extensions/calling/models/error.rb +2 -2
  125. data/lib/hubspot/codegen/crm/extensions/calling/models/error_detail.rb +2 -2
  126. data/lib/hubspot/codegen/crm/extensions/calling/models/mark_recording_as_ready_request.rb +230 -0
  127. data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_patch_request.rb +2 -2
  128. data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_request.rb +2 -2
  129. data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_response.rb +2 -2
  130. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +15 -6
  131. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +15 -6
  132. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +20 -6
  133. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +70 -2
  134. data/lib/hubspot/codegen/crm/line_items/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_upsert.rb} +15 -22
  135. data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_upsert_object.rb +326 -0
  136. data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
  137. data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +0 -25
  138. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +5 -0
  139. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +15 -1
  140. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input_upsert.rb +262 -0
  141. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +15 -1
  142. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input_for_create.rb +15 -1
  143. data/lib/hubspot/codegen/crm/line_items/models/simple_public_upsert_object.rb +315 -0
  144. data/lib/hubspot/codegen/crm/lists/api/folders_api.rb +420 -0
  145. data/lib/hubspot/codegen/crm/lists/api/lists_api.rb +15 -15
  146. data/lib/hubspot/codegen/crm/lists/api/mapping_api.rb +154 -0
  147. data/lib/hubspot/codegen/crm/lists/api/memberships_api.rb +169 -28
  148. data/lib/hubspot/codegen/crm/lists/api_client.rb +1 -1
  149. data/lib/hubspot/codegen/crm/lists/api_error.rb +1 -1
  150. data/lib/hubspot/codegen/crm/lists/configuration.rb +1 -1
  151. data/lib/hubspot/codegen/crm/lists/models/{collection_response_long.rb → api_collection_response_join_time_and_record_id.rb} +15 -7
  152. data/lib/hubspot/codegen/crm/lists/models/api_collection_response_record_list_membership_no_paging.rb +239 -0
  153. data/lib/hubspot/codegen/crm/lists/models/error.rb +1 -1
  154. data/lib/hubspot/codegen/crm/lists/models/error_detail.rb +1 -1
  155. data/lib/hubspot/codegen/crm/{products/models/public_merge_input.rb → lists/models/join_time_and_record_id.rb} +25 -25
  156. data/lib/hubspot/codegen/crm/lists/models/list_create_request.rb +14 -2
  157. data/lib/hubspot/codegen/crm/lists/models/list_create_response.rb +1 -1
  158. data/lib/hubspot/codegen/crm/lists/models/list_fetch_response.rb +1 -1
  159. data/lib/hubspot/codegen/crm/lists/models/list_filter_update_request.rb +1 -1
  160. data/lib/hubspot/codegen/crm/lists/models/list_folder_create_request.rb +239 -0
  161. data/lib/hubspot/codegen/crm/{products/models/public_gdpr_delete_input.rb → lists/models/list_folder_create_response.rb} +16 -25
  162. data/lib/hubspot/codegen/crm/{tickets/models/public_gdpr_delete_input.rb → lists/models/list_folder_fetch_response.rb} +16 -25
  163. data/lib/hubspot/codegen/crm/lists/models/list_move_request.rb +244 -0
  164. data/lib/hubspot/codegen/crm/lists/models/list_search_request.rb +38 -15
  165. data/lib/hubspot/codegen/crm/lists/models/list_search_response.rb +1 -1
  166. data/lib/hubspot/codegen/crm/lists/models/list_update_response.rb +1 -1
  167. data/lib/hubspot/codegen/crm/lists/models/lists_by_id_response.rb +1 -1
  168. data/lib/hubspot/codegen/crm/lists/models/membership_change_request.rb +3 -3
  169. data/lib/hubspot/codegen/crm/lists/models/memberships_update_response.rb +4 -4
  170. data/lib/hubspot/codegen/crm/lists/models/next_page.rb +1 -1
  171. data/lib/hubspot/codegen/crm/lists/models/paging.rb +1 -1
  172. data/lib/hubspot/codegen/crm/lists/models/previous_page.rb +1 -1
  173. data/lib/hubspot/codegen/crm/lists/models/public_absolute_comparative_timestamp_refine_by.rb +16 -16
  174. data/lib/hubspot/codegen/crm/lists/models/public_absolute_ranged_timestamp_refine_by.rb +28 -28
  175. data/lib/hubspot/codegen/crm/lists/models/public_ads_search_filter.rb +39 -39
  176. data/lib/hubspot/codegen/crm/lists/models/public_ads_time_filter.rb +19 -19
  177. data/lib/hubspot/codegen/crm/lists/models/public_all_history_refine_by.rb +1 -1
  178. data/lib/hubspot/codegen/crm/lists/models/public_all_property_types_operation.rb +19 -19
  179. data/lib/hubspot/codegen/crm/lists/models/public_and_filter_branch.rb +19 -19
  180. data/lib/hubspot/codegen/crm/lists/models/public_association_filter_branch.rb +36 -36
  181. data/lib/hubspot/codegen/crm/lists/models/public_association_in_list_filter.rb +55 -55
  182. data/lib/hubspot/codegen/crm/{quotes/models/public_merge_input.rb → lists/models/public_batch_migration_mapping.rb} +30 -25
  183. data/lib/hubspot/codegen/crm/lists/models/public_bool_property_operation.rb +33 -33
  184. data/lib/hubspot/codegen/crm/lists/models/public_calendar_date_property_operation.rb +54 -54
  185. data/lib/hubspot/codegen/crm/lists/models/public_campaign_influenced_filter.rb +19 -19
  186. data/lib/hubspot/codegen/crm/lists/models/public_communication_subscription_filter.rb +31 -31
  187. data/lib/hubspot/codegen/crm/lists/models/public_comparative_date_property_operation.rb +35 -35
  188. data/lib/hubspot/codegen/crm/lists/models/public_comparative_property_updated_operation.rb +35 -35
  189. data/lib/hubspot/codegen/crm/lists/models/public_constant_filter.rb +21 -21
  190. data/lib/hubspot/codegen/crm/lists/models/public_cta_analytics_filter.rb +28 -28
  191. data/lib/hubspot/codegen/crm/lists/models/public_date_point.rb +56 -56
  192. data/lib/hubspot/codegen/crm/lists/models/public_date_property_operation.rb +45 -45
  193. data/lib/hubspot/codegen/crm/lists/models/public_date_time_property_operation.rb +30 -30
  194. data/lib/hubspot/codegen/crm/lists/models/public_email_event_filter.rb +44 -44
  195. data/lib/hubspot/codegen/crm/lists/models/public_email_subscription_filter.rb +27 -27
  196. data/lib/hubspot/codegen/crm/lists/models/public_enumeration_property_operation.rb +35 -35
  197. data/lib/hubspot/codegen/crm/lists/models/public_event_analytics_filter.rb +28 -28
  198. data/lib/hubspot/codegen/crm/lists/models/public_event_filter_metadata.rb +2 -2
  199. data/lib/hubspot/codegen/crm/lists/models/public_fiscal_quarter_reference.rb +42 -42
  200. data/lib/hubspot/codegen/crm/lists/models/public_fiscal_year_reference.rb +42 -42
  201. data/lib/hubspot/codegen/crm/lists/models/public_form_submission_filter.rb +20 -20
  202. data/lib/hubspot/codegen/crm/lists/models/{public_event_analytics_filter_coalescing_refine_by.rb → public_form_submission_filter_coalescing_refine_by.rb} +1 -1
  203. data/lib/hubspot/codegen/crm/lists/models/public_form_submission_on_page_filter.rb +37 -37
  204. data/lib/hubspot/codegen/crm/lists/models/public_in_list_filter.rb +19 -19
  205. data/lib/hubspot/codegen/crm/lists/models/public_in_list_filter_metadata.rb +1 -1
  206. data/lib/hubspot/codegen/crm/lists/models/public_index_offset.rb +44 -44
  207. data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point.rb +30 -30
  208. data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point_index_reference.rb +1 -1
  209. data/lib/hubspot/codegen/crm/lists/models/public_integration_event_filter.rb +22 -22
  210. data/lib/hubspot/codegen/crm/lists/models/public_list_folder.rb +327 -0
  211. data/lib/hubspot/codegen/crm/lists/models/public_migration_mapping.rb +244 -0
  212. data/lib/hubspot/codegen/crm/lists/models/public_month_reference.rb +29 -29
  213. data/lib/hubspot/codegen/crm/lists/models/public_multi_string_property_operation.rb +35 -35
  214. data/lib/hubspot/codegen/crm/lists/models/public_not_all_filter_branch.rb +16 -16
  215. data/lib/hubspot/codegen/crm/lists/models/public_not_any_filter_branch.rb +16 -16
  216. data/lib/hubspot/codegen/crm/lists/models/public_now_reference.rb +23 -23
  217. data/lib/hubspot/codegen/crm/lists/models/public_num_associations_filter.rb +23 -23
  218. data/lib/hubspot/codegen/crm/lists/models/public_num_occurrences_refine_by.rb +14 -14
  219. data/lib/hubspot/codegen/crm/lists/models/public_number_property_operation.rb +33 -33
  220. data/lib/hubspot/codegen/crm/lists/models/public_object_list.rb +14 -5
  221. data/lib/hubspot/codegen/crm/lists/models/public_object_list_search_result.rb +4 -4
  222. data/lib/hubspot/codegen/crm/lists/models/public_or_filter_branch.rb +19 -19
  223. data/lib/hubspot/codegen/crm/lists/models/public_page_view_analytics_filter.rb +37 -37
  224. data/lib/hubspot/codegen/crm/lists/models/public_privacy_analytics_filter.rb +16 -16
  225. data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch.rb +42 -42
  226. data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.rb +1 -1
  227. data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filters_inner.rb +1 -2
  228. data/lib/hubspot/codegen/crm/lists/models/public_property_association_in_list_filter.rb +39 -39
  229. data/lib/hubspot/codegen/crm/lists/models/public_property_filter.rb +17 -17
  230. data/lib/hubspot/codegen/crm/lists/models/public_property_referenced_time.rb +25 -25
  231. data/lib/hubspot/codegen/crm/lists/models/public_quarter_reference.rb +42 -42
  232. data/lib/hubspot/codegen/crm/lists/models/public_ranged_date_property_operation.rb +42 -42
  233. data/lib/hubspot/codegen/crm/lists/models/public_ranged_number_property_operation.rb +36 -36
  234. data/lib/hubspot/codegen/crm/lists/models/public_ranged_time_operation.rb +67 -67
  235. data/lib/hubspot/codegen/crm/lists/models/public_relative_comparative_timestamp_refine_by.rb +22 -22
  236. data/lib/hubspot/codegen/crm/lists/models/public_relative_ranged_timestamp_refine_by.rb +31 -31
  237. data/lib/hubspot/codegen/crm/lists/models/public_restricted_filter_branch.rb +16 -16
  238. data/lib/hubspot/codegen/crm/lists/models/public_rolling_date_range_property_operation.rb +36 -36
  239. data/lib/hubspot/codegen/crm/lists/models/public_rolling_property_updated_operation.rb +33 -33
  240. data/lib/hubspot/codegen/crm/lists/models/public_set_occurrences_refine_by.rb +1 -1
  241. data/lib/hubspot/codegen/crm/lists/models/public_string_property_operation.rb +33 -33
  242. data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_filter.rb +16 -16
  243. data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_value_filter.rb +26 -26
  244. data/lib/hubspot/codegen/crm/lists/models/{public_property_filter_operation.rb → public_survey_monkey_value_filter_value_comparison.rb} +1 -1
  245. data/lib/hubspot/codegen/crm/lists/models/public_time_offset.rb +19 -19
  246. data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation.rb +47 -47
  247. data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation_time_point.rb +1 -1
  248. data/lib/hubspot/codegen/crm/lists/models/public_today_reference.rb +23 -23
  249. data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter.rb +31 -31
  250. data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter_branch.rb +41 -32
  251. data/lib/hubspot/codegen/crm/lists/models/public_webinar_filter.rb +14 -14
  252. data/lib/hubspot/codegen/crm/lists/models/public_week_reference.rb +48 -48
  253. data/lib/hubspot/codegen/crm/lists/models/public_year_reference.rb +42 -42
  254. data/lib/hubspot/codegen/crm/lists/models/record_list_membership.rb +270 -0
  255. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +7 -7
  256. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +75 -1
  257. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +1 -1
  258. data/lib/hubspot/codegen/crm/objects/api_client.rb +1 -1
  259. data/lib/hubspot/codegen/crm/objects/api_error.rb +1 -1
  260. data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +70 -2
  261. data/lib/hubspot/codegen/crm/objects/calls/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  262. data/lib/hubspot/codegen/crm/{extensions/accounting/models/result_id_accounting_response.rb → objects/calls/models/batch_response_simple_public_upsert_object.rb} +85 -38
  263. data/lib/hubspot/codegen/crm/objects/calls/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  264. data/lib/hubspot/codegen/crm/objects/calls/models/public_object_search_request.rb +0 -25
  265. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input.rb +10 -1
  266. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input_upsert.rb +264 -0
  267. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input.rb +10 -1
  268. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input_for_create.rb +10 -1
  269. data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_upsert_object.rb +317 -0
  270. data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +70 -2
  271. data/lib/hubspot/codegen/crm/objects/communications/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  272. data/lib/hubspot/codegen/crm/objects/communications/models/batch_response_simple_public_upsert_object.rb +328 -0
  273. data/lib/hubspot/codegen/crm/objects/communications/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  274. data/lib/hubspot/codegen/crm/objects/communications/models/public_object_search_request.rb +0 -25
  275. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input.rb +10 -1
  276. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_upsert.rb +264 -0
  277. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input.rb +10 -1
  278. data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb +10 -1
  279. data/lib/hubspot/codegen/crm/{extensions/accounting/models/updated_product.rb → objects/communications/models/simple_public_upsert_object.rb} +67 -88
  280. data/lib/hubspot/codegen/crm/objects/configuration.rb +1 -1
  281. data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +70 -2
  282. data/lib/hubspot/codegen/crm/objects/emails/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  283. data/lib/hubspot/codegen/crm/{extensions/accounting/models/customer_search_response_external.rb → objects/emails/models/batch_response_simple_public_upsert_object.rb} +84 -39
  284. data/lib/hubspot/codegen/crm/objects/emails/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  285. data/lib/hubspot/codegen/crm/objects/emails/models/public_object_search_request.rb +0 -25
  286. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input.rb +10 -1
  287. data/lib/hubspot/codegen/crm/objects/emails/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +38 -13
  288. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input.rb +10 -1
  289. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input_for_create.rb +10 -1
  290. data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_upsert_object.rb +317 -0
  291. data/lib/hubspot/codegen/crm/objects/goals/api/basic_api.rb +4 -212
  292. data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +1 -199
  293. data/lib/hubspot/codegen/crm/objects/goals/api/search_api.rb +1 -1
  294. data/lib/hubspot/codegen/crm/objects/goals/models/public_object_search_request.rb +0 -25
  295. data/lib/hubspot/codegen/crm/objects/leads/api/basic_api.rb +391 -0
  296. data/lib/hubspot/codegen/crm/objects/leads/api/batch_api.rb +363 -0
  297. data/lib/hubspot/codegen/crm/objects/{postal_mail/api/public_object_api.rb → leads/api/search_api.rb} +19 -21
  298. data/lib/hubspot/codegen/crm/{extensions/accounting → objects/leads}/api_client.rb +5 -5
  299. data/lib/hubspot/codegen/crm/{extensions/accounting → objects/leads}/api_error.rb +4 -4
  300. data/lib/hubspot/codegen/crm/{extensions/accounting → objects/leads}/configuration.rb +4 -4
  301. data/lib/hubspot/codegen/crm/objects/leads/models/associated_id.rb +244 -0
  302. data/lib/hubspot/codegen/crm/objects/{goals → leads}/models/association_spec.rb +5 -5
  303. data/lib/hubspot/codegen/crm/objects/{goals → leads}/models/batch_input_simple_public_object_batch_input.rb +5 -5
  304. data/lib/hubspot/codegen/crm/objects/leads/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  305. data/lib/hubspot/codegen/crm/objects/{goals → leads}/models/batch_input_simple_public_object_id.rb +5 -5
  306. data/lib/hubspot/codegen/crm/objects/{goals → leads}/models/batch_input_simple_public_object_input_for_create.rb +5 -5
  307. data/lib/hubspot/codegen/crm/objects/leads/models/batch_read_input_simple_public_object_id.rb +273 -0
  308. data/lib/hubspot/codegen/crm/{extensions/accounting/models/action_response.rb → objects/leads/models/batch_response_simple_public_object.rb} +49 -33
  309. data/lib/hubspot/codegen/crm/{extensions/accounting/models/exchange_rate_response.rb → objects/leads/models/batch_response_simple_public_object_with_errors.rb} +95 -58
  310. data/lib/hubspot/codegen/crm/objects/leads/models/batch_response_simple_public_upsert_object.rb +328 -0
  311. data/lib/hubspot/codegen/crm/objects/leads/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  312. data/lib/hubspot/codegen/crm/objects/{communications/models/public_gdpr_delete_input.rb → leads/models/collection_response_associated_id.rb} +24 -22
  313. data/lib/hubspot/codegen/crm/objects/{calls/models/public_gdpr_delete_input.rb → leads/models/collection_response_simple_public_object_with_associations_forward_paging.rb} +24 -22
  314. data/lib/hubspot/codegen/crm/objects/{calls/models/public_merge_input.rb → leads/models/collection_response_with_total_simple_public_object_forward_paging.rb} +36 -25
  315. data/lib/hubspot/codegen/crm/{extensions/accounting → objects/leads}/models/error.rb +57 -57
  316. data/lib/hubspot/codegen/crm/{extensions/accounting → objects/leads}/models/error_detail.rb +35 -35
  317. data/lib/hubspot/codegen/crm/{extensions/accounting/models/invoice_pdf_response.rb → objects/leads/models/filter.rb} +65 -54
  318. data/lib/hubspot/codegen/crm/objects/leads/models/filter_group.rb +232 -0
  319. data/lib/hubspot/codegen/crm/objects/leads/models/forward_paging.rb +225 -0
  320. data/lib/hubspot/codegen/crm/objects/leads/models/next_page.rb +239 -0
  321. data/lib/hubspot/codegen/crm/objects/leads/models/paging.rb +234 -0
  322. data/lib/hubspot/codegen/crm/objects/leads/models/previous_page.rb +239 -0
  323. data/lib/hubspot/codegen/crm/objects/{goals → leads}/models/public_associations_for_object.rb +5 -5
  324. data/lib/hubspot/codegen/crm/objects/{goals → leads}/models/public_object_id.rb +5 -5
  325. data/lib/hubspot/codegen/crm/objects/{communications/models/public_merge_input.rb → leads/models/public_object_search_request.rb} +61 -29
  326. data/lib/hubspot/codegen/crm/{extensions/accounting/models/accounting_extension_customer.rb → objects/leads/models/simple_public_object.rb} +68 -41
  327. data/lib/hubspot/codegen/crm/objects/{goals → leads}/models/simple_public_object_batch_input.rb +15 -6
  328. data/lib/hubspot/codegen/crm/objects/{goals/models/public_gdpr_delete_input.rb → leads/models/simple_public_object_batch_input_upsert.rb} +41 -16
  329. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_id.rb +230 -0
  330. data/lib/hubspot/codegen/crm/objects/{goals → leads}/models/simple_public_object_input.rb +15 -6
  331. data/lib/hubspot/codegen/crm/objects/{goals → leads}/models/simple_public_object_input_for_create.rb +15 -6
  332. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_with_associations.rb +314 -0
  333. data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_upsert_object.rb +317 -0
  334. data/lib/hubspot/codegen/crm/objects/leads/models/standard_error.rb +324 -0
  335. data/lib/hubspot/codegen/crm/objects/leads/models/value_with_timestamp.rb +285 -0
  336. data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +70 -2
  337. data/lib/hubspot/codegen/crm/objects/meetings/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  338. data/lib/hubspot/codegen/crm/objects/meetings/models/batch_response_simple_public_upsert_object.rb +328 -0
  339. data/lib/hubspot/codegen/crm/objects/meetings/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  340. data/lib/hubspot/codegen/crm/objects/meetings/models/public_object_search_request.rb +0 -25
  341. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input.rb +10 -1
  342. data/lib/hubspot/codegen/crm/objects/meetings/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +38 -13
  343. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input.rb +10 -1
  344. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input_for_create.rb +10 -1
  345. data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_upsert_object.rb +317 -0
  346. data/lib/hubspot/codegen/crm/objects/models/associated_id.rb +1 -1
  347. data/lib/hubspot/codegen/crm/objects/models/association_spec.rb +1 -1
  348. data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +1 -1
  349. data/lib/hubspot/codegen/crm/objects/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_upsert.rb} +16 -23
  350. data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +1 -1
  351. data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_input_for_create.rb +1 -1
  352. data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +2 -1
  353. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +1 -1
  354. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +1 -1
  355. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object.rb +326 -0
  356. data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
  357. data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +1 -1
  358. data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_with_associations_forward_paging.rb +1 -1
  359. data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object_forward_paging.rb +1 -1
  360. data/lib/hubspot/codegen/crm/objects/models/error.rb +1 -1
  361. data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +1 -1
  362. data/lib/hubspot/codegen/crm/objects/models/filter.rb +1 -1
  363. data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +1 -1
  364. data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +1 -1
  365. data/lib/hubspot/codegen/crm/objects/models/next_page.rb +1 -1
  366. data/lib/hubspot/codegen/crm/objects/models/paging.rb +1 -1
  367. data/lib/hubspot/codegen/crm/objects/models/previous_page.rb +1 -1
  368. data/lib/hubspot/codegen/crm/objects/models/public_associations_for_object.rb +1 -1
  369. data/lib/hubspot/codegen/crm/objects/models/public_object_id.rb +1 -1
  370. data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +1 -26
  371. data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +1 -1
  372. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +12 -3
  373. data/lib/hubspot/codegen/crm/objects/models/{public_merge_input.rb → simple_public_object_batch_input_upsert.rb} +44 -23
  374. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +1 -1
  375. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +11 -2
  376. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +11 -2
  377. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +1 -1
  378. data/lib/hubspot/codegen/crm/objects/models/simple_public_upsert_object.rb +315 -0
  379. data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +1 -1
  380. data/lib/hubspot/codegen/crm/objects/models/value_with_timestamp.rb +1 -1
  381. data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +70 -2
  382. data/lib/hubspot/codegen/crm/objects/notes/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  383. data/lib/hubspot/codegen/crm/objects/notes/models/batch_response_simple_public_upsert_object.rb +328 -0
  384. data/lib/hubspot/codegen/crm/objects/notes/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  385. data/lib/hubspot/codegen/crm/objects/notes/models/public_object_search_request.rb +0 -25
  386. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input.rb +10 -1
  387. data/lib/hubspot/codegen/crm/objects/notes/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +38 -13
  388. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input.rb +10 -1
  389. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input_for_create.rb +10 -1
  390. data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_upsert_object.rb +317 -0
  391. data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +70 -2
  392. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  393. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_response_simple_public_upsert_object.rb +328 -0
  394. data/lib/hubspot/codegen/crm/{extensions/accounting/models/accounting_extension_invoice.rb → objects/postal_mail/models/batch_response_simple_public_upsert_object_with_errors.rb} +68 -91
  395. data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_object_search_request.rb +0 -25
  396. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input.rb +10 -1
  397. data/lib/hubspot/codegen/crm/objects/postal_mail/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +38 -13
  398. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input.rb +10 -1
  399. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input_for_create.rb +10 -1
  400. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_upsert_object.rb +317 -0
  401. data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +70 -2
  402. data/lib/hubspot/codegen/crm/objects/tasks/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  403. data/lib/hubspot/codegen/crm/objects/tasks/models/batch_response_simple_public_upsert_object.rb +328 -0
  404. data/lib/hubspot/codegen/crm/objects/tasks/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  405. data/lib/hubspot/codegen/crm/objects/tasks/models/public_object_search_request.rb +0 -25
  406. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input.rb +10 -1
  407. data/lib/hubspot/codegen/crm/objects/tasks/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +38 -13
  408. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input.rb +10 -1
  409. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input_for_create.rb +10 -1
  410. data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_upsert_object.rb +317 -0
  411. data/lib/hubspot/codegen/crm/objects/taxes/api/batch_api.rb +70 -2
  412. data/lib/hubspot/codegen/crm/objects/taxes/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
  413. data/lib/hubspot/codegen/crm/objects/taxes/models/batch_response_simple_public_upsert_object.rb +328 -0
  414. data/lib/hubspot/codegen/crm/objects/taxes/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
  415. data/lib/hubspot/codegen/crm/objects/taxes/models/public_object_search_request.rb +0 -25
  416. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input.rb +10 -1
  417. data/lib/hubspot/codegen/crm/objects/taxes/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +38 -13
  418. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input.rb +10 -1
  419. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input_for_create.rb +10 -1
  420. data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_upsert_object.rb +317 -0
  421. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_audits_api.rb +1 -1
  422. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stage_audits_api.rb +1 -1
  423. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +1 -1
  424. data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
  425. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +1 -1
  426. data/lib/hubspot/codegen/crm/pipelines/api_error.rb +1 -1
  427. data/lib/hubspot/codegen/crm/pipelines/configuration.rb +1 -1
  428. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_no_paging.rb +1 -1
  429. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage_no_paging.rb +1 -1
  430. data/lib/hubspot/codegen/crm/pipelines/models/collection_response_public_audit_info_no_paging.rb +1 -1
  431. data/lib/hubspot/codegen/crm/pipelines/models/error.rb +1 -1
  432. data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +1 -1
  433. data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +1 -1
  434. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +1 -1
  435. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +1 -1
  436. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +1 -6
  437. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +1 -6
  438. data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +1 -6
  439. data/lib/hubspot/codegen/crm/pipelines/models/public_audit_info.rb +1 -1
  440. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +6 -6
  441. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +70 -2
  442. data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
  443. data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -0
  444. data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_upsert_object.rb +326 -0
  445. data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
  446. data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +0 -25
  447. data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +5 -0
  448. data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +22 -1
  449. data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input_upsert.rb +263 -0
  450. data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +15 -2
  451. data/lib/hubspot/codegen/crm/products/models/simple_public_object_input_for_create.rb +10 -2
  452. data/lib/hubspot/codegen/crm/products/models/simple_public_upsert_object.rb +315 -0
  453. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +70 -2
  454. data/lib/hubspot/codegen/crm/quotes/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_upsert.rb} +15 -22
  455. data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_upsert_object.rb +326 -0
  456. data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
  457. data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +0 -25
  458. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +10 -1
  459. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input_upsert.rb +262 -0
  460. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +10 -1
  461. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input_for_create.rb +10 -1
  462. data/lib/hubspot/codegen/crm/quotes/models/simple_public_upsert_object.rb +315 -0
  463. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +7 -7
  464. data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +1 -1
  465. data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +1 -1
  466. data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +19 -1
  467. data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_patch.rb +10 -1
  468. data/lib/hubspot/codegen/crm/schemas/models/property.rb +164 -110
  469. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +6 -6
  470. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +70 -2
  471. data/lib/hubspot/codegen/crm/tickets/api/{public_object_api.rb → merge_api.rb} +5 -5
  472. data/lib/hubspot/codegen/crm/tickets/models/association_spec.rb +0 -10
  473. data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
  474. data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_upsert_object.rb +326 -0
  475. data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
  476. data/lib/hubspot/codegen/crm/tickets/models/public_associations_for_object.rb +0 -10
  477. data/lib/hubspot/codegen/crm/tickets/models/public_object_id.rb +0 -5
  478. data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +0 -25
  479. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +10 -1
  480. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input_upsert.rb +262 -0
  481. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +10 -1
  482. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input_for_create.rb +10 -6
  483. data/lib/hubspot/codegen/crm/tickets/models/simple_public_upsert_object.rb +315 -0
  484. data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +6 -6
  485. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +6 -6
  486. data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +4 -4
  487. data/lib/hubspot/codegen/crm/timeline/api_client.rb +1 -1
  488. data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
  489. data/lib/hubspot/codegen/crm/timeline/configuration.rb +1 -1
  490. data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +1 -1
  491. data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +1 -1
  492. data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response_with_errors.rb +1 -1
  493. data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template_no_paging.rb +1 -1
  494. data/lib/hubspot/codegen/crm/timeline/models/error.rb +1 -1
  495. data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +1 -1
  496. data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +1 -1
  497. data/lib/hubspot/codegen/crm/timeline/models/standard_error.rb +1 -1
  498. data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +1 -1
  499. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +1 -1
  500. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +1 -1
  501. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +1 -1
  502. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +1 -1
  503. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +1 -1
  504. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +1 -1
  505. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +1 -1
  506. data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +1 -1
  507. data/lib/hubspot/codegen/events/api/events_api.rb +80 -25
  508. data/lib/hubspot/codegen/events/api_client.rb +2 -2
  509. data/lib/hubspot/codegen/events/api_error.rb +2 -2
  510. data/lib/hubspot/codegen/events/configuration.rb +2 -2
  511. data/lib/hubspot/codegen/events/models/collection_response_external_unified_event.rb +2 -2
  512. data/lib/hubspot/codegen/events/models/error.rb +2 -2
  513. data/lib/hubspot/codegen/events/models/error_detail.rb +2 -2
  514. data/lib/hubspot/codegen/events/models/external_unified_event.rb +2 -2
  515. data/lib/hubspot/codegen/events/models/next_page.rb +2 -2
  516. data/lib/hubspot/codegen/events/models/paging.rb +2 -2
  517. data/lib/hubspot/codegen/events/models/previous_page.rb +2 -2
  518. data/lib/hubspot/codegen/events/models/visible_external_event_type_names.rb +229 -0
  519. data/lib/hubspot/codegen/marketing/events/api/attendance_subscriber_state_changes_api.rb +45 -45
  520. data/lib/hubspot/codegen/marketing/events/api/basic_api.rb +358 -77
  521. data/lib/hubspot/codegen/marketing/events/api/list_associations_api.rb +446 -0
  522. data/lib/hubspot/codegen/marketing/events/api/participant_state_api.rb +386 -0
  523. data/lib/hubspot/codegen/marketing/events/api/settings_api.rb +42 -42
  524. data/lib/hubspot/codegen/marketing/events/api/subscriber_state_changes_api.rb +45 -45
  525. data/lib/hubspot/codegen/marketing/events/api_client.rb +1 -1
  526. data/lib/hubspot/codegen/marketing/events/api_error.rb +1 -1
  527. data/lib/hubspot/codegen/marketing/events/configuration.rb +1 -1
  528. data/lib/hubspot/codegen/marketing/events/models/attendance_counters.rb +270 -0
  529. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_create_request_params.rb +1 -1
  530. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber.rb +1 -2
  531. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_external_unique_identifier.rb +1 -1
  532. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_subscriber.rb +1 -2
  533. data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response.rb +1 -1
  534. data/lib/hubspot/codegen/marketing/events/models/batch_response_subscriber_email_response.rb +1 -1
  535. data/lib/hubspot/codegen/marketing/events/models/batch_response_subscriber_vid_response.rb +1 -1
  536. data/lib/hubspot/codegen/marketing/events/models/collection_response_marketing_event_external_unique_identifier_no_paging.rb +1 -1
  537. data/lib/hubspot/codegen/{cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb → marketing/events/models/collection_response_with_total_participation_breakdown_forward_paging.rb} +9 -11
  538. data/lib/hubspot/codegen/marketing/events/models/collection_response_with_total_public_list_no_paging.rb +244 -0
  539. data/lib/hubspot/codegen/{crm/line_items/models/public_merge_input.rb → marketing/events/models/contact_association.rb} +44 -26
  540. data/lib/hubspot/codegen/marketing/events/models/error.rb +1 -1
  541. data/lib/hubspot/codegen/marketing/events/models/error_detail.rb +1 -1
  542. data/lib/hubspot/codegen/marketing/events/models/event_detail_settings.rb +1 -1
  543. data/lib/hubspot/codegen/marketing/events/models/event_detail_settings_url.rb +1 -1
  544. data/lib/hubspot/codegen/marketing/events/models/forward_paging.rb +223 -0
  545. data/lib/hubspot/codegen/marketing/events/models/marketing_event_association.rb +260 -0
  546. data/lib/hubspot/codegen/marketing/events/models/marketing_event_complete_request_params.rb +1 -1
  547. data/lib/hubspot/codegen/marketing/events/models/marketing_event_create_request_params.rb +11 -2
  548. data/lib/hubspot/codegen/marketing/events/models/marketing_event_default_response.rb +11 -2
  549. data/lib/hubspot/codegen/marketing/events/models/marketing_event_email_subscriber.rb +1 -1
  550. data/lib/hubspot/codegen/marketing/events/models/marketing_event_external_unique_identifier.rb +1 -1
  551. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response.rb +56 -47
  552. data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response.rb +11 -2
  553. data/lib/hubspot/codegen/marketing/events/models/marketing_event_subscriber.rb +1 -1
  554. data/lib/hubspot/codegen/marketing/events/models/marketing_event_update_request_params.rb +11 -2
  555. data/lib/hubspot/codegen/marketing/events/models/next_page.rb +237 -0
  556. data/lib/hubspot/codegen/marketing/events/models/participation_associations.rb +242 -0
  557. data/lib/hubspot/codegen/marketing/events/models/participation_breakdown.rb +270 -0
  558. data/lib/hubspot/codegen/marketing/events/models/participation_properties.rb +294 -0
  559. data/lib/hubspot/codegen/marketing/events/models/property_value.rb +58 -4
  560. data/lib/hubspot/codegen/marketing/events/models/public_list.rb +361 -0
  561. data/lib/hubspot/codegen/marketing/events/models/standard_error.rb +1 -1
  562. data/lib/hubspot/codegen/marketing/events/models/subscriber_email_response.rb +1 -1
  563. data/lib/hubspot/codegen/marketing/events/models/subscriber_vid_response.rb +1 -1
  564. data/lib/hubspot/codegen/marketing/forms/models/datepicker_field.rb +67 -67
  565. data/lib/hubspot/codegen/marketing/forms/models/dependent_field_filter.rb +38 -33
  566. data/lib/hubspot/codegen/marketing/forms/models/dropdown_field.rb +84 -84
  567. data/lib/hubspot/codegen/marketing/forms/models/email_field.rb +67 -67
  568. data/lib/hubspot/codegen/marketing/forms/models/email_field_validation.rb +19 -19
  569. data/lib/hubspot/codegen/marketing/forms/models/enumerated_field_option.rb +29 -28
  570. data/lib/hubspot/codegen/marketing/forms/models/file_field.rb +77 -77
  571. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_checkbox.rb +20 -19
  572. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_explicit_consent_to_process.rb +42 -35
  573. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_implicit_consent_to_process.rb +27 -22
  574. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_legitimate_interest.rb +33 -29
  575. data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_none.rb +1 -0
  576. data/lib/hubspot/codegen/marketing/forms/models/mobile_phone_field.rb +67 -67
  577. data/lib/hubspot/codegen/marketing/forms/models/multi_line_text_field.rb +67 -67
  578. data/lib/hubspot/codegen/marketing/forms/models/multiple_checkboxes_field.rb +78 -78
  579. data/lib/hubspot/codegen/marketing/forms/models/number_field.rb +67 -67
  580. data/lib/hubspot/codegen/marketing/forms/models/number_field_validation.rb +2 -0
  581. data/lib/hubspot/codegen/marketing/forms/models/payment_link_radio_field.rb +72 -72
  582. data/lib/hubspot/codegen/marketing/forms/models/phone_field.rb +77 -77
  583. data/lib/hubspot/codegen/marketing/forms/models/phone_field_validation.rb +2 -0
  584. data/lib/hubspot/codegen/marketing/forms/models/radio_field.rb +84 -84
  585. data/lib/hubspot/codegen/marketing/forms/models/single_checkbox_field.rb +67 -67
  586. data/lib/hubspot/codegen/marketing/forms/models/single_line_text_field.rb +67 -67
  587. data/lib/hubspot/codegen/marketing/transactional/api/public_smtp_tokens_api.rb +21 -21
  588. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +1 -1
  589. data/lib/hubspot/codegen/marketing/transactional/api_client.rb +1 -1
  590. data/lib/hubspot/codegen/marketing/transactional/api_error.rb +1 -1
  591. data/lib/hubspot/codegen/marketing/transactional/configuration.rb +1 -1
  592. data/lib/hubspot/codegen/marketing/transactional/models/collection_response_smtp_api_token_view_forward_paging.rb +1 -1
  593. data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +1 -1
  594. data/lib/hubspot/codegen/marketing/transactional/models/error.rb +1 -1
  595. data/lib/hubspot/codegen/marketing/transactional/models/error_detail.rb +1 -1
  596. data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +1 -1
  597. data/lib/hubspot/codegen/marketing/transactional/models/forward_paging.rb +1 -1
  598. data/lib/hubspot/codegen/marketing/transactional/models/next_page.rb +1 -1
  599. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +1 -1
  600. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +1 -1
  601. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -1
  602. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -1
  603. data/lib/hubspot/codegen/settings/users/api/roles_api.rb +1 -1
  604. data/lib/hubspot/codegen/settings/users/api/teams_api.rb +1 -1
  605. data/lib/hubspot/codegen/settings/users/api/users_api.rb +13 -1
  606. data/lib/hubspot/codegen/settings/users/api_client.rb +1 -1
  607. data/lib/hubspot/codegen/settings/users/api_error.rb +1 -1
  608. data/lib/hubspot/codegen/settings/users/configuration.rb +1 -1
  609. data/lib/hubspot/codegen/settings/users/models/collection_response_public_permission_set_no_paging.rb +1 -1
  610. data/lib/hubspot/codegen/settings/users/models/collection_response_public_team_no_paging.rb +1 -1
  611. data/lib/hubspot/codegen/settings/users/models/collection_response_public_user_forward_paging.rb +1 -1
  612. data/lib/hubspot/codegen/settings/users/models/error.rb +1 -1
  613. data/lib/hubspot/codegen/settings/users/models/error_detail.rb +1 -1
  614. data/lib/hubspot/codegen/settings/users/models/forward_paging.rb +1 -1
  615. data/lib/hubspot/codegen/settings/users/models/next_page.rb +1 -1
  616. data/lib/hubspot/codegen/settings/users/models/public_permission_set.rb +1 -1
  617. data/lib/hubspot/codegen/settings/users/models/public_team.rb +1 -1
  618. data/lib/hubspot/codegen/settings/users/models/public_user.rb +20 -2
  619. data/lib/hubspot/codegen/settings/users/models/public_user_update.rb +20 -2
  620. data/lib/hubspot/codegen/settings/users/models/user_provision_request.rb +20 -2
  621. data/lib/hubspot/discovery/cms/source_code/client.rb +0 -1
  622. data/lib/hubspot/discovery/crm/companies/api/{public_object_api.rb → merge_api.rb} +1 -1
  623. data/lib/hubspot/discovery/crm/companies/client.rb +1 -1
  624. data/lib/hubspot/discovery/crm/contacts/api/{public_object_api.rb → merge_api.rb} +1 -1
  625. data/lib/hubspot/discovery/crm/contacts/client.rb +1 -1
  626. data/lib/hubspot/discovery/crm/deals/api/{public_object_api.rb → merge_api.rb} +1 -1
  627. data/lib/hubspot/discovery/crm/deals/client.rb +1 -1
  628. data/lib/hubspot/discovery/crm/extensions/client.rb +0 -1
  629. data/lib/hubspot/discovery/crm/line_items/client.rb +0 -2
  630. data/lib/hubspot/discovery/crm/{products/api/gdpr_api.rb → lists/api/folders_api.rb} +2 -2
  631. data/lib/hubspot/discovery/crm/{objects/api/gdpr_api.rb → lists/api/mapping_api.rb} +2 -2
  632. data/lib/hubspot/discovery/crm/lists/client.rb +2 -0
  633. data/lib/hubspot/discovery/crm/objects/calls/client.rb +0 -2
  634. data/lib/hubspot/discovery/crm/objects/client.rb +1 -0
  635. data/lib/hubspot/discovery/crm/objects/communications/client.rb +0 -2
  636. data/lib/hubspot/discovery/crm/objects/emails/client.rb +0 -2
  637. data/lib/hubspot/discovery/crm/objects/goals/client.rb +0 -2
  638. data/lib/hubspot/discovery/crm/objects/{calls/api/gdpr_api.rb → leads/api/basic_api.rb} +2 -2
  639. data/lib/hubspot/discovery/crm/objects/{goals/api/gdpr_api.rb → leads/api/batch_api.rb} +2 -2
  640. data/lib/hubspot/discovery/crm/objects/{notes/api/gdpr_api.rb → leads/api/search_api.rb} +2 -2
  641. data/lib/hubspot/discovery/crm/{extensions/accounting → objects/leads}/client.rb +5 -8
  642. data/lib/hubspot/discovery/crm/objects/meetings/client.rb +0 -2
  643. data/lib/hubspot/discovery/crm/objects/notes/client.rb +0 -2
  644. data/lib/hubspot/discovery/crm/objects/postal_mail/client.rb +0 -2
  645. data/lib/hubspot/discovery/crm/objects/tasks/client.rb +0 -2
  646. data/lib/hubspot/discovery/crm/objects/taxes/client.rb +0 -2
  647. data/lib/hubspot/discovery/crm/products/client.rb +0 -3
  648. data/lib/hubspot/discovery/crm/quotes/client.rb +0 -3
  649. data/lib/hubspot/discovery/crm/schemas/client.rb +0 -1
  650. data/lib/hubspot/discovery/crm/tickets/api/{gdpr_api.rb → merge_api.rb} +1 -1
  651. data/lib/hubspot/discovery/crm/tickets/client.rb +1 -3
  652. data/lib/hubspot/discovery/marketing/events/api/{batch_api.rb → list_associations_api.rb} +1 -1
  653. data/lib/hubspot/discovery/marketing/events/api/{search_api.rb → participant_state_api.rb} +1 -1
  654. data/lib/hubspot/discovery/marketing/events/client.rb +2 -3
  655. data/lib/hubspot/discovery/marketing/transactional/api/public_smtp_tokens_api.rb +1 -1
  656. data/lib/hubspot/helpers/camel_case.rb +2 -0
  657. data/lib/hubspot/version.rb +1 -1
  658. data/spec/discovery/cms/source-code/extract_api_spec.rb +2 -1
  659. data/spec/discovery/crm/companies/batch_api_spec.rb +1 -0
  660. data/spec/discovery/crm/{deals/public_object_api_spec.rb → companies/merge_api_spec.rb} +2 -2
  661. data/spec/discovery/crm/contacts/batch_api_spec.rb +1 -0
  662. data/spec/discovery/crm/{quotes/public_object_api_spec.rb → contacts/merge_api_spec.rb} +2 -2
  663. data/spec/discovery/crm/deals/batch_api_spec.rb +1 -0
  664. data/spec/discovery/crm/{objects/public_object_api_spec.rb → deals/merge_api_spec.rb} +2 -2
  665. data/spec/discovery/crm/extensions/calling/recording_settings_api_spec.rb +1 -0
  666. data/spec/discovery/crm/extensions/client_spec.rb +0 -1
  667. data/spec/discovery/crm/line_items/batch_api_spec.rb +1 -0
  668. data/spec/discovery/crm/lists/folders_api_spec.rb +12 -0
  669. data/spec/discovery/crm/lists/lists_api_spec.rb +4 -11
  670. data/spec/discovery/crm/lists/mapping_api_spec.rb +15 -0
  671. data/spec/discovery/crm/lists/memberships_api_spec.rb +1 -0
  672. data/spec/discovery/crm/objects/batch_api_spec.rb +1 -0
  673. data/spec/discovery/crm/objects/calls/batch_api_spec.rb +1 -0
  674. data/spec/discovery/crm/objects/client_spec.rb +2 -0
  675. data/spec/discovery/crm/objects/communications/batch_api_spec.rb +1 -0
  676. data/spec/discovery/crm/objects/emails/batch_api_spec.rb +1 -0
  677. data/spec/discovery/crm/objects/goals/basic_api_spec.rb +0 -3
  678. data/spec/discovery/crm/objects/goals/batch_api_spec.rb +0 -3
  679. data/spec/discovery/crm/objects/leads/basic_api_spec.rb +11 -0
  680. data/spec/discovery/crm/objects/leads/batch_api_spec.rb +11 -0
  681. data/spec/discovery/crm/objects/leads/search_api_spec.rb +7 -0
  682. data/spec/discovery/crm/objects/meetings/batch_api_spec.rb +1 -0
  683. data/spec/discovery/crm/objects/notes/batch_api_spec.rb +1 -0
  684. data/spec/discovery/crm/objects/postal_mail/batch_api_spec.rb +1 -0
  685. data/spec/discovery/crm/objects/tasks/batch_api_spec.rb +1 -0
  686. data/spec/discovery/crm/objects/taxes/batch_api_spec.rb +1 -0
  687. data/spec/discovery/crm/products/batch_api_spec.rb +1 -0
  688. data/spec/discovery/crm/quotes/basic_api_spec.rb +3 -0
  689. data/spec/discovery/crm/quotes/batch_api_spec.rb +4 -0
  690. data/spec/discovery/crm/tickets/batch_api_spec.rb +1 -0
  691. data/spec/discovery/crm/{objects/calls/public_object_api_spec.rb → tickets/merge_api_spec.rb} +2 -2
  692. data/spec/discovery/events/events_api_spec.rb +1 -0
  693. data/spec/discovery/marketing/events/attendance_subscriber_state_changes_api_spec.rb +2 -2
  694. data/spec/discovery/marketing/events/basic_api_spec.rb +7 -3
  695. data/spec/discovery/marketing/events/list_associations_api_spec.rb +12 -0
  696. data/spec/discovery/marketing/events/participant_state_api_spec.rb +11 -0
  697. data/spec/discovery/marketing/events/settings_api_spec.rb +1 -1
  698. data/spec/discovery/marketing/events/subscriber_state_changes_api_spec.rb +2 -2
  699. data/spec/discovery/marketing/transactional/public_smtp_tokens_api_spec.rb +1 -1
  700. metadata +201 -259
  701. data/lib/hubspot/codegen/cms/source_code/api/source_code_extract_api.rb +0 -149
  702. data/lib/hubspot/codegen/crm/companies/api/gdpr_api.rb +0 -94
  703. data/lib/hubspot/codegen/crm/deals/api/gdpr_api.rb +0 -94
  704. data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +0 -768
  705. data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +0 -256
  706. data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +0 -165
  707. data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +0 -176
  708. data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +0 -159
  709. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +0 -255
  710. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +0 -395
  711. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +0 -267
  712. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +0 -262
  713. data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +0 -267
  714. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +0 -246
  715. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +0 -307
  716. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +0 -262
  717. data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +0 -232
  718. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_create_payment_request.rb +0 -276
  719. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +0 -469
  720. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_search_response.rb +0 -278
  721. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +0 -295
  722. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_response.rb +0 -454
  723. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +0 -278
  724. data/lib/hubspot/codegen/crm/extensions/accounting/models/object_sync_feature.rb +0 -231
  725. data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +0 -295
  726. data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +0 -278
  727. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +0 -249
  728. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +0 -249
  729. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax.rb +0 -262
  730. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +0 -278
  731. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +0 -242
  732. data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +0 -278
  733. data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +0 -242
  734. data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +0 -333
  735. data/lib/hubspot/codegen/crm/line_items/api/gdpr_api.rb +0 -94
  736. data/lib/hubspot/codegen/crm/line_items/api/public_object_api.rb +0 -92
  737. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +0 -100
  738. data/lib/hubspot/codegen/crm/objects/api/public_object_api.rb +0 -98
  739. data/lib/hubspot/codegen/crm/objects/calls/api/gdpr_api.rb +0 -96
  740. data/lib/hubspot/codegen/crm/objects/calls/api/public_object_api.rb +0 -94
  741. data/lib/hubspot/codegen/crm/objects/communications/api/gdpr_api.rb +0 -96
  742. data/lib/hubspot/codegen/crm/objects/communications/api/public_object_api.rb +0 -94
  743. data/lib/hubspot/codegen/crm/objects/emails/api/gdpr_api.rb +0 -96
  744. data/lib/hubspot/codegen/crm/objects/emails/api/public_object_api.rb +0 -94
  745. data/lib/hubspot/codegen/crm/objects/emails/models/public_merge_input.rb +0 -244
  746. data/lib/hubspot/codegen/crm/objects/goals/api/gdpr_api.rb +0 -96
  747. data/lib/hubspot/codegen/crm/objects/goals/api/public_object_api.rb +0 -94
  748. data/lib/hubspot/codegen/crm/objects/goals/models/public_merge_input.rb +0 -244
  749. data/lib/hubspot/codegen/crm/objects/meetings/api/gdpr_api.rb +0 -96
  750. data/lib/hubspot/codegen/crm/objects/meetings/api/public_object_api.rb +0 -94
  751. data/lib/hubspot/codegen/crm/objects/meetings/models/public_merge_input.rb +0 -244
  752. data/lib/hubspot/codegen/crm/objects/notes/api/gdpr_api.rb +0 -96
  753. data/lib/hubspot/codegen/crm/objects/notes/api/public_object_api.rb +0 -94
  754. data/lib/hubspot/codegen/crm/objects/notes/models/public_merge_input.rb +0 -244
  755. data/lib/hubspot/codegen/crm/objects/postal_mail/api/gdpr_api.rb +0 -96
  756. data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_merge_input.rb +0 -244
  757. data/lib/hubspot/codegen/crm/objects/tasks/api/gdpr_api.rb +0 -96
  758. data/lib/hubspot/codegen/crm/objects/tasks/api/public_object_api.rb +0 -94
  759. data/lib/hubspot/codegen/crm/objects/tasks/models/public_merge_input.rb +0 -244
  760. data/lib/hubspot/codegen/crm/objects/taxes/api/gdpr_api.rb +0 -96
  761. data/lib/hubspot/codegen/crm/objects/taxes/api/public_object_api.rb +0 -94
  762. data/lib/hubspot/codegen/crm/objects/taxes/models/public_merge_input.rb +0 -244
  763. data/lib/hubspot/codegen/crm/products/api/gdpr_api.rb +0 -94
  764. data/lib/hubspot/codegen/crm/products/api/public_object_api.rb +0 -92
  765. data/lib/hubspot/codegen/crm/quotes/api/gdpr_api.rb +0 -94
  766. data/lib/hubspot/codegen/crm/quotes/api/public_object_api.rb +0 -92
  767. data/lib/hubspot/codegen/crm/schemas/api/public_object_schemas_api.rb +0 -85
  768. data/lib/hubspot/codegen/crm/tickets/api/gdpr_api.rb +0 -94
  769. data/lib/hubspot/codegen/marketing/events/api/batch_api.rb +0 -162
  770. data/lib/hubspot/codegen/marketing/events/api/marketing_events_external_api.rb +0 -103
  771. data/lib/hubspot/codegen/marketing/events/api/search_api.rb +0 -90
  772. data/lib/hubspot/discovery/cms/source_code/api/source_code_extract_api.rb +0 -13
  773. data/lib/hubspot/discovery/crm/extensions/accounting/api/callbacks_api.rb +0 -15
  774. data/lib/hubspot/discovery/crm/extensions/accounting/api/invoice_api.rb +0 -15
  775. data/lib/hubspot/discovery/crm/extensions/accounting/api/settings_api.rb +0 -15
  776. data/lib/hubspot/discovery/crm/extensions/accounting/api/sync_api.rb +0 -15
  777. data/lib/hubspot/discovery/crm/extensions/accounting/api/user_accounts_api.rb +0 -15
  778. data/lib/hubspot/discovery/crm/line_items/api/gdpr_api.rb +0 -13
  779. data/lib/hubspot/discovery/crm/line_items/api/public_object_api.rb +0 -13
  780. data/lib/hubspot/discovery/crm/objects/api/associations_api.rb +0 -13
  781. data/lib/hubspot/discovery/crm/objects/api/public_object_api.rb +0 -13
  782. data/lib/hubspot/discovery/crm/objects/calls/api/public_object_api.rb +0 -15
  783. data/lib/hubspot/discovery/crm/objects/communications/api/gdpr_api.rb +0 -15
  784. data/lib/hubspot/discovery/crm/objects/communications/api/public_object_api.rb +0 -15
  785. data/lib/hubspot/discovery/crm/objects/emails/api/gdpr_api.rb +0 -15
  786. data/lib/hubspot/discovery/crm/objects/emails/api/public_object_api.rb +0 -15
  787. data/lib/hubspot/discovery/crm/objects/goals/api/public_object_api.rb +0 -15
  788. data/lib/hubspot/discovery/crm/objects/meetings/api/gdpr_api.rb +0 -15
  789. data/lib/hubspot/discovery/crm/objects/meetings/api/public_object_api.rb +0 -15
  790. data/lib/hubspot/discovery/crm/objects/notes/api/public_object_api.rb +0 -15
  791. data/lib/hubspot/discovery/crm/objects/postal_mail/api/gdpr_api.rb +0 -15
  792. data/lib/hubspot/discovery/crm/objects/postal_mail/api/public_object_api.rb +0 -15
  793. data/lib/hubspot/discovery/crm/objects/tasks/api/gdpr_api.rb +0 -15
  794. data/lib/hubspot/discovery/crm/objects/tasks/api/public_object_api.rb +0 -15
  795. data/lib/hubspot/discovery/crm/objects/taxes/api/gdpr_api.rb +0 -15
  796. data/lib/hubspot/discovery/crm/objects/taxes/api/public_object_api.rb +0 -15
  797. data/lib/hubspot/discovery/crm/products/api/associations_api.rb +0 -13
  798. data/lib/hubspot/discovery/crm/products/api/public_object_api.rb +0 -13
  799. data/lib/hubspot/discovery/crm/quotes/api/associations_api.rb +0 -13
  800. data/lib/hubspot/discovery/crm/quotes/api/gdpr_api.rb +0 -13
  801. data/lib/hubspot/discovery/crm/quotes/api/public_object_api.rb +0 -13
  802. data/lib/hubspot/discovery/crm/schemas/api/public_object_schemas_api.rb +0 -13
  803. data/lib/hubspot/discovery/crm/tickets/api/associations_api.rb +0 -13
  804. data/lib/hubspot/discovery/crm/tickets/api/public_object_api.rb +0 -13
  805. data/lib/hubspot/discovery/marketing/events/api/marketing_events_external_api.rb +0 -13
  806. data/spec/discovery/cms/source-code/source_code_extract_api_spec.rb +0 -8
  807. data/spec/discovery/crm/companies/public_object_api_spec.rb +0 -7
  808. data/spec/discovery/crm/contacts/public_object_api_spec.rb +0 -7
  809. data/spec/discovery/crm/extensions/accounting/callbacks_api_spec.rb +0 -16
  810. data/spec/discovery/crm/extensions/accounting/invoice_api_spec.rb +0 -9
  811. data/spec/discovery/crm/extensions/accounting/settings_api_spec.rb +0 -8
  812. data/spec/discovery/crm/extensions/accounting/sync_api_spec.rb +0 -8
  813. data/spec/discovery/crm/extensions/accounting/user_accounts_api_spec.rb +0 -8
  814. data/spec/discovery/crm/line_items/gdpr_api_spec.rb +0 -7
  815. data/spec/discovery/crm/line_items/public_object_api_spec.rb +0 -7
  816. data/spec/discovery/crm/objects/associations_api_spec.rb +0 -9
  817. data/spec/discovery/crm/objects/calls/gdpr_api_spec.rb +0 -7
  818. data/spec/discovery/crm/objects/communications/gdpr_api_spec.rb +0 -7
  819. data/spec/discovery/crm/objects/communications/public_object_api_spec.rb +0 -7
  820. data/spec/discovery/crm/objects/emails/gdpr_api_spec.rb +0 -7
  821. data/spec/discovery/crm/objects/emails/public_object_api_spec.rb +0 -7
  822. data/spec/discovery/crm/objects/gdpr_api_spec.rb +0 -7
  823. data/spec/discovery/crm/objects/goals/gdpr_api_spec.rb +0 -7
  824. data/spec/discovery/crm/objects/goals/public_object_api_spec.rb +0 -7
  825. data/spec/discovery/crm/objects/meetings/gdpr_api_spec.rb +0 -7
  826. data/spec/discovery/crm/objects/meetings/public_object_api_spec.rb +0 -7
  827. data/spec/discovery/crm/objects/notes/gdpr_api_spec.rb +0 -7
  828. data/spec/discovery/crm/objects/notes/public_object_api_spec.rb +0 -7
  829. data/spec/discovery/crm/objects/postal_mail/gdpr_api_spec.rb +0 -7
  830. data/spec/discovery/crm/objects/postal_mail/public_object_api_spec.rb +0 -7
  831. data/spec/discovery/crm/objects/tasks/gdpr_api_spec.rb +0 -7
  832. data/spec/discovery/crm/objects/tasks/public_object_api_spec.rb +0 -7
  833. data/spec/discovery/crm/objects/taxes/gdpr_api_spec.rb +0 -7
  834. data/spec/discovery/crm/objects/taxes/public_object_api_spec.rb +0 -7
  835. data/spec/discovery/crm/products/gdpr_api_spec.rb +0 -7
  836. data/spec/discovery/crm/products/public_object_api_spec.rb +0 -7
  837. data/spec/discovery/crm/quotes/gdpr_api_spec.rb +0 -7
  838. data/spec/discovery/crm/schemas/public_object_schemas_api_spec.rb +0 -7
  839. data/spec/discovery/crm/tickets/gdpr_api_spec.rb +0 -7
  840. data/spec/discovery/crm/tickets/public_object_api_spec.rb +0 -7
  841. data/spec/discovery/marketing/events/batch_api_spec.rb +0 -8
  842. data/spec/discovery/marketing/events/marketing_events_external_api_spec.rb +0 -7
  843. data/spec/discovery/marketing/events/search_api_spec.rb +0 -7
  844. data/spec/integration/contacts_spec.rb +0 -85
@@ -1,395 +0,0 @@
1
- =begin
2
- #Accounting Extension
3
-
4
- #These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot
5
-
6
- The version of the OpenAPI document: v3
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Hubspot
17
- module Crm
18
- module Extensions
19
- module Accounting
20
- # The URL endpoints that HubSpot will send requests to an external accounting system for certain actions.
21
- class AccountingAppUrls
22
- # A URL that specifies the endpoint where invoices can be retrieved.
23
- attr_accessor :get_invoice_url
24
-
25
- # A URL that specifies the endpoint where a customer search can be performed.
26
- attr_accessor :search_customer_url
27
-
28
- # A URL that specifies the endpoint where an invoice PDF can be retrieved.
29
- attr_accessor :get_invoice_pdf_url
30
-
31
- # A template URL that indicates the endpoint where a customer can be fetched by ID. Note that ${CUSTOMER_ID} in this URL will be replaced by the actual customer ID. For example: https://myapp.com/api/customers/${CUSTOMER_ID}
32
- attr_accessor :customer_url_template
33
-
34
- # A template URL that indicates the endpoint where a product can be fetched by ID. Note that ${PRODUCT_ID} in this URL will be replaced by the actual product ID. For example: https://myapp.com/api/products/${PRODUCT_ID}
35
- attr_accessor :product_url_template
36
-
37
- # A template URL that indicates the endpoint where an invoice can be fetched by ID. Note that ${INVOICE_ID} in this URL will be replaced by the actual invoice ID. For example: https://myapp.com/api/invoices/${INVOICE_ID}
38
- attr_accessor :invoice_url_template
39
-
40
- # A URL that specifies the endpoint where an invoices can be created.
41
- attr_accessor :create_invoice_url
42
-
43
- # A URL that specifies the endpoint where an invoice search can be performed.
44
- attr_accessor :search_invoice_url
45
-
46
- # A URL that specifies the endpoint where a product search can be performed.
47
- attr_accessor :search_product_url
48
-
49
- # A URL that specifies the endpoint where payment terms can be retrieved.
50
- attr_accessor :get_terms_url
51
-
52
- # A URL that specifies the endpoint where a new customer can be created.
53
- attr_accessor :create_customer_url
54
-
55
- # A URL that specifies the endpoint where a tax search can be performed.
56
- attr_accessor :search_tax_url
57
-
58
- # A URL that specifies the endpoint where exchange rates can be queried.
59
- attr_accessor :exchange_rate_url
60
-
61
- attr_accessor :search_url
62
-
63
- attr_accessor :search_count_url
64
-
65
- # Attribute mapping from ruby-style variable name to JSON key.
66
- def self.attribute_map
67
- {
68
- :'get_invoice_url' => :'getInvoiceUrl',
69
- :'search_customer_url' => :'searchCustomerUrl',
70
- :'get_invoice_pdf_url' => :'getInvoicePdfUrl',
71
- :'customer_url_template' => :'customerUrlTemplate',
72
- :'product_url_template' => :'productUrlTemplate',
73
- :'invoice_url_template' => :'invoiceUrlTemplate',
74
- :'create_invoice_url' => :'createInvoiceUrl',
75
- :'search_invoice_url' => :'searchInvoiceUrl',
76
- :'search_product_url' => :'searchProductUrl',
77
- :'get_terms_url' => :'getTermsUrl',
78
- :'create_customer_url' => :'createCustomerUrl',
79
- :'search_tax_url' => :'searchTaxUrl',
80
- :'exchange_rate_url' => :'exchangeRateUrl',
81
- :'search_url' => :'searchUrl',
82
- :'search_count_url' => :'searchCountUrl'
83
- }
84
- end
85
-
86
- # Returns all the JSON keys this model knows about
87
- def self.acceptable_attributes
88
- attribute_map.values
89
- end
90
-
91
- # Attribute type mapping.
92
- def self.openapi_types
93
- {
94
- :'get_invoice_url' => :'String',
95
- :'search_customer_url' => :'String',
96
- :'get_invoice_pdf_url' => :'String',
97
- :'customer_url_template' => :'String',
98
- :'product_url_template' => :'String',
99
- :'invoice_url_template' => :'String',
100
- :'create_invoice_url' => :'String',
101
- :'search_invoice_url' => :'String',
102
- :'search_product_url' => :'String',
103
- :'get_terms_url' => :'String',
104
- :'create_customer_url' => :'String',
105
- :'search_tax_url' => :'String',
106
- :'exchange_rate_url' => :'String',
107
- :'search_url' => :'String',
108
- :'search_count_url' => :'String'
109
- }
110
- end
111
-
112
- # List of attributes with nullable: true
113
- def self.openapi_nullable
114
- Set.new([
115
- ])
116
- end
117
-
118
- # Initializes the object
119
- # @param [Hash] attributes Model attributes in the form of hash
120
- def initialize(attributes = {})
121
- if (!attributes.is_a?(Hash))
122
- fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Extensions::Accounting::AccountingAppUrls` initialize method"
123
- end
124
-
125
- # check to see if the attribute exists and convert string to symbol for hash key
126
- attributes = attributes.each_with_object({}) { |(k, v), h|
127
- if (!self.class.attribute_map.key?(k.to_sym))
128
- fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Extensions::Accounting::AccountingAppUrls`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
129
- end
130
- h[k.to_sym] = v
131
- }
132
-
133
- if attributes.key?(:'get_invoice_url')
134
- self.get_invoice_url = attributes[:'get_invoice_url']
135
- end
136
-
137
- if attributes.key?(:'search_customer_url')
138
- self.search_customer_url = attributes[:'search_customer_url']
139
- end
140
-
141
- if attributes.key?(:'get_invoice_pdf_url')
142
- self.get_invoice_pdf_url = attributes[:'get_invoice_pdf_url']
143
- end
144
-
145
- if attributes.key?(:'customer_url_template')
146
- self.customer_url_template = attributes[:'customer_url_template']
147
- end
148
-
149
- if attributes.key?(:'product_url_template')
150
- self.product_url_template = attributes[:'product_url_template']
151
- end
152
-
153
- if attributes.key?(:'invoice_url_template')
154
- self.invoice_url_template = attributes[:'invoice_url_template']
155
- end
156
-
157
- if attributes.key?(:'create_invoice_url')
158
- self.create_invoice_url = attributes[:'create_invoice_url']
159
- end
160
-
161
- if attributes.key?(:'search_invoice_url')
162
- self.search_invoice_url = attributes[:'search_invoice_url']
163
- end
164
-
165
- if attributes.key?(:'search_product_url')
166
- self.search_product_url = attributes[:'search_product_url']
167
- end
168
-
169
- if attributes.key?(:'get_terms_url')
170
- self.get_terms_url = attributes[:'get_terms_url']
171
- end
172
-
173
- if attributes.key?(:'create_customer_url')
174
- self.create_customer_url = attributes[:'create_customer_url']
175
- end
176
-
177
- if attributes.key?(:'search_tax_url')
178
- self.search_tax_url = attributes[:'search_tax_url']
179
- end
180
-
181
- if attributes.key?(:'exchange_rate_url')
182
- self.exchange_rate_url = attributes[:'exchange_rate_url']
183
- end
184
-
185
- if attributes.key?(:'search_url')
186
- self.search_url = attributes[:'search_url']
187
- end
188
-
189
- if attributes.key?(:'search_count_url')
190
- self.search_count_url = attributes[:'search_count_url']
191
- end
192
- end
193
-
194
- # Show invalid properties with the reasons. Usually used together with valid?
195
- # @return Array for valid properties with the reasons
196
- def list_invalid_properties
197
- invalid_properties = Array.new
198
- if @get_invoice_url.nil?
199
- invalid_properties.push('invalid value for "get_invoice_url", get_invoice_url cannot be nil.')
200
- end
201
-
202
- if @search_customer_url.nil?
203
- invalid_properties.push('invalid value for "search_customer_url", search_customer_url cannot be nil.')
204
- end
205
-
206
- if @get_invoice_pdf_url.nil?
207
- invalid_properties.push('invalid value for "get_invoice_pdf_url", get_invoice_pdf_url cannot be nil.')
208
- end
209
-
210
- if @customer_url_template.nil?
211
- invalid_properties.push('invalid value for "customer_url_template", customer_url_template cannot be nil.')
212
- end
213
-
214
- if @product_url_template.nil?
215
- invalid_properties.push('invalid value for "product_url_template", product_url_template cannot be nil.')
216
- end
217
-
218
- if @invoice_url_template.nil?
219
- invalid_properties.push('invalid value for "invoice_url_template", invoice_url_template cannot be nil.')
220
- end
221
-
222
- invalid_properties
223
- end
224
-
225
- # Check to see if the all the properties in the model are valid
226
- # @return true if the model is valid
227
- def valid?
228
- return false if @get_invoice_url.nil?
229
- return false if @search_customer_url.nil?
230
- return false if @get_invoice_pdf_url.nil?
231
- return false if @customer_url_template.nil?
232
- return false if @product_url_template.nil?
233
- return false if @invoice_url_template.nil?
234
- true
235
- end
236
-
237
- # Checks equality by comparing each attribute.
238
- # @param [Object] Object to be compared
239
- def ==(o)
240
- return true if self.equal?(o)
241
- self.class == o.class &&
242
- get_invoice_url == o.get_invoice_url &&
243
- search_customer_url == o.search_customer_url &&
244
- get_invoice_pdf_url == o.get_invoice_pdf_url &&
245
- customer_url_template == o.customer_url_template &&
246
- product_url_template == o.product_url_template &&
247
- invoice_url_template == o.invoice_url_template &&
248
- create_invoice_url == o.create_invoice_url &&
249
- search_invoice_url == o.search_invoice_url &&
250
- search_product_url == o.search_product_url &&
251
- get_terms_url == o.get_terms_url &&
252
- create_customer_url == o.create_customer_url &&
253
- search_tax_url == o.search_tax_url &&
254
- exchange_rate_url == o.exchange_rate_url &&
255
- search_url == o.search_url &&
256
- search_count_url == o.search_count_url
257
- end
258
-
259
- # @see the `==` method
260
- # @param [Object] Object to be compared
261
- def eql?(o)
262
- self == o
263
- end
264
-
265
- # Calculates hash code according to all attributes.
266
- # @return [Integer] Hash code
267
- def hash
268
- [get_invoice_url, search_customer_url, get_invoice_pdf_url, customer_url_template, product_url_template, invoice_url_template, create_invoice_url, search_invoice_url, search_product_url, get_terms_url, create_customer_url, search_tax_url, exchange_rate_url, search_url, search_count_url].hash
269
- end
270
-
271
- # Builds the object from hash
272
- # @param [Hash] attributes Model attributes in the form of hash
273
- # @return [Object] Returns the model itself
274
- def self.build_from_hash(attributes)
275
- new.build_from_hash(attributes)
276
- end
277
-
278
- # Builds the object from hash
279
- # @param [Hash] attributes Model attributes in the form of hash
280
- # @return [Object] Returns the model itself
281
- def build_from_hash(attributes)
282
- return nil unless attributes.is_a?(Hash)
283
- attributes = attributes.transform_keys(&:to_sym)
284
- self.class.openapi_types.each_pair do |key, type|
285
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
286
- self.send("#{key}=", nil)
287
- elsif type =~ /\AArray<(.*)>/i
288
- # check to ensure the input is an array given that the attribute
289
- # is documented as an array but the input is not
290
- if attributes[self.class.attribute_map[key]].is_a?(Array)
291
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
292
- end
293
- elsif !attributes[self.class.attribute_map[key]].nil?
294
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
295
- end
296
- end
297
-
298
- self
299
- end
300
-
301
- # Deserializes the data based on type
302
- # @param string type Data type
303
- # @param string value Value to be deserialized
304
- # @return [Object] Deserialized data
305
- def _deserialize(type, value)
306
- case type.to_sym
307
- when :Time
308
- Time.parse(value)
309
- when :Date
310
- Date.parse(value)
311
- when :String
312
- value.to_s
313
- when :Integer
314
- value.to_i
315
- when :Float
316
- value.to_f
317
- when :Boolean
318
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
319
- true
320
- else
321
- false
322
- end
323
- when :Object
324
- # generic object (usually a Hash), return directly
325
- value
326
- when /\AArray<(?<inner_type>.+)>\z/
327
- inner_type = Regexp.last_match[:inner_type]
328
- value.map { |v| _deserialize(inner_type, v) }
329
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
330
- k_type = Regexp.last_match[:k_type]
331
- v_type = Regexp.last_match[:v_type]
332
- {}.tap do |hash|
333
- value.each do |k, v|
334
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
335
- end
336
- end
337
- else # model
338
- # models (e.g. Pet) or oneOf
339
- klass = Hubspot::Crm::Extensions::Accounting.const_get(type)
340
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
341
- end
342
- end
343
-
344
- # Returns the string representation of the object
345
- # @return [String] String presentation of the object
346
- def to_s
347
- to_hash.to_s
348
- end
349
-
350
- # to_body is an alias to to_hash (backward compatibility)
351
- # @return [Hash] Returns the object in the form of hash
352
- def to_body
353
- to_hash
354
- end
355
-
356
- # Returns the object in the form of hash
357
- # @return [Hash] Returns the object in the form of hash
358
- def to_hash
359
- hash = {}
360
- self.class.attribute_map.each_pair do |attr, param|
361
- value = self.send(attr)
362
- if value.nil?
363
- is_nullable = self.class.openapi_nullable.include?(attr)
364
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
365
- end
366
-
367
- hash[param] = _to_hash(value)
368
- end
369
- hash
370
- end
371
-
372
- # Outputs non-array value in the form of hash
373
- # For object, use to_hash. Otherwise, just return the value
374
- # @param [Object] value Any valid value
375
- # @return [Hash] Returns the value in the form of hash
376
- def _to_hash(value)
377
- if value.is_a?(Array)
378
- value.compact.map { |v| _to_hash(v) }
379
- elsif value.is_a?(Hash)
380
- {}.tap do |hash|
381
- value.each { |k, v| hash[k] = _to_hash(v) }
382
- end
383
- elsif value.respond_to? :to_hash
384
- value.to_hash
385
- else
386
- value
387
- end
388
- end
389
-
390
- end
391
-
392
- end
393
- end
394
- end
395
- end
@@ -1,267 +0,0 @@
1
- =begin
2
- #Accounting Extension
3
-
4
- #These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot
5
-
6
- The version of the OpenAPI document: v3
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Hubspot
17
- module Crm
18
- module Extensions
19
- module Accounting
20
- # Representation of payment terms that are defined in the external accounting system. One of 'dueDays' or 'dueDate' is required.
21
- class AccountingExtensionTerm
22
- # The due date for payment of the invoice, in ISO-8601 date format (yyyy-MM-dd)
23
- attr_accessor :due_date
24
-
25
- # The display name of the payment terms.
26
- attr_accessor :name
27
-
28
- # The ID of the payment terms in the external accounting system.
29
- attr_accessor :id
30
-
31
- # The number of days that these payment terms represent.
32
- attr_accessor :due_days
33
-
34
- # Attribute mapping from ruby-style variable name to JSON key.
35
- def self.attribute_map
36
- {
37
- :'due_date' => :'dueDate',
38
- :'name' => :'name',
39
- :'id' => :'id',
40
- :'due_days' => :'dueDays'
41
- }
42
- end
43
-
44
- # Returns all the JSON keys this model knows about
45
- def self.acceptable_attributes
46
- attribute_map.values
47
- end
48
-
49
- # Attribute type mapping.
50
- def self.openapi_types
51
- {
52
- :'due_date' => :'Date',
53
- :'name' => :'String',
54
- :'id' => :'String',
55
- :'due_days' => :'Integer'
56
- }
57
- end
58
-
59
- # List of attributes with nullable: true
60
- def self.openapi_nullable
61
- Set.new([
62
- ])
63
- end
64
-
65
- # Initializes the object
66
- # @param [Hash] attributes Model attributes in the form of hash
67
- def initialize(attributes = {})
68
- if (!attributes.is_a?(Hash))
69
- fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Extensions::Accounting::AccountingExtensionTerm` initialize method"
70
- end
71
-
72
- # check to see if the attribute exists and convert string to symbol for hash key
73
- attributes = attributes.each_with_object({}) { |(k, v), h|
74
- if (!self.class.attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Extensions::Accounting::AccountingExtensionTerm`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
- end
77
- h[k.to_sym] = v
78
- }
79
-
80
- if attributes.key?(:'due_date')
81
- self.due_date = attributes[:'due_date']
82
- end
83
-
84
- if attributes.key?(:'name')
85
- self.name = attributes[:'name']
86
- end
87
-
88
- if attributes.key?(:'id')
89
- self.id = attributes[:'id']
90
- end
91
-
92
- if attributes.key?(:'due_days')
93
- self.due_days = attributes[:'due_days']
94
- end
95
- end
96
-
97
- # Show invalid properties with the reasons. Usually used together with valid?
98
- # @return Array for valid properties with the reasons
99
- def list_invalid_properties
100
- invalid_properties = Array.new
101
- if @name.nil?
102
- invalid_properties.push('invalid value for "name", name cannot be nil.')
103
- end
104
-
105
- if @id.nil?
106
- invalid_properties.push('invalid value for "id", id cannot be nil.')
107
- end
108
-
109
- invalid_properties
110
- end
111
-
112
- # Check to see if the all the properties in the model are valid
113
- # @return true if the model is valid
114
- def valid?
115
- return false if @name.nil?
116
- return false if @id.nil?
117
- true
118
- end
119
-
120
- # Checks equality by comparing each attribute.
121
- # @param [Object] Object to be compared
122
- def ==(o)
123
- return true if self.equal?(o)
124
- self.class == o.class &&
125
- due_date == o.due_date &&
126
- name == o.name &&
127
- id == o.id &&
128
- due_days == o.due_days
129
- end
130
-
131
- # @see the `==` method
132
- # @param [Object] Object to be compared
133
- def eql?(o)
134
- self == o
135
- end
136
-
137
- # Calculates hash code according to all attributes.
138
- # @return [Integer] Hash code
139
- def hash
140
- [due_date, name, id, due_days].hash
141
- end
142
-
143
- # Builds the object from hash
144
- # @param [Hash] attributes Model attributes in the form of hash
145
- # @return [Object] Returns the model itself
146
- def self.build_from_hash(attributes)
147
- new.build_from_hash(attributes)
148
- end
149
-
150
- # Builds the object from hash
151
- # @param [Hash] attributes Model attributes in the form of hash
152
- # @return [Object] Returns the model itself
153
- def build_from_hash(attributes)
154
- return nil unless attributes.is_a?(Hash)
155
- attributes = attributes.transform_keys(&:to_sym)
156
- self.class.openapi_types.each_pair do |key, type|
157
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
158
- self.send("#{key}=", nil)
159
- elsif type =~ /\AArray<(.*)>/i
160
- # check to ensure the input is an array given that the attribute
161
- # is documented as an array but the input is not
162
- if attributes[self.class.attribute_map[key]].is_a?(Array)
163
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
164
- end
165
- elsif !attributes[self.class.attribute_map[key]].nil?
166
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
167
- end
168
- end
169
-
170
- self
171
- end
172
-
173
- # Deserializes the data based on type
174
- # @param string type Data type
175
- # @param string value Value to be deserialized
176
- # @return [Object] Deserialized data
177
- def _deserialize(type, value)
178
- case type.to_sym
179
- when :Time
180
- Time.parse(value)
181
- when :Date
182
- Date.parse(value)
183
- when :String
184
- value.to_s
185
- when :Integer
186
- value.to_i
187
- when :Float
188
- value.to_f
189
- when :Boolean
190
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
191
- true
192
- else
193
- false
194
- end
195
- when :Object
196
- # generic object (usually a Hash), return directly
197
- value
198
- when /\AArray<(?<inner_type>.+)>\z/
199
- inner_type = Regexp.last_match[:inner_type]
200
- value.map { |v| _deserialize(inner_type, v) }
201
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
202
- k_type = Regexp.last_match[:k_type]
203
- v_type = Regexp.last_match[:v_type]
204
- {}.tap do |hash|
205
- value.each do |k, v|
206
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
207
- end
208
- end
209
- else # model
210
- # models (e.g. Pet) or oneOf
211
- klass = Hubspot::Crm::Extensions::Accounting.const_get(type)
212
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
213
- end
214
- end
215
-
216
- # Returns the string representation of the object
217
- # @return [String] String presentation of the object
218
- def to_s
219
- to_hash.to_s
220
- end
221
-
222
- # to_body is an alias to to_hash (backward compatibility)
223
- # @return [Hash] Returns the object in the form of hash
224
- def to_body
225
- to_hash
226
- end
227
-
228
- # Returns the object in the form of hash
229
- # @return [Hash] Returns the object in the form of hash
230
- def to_hash
231
- hash = {}
232
- self.class.attribute_map.each_pair do |attr, param|
233
- value = self.send(attr)
234
- if value.nil?
235
- is_nullable = self.class.openapi_nullable.include?(attr)
236
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
237
- end
238
-
239
- hash[param] = _to_hash(value)
240
- end
241
- hash
242
- end
243
-
244
- # Outputs non-array value in the form of hash
245
- # For object, use to_hash. Otherwise, just return the value
246
- # @param [Object] value Any valid value
247
- # @return [Hash] Returns the value in the form of hash
248
- def _to_hash(value)
249
- if value.is_a?(Array)
250
- value.compact.map { |v| _to_hash(v) }
251
- elsif value.is_a?(Hash)
252
- {}.tap do |hash|
253
- value.each { |k, v| hash[k] = _to_hash(v) }
254
- end
255
- elsif value.respond_to? :to_hash
256
- value.to_hash
257
- else
258
- value
259
- end
260
- end
261
-
262
- end
263
-
264
- end
265
- end
266
- end
267
- end