hubspot-api-client 16.2.0 → 16.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -1
  3. data/Gemfile.lock +1 -1
  4. data/lib/hubspot/codegen/automation/actions/models/action_function.rb +1 -0
  5. data/lib/hubspot/codegen/automation/actions/models/action_function_identifier.rb +1 -0
  6. data/lib/hubspot/codegen/automation/actions/models/action_labels.rb +1 -0
  7. data/lib/hubspot/codegen/automation/actions/models/action_revision.rb +1 -0
  8. data/lib/hubspot/codegen/automation/actions/models/callback_completion_batch_request.rb +1 -0
  9. data/lib/hubspot/codegen/automation/actions/models/callback_completion_request.rb +1 -0
  10. data/lib/hubspot/codegen/automation/actions/models/extension_action_definition.rb +1 -0
  11. data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_input.rb +1 -0
  12. data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_patch.rb +1 -0
  13. data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_patch_input_field_dependencies_inner.rb +1 -0
  14. data/lib/hubspot/codegen/automation/actions/models/field_type_definition.rb +1 -0
  15. data/lib/hubspot/codegen/automation/actions/models/input_field_definition.rb +1 -0
  16. data/lib/hubspot/codegen/automation/actions/models/object_request_options.rb +1 -0
  17. data/lib/hubspot/codegen/automation/actions/models/option.rb +1 -0
  18. data/lib/hubspot/codegen/cms/blogs/authors/models/attach_to_lang_primary_request_v_next.rb +1 -0
  19. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_blog_author.rb +1 -0
  20. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_json_node.rb +1 -0
  21. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_string.rb +1 -0
  22. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author.rb +1 -0
  23. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author_with_errors.rb +1 -0
  24. data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author.rb +1 -0
  25. data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author_clone_request_v_next.rb +1 -0
  26. data/lib/hubspot/codegen/cms/blogs/authors/models/collection_response_with_total_blog_author_forward_paging.rb +1 -0
  27. data/lib/hubspot/codegen/cms/blogs/authors/models/detach_from_lang_group_request_v_next.rb +1 -0
  28. data/lib/hubspot/codegen/cms/blogs/authors/models/forward_paging.rb +1 -0
  29. data/lib/hubspot/codegen/cms/blogs/authors/models/next_page.rb +1 -0
  30. data/lib/hubspot/codegen/cms/blogs/authors/models/set_new_language_primary_request_v_next.rb +1 -0
  31. data/lib/hubspot/codegen/cms/blogs/authors/models/standard_error.rb +1 -0
  32. data/lib/hubspot/codegen/cms/blogs/authors/models/update_languages_request_v_next.rb +1 -0
  33. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/attach_to_lang_primary_request_v_next.rb +1 -0
  34. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_blog_post.rb +1 -0
  35. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_json_node.rb +1 -0
  36. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_string.rb +1 -0
  37. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post.rb +1 -0
  38. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post_with_errors.rb +1 -0
  39. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +1 -0
  40. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post_language_clone_request_v_next.rb +1 -0
  41. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_blog_post_forward_paging.rb +1 -0
  42. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_version_blog_post.rb +1 -0
  43. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_clone_request_v_next.rb +1 -0
  44. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_schedule_request_v_next.rb +1 -0
  45. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/detach_from_lang_group_request_v_next.rb +1 -0
  46. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/forward_paging.rb +1 -0
  47. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/next_page.rb +1 -0
  48. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/paging.rb +1 -0
  49. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/previous_page.rb +1 -0
  50. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/rgba_color.rb +1 -0
  51. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/set_new_language_primary_request_v_next.rb +1 -0
  52. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/standard_error.rb +1 -0
  53. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/update_languages_request_v_next.rb +1 -0
  54. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_blog_post.rb +1 -0
  55. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_user.rb +1 -0
  56. data/lib/hubspot/codegen/cms/blogs/tags/models/attach_to_lang_primary_request_v_next.rb +1 -0
  57. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_json_node.rb +1 -0
  58. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_string.rb +1 -0
  59. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_tag.rb +1 -0
  60. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag.rb +1 -0
  61. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag_with_errors.rb +1 -0
  62. data/lib/hubspot/codegen/cms/blogs/tags/models/collection_response_with_total_tag_forward_paging.rb +1 -0
  63. data/lib/hubspot/codegen/cms/blogs/tags/models/detach_from_lang_group_request_v_next.rb +1 -0
  64. data/lib/hubspot/codegen/cms/blogs/tags/models/forward_paging.rb +1 -0
  65. data/lib/hubspot/codegen/cms/blogs/tags/models/next_page.rb +1 -0
  66. data/lib/hubspot/codegen/cms/blogs/tags/models/set_new_language_primary_request_v_next.rb +1 -0
  67. data/lib/hubspot/codegen/cms/blogs/tags/models/standard_error.rb +1 -0
  68. data/lib/hubspot/codegen/cms/blogs/tags/models/tag.rb +1 -0
  69. data/lib/hubspot/codegen/cms/blogs/tags/models/tag_clone_request_v_next.rb +1 -0
  70. data/lib/hubspot/codegen/cms/blogs/tags/models/update_languages_request_v_next.rb +1 -0
  71. data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_generation_request.rb +1 -0
  72. data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_response.rb +1 -0
  73. data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +30 -18
  74. data/lib/hubspot/codegen/crm/associations/api/types_api.rb +3 -3
  75. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +29 -38
  76. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +29 -38
  77. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi_with_errors.rb +346 -0
  78. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_with_errors.rb +346 -0
  79. data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definition_no_paging.rb +230 -0
  80. data/lib/hubspot/codegen/crm/associations/models/error_category.rb +20 -20
  81. data/lib/hubspot/codegen/crm/associations/models/paging.rb +13 -4
  82. data/lib/hubspot/codegen/crm/associations/models/previous_page.rb +237 -0
  83. data/lib/hubspot/codegen/crm/associations/models/public_association_definition.rb +242 -0
  84. data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +13 -4
  85. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +1 -0
  86. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +1 -0
  87. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_customer.rb +1 -0
  88. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_invoice.rb +1 -0
  89. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +1 -0
  90. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +1 -0
  91. data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +1 -0
  92. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +1 -0
  93. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +1 -0
  94. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +1 -0
  95. data/lib/hubspot/codegen/crm/extensions/accounting/models/customer_search_response_external.rb +1 -0
  96. data/lib/hubspot/codegen/crm/extensions/accounting/models/exchange_rate_response.rb +1 -0
  97. data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +1 -0
  98. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_pdf_response.rb +1 -0
  99. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +1 -0
  100. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_search_response.rb +1 -0
  101. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +1 -0
  102. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +1 -0
  103. data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +1 -0
  104. data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +1 -0
  105. data/lib/hubspot/codegen/crm/extensions/accounting/models/result_id_accounting_response.rb +1 -0
  106. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +1 -0
  107. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +1 -0
  108. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax.rb +1 -0
  109. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +1 -0
  110. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +1 -0
  111. data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +1 -0
  112. data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +1 -0
  113. data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +1 -0
  114. data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_product.rb +1 -0
  115. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +1 -0
  116. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +1 -0
  117. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +1 -0
  118. data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -0
  119. data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -0
  120. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -0
  121. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -0
  122. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -0
  123. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +1 -0
  124. data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -0
  125. data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -0
  126. data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -0
  127. data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -0
  128. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -0
  129. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result_actions_inner.rb +1 -0
  130. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/external_settings.rb +1 -0
  131. data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -0
  132. data/lib/hubspot/codegen/files/files/models/file_update_input.rb +1 -0
  133. data/lib/hubspot/codegen/files/files/models/folder_input.rb +1 -0
  134. data/lib/hubspot/codegen/files/files/models/folder_update_input.rb +1 -0
  135. data/lib/hubspot/codegen/files/files/models/folder_update_task_locator.rb +1 -0
  136. data/lib/hubspot/codegen/files/files/models/hubspot_file.rb +1 -0
  137. data/lib/hubspot/codegen/files/files/models/import_from_url_task_locator.rb +1 -0
  138. data/lib/hubspot/codegen/marketing/events/api/marketing_events_external_api.rb +0 -60
  139. data/lib/hubspot/codegen/marketing/events/api/search_api.rb +90 -0
  140. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber.rb +1 -0
  141. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_subscriber.rb +1 -0
  142. data/lib/hubspot/codegen/marketing/events/models/property_value.rb +13 -4
  143. data/lib/hubspot/codegen/marketing/forms/models/collection_response_form_definition_base_forward_paging_results_inner.rb +1 -0
  144. data/lib/hubspot/codegen/marketing/forms/models/datepicker_field.rb +1 -0
  145. data/lib/hubspot/codegen/marketing/forms/models/dependent_field.rb +1 -0
  146. data/lib/hubspot/codegen/marketing/forms/models/dependent_field_dependent_field.rb +1 -0
  147. data/lib/hubspot/codegen/marketing/forms/models/dependent_field_filter.rb +1 -0
  148. data/lib/hubspot/codegen/marketing/forms/models/dropdown_field.rb +1 -0
  149. data/lib/hubspot/codegen/marketing/forms/models/email_field.rb +1 -0
  150. data/lib/hubspot/codegen/marketing/forms/models/email_field_validation.rb +1 -0
  151. data/lib/hubspot/codegen/marketing/forms/models/field_group.rb +1 -0
  152. data/lib/hubspot/codegen/marketing/forms/models/file_field.rb +1 -0
  153. data/lib/hubspot/codegen/marketing/forms/models/form_definition_base.rb +1 -0
  154. data/lib/hubspot/codegen/marketing/forms/models/form_definition_create_request_base.rb +1 -0
  155. data/lib/hubspot/codegen/marketing/forms/models/form_display_options.rb +1 -0
  156. data/lib/hubspot/codegen/marketing/forms/models/form_post_submit_action.rb +1 -0
  157. data/lib/hubspot/codegen/marketing/forms/models/form_style.rb +1 -0
  158. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_patch_request_legal_consent_options.rb +1 -0
  159. data/lib/hubspot/codegen/marketing/forms/models/mobile_phone_field.rb +1 -0
  160. data/lib/hubspot/codegen/marketing/forms/models/multi_line_text_field.rb +1 -0
  161. data/lib/hubspot/codegen/marketing/forms/models/multiple_checkboxes_field.rb +1 -0
  162. data/lib/hubspot/codegen/marketing/forms/models/number_field.rb +1 -0
  163. data/lib/hubspot/codegen/marketing/forms/models/number_field_validation.rb +1 -0
  164. data/lib/hubspot/codegen/marketing/forms/models/phone_field.rb +1 -0
  165. data/lib/hubspot/codegen/marketing/forms/models/phone_field_validation.rb +1 -0
  166. data/lib/hubspot/codegen/marketing/forms/models/radio_field.rb +1 -0
  167. data/lib/hubspot/codegen/marketing/forms/models/single_checkbox_field.rb +1 -0
  168. data/lib/hubspot/codegen/marketing/forms/models/single_line_text_field.rb +1 -0
  169. data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +1 -0
  170. data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +1 -0
  171. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +1 -0
  172. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +1 -0
  173. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -0
  174. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -0
  175. data/lib/hubspot/codegen/settings/users/models/public_permission_set.rb +1 -0
  176. data/lib/hubspot/codegen/settings/users/models/public_team.rb +1 -0
  177. data/lib/hubspot/codegen/settings/users/models/public_user.rb +1 -0
  178. data/lib/hubspot/codegen/settings/users/models/public_user_update.rb +1 -0
  179. data/lib/hubspot/codegen/settings/users/models/user_provision_request.rb +1 -0
  180. data/lib/hubspot/discovery/marketing/events/api/search_api.rb +13 -0
  181. data/lib/hubspot/discovery/marketing/events/client.rb +1 -0
  182. data/lib/hubspot/version.rb +1 -1
  183. data/spec/discovery/marketing/events/marketing_events_external_api_spec.rb +0 -1
  184. data/spec/discovery/marketing/events/search_api_spec.rb +7 -0
  185. metadata +12 -3
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Crm
18
18
  module Extensions
19
19
  module Cards
20
+ # List of card definitions
20
21
  class CardListResponse
21
22
  # List of card definitions
22
23
  attr_accessor :results
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Crm
18
18
  module Extensions
19
19
  module Cards
20
+ # Body for a patch with optional fields
20
21
  class CardPatchRequest
21
22
  # The top-level title for this card. Displayed to users in the CRM UI.
22
23
  attr_accessor :title
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Crm
18
18
  module Extensions
19
19
  module Cards
20
+ # Current state of Card Definition
20
21
  class CardResponse
21
22
  # Generated unique ID for card.
22
23
  attr_accessor :id
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Crm
18
18
  module Extensions
19
19
  module Cards
20
+ # Option definition for STATUS dataTypes.
20
21
  class DisplayOption
21
22
  # JSON-friendly unique name for option.
22
23
  attr_accessor :name
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Crm
18
18
  module Extensions
19
19
  module Cards
20
+ # The card details payload, sent to HubSpot by an app in response to a data fetch request when a user visits a CRM record page.
20
21
  class IntegratorCardPayloadResponse
21
22
  # The total number of card properties that will be sent in this response.
22
23
  attr_accessor :total_count
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Crm
18
18
  module Extensions
19
19
  module Cards
20
+ module IntegratorObjectResultActionsInner
20
21
  class << self
21
22
  # List of class defined in oneOf (OpenAPI v3)
22
23
  def openapi_one_of
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Crm
18
18
  module Extensions
19
19
  module Videoconferencing
20
+ # The URLs of the various actions provided by the video conferencing application. All URLs must use the `https` protocol.
20
21
  class ExternalSettings
21
22
  # The URL that HubSpot will send requests to create a new video conference.
22
23
  attr_accessor :create_meeting_url
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Files
18
18
  module Files
19
+ # Collections of files
19
20
  class CollectionResponseFile
20
21
  attr_accessor :results
21
22
 
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Files
18
18
  module Files
19
+ # Object for updating files.
19
20
  class FileUpdateInput
20
21
  # New name for the file.
21
22
  attr_accessor :name
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Files
18
18
  module Files
19
+ # Object for creating a folder.
19
20
  class FolderInput
20
21
  # Desired name for the folder.
21
22
  attr_accessor :name
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Files
18
18
  module Files
19
+ # Object for updating folders.
19
20
  class FolderUpdateInput
20
21
  # Id of the folder to change.
21
22
  attr_accessor :id
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Files
18
18
  module Files
19
+ # Information on the task that has been started, and where to check it's status.
19
20
  class FolderUpdateTaskLocator
20
21
  # The ID of the task
21
22
  attr_accessor :id
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Files
18
18
  module Files
19
+ # File
19
20
  class HubspotFile
20
21
  # File ID.
21
22
  attr_accessor :id
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Files
18
18
  module Files
19
+ # Information on the task that has been started, and where to check it's status.
19
20
  class ImportFromUrlTaskLocator
20
21
  # The ID of the task
21
22
  attr_accessor :id
@@ -441,66 +441,6 @@ module Hubspot
441
441
  return data, status_code, headers
442
442
  end
443
443
 
444
- # @param q [String]
445
- # @param [Hash] opts the optional parameters
446
- # @return [CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging]
447
- def do_search(q, opts = {})
448
- data, _status_code, _headers = do_search_with_http_info(q, opts)
449
- data
450
- end
451
-
452
- # @param q [String]
453
- # @param [Hash] opts the optional parameters
454
- # @return [Array<(CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging, Integer, Hash)>] CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging data, response status code and response headers
455
- def do_search_with_http_info(q, opts = {})
456
- if @api_client.config.debugging
457
- @api_client.config.logger.debug 'Calling API: MarketingEventsExternalApi.do_search ...'
458
- end
459
- # verify the required parameter 'q' is set
460
- if @api_client.config.client_side_validation && q.nil?
461
- fail ArgumentError, "Missing the required parameter 'q' when calling MarketingEventsExternalApi.do_search"
462
- end
463
- # resource path
464
- local_var_path = '/marketing/v3/marketing-events/events/search'
465
-
466
- # query parameters
467
- query_params = opts[:query_params] || {}
468
- query_params[:'q'] = q
469
-
470
- # header parameters
471
- header_params = opts[:header_params] || {}
472
- # HTTP header 'Accept' (if needed)
473
- header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
474
-
475
- # form parameters
476
- form_params = opts[:form_params] || {}
477
-
478
- # http body (model)
479
- post_body = opts[:debug_body]
480
-
481
- # return_type
482
- return_type = opts[:debug_return_type] || 'CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging'
483
-
484
- # auth_names
485
- auth_names = opts[:debug_auth_names] || ['oauth2']
486
-
487
- new_options = opts.merge(
488
- :operation => :"MarketingEventsExternalApi.do_search",
489
- :header_params => header_params,
490
- :query_params => query_params,
491
- :form_params => form_params,
492
- :body => post_body,
493
- :auth_names => auth_names,
494
- :return_type => return_type
495
- )
496
-
497
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
498
- if @api_client.config.debugging
499
- @api_client.config.logger.debug "API called: MarketingEventsExternalApi#do_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
500
- end
501
- return data, status_code, headers
502
- end
503
-
504
444
  # @param batch_input_marketing_event_create_request_params [BatchInputMarketingEventCreateRequestParams]
505
445
  # @param [Hash] opts the optional parameters
506
446
  # @return [BatchResponseMarketingEventPublicDefaultResponse]
@@ -0,0 +1,90 @@
1
+ =begin
2
+ #Marketing Events Extension
3
+
4
+ #These APIs allow you to interact with HubSpot's Marketing Events Extension. It allows you to: * Create, Read or update Marketing Event information in HubSpot * Specify whether a HubSpot contact has registered, attended or cancelled a registration to a Marketing Event. * Specify a URL that can be called to get the details of a Marketing Event.
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 'cgi'
14
+
15
+ module Hubspot
16
+ module Marketing
17
+ module Events
18
+ class SearchApi
19
+ attr_accessor :api_client
20
+
21
+ def initialize(api_client = ApiClient.default)
22
+ @api_client = api_client
23
+ end
24
+ # Search for marketing events
25
+ # Search for marketing events that have an event id that starts with the query string
26
+ # @param q [String] The id of the marketing event in the external event application
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging]
29
+ def do_search(q, opts = {})
30
+ data, _status_code, _headers = do_search_with_http_info(q, opts)
31
+ data
32
+ end
33
+
34
+ # Search for marketing events
35
+ # Search for marketing events that have an event id that starts with the query string
36
+ # @param q [String] The id of the marketing event in the external event application
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging, Integer, Hash)>] CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging data, response status code and response headers
39
+ def do_search_with_http_info(q, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: SearchApi.do_search ...'
42
+ end
43
+ # verify the required parameter 'q' is set
44
+ if @api_client.config.client_side_validation && q.nil?
45
+ fail ArgumentError, "Missing the required parameter 'q' when calling SearchApi.do_search"
46
+ end
47
+ # resource path
48
+ local_var_path = '/marketing/v3/marketing-events/events/search'
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'q'] = q
53
+
54
+ # header parameters
55
+ header_params = opts[:header_params] || {}
56
+ # HTTP header 'Accept' (if needed)
57
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
58
+
59
+ # form parameters
60
+ form_params = opts[:form_params] || {}
61
+
62
+ # http body (model)
63
+ post_body = opts[:debug_body]
64
+
65
+ # return_type
66
+ return_type = opts[:debug_return_type] || 'CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging'
67
+
68
+ # auth_names
69
+ auth_names = opts[:debug_auth_names] || ['oauth2']
70
+
71
+ new_options = opts.merge(
72
+ :operation => :"SearchApi.do_search",
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: SearchApi#do_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Events
19
+ # List of marketing event details to create or update
19
20
  class BatchInputMarketingEventEmailSubscriber
20
21
  # List of marketing event details to create or update
21
22
  attr_accessor :inputs
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Events
19
+ # List of HubSpot contacts to subscribe to the marketing event
19
20
  class BatchInputMarketingEventSubscriber
20
21
  # List of HubSpot contacts to subscribe to the marketing event
21
22
  attr_accessor :inputs
@@ -44,6 +44,8 @@ module Hubspot
44
44
 
45
45
  attr_accessor :persistence_timestamp
46
46
 
47
+ attr_accessor :use_timestamp_as_persistence_timestamp
48
+
47
49
  class EnumAttributeValidator
48
50
  attr_reader :datatype
49
51
  attr_reader :allowable_values
@@ -81,7 +83,8 @@ module Hubspot
81
83
  :'source_metadata' => :'sourceMetadata',
82
84
  :'request_id' => :'requestId',
83
85
  :'updated_by_user_id' => :'updatedByUserId',
84
- :'persistence_timestamp' => :'persistenceTimestamp'
86
+ :'persistence_timestamp' => :'persistenceTimestamp',
87
+ :'use_timestamp_as_persistence_timestamp' => :'useTimestampAsPersistenceTimestamp'
85
88
  }
86
89
  end
87
90
 
@@ -105,7 +108,8 @@ module Hubspot
105
108
  :'source_metadata' => :'String',
106
109
  :'request_id' => :'String',
107
110
  :'updated_by_user_id' => :'Integer',
108
- :'persistence_timestamp' => :'Integer'
111
+ :'persistence_timestamp' => :'Integer',
112
+ :'use_timestamp_as_persistence_timestamp' => :'Boolean'
109
113
  }
110
114
  end
111
115
 
@@ -183,6 +187,10 @@ module Hubspot
183
187
  if attributes.key?(:'persistence_timestamp')
184
188
  self.persistence_timestamp = attributes[:'persistence_timestamp']
185
189
  end
190
+
191
+ if attributes.key?(:'use_timestamp_as_persistence_timestamp')
192
+ self.use_timestamp_as_persistence_timestamp = attributes[:'use_timestamp_as_persistence_timestamp']
193
+ end
186
194
  end
187
195
 
188
196
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -282,7 +290,8 @@ module Hubspot
282
290
  source_metadata == o.source_metadata &&
283
291
  request_id == o.request_id &&
284
292
  updated_by_user_id == o.updated_by_user_id &&
285
- persistence_timestamp == o.persistence_timestamp
293
+ persistence_timestamp == o.persistence_timestamp &&
294
+ use_timestamp_as_persistence_timestamp == o.use_timestamp_as_persistence_timestamp
286
295
  end
287
296
 
288
297
  # @see the `==` method
@@ -294,7 +303,7 @@ module Hubspot
294
303
  # Calculates hash code according to all attributes.
295
304
  # @return [Integer] Hash code
296
305
  def hash
297
- [name, value, timestamp, source_id, source_label, source, selected_by_user, selected_by_user_timestamp, source_vid, source_metadata, request_id, updated_by_user_id, persistence_timestamp].hash
306
+ [name, value, timestamp, source_id, source_label, source, selected_by_user, selected_by_user_timestamp, source_vid, source_metadata, request_id, updated_by_user_id, persistence_timestamp, use_timestamp_as_persistence_timestamp].hash
298
307
  end
299
308
 
300
309
  # Builds the object from hash
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ module CollectionResponseFormDefinitionBaseForwardPagingResultsInner
19
20
  class << self
20
21
  # List of class defined in oneOf (OpenAPI v3)
21
22
  def openapi_one_of
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field used to select a date
19
20
  class DatepickerField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field that will be displayed based on what the customer entered in another field.
19
20
  class DependentField
20
21
  attr_accessor :dependent_condition
21
22
 
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ module DependentFieldDependentField
19
20
  class << self
20
21
  # List of class defined in oneOf (OpenAPI v3)
21
22
  def openapi_one_of
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A condition based on customer input
19
20
  class DependentFieldFilter
20
21
  attr_accessor :operator
21
22
 
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A field consisting of a drop down with multiple choices.
19
20
  class DropdownField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field used for collecting an email address.
19
20
  class EmailField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # Describes how an email address should be validated.
19
20
  class EmailFieldValidation
20
21
  # A list of email domains to block.
21
22
  attr_accessor :blocked_email_domains
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A collection of up to three form fields usually displayed in a row.
19
20
  class FieldGroup
20
21
  attr_accessor :group_type
21
22
 
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field used for uploading one or more files.
19
20
  class FileField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ module FormDefinitionBase
19
20
  class << self
20
21
  # List of class defined in oneOf (OpenAPI v3)
21
22
  def openapi_one_of
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ module FormDefinitionCreateRequestBase
19
20
  class << self
20
21
  # List of class defined in oneOf (OpenAPI v3)
21
22
  def openapi_one_of
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # Options for styling the form.
19
20
  class FormDisplayOptions
20
21
  # Whether the form will render as raw HTML as opposed to inside an iFrame.
21
22
  attr_accessor :render_raw_html
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # What should happen after the customer submits the form.
19
20
  class FormPostSubmitAction
20
21
  # The action to take after submit. The default action is displaying a thank you message.
21
22
  attr_accessor :type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # Styling options for the form
19
20
  class FormStyle
20
21
  attr_accessor :font_family
21
22
 
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ module HubSpotFormDefinitionPatchRequestLegalConsentOptions
19
20
  class << self
20
21
  # List of class defined in oneOf (OpenAPI v3)
21
22
  def openapi_one_of
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field used for collecting a mobile phone number.
19
20
  class MobilePhoneField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field consisting of a multiple-line text box.
19
20
  class MultiLineTextField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field consisting of a set of checkboxes allowing multiple choices to be selected at one time.
19
20
  class MultipleCheckboxesField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field used for collecting a numeric value.
19
20
  class NumberField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # Describes how a numeric value should be validated.
19
20
  class NumberFieldValidation
20
21
  attr_accessor :min_allowed_digits
21
22
 
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field used for collecting a phone number.
19
20
  class PhoneField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # Describes how a phone number should be validated.
19
20
  class PhoneFieldValidation
20
21
  attr_accessor :min_allowed_digits
21
22
 
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field consisting of a set of radio options, out of which one can be selected at a time.
19
20
  class RadioField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field consisting of a single checkbox.
19
20
  class SingleCheckboxField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Forms
19
+ # A form field consisting of a single-line text box.
19
20
  class SingleLineTextField
20
21
  # Determines how the field will be displayed and validated.
21
22
  attr_accessor :field_type
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Transactional
19
+ # Describes the status of an email send request.
19
20
  class EmailSendStatusView
20
21
  # Identifier used to query the status of the send.
21
22
  attr_accessor :status_id
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Transactional
19
+ # The ID of a send event.
19
20
  class EventIdView
20
21
  # Time of event creation.
21
22
  attr_accessor :created
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Transactional
19
+ # A JSON object containing anything you want to override.
19
20
  class PublicSingleSendEmail
20
21
  # The From header for the email.
21
22
  attr_accessor :from
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Transactional
19
+ # A request to send a single transactional email asynchronously.
19
20
  class PublicSingleSendRequestEgg
20
21
  # The content ID for the transactional email, which can be found in email tool UI.
21
22
  attr_accessor :email_id
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Marketing
18
18
  module Transactional
19
+ # A request object to create a SMTP API token
19
20
  class SmtpApiTokenRequestEgg
20
21
  # Indicates whether a contact should be created for email recipients.
21
22
  attr_accessor :create_contact