hubspot-api-client 9.5.0 → 10.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +4 -4
  4. data/LICENSE +201 -0
  5. data/README.md +1 -1
  6. data/hubspot-api-client.gemspec +1 -1
  7. data/lib/hubspot/codegen/automation/actions/api_client.rb +14 -0
  8. data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +14 -0
  9. data/lib/hubspot/codegen/cms/blogs/authors/api/default_api.rb +2 -2
  10. data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +14 -0
  11. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/default_api.rb +2 -2
  12. data/lib/hubspot/codegen/cms/blogs/blog-posts/api_client.rb +14 -0
  13. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +108 -102
  14. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/layout_section.rb +4 -2
  15. data/lib/hubspot/codegen/cms/blogs/tags/api/default_api.rb +2 -2
  16. data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +14 -0
  17. data/lib/hubspot/codegen/cms/domains/api_client.rb +14 -0
  18. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +1 -1
  19. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +15 -1
  22. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  24. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  30. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  31. data/lib/hubspot/codegen/cms/hubdb/models/column_input.rb +1 -1
  32. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  33. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  34. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +5 -3
  38. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_input.rb +1 -1
  39. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  40. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_input.rb +1 -1
  41. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +1 -1
  42. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  43. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  44. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  45. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  46. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  47. data/lib/hubspot/codegen/cms/performance/api_client.rb +14 -0
  48. data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +2 -5
  49. data/lib/hubspot/codegen/cms/site-search/api_client.rb +14 -0
  50. data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +19 -2
  51. data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +5 -2
  52. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +17 -15
  53. data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +14 -0
  54. data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +80 -0
  55. data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +214 -0
  56. data/lib/hubspot/codegen/communication_preferences/api_client.rb +404 -0
  57. data/lib/hubspot/codegen/communication_preferences/api_error.rb +59 -0
  58. data/lib/hubspot/codegen/communication_preferences/configuration.rb +254 -0
  59. data/lib/hubspot/codegen/communication_preferences/models/error.rb +290 -0
  60. data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +256 -0
  61. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +372 -0
  62. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +231 -0
  63. data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +283 -0
  64. data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +339 -0
  65. data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +216 -0
  66. data/lib/hubspot/codegen/conversations/visitor-identification/api_client.rb +14 -0
  67. data/lib/hubspot/codegen/crm/associations/api_client.rb +14 -0
  68. data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +6 -12
  69. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +11 -14
  70. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +3 -3
  71. data/lib/hubspot/codegen/crm/companies/api_client.rb +14 -0
  72. data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +20 -20
  73. data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id_forward_paging.rb +226 -0
  74. data/lib/hubspot/codegen/crm/companies/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  75. data/lib/hubspot/codegen/crm/companies/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  76. data/lib/hubspot/codegen/crm/companies/models/forward_paging.rb +210 -0
  77. data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -12
  78. data/lib/hubspot/codegen/crm/companies/models/simple_public_object_with_associations.rb +288 -0
  79. data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +6 -12
  80. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +11 -14
  81. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +3 -3
  82. data/lib/hubspot/codegen/crm/contacts/api_client.rb +14 -0
  83. data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +20 -20
  84. data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id_forward_paging.rb +226 -0
  85. data/lib/hubspot/codegen/crm/contacts/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  86. data/lib/hubspot/codegen/crm/contacts/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  87. data/lib/hubspot/codegen/crm/contacts/models/forward_paging.rb +210 -0
  88. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -12
  89. data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_with_associations.rb +288 -0
  90. data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +6 -12
  91. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +11 -14
  92. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +3 -3
  93. data/lib/hubspot/codegen/crm/deals/api_client.rb +14 -0
  94. data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +20 -20
  95. data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id_forward_paging.rb +226 -0
  96. data/lib/hubspot/codegen/crm/deals/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  97. data/lib/hubspot/codegen/crm/deals/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  98. data/lib/hubspot/codegen/crm/deals/models/forward_paging.rb +210 -0
  99. data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -12
  100. data/lib/hubspot/codegen/crm/deals/models/simple_public_object_with_associations.rb +288 -0
  101. data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +14 -0
  102. data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +24 -16
  103. data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +14 -0
  104. data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +1 -1
  105. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +14 -4
  106. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +14 -4
  107. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +16 -1
  108. data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +25 -17
  109. data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +14 -0
  110. data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
  111. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +14 -0
  112. data/lib/hubspot/codegen/crm/imports/api/default_api.rb +90 -0
  113. data/lib/hubspot/codegen/crm/imports/api_client.rb +14 -0
  114. data/lib/hubspot/codegen/crm/imports/models/collection_response_public_import_error_forward_paging.rb +226 -0
  115. data/lib/hubspot/codegen/crm/{schemas/models/paging.rb → imports/models/forward_paging.rb} +11 -20
  116. data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +238 -0
  117. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +353 -0
  118. data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +2 -2
  119. data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +6 -12
  120. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +11 -14
  121. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +3 -3
  122. data/lib/hubspot/codegen/crm/line_items/api_client.rb +14 -0
  123. data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +20 -20
  124. data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id_forward_paging.rb +226 -0
  125. data/lib/hubspot/codegen/crm/line_items/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  126. data/lib/hubspot/codegen/crm/line_items/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  127. data/lib/hubspot/codegen/crm/line_items/models/forward_paging.rb +210 -0
  128. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -12
  129. data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +288 -0
  130. data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +6 -12
  131. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +11 -14
  132. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +10 -10
  133. data/lib/hubspot/codegen/crm/objects/api_client.rb +14 -0
  134. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +3 -6
  135. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +6 -12
  136. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +3 -3
  137. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +14 -0
  138. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +20 -20
  139. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_simple_public_object.rb → collection_response_associated_id_forward_paging.rb} +5 -5
  140. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
  141. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  142. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/forward_paging.rb +212 -0
  143. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +1 -12
  144. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations.rb +290 -0
  145. data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +20 -20
  146. data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id_forward_paging.rb +226 -0
  147. data/lib/hubspot/codegen/crm/objects/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  148. data/lib/hubspot/codegen/crm/objects/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  149. data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +210 -0
  150. data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +1 -12
  151. data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +288 -0
  152. data/lib/hubspot/codegen/crm/owners/api/default_api.rb +9 -3
  153. data/lib/hubspot/codegen/crm/owners/api_client.rb +14 -0
  154. data/lib/hubspot/codegen/crm/owners/models/{collection_response_public_owner.rb → collection_response_public_owner_forward_paging.rb} +4 -4
  155. data/lib/hubspot/codegen/crm/owners/models/{paging.rb → forward_paging.rb} +3 -3
  156. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +14 -0
  157. data/lib/hubspot/codegen/crm/products/api/associations_api.rb +6 -12
  158. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +11 -14
  159. data/lib/hubspot/codegen/crm/products/api/search_api.rb +3 -3
  160. data/lib/hubspot/codegen/crm/products/api_client.rb +14 -0
  161. data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +20 -20
  162. data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id_forward_paging.rb +226 -0
  163. data/lib/hubspot/codegen/crm/products/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  164. data/lib/hubspot/codegen/crm/products/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  165. data/lib/hubspot/codegen/crm/products/models/forward_paging.rb +210 -0
  166. data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -12
  167. data/lib/hubspot/codegen/crm/products/models/simple_public_object_with_associations.rb +288 -0
  168. data/lib/hubspot/codegen/crm/properties/api_client.rb +14 -0
  169. data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +3 -6
  170. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +6 -12
  171. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +3 -3
  172. data/lib/hubspot/codegen/crm/quotes/api_client.rb +14 -0
  173. data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +20 -20
  174. data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id_forward_paging.rb +226 -0
  175. data/lib/hubspot/codegen/crm/quotes/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  176. data/lib/hubspot/codegen/crm/quotes/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  177. data/lib/hubspot/codegen/crm/{schemas/models/previous_page.rb → quotes/models/forward_paging.rb} +14 -28
  178. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +1 -12
  179. data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +288 -0
  180. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +23 -17
  181. data/lib/hubspot/codegen/crm/schemas/api_client.rb +14 -0
  182. data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +1 -75
  183. data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +4 -78
  184. data/lib/hubspot/codegen/crm/schemas/models/{collection_response_object_schema.rb → collection_response_object_schema_no_paging.rb} +7 -16
  185. data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +15 -1
  186. data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +15 -1
  187. data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +2 -2
  188. data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +6 -12
  189. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +11 -14
  190. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +3 -3
  191. data/lib/hubspot/codegen/crm/tickets/api_client.rb +14 -0
  192. data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +20 -20
  193. data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id_forward_paging.rb +226 -0
  194. data/lib/hubspot/codegen/crm/tickets/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
  195. data/lib/hubspot/codegen/crm/tickets/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
  196. data/lib/hubspot/codegen/crm/tickets/models/forward_paging.rb +210 -0
  197. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +1 -12
  198. data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_with_associations.rb +288 -0
  199. data/lib/hubspot/codegen/crm/timeline/api_client.rb +14 -0
  200. data/lib/hubspot/codegen/events/api_client.rb +14 -0
  201. data/lib/hubspot/codegen/files/files/api/files_api.rb +8 -8
  202. data/lib/hubspot/codegen/files/files/api_client.rb +14 -0
  203. data/lib/hubspot/codegen/files/files/models/file_update_input.rb +2 -2
  204. data/lib/hubspot/codegen/files/files/models/{file.rb → hubspot_file.rb} +3 -3
  205. data/lib/hubspot/codegen/files/files/models/import_from_url_input.rb +2 -2
  206. data/lib/hubspot/codegen/marketing/transactional/api/default_api.rb +60 -60
  207. data/lib/hubspot/codegen/marketing/transactional/api_client.rb +14 -0
  208. data/lib/hubspot/codegen/oauth/api_client.rb +14 -0
  209. data/lib/hubspot/codegen/webhooks/api_client.rb +14 -0
  210. data/lib/hubspot/version.rb +1 -1
  211. data/spec/codegen/cms/blogs/authors/api/default_api_spec.rb +24 -24
  212. data/spec/codegen/cms/blogs/blog-posts/api/default_api_spec.rb +26 -26
  213. data/spec/codegen/cms/blogs/blog-posts/models/blog_post_spec.rb +14 -14
  214. data/spec/codegen/cms/blogs/tags/api/default_api_spec.rb +24 -24
  215. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +1 -1
  216. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +1 -1
  217. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +1 -1
  218. data/spec/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_spec.rb +1 -1
  219. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  220. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  221. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  222. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  223. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  224. data/spec/codegen/cms/hubdb/models/column_input_spec.rb +1 -1
  225. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  226. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  227. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  228. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  229. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  230. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  231. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_input_spec.rb +1 -1
  232. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +1 -1
  233. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_input_spec.rb +1 -1
  234. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +1 -1
  235. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  236. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  237. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  238. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  239. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  240. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  241. data/spec/codegen/cms/site-search/api/default_api_spec.rb +0 -1
  242. data/spec/codegen/cms/site-search/models/content_search_result_spec.rb +1 -1
  243. data/spec/codegen/cms/site-search/models/indexed_data_spec.rb +1 -1
  244. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  245. data/spec/codegen/communication_preferences/api/definition_api_spec.rb +46 -0
  246. data/spec/codegen/communication_preferences/api/status_api_spec.rb +71 -0
  247. data/spec/codegen/communication_preferences/models/error_detail_spec.rb +65 -0
  248. data/spec/codegen/communication_preferences/models/error_spec.rb +77 -0
  249. data/spec/codegen/communication_preferences/models/public_subscription_status_spec.rb +101 -0
  250. data/spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb +47 -0
  251. data/spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb +63 -0
  252. data/spec/codegen/communication_preferences/models/subscription_definition_spec.rb +95 -0
  253. data/spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb +41 -0
  254. data/spec/codegen/crm/companies/api/associations_api_spec.rb +2 -4
  255. data/spec/codegen/crm/companies/api/basic_api_spec.rb +4 -5
  256. data/spec/codegen/crm/companies/api/search_api_spec.rb +1 -1
  257. data/spec/codegen/crm/companies/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  258. data/spec/codegen/crm/companies/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  259. data/spec/codegen/crm/companies/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  260. data/spec/codegen/crm/companies/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  261. data/spec/codegen/crm/companies/models/forward_paging_spec.rb +41 -0
  262. data/spec/codegen/crm/companies/models/simple_public_object_spec.rb +0 -6
  263. data/spec/codegen/crm/companies/models/simple_public_object_with_associations_spec.rb +77 -0
  264. data/spec/codegen/crm/contacts/api/associations_api_spec.rb +2 -4
  265. data/spec/codegen/crm/contacts/api/basic_api_spec.rb +4 -5
  266. data/spec/codegen/crm/contacts/api/search_api_spec.rb +1 -1
  267. data/spec/codegen/crm/contacts/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  268. data/spec/codegen/crm/contacts/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  269. data/spec/codegen/crm/contacts/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  270. data/spec/codegen/crm/contacts/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  271. data/spec/codegen/crm/contacts/models/forward_paging_spec.rb +41 -0
  272. data/spec/codegen/crm/contacts/models/simple_public_object_spec.rb +0 -6
  273. data/spec/codegen/crm/contacts/models/simple_public_object_with_associations_spec.rb +77 -0
  274. data/spec/codegen/crm/deals/api/associations_api_spec.rb +2 -4
  275. data/spec/codegen/crm/deals/api/basic_api_spec.rb +4 -5
  276. data/spec/codegen/crm/deals/api/search_api_spec.rb +1 -1
  277. data/spec/codegen/crm/deals/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  278. data/spec/codegen/crm/deals/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  279. data/spec/codegen/crm/deals/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  280. data/spec/codegen/crm/deals/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  281. data/spec/codegen/crm/deals/models/forward_paging_spec.rb +41 -0
  282. data/spec/codegen/crm/deals/models/simple_public_object_spec.rb +0 -6
  283. data/spec/codegen/crm/deals/models/simple_public_object_with_associations_spec.rb +77 -0
  284. data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +2 -2
  285. data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +6 -0
  286. data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +6 -0
  287. data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +6 -0
  288. data/spec/codegen/crm/extensions/cards/api/cards_api_spec.rb +2 -2
  289. data/spec/codegen/crm/imports/api/default_api_spec.rb +47 -0
  290. data/spec/codegen/crm/imports/models/collection_response_public_import_error_forward_paging_spec.rb +47 -0
  291. data/spec/codegen/crm/imports/models/forward_paging_spec.rb +41 -0
  292. data/spec/codegen/crm/imports/models/import_row_core_spec.rb +53 -0
  293. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +97 -0
  294. data/spec/codegen/crm/imports/models/public_import_response_spec.rb +1 -1
  295. data/spec/codegen/crm/line_items/api/associations_api_spec.rb +2 -4
  296. data/spec/codegen/crm/line_items/api/basic_api_spec.rb +4 -5
  297. data/spec/codegen/crm/line_items/api/search_api_spec.rb +1 -1
  298. data/spec/codegen/crm/line_items/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  299. data/spec/codegen/crm/line_items/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  300. data/spec/codegen/crm/line_items/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  301. data/spec/codegen/crm/line_items/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  302. data/spec/codegen/crm/line_items/models/forward_paging_spec.rb +41 -0
  303. data/spec/codegen/crm/line_items/models/simple_public_object_spec.rb +0 -6
  304. data/spec/codegen/crm/line_items/models/simple_public_object_with_associations_spec.rb +77 -0
  305. data/spec/codegen/crm/objects/api/associations_api_spec.rb +2 -4
  306. data/spec/codegen/crm/objects/api/basic_api_spec.rb +4 -5
  307. data/spec/codegen/crm/objects/api/search_api_spec.rb +3 -3
  308. data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +1 -2
  309. data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +2 -4
  310. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +1 -1
  311. data/spec/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  312. data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  313. data/spec/codegen/crm/objects/feedback_submissions/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  314. data/spec/codegen/crm/objects/feedback_submissions/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  315. data/spec/codegen/crm/objects/feedback_submissions/models/forward_paging_spec.rb +41 -0
  316. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_spec.rb +0 -6
  317. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations_spec.rb +77 -0
  318. data/spec/codegen/crm/objects/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  319. data/spec/codegen/crm/objects/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  320. data/spec/codegen/crm/objects/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  321. data/spec/codegen/crm/objects/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  322. data/spec/codegen/crm/objects/models/forward_paging_spec.rb +41 -0
  323. data/spec/codegen/crm/objects/models/simple_public_object_spec.rb +0 -6
  324. data/spec/codegen/crm/objects/models/simple_public_object_with_associations_spec.rb +77 -0
  325. data/spec/codegen/crm/owners/api/default_api_spec.rb +3 -1
  326. data/spec/codegen/crm/owners/models/{collection_response_public_owner_spec.rb → collection_response_public_owner_forward_paging_spec.rb} +6 -6
  327. data/spec/codegen/crm/owners/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
  328. data/spec/codegen/crm/products/api/associations_api_spec.rb +2 -4
  329. data/spec/codegen/crm/products/api/basic_api_spec.rb +4 -5
  330. data/spec/codegen/crm/products/api/search_api_spec.rb +1 -1
  331. data/spec/codegen/crm/products/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  332. data/spec/codegen/crm/products/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  333. data/spec/codegen/crm/products/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  334. data/spec/codegen/crm/products/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  335. data/spec/codegen/crm/products/models/forward_paging_spec.rb +41 -0
  336. data/spec/codegen/crm/products/models/simple_public_object_spec.rb +0 -6
  337. data/spec/codegen/crm/products/models/simple_public_object_with_associations_spec.rb +77 -0
  338. data/spec/codegen/crm/quotes/api/associations_api_spec.rb +1 -2
  339. data/spec/codegen/crm/quotes/api/basic_api_spec.rb +2 -4
  340. data/spec/codegen/crm/quotes/api/search_api_spec.rb +1 -1
  341. data/spec/codegen/crm/quotes/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  342. data/spec/codegen/crm/quotes/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  343. data/spec/codegen/crm/quotes/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  344. data/spec/codegen/crm/quotes/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  345. data/spec/codegen/crm/quotes/models/forward_paging_spec.rb +41 -0
  346. data/spec/codegen/crm/quotes/models/simple_public_object_spec.rb +0 -6
  347. data/spec/codegen/crm/quotes/models/simple_public_object_with_associations_spec.rb +77 -0
  348. data/spec/codegen/crm/schemas/api/core_api_spec.rb +10 -8
  349. data/spec/codegen/crm/schemas/models/association_definition_egg_spec.rb +0 -20
  350. data/spec/codegen/crm/schemas/models/association_definition_spec.rb +0 -20
  351. data/spec/codegen/crm/schemas/models/{collection_response_object_schema_spec.rb → collection_response_object_schema_no_paging_spec.rb} +6 -12
  352. data/spec/codegen/crm/schemas/models/object_schema_spec.rb +6 -0
  353. data/spec/codegen/crm/schemas/models/object_type_definition_spec.rb +6 -0
  354. data/spec/codegen/crm/schemas/models/object_type_property_create_spec.rb +1 -1
  355. data/spec/codegen/crm/tickets/api/associations_api_spec.rb +2 -4
  356. data/spec/codegen/crm/tickets/api/basic_api_spec.rb +4 -5
  357. data/spec/codegen/crm/tickets/api/search_api_spec.rb +1 -1
  358. data/spec/codegen/crm/tickets/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
  359. data/spec/codegen/crm/tickets/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
  360. data/spec/codegen/crm/tickets/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
  361. data/spec/codegen/crm/tickets/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
  362. data/spec/codegen/crm/tickets/models/forward_paging_spec.rb +41 -0
  363. data/spec/codegen/crm/tickets/models/simple_public_object_spec.rb +0 -6
  364. data/spec/codegen/crm/tickets/models/simple_public_object_with_associations_spec.rb +77 -0
  365. data/spec/codegen/files/files/api/files_api_spec.rb +2 -2
  366. data/spec/codegen/files/files/models/file_update_input_spec.rb +1 -1
  367. data/spec/codegen/files/files/models/{file_spec.rb → hubspot_file_spec.rb} +5 -5
  368. data/spec/codegen/files/files/models/import_from_url_input_spec.rb +1 -1
  369. data/spec/codegen/marketing/transactional/api/default_api_spec.rb +12 -12
  370. data/spec/features/communication_preferences/definition_api_spec.rb +7 -0
  371. data/spec/features/communication_preferences/status_api_spec.rb +9 -0
  372. data/spec/features/crm/objects/search_api_spec.rb +1 -1
  373. metadata +200 -78
  374. data/lib/hubspot/codegen/crm/schemas/models/next_page.rb +0 -224
  375. data/spec/codegen/crm/schemas/models/next_page_spec.rb +0 -47
  376. data/spec/codegen/crm/schemas/models/paging_spec.rb +0 -47
  377. data/spec/codegen/crm/schemas/models/previous_page_spec.rb +0 -47
@@ -56,6 +56,20 @@ module Hubspot
56
56
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
57
57
  end
58
58
 
59
+ if !response.success? && config.error_handler.any?
60
+ config.error_handler.each do |statuses, opts|
61
+ statuses = statuses.is_a?(Integer) ? [statuses] : statuses
62
+
63
+ retries = opts[:max_retries] || 5
64
+ while retries > 0 && statuses.include?(response.code)
65
+ sleep opts[:seconds_delay] if opts[:seconds_delay]
66
+ response = request.run
67
+ opts[:retry_block].call if opts[:retry_block]
68
+ retries -= 1
69
+ end
70
+ end
71
+ end
72
+
59
73
  unless response.success?
60
74
  if response.timed_out?
61
75
  fail ApiError.new('Connection timed out')
@@ -66,7 +66,7 @@ module Hubspot
66
66
  return_type = opts[:return_type]
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:auth_names] || ['hapikey']
69
+ auth_names = opts[:auth_names] || ['developer_hapikey']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :header_params => header_params,
@@ -87,21 +87,21 @@ module Hubspot
87
87
  # Configure a calling extension
88
88
  # Used to set the menu label, target iframe URL, and dimensions for your calling extension.
89
89
  # @param app_id [Integer] The ID of the target app.
90
+ # @param settings_request [SettingsRequest] Settings state to create with.
90
91
  # @param [Hash] opts the optional parameters
91
- # @option opts [SettingsRequest] :settings_request Settings state to create with.
92
92
  # @return [SettingsResponse]
93
- def create(app_id, opts = {})
94
- data, _status_code, _headers = create_with_http_info(app_id, opts)
93
+ def create(app_id, settings_request, opts = {})
94
+ data, _status_code, _headers = create_with_http_info(app_id, settings_request, opts)
95
95
  data
96
96
  end
97
97
 
98
98
  # Configure a calling extension
99
99
  # Used to set the menu label, target iframe URL, and dimensions for your calling extension.
100
100
  # @param app_id [Integer] The ID of the target app.
101
+ # @param settings_request [SettingsRequest] Settings state to create with.
101
102
  # @param [Hash] opts the optional parameters
102
- # @option opts [SettingsRequest] :settings_request Settings state to create with.
103
103
  # @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
104
- def create_with_http_info(app_id, opts = {})
104
+ def create_with_http_info(app_id, settings_request, opts = {})
105
105
  if @api_client.config.debugging
106
106
  @api_client.config.logger.debug 'Calling API: SettingsApi.create ...'
107
107
  end
@@ -109,6 +109,10 @@ module Hubspot
109
109
  if @api_client.config.client_side_validation && app_id.nil?
110
110
  fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.create"
111
111
  end
112
+ # verify the required parameter 'settings_request' is set
113
+ if @api_client.config.client_side_validation && settings_request.nil?
114
+ fail ArgumentError, "Missing the required parameter 'settings_request' when calling SettingsApi.create"
115
+ end
112
116
  # resource path
113
117
  local_var_path = '/crm/v3/extensions/calling/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
114
118
 
@@ -126,13 +130,13 @@ module Hubspot
126
130
  form_params = opts[:form_params] || {}
127
131
 
128
132
  # http body (model)
129
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'settings_request'])
133
+ post_body = opts[:body] || @api_client.object_to_http_body(settings_request)
130
134
 
131
135
  # return_type
132
136
  return_type = opts[:return_type] || 'SettingsResponse'
133
137
 
134
138
  # auth_names
135
- auth_names = opts[:auth_names] || ['hapikey']
139
+ auth_names = opts[:auth_names] || ['developer_hapikey']
136
140
 
137
141
  new_options = opts.merge(
138
142
  :header_params => header_params,
@@ -194,7 +198,7 @@ module Hubspot
194
198
  return_type = opts[:return_type] || 'SettingsResponse'
195
199
 
196
200
  # auth_names
197
- auth_names = opts[:auth_names] || ['hapikey']
201
+ auth_names = opts[:auth_names] || ['developer_hapikey']
198
202
 
199
203
  new_options = opts.merge(
200
204
  :header_params => header_params,
@@ -215,21 +219,21 @@ module Hubspot
215
219
  # Update settings
216
220
  # Updates existing calling extension settings.
217
221
  # @param app_id [Integer] The ID of the target app.
222
+ # @param settings_patch_request [SettingsPatchRequest] Updated details for the settings.
218
223
  # @param [Hash] opts the optional parameters
219
- # @option opts [SettingsPatchRequest] :settings_patch_request Updated details for the settings.
220
224
  # @return [SettingsResponse]
221
- def update(app_id, opts = {})
222
- data, _status_code, _headers = update_with_http_info(app_id, opts)
225
+ def update(app_id, settings_patch_request, opts = {})
226
+ data, _status_code, _headers = update_with_http_info(app_id, settings_patch_request, opts)
223
227
  data
224
228
  end
225
229
 
226
230
  # Update settings
227
231
  # Updates existing calling extension settings.
228
232
  # @param app_id [Integer] The ID of the target app.
233
+ # @param settings_patch_request [SettingsPatchRequest] Updated details for the settings.
229
234
  # @param [Hash] opts the optional parameters
230
- # @option opts [SettingsPatchRequest] :settings_patch_request Updated details for the settings.
231
235
  # @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
232
- def update_with_http_info(app_id, opts = {})
236
+ def update_with_http_info(app_id, settings_patch_request, opts = {})
233
237
  if @api_client.config.debugging
234
238
  @api_client.config.logger.debug 'Calling API: SettingsApi.update ...'
235
239
  end
@@ -237,6 +241,10 @@ module Hubspot
237
241
  if @api_client.config.client_side_validation && app_id.nil?
238
242
  fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.update"
239
243
  end
244
+ # verify the required parameter 'settings_patch_request' is set
245
+ if @api_client.config.client_side_validation && settings_patch_request.nil?
246
+ fail ArgumentError, "Missing the required parameter 'settings_patch_request' when calling SettingsApi.update"
247
+ end
240
248
  # resource path
241
249
  local_var_path = '/crm/v3/extensions/calling/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
242
250
 
@@ -254,13 +262,13 @@ module Hubspot
254
262
  form_params = opts[:form_params] || {}
255
263
 
256
264
  # http body (model)
257
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'settings_patch_request'])
265
+ post_body = opts[:body] || @api_client.object_to_http_body(settings_patch_request)
258
266
 
259
267
  # return_type
260
268
  return_type = opts[:return_type] || 'SettingsResponse'
261
269
 
262
270
  # auth_names
263
- auth_names = opts[:auth_names] || ['hapikey']
271
+ auth_names = opts[:auth_names] || ['developer_hapikey']
264
272
 
265
273
  new_options = opts.merge(
266
274
  :header_params => header_params,
@@ -56,6 +56,20 @@ module Hubspot
56
56
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
57
57
  end
58
58
 
59
+ if !response.success? && config.error_handler.any?
60
+ config.error_handler.each do |statuses, opts|
61
+ statuses = statuses.is_a?(Integer) ? [statuses] : statuses
62
+
63
+ retries = opts[:max_retries] || 5
64
+ while retries > 0 && statuses.include?(response.code)
65
+ sleep opts[:seconds_delay] if opts[:seconds_delay]
66
+ response = request.run
67
+ opts[:retry_block].call if opts[:retry_block]
68
+ retries -= 1
69
+ end
70
+ end
71
+ end
72
+
59
73
  unless response.success?
60
74
  if response.timed_out?
61
75
  fail ApiError.new('Connection timed out')
@@ -200,7 +200,7 @@ module Hubspot
200
200
  # Returns Auth Settings hash for api client.
201
201
  def auth_settings
202
202
  {
203
- 'hapikey' =>
203
+ 'developer_hapikey' =>
204
204
  {
205
205
  type: 'api_key',
206
206
  in: 'query',
@@ -32,6 +32,9 @@ module Hubspot
32
32
  # When true, your service will appear as an option under the *Call* action in contact records of connected accounts.
33
33
  attr_accessor :is_ready
34
34
 
35
+ # When true, you are indicating that your service is compatible with engagement v2 service and can be used with custom objects.
36
+ attr_accessor :supports_custom_objects
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -39,7 +42,8 @@ module Hubspot
39
42
  :'url' => :'url',
40
43
  :'height' => :'height',
41
44
  :'width' => :'width',
42
- :'is_ready' => :'isReady'
45
+ :'is_ready' => :'isReady',
46
+ :'supports_custom_objects' => :'supportsCustomObjects'
43
47
  }
44
48
  end
45
49
 
@@ -50,7 +54,8 @@ module Hubspot
50
54
  :'url' => :'String',
51
55
  :'height' => :'Integer',
52
56
  :'width' => :'Integer',
53
- :'is_ready' => :'Boolean'
57
+ :'is_ready' => :'Boolean',
58
+ :'supports_custom_objects' => :'Boolean'
54
59
  }
55
60
  end
56
61
 
@@ -94,6 +99,10 @@ module Hubspot
94
99
  if attributes.key?(:'is_ready')
95
100
  self.is_ready = attributes[:'is_ready']
96
101
  end
102
+
103
+ if attributes.key?(:'supports_custom_objects')
104
+ self.supports_custom_objects = attributes[:'supports_custom_objects']
105
+ end
97
106
  end
98
107
 
99
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -118,7 +127,8 @@ module Hubspot
118
127
  url == o.url &&
119
128
  height == o.height &&
120
129
  width == o.width &&
121
- is_ready == o.is_ready
130
+ is_ready == o.is_ready &&
131
+ supports_custom_objects == o.supports_custom_objects
122
132
  end
123
133
 
124
134
  # @see the `==` method
@@ -130,7 +140,7 @@ module Hubspot
130
140
  # Calculates hash code according to all attributes.
131
141
  # @return [Integer] Hash code
132
142
  def hash
133
- [name, url, height, width, is_ready].hash
143
+ [name, url, height, width, is_ready, supports_custom_objects].hash
134
144
  end
135
145
 
136
146
  # Builds the object from hash
@@ -32,6 +32,9 @@ module Hubspot
32
32
  # When true, your service will appear as an option under the *Call* action in contact records of connected accounts.
33
33
  attr_accessor :is_ready
34
34
 
35
+ # When true, you are indicating that your service is compatible with engagement v2 service and can be used with custom objects.
36
+ attr_accessor :supports_custom_objects
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -39,7 +42,8 @@ module Hubspot
39
42
  :'url' => :'url',
40
43
  :'height' => :'height',
41
44
  :'width' => :'width',
42
- :'is_ready' => :'isReady'
45
+ :'is_ready' => :'isReady',
46
+ :'supports_custom_objects' => :'supportsCustomObjects'
43
47
  }
44
48
  end
45
49
 
@@ -50,7 +54,8 @@ module Hubspot
50
54
  :'url' => :'String',
51
55
  :'height' => :'Integer',
52
56
  :'width' => :'Integer',
53
- :'is_ready' => :'Boolean'
57
+ :'is_ready' => :'Boolean',
58
+ :'supports_custom_objects' => :'Boolean'
54
59
  }
55
60
  end
56
61
 
@@ -94,6 +99,10 @@ module Hubspot
94
99
  if attributes.key?(:'is_ready')
95
100
  self.is_ready = attributes[:'is_ready']
96
101
  end
102
+
103
+ if attributes.key?(:'supports_custom_objects')
104
+ self.supports_custom_objects = attributes[:'supports_custom_objects']
105
+ end
97
106
  end
98
107
 
99
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,7 +137,8 @@ module Hubspot
128
137
  url == o.url &&
129
138
  height == o.height &&
130
139
  width == o.width &&
131
- is_ready == o.is_ready
140
+ is_ready == o.is_ready &&
141
+ supports_custom_objects == o.supports_custom_objects
132
142
  end
133
143
 
134
144
  # @see the `==` method
@@ -140,7 +150,7 @@ module Hubspot
140
150
  # Calculates hash code according to all attributes.
141
151
  # @return [Integer] Hash code
142
152
  def hash
143
- [name, url, height, width, is_ready].hash
153
+ [name, url, height, width, is_ready, supports_custom_objects].hash
144
154
  end
145
155
 
146
156
  # Builds the object from hash
@@ -32,6 +32,9 @@ module Hubspot
32
32
  # When true, your service will appear as an option under the *Call* action in contact records of connected accounts.
33
33
  attr_accessor :is_ready
34
34
 
35
+ # When true, you are indicating that your service is compatible with engagement v2 service and can be used with custom objects.
36
+ attr_accessor :supports_custom_objects
37
+
35
38
  # When this calling extension was created.
36
39
  attr_accessor :created_at
37
40
 
@@ -46,6 +49,7 @@ module Hubspot
46
49
  :'height' => :'height',
47
50
  :'width' => :'width',
48
51
  :'is_ready' => :'isReady',
52
+ :'supports_custom_objects' => :'supportsCustomObjects',
49
53
  :'created_at' => :'createdAt',
50
54
  :'updated_at' => :'updatedAt'
51
55
  }
@@ -59,6 +63,7 @@ module Hubspot
59
63
  :'height' => :'Integer',
60
64
  :'width' => :'Integer',
61
65
  :'is_ready' => :'Boolean',
66
+ :'supports_custom_objects' => :'Boolean',
62
67
  :'created_at' => :'DateTime',
63
68
  :'updated_at' => :'DateTime'
64
69
  }
@@ -105,6 +110,10 @@ module Hubspot
105
110
  self.is_ready = attributes[:'is_ready']
106
111
  end
107
112
 
113
+ if attributes.key?(:'supports_custom_objects')
114
+ self.supports_custom_objects = attributes[:'supports_custom_objects']
115
+ end
116
+
108
117
  if attributes.key?(:'created_at')
109
118
  self.created_at = attributes[:'created_at']
110
119
  end
@@ -138,6 +147,10 @@ module Hubspot
138
147
  invalid_properties.push('invalid value for "is_ready", is_ready cannot be nil.')
139
148
  end
140
149
 
150
+ if @supports_custom_objects.nil?
151
+ invalid_properties.push('invalid value for "supports_custom_objects", supports_custom_objects cannot be nil.')
152
+ end
153
+
141
154
  if @created_at.nil?
142
155
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
143
156
  end
@@ -157,6 +170,7 @@ module Hubspot
157
170
  return false if @height.nil?
158
171
  return false if @width.nil?
159
172
  return false if @is_ready.nil?
173
+ return false if @supports_custom_objects.nil?
160
174
  return false if @created_at.nil?
161
175
  return false if @updated_at.nil?
162
176
  true
@@ -172,6 +186,7 @@ module Hubspot
172
186
  height == o.height &&
173
187
  width == o.width &&
174
188
  is_ready == o.is_ready &&
189
+ supports_custom_objects == o.supports_custom_objects &&
175
190
  created_at == o.created_at &&
176
191
  updated_at == o.updated_at
177
192
  end
@@ -185,7 +200,7 @@ module Hubspot
185
200
  # Calculates hash code according to all attributes.
186
201
  # @return [Integer] Hash code
187
202
  def hash
188
- [name, url, height, width, is_ready, created_at, updated_at].hash
203
+ [name, url, height, width, is_ready, supports_custom_objects, created_at, updated_at].hash
189
204
  end
190
205
 
191
206
  # Builds the object from hash
@@ -72,7 +72,7 @@ module Hubspot
72
72
  return_type = opts[:return_type]
73
73
 
74
74
  # auth_names
75
- auth_names = opts[:auth_names] || ['hapikey']
75
+ auth_names = opts[:auth_names] || ['developer_hapikey']
76
76
 
77
77
  new_options = opts.merge(
78
78
  :header_params => header_params,
@@ -93,21 +93,21 @@ module Hubspot
93
93
  # Create a new card
94
94
  # Defines a new card that will become active on an account when this app is installed.
95
95
  # @param app_id [Integer] The ID of the target app.
96
+ # @param card_create_request [CardCreateRequest] The new card definition.
96
97
  # @param [Hash] opts the optional parameters
97
- # @option opts [CardCreateRequest] :card_create_request The new card definition.
98
98
  # @return [CardResponse]
99
- def create(app_id, opts = {})
100
- data, _status_code, _headers = create_with_http_info(app_id, opts)
99
+ def create(app_id, card_create_request, opts = {})
100
+ data, _status_code, _headers = create_with_http_info(app_id, card_create_request, opts)
101
101
  data
102
102
  end
103
103
 
104
104
  # Create a new card
105
105
  # Defines a new card that will become active on an account when this app is installed.
106
106
  # @param app_id [Integer] The ID of the target app.
107
+ # @param card_create_request [CardCreateRequest] The new card definition.
107
108
  # @param [Hash] opts the optional parameters
108
- # @option opts [CardCreateRequest] :card_create_request The new card definition.
109
109
  # @return [Array<(CardResponse, Integer, Hash)>] CardResponse data, response status code and response headers
110
- def create_with_http_info(app_id, opts = {})
110
+ def create_with_http_info(app_id, card_create_request, opts = {})
111
111
  if @api_client.config.debugging
112
112
  @api_client.config.logger.debug 'Calling API: CardsApi.create ...'
113
113
  end
@@ -115,6 +115,10 @@ module Hubspot
115
115
  if @api_client.config.client_side_validation && app_id.nil?
116
116
  fail ArgumentError, "Missing the required parameter 'app_id' when calling CardsApi.create"
117
117
  end
118
+ # verify the required parameter 'card_create_request' is set
119
+ if @api_client.config.client_side_validation && card_create_request.nil?
120
+ fail ArgumentError, "Missing the required parameter 'card_create_request' when calling CardsApi.create"
121
+ end
118
122
  # resource path
119
123
  local_var_path = '/crm/v3/extensions/cards/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
120
124
 
@@ -132,13 +136,13 @@ module Hubspot
132
136
  form_params = opts[:form_params] || {}
133
137
 
134
138
  # http body (model)
135
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'card_create_request'])
139
+ post_body = opts[:body] || @api_client.object_to_http_body(card_create_request)
136
140
 
137
141
  # return_type
138
142
  return_type = opts[:return_type] || 'CardResponse'
139
143
 
140
144
  # auth_names
141
- auth_names = opts[:auth_names] || ['hapikey']
145
+ auth_names = opts[:auth_names] || ['developer_hapikey']
142
146
 
143
147
  new_options = opts.merge(
144
148
  :header_params => header_params,
@@ -200,7 +204,7 @@ module Hubspot
200
204
  return_type = opts[:return_type] || 'CardListResponse'
201
205
 
202
206
  # auth_names
203
- auth_names = opts[:auth_names] || ['hapikey']
207
+ auth_names = opts[:auth_names] || ['developer_hapikey']
204
208
 
205
209
  new_options = opts.merge(
206
210
  :header_params => header_params,
@@ -268,7 +272,7 @@ module Hubspot
268
272
  return_type = opts[:return_type] || 'CardResponse'
269
273
 
270
274
  # auth_names
271
- auth_names = opts[:auth_names] || ['hapikey']
275
+ auth_names = opts[:auth_names] || ['developer_hapikey']
272
276
 
273
277
  new_options = opts.merge(
274
278
  :header_params => header_params,
@@ -290,11 +294,11 @@ module Hubspot
290
294
  # Update a card definition with new details.
291
295
  # @param app_id [Integer] The ID of the target app.
292
296
  # @param card_id [String] The ID of the card to update.
297
+ # @param card_patch_request [CardPatchRequest] Card definition fields to be updated.
293
298
  # @param [Hash] opts the optional parameters
294
- # @option opts [CardPatchRequest] :card_patch_request Card definition fields to be updated.
295
299
  # @return [CardResponse]
296
- def update(app_id, card_id, opts = {})
297
- data, _status_code, _headers = update_with_http_info(app_id, card_id, opts)
300
+ def update(app_id, card_id, card_patch_request, opts = {})
301
+ data, _status_code, _headers = update_with_http_info(app_id, card_id, card_patch_request, opts)
298
302
  data
299
303
  end
300
304
 
@@ -302,10 +306,10 @@ module Hubspot
302
306
  # Update a card definition with new details.
303
307
  # @param app_id [Integer] The ID of the target app.
304
308
  # @param card_id [String] The ID of the card to update.
309
+ # @param card_patch_request [CardPatchRequest] Card definition fields to be updated.
305
310
  # @param [Hash] opts the optional parameters
306
- # @option opts [CardPatchRequest] :card_patch_request Card definition fields to be updated.
307
311
  # @return [Array<(CardResponse, Integer, Hash)>] CardResponse data, response status code and response headers
308
- def update_with_http_info(app_id, card_id, opts = {})
312
+ def update_with_http_info(app_id, card_id, card_patch_request, opts = {})
309
313
  if @api_client.config.debugging
310
314
  @api_client.config.logger.debug 'Calling API: CardsApi.update ...'
311
315
  end
@@ -317,6 +321,10 @@ module Hubspot
317
321
  if @api_client.config.client_side_validation && card_id.nil?
318
322
  fail ArgumentError, "Missing the required parameter 'card_id' when calling CardsApi.update"
319
323
  end
324
+ # verify the required parameter 'card_patch_request' is set
325
+ if @api_client.config.client_side_validation && card_patch_request.nil?
326
+ fail ArgumentError, "Missing the required parameter 'card_patch_request' when calling CardsApi.update"
327
+ end
320
328
  # resource path
321
329
  local_var_path = '/crm/v3/extensions/cards/{appId}/{cardId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'cardId' + '}', CGI.escape(card_id.to_s))
322
330
 
@@ -334,13 +342,13 @@ module Hubspot
334
342
  form_params = opts[:form_params] || {}
335
343
 
336
344
  # http body (model)
337
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'card_patch_request'])
345
+ post_body = opts[:body] || @api_client.object_to_http_body(card_patch_request)
338
346
 
339
347
  # return_type
340
348
  return_type = opts[:return_type] || 'CardResponse'
341
349
 
342
350
  # auth_names
343
- auth_names = opts[:auth_names] || ['hapikey']
351
+ auth_names = opts[:auth_names] || ['developer_hapikey']
344
352
 
345
353
  new_options = opts.merge(
346
354
  :header_params => header_params,