hubspot-api-client 19.0.0 → 20.0.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -1
- data/Gemfile.lock +1 -1
- data/README.md +83 -8
- data/lib/hubspot/client.rb +7 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/basic_api.rb +1079 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/batch_api.rb +306 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/multi_language_api.rb +368 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/blog_post.rb +18 -18
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +7 -7
- data/lib/hubspot/codegen/cms/hubdb/models/unified_collection_response_with_total_base_hub_db_table_row_v3.rb +1 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/collection_response_public_association_definition_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/public_association_definition.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/v4/api/report_api.rb +91 -0
- data/lib/hubspot/codegen/crm/associations/v4/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_archive.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_default_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_fetch_associations_batch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/date_time.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_archive.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_fetch_associations_batch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/report_creation_response.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/schema/api/definition_configurations_api.rb +396 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +69 -69
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_definition_configuration_create_request.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_definition_configuration_update_request.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_spec.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_configuration_update_result.rb +330 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_configuration_update_result_with_errors.rb +350 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_user_configuration.rb +330 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_user_configuration_with_errors.rb +350 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/collection_response_public_association_definition_user_configuration_no_paging.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_create_request.rb +294 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_update_request.rb +294 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_update_result.rb +289 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_user_configuration.rb +298 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_spec.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/standard_error.rb +326 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/api/basic_api.rb +391 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/api/batch_api.rb +363 -0
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions/api/public_object_api.rb → commerce/invoices/api/search_api.rb} +24 -22
- data/lib/hubspot/codegen/crm/commerce/invoices/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/association_spec.rb +278 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_batch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_read_input_simple_public_object_id.rb +273 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_object.rb +328 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/collection_response_associated_id.rb +241 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions/models/public_merge_input.rb → commerce/invoices/models/collection_response_with_total_simple_public_object_forward_paging.rb} +37 -26
- data/lib/hubspot/codegen/crm/commerce/invoices/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/filter.rb +308 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/filter_group.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/forward_paging.rb +225 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/paging.rb +234 -0
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions/models/batch_input_simple_public_object_input_for_create.rb → commerce/invoices/models/previous_page.rb} +26 -19
- data/lib/hubspot/codegen/crm/commerce/invoices/models/public_associations_for_object.rb +246 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/public_object_search_request.rb +276 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_batch_input.rb +264 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_batch_input_upsert.rb +264 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_input.rb +241 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_input_for_create.rb +257 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_with_associations.rb +314 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_upsert_object.rb +317 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/standard_error.rb +324 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/exports/api/public_exports_api.rb +157 -0
- data/lib/hubspot/codegen/crm/exports/api_client.rb +410 -0
- data/lib/hubspot/codegen/crm/exports/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/exports/configuration.rb +287 -0
- data/lib/hubspot/codegen/crm/exports/models/action_response_with_single_result_uri.rb +339 -0
- data/lib/hubspot/codegen/crm/exports/models/error.rb +305 -0
- data/lib/hubspot/codegen/crm/exports/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/crm/exports/models/filter.rb +305 -0
- data/lib/hubspot/codegen/crm/exports/models/public_crm_search_request.rb +260 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_list_request.rb +420 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_list_request_all_of.rb +413 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_request.rb +109 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_view_request.rb +415 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_view_request_all_of.rb +408 -0
- data/lib/hubspot/codegen/crm/exports/models/standard_error.rb +322 -0
- data/lib/hubspot/codegen/crm/exports/models/task_locator.rb +239 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api/channel_connection_settings_api.rb +302 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api/recording_settings_api.rb +12 -12
- data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +10 -10
- data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_patch_request.rb +236 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_request.rb +246 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_response.rb +276 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +21 -1
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +21 -1
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +31 -1
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
- data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +6 -0
- data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +15 -1
- data/lib/hubspot/codegen/crm/imports/models/property_value.rb +514 -0
- data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +32 -5
- data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +17 -1
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/line_items/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/lists/models/public_form_submission_filter_coalescing_refine_by.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point_index_reference.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filters_inner.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_value_filter_value_comparison.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation_time_point.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +2 -1
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +12 -10
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +17 -9
- data/lib/hubspot/codegen/crm/objects/calls/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +17 -9
- data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/deal_splits/api/batch_api.rb +160 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_input_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_response_deal_to_deal_splits.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_response_deal_to_deal_splits_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/deal_to_deal_splits.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions/models/public_gdpr_delete_input.rb → deal_splits/models/public_deal_split_input.rb} +27 -22
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/public_deal_splits_batch_create_request.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/public_deal_splits_create_request.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → deal_splits}/models/public_object_id.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/standard_error.rb +331 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/emails/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +0 -208
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -198
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/objects/goals/api/basic_api.rb +208 -0
- data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +266 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/association_spec.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/batch_input_simple_public_object_batch_input.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/batch_input_simple_public_object_id.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{tasks → goals}/models/batch_input_simple_public_object_input_for_create.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/public_associations_for_object.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/goals/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_batch_input.rb +15 -6
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input_upsert.rb +264 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_input.rb +15 -6
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_input_for_create.rb +15 -6
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_upsert_object.rb +317 -0
- data/lib/hubspot/codegen/crm/objects/leads/api/basic_api.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/leads/api/batch_api.rb +13 -11
- data/lib/hubspot/codegen/crm/objects/leads/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/meetings/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/association_spec.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +5 -5
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input_upsert.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_with_associations_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/public_associations_for_object.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_upsert.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +2 -11
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +2 -16
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/simple_public_upsert_object.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/value_with_timestamp.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/notes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/taxes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/taxes/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/taxes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +58 -1
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/quotes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/events/api/events_api.rb +22 -22
- data/lib/hubspot/codegen/events/send/api/{custom_event_data_api.rb → basic_api.rb} +13 -10
- data/lib/hubspot/codegen/events/send/api/batch_api.rb +94 -0
- data/lib/hubspot/codegen/events/send/api_client.rb +1 -1
- data/lib/hubspot/codegen/events/send/api_error.rb +1 -1
- data/lib/hubspot/codegen/events/send/configuration.rb +1 -1
- data/lib/hubspot/codegen/events/send/models/batched_behavioral_event_http_completion_request.rb +230 -0
- data/lib/hubspot/codegen/events/send/models/behavioral_event_http_completion_request.rb +8 -7
- data/lib/hubspot/codegen/events/send/models/error.rb +1 -1
- data/lib/hubspot/codegen/events/send/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/marketing/emails/api/marketing_emails_api.rb +1226 -0
- data/lib/hubspot/codegen/marketing/emails/api/statistics_api.rb +168 -0
- data/lib/hubspot/codegen/marketing/emails/api_client.rb +410 -0
- data/lib/hubspot/codegen/marketing/emails/api_error.rb +61 -0
- data/lib/hubspot/codegen/marketing/emails/configuration.rb +287 -0
- data/lib/hubspot/codegen/marketing/emails/models/ab_test_create_request_v_next.rb +244 -0
- data/lib/hubspot/codegen/marketing/emails/models/aggregate_email_statistics.rb +248 -0
- data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_email_statistic_interval_no_paging.rb +247 -0
- data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_public_email_forward_paging.rb +256 -0
- data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_version_public_email.rb +256 -0
- data/lib/hubspot/codegen/marketing/emails/models/content_clone_request_v_next.rb +240 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_create_request.rb +468 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_statistic_interval.rb +232 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_statistics_data.rb +282 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_update_request.rb +453 -0
- data/lib/hubspot/codegen/marketing/emails/models/error.rb +305 -0
- data/lib/hubspot/codegen/marketing/emails/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/marketing/emails/models/forward_paging.rb +223 -0
- data/lib/hubspot/codegen/marketing/emails/models/interval.rb +242 -0
- data/lib/hubspot/codegen/marketing/emails/models/next_page.rb +240 -0
- data/lib/hubspot/codegen/marketing/emails/models/paging.rb +238 -0
- data/lib/hubspot/codegen/marketing/emails/models/previous_page.rb +240 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_button_style_settings.rb +241 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_divider_style_settings.rb +241 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email.rb +654 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_content.rb +304 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_from_details.rb +245 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_recipients.rb +239 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_style_settings.rb +484 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_subscription_details.rb +245 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_testing_details.rb +355 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_to_details.rb +262 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_font_style.rb +268 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_rss_email_details.rb +307 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_webversion_details.rb +311 -0
- data/lib/hubspot/codegen/marketing/emails/models/version_public_email.rb +272 -0
- data/lib/hubspot/codegen/marketing/emails/models/version_user.rb +260 -0
- data/lib/hubspot/codegen/marketing/events/api/add_event_attendees_api.rb +352 -0
- data/lib/hubspot/codegen/marketing/events/api/basic_api.rb +177 -264
- data/lib/hubspot/codegen/marketing/events/api/batch_api.rb +298 -0
- data/lib/hubspot/codegen/marketing/events/api/change_property_api.rb +177 -0
- data/lib/hubspot/codegen/marketing/events/api/identifiers_api.rb +153 -0
- data/lib/hubspot/codegen/marketing/events/api/list_associations_api.rb +2 -2
- data/lib/hubspot/codegen/marketing/events/api/{participant_state_api.rb → retrieve_participant_state_api.rb} +23 -23
- data/lib/hubspot/codegen/marketing/events/api/subscriber_state_changes_api.rb +8 -8
- data/lib/hubspot/codegen/marketing/events/models/app_info.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_public_object_id_delete_request.rb +230 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_public_update_request_full_v2.rb +230 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response_v2.rb +326 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response_v2_with_errors.rb +346 -0
- data/lib/hubspot/codegen/marketing/events/models/collection_response_marketing_event_public_read_response_v2_forward_paging.rb +239 -0
- data/lib/hubspot/codegen/marketing/events/models/{collection_response_marketing_event_external_unique_identifier_no_paging.rb → collection_response_search_public_response_wrapper_no_paging.rb} +4 -4
- data/lib/hubspot/codegen/marketing/events/models/collection_response_with_total_marketing_event_identifiers_response_no_paging.rb +244 -0
- data/lib/hubspot/codegen/marketing/events/models/crm_property_wrapper.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_default_response.rb +13 -4
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_email_subscriber.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_identifiers_response.rb +274 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response.rb +10 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response_v2.rb +367 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_object_id_delete_request.rb +228 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response.rb +10 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response_v2.rb +421 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_update_request_full_v2.rb +316 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_update_request_v2.rb +302 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_subscriber.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/property_value.rb +2 -2
- data/lib/hubspot/codegen/marketing/events/models/search_public_response_wrapper.rb +270 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition.rb +0 -1
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_create_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +18 -6
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +42 -18
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +13 -3
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +13 -3
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +2 -50
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/{blog_posts_api.rb → basic_api.rb} +1 -1
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/multi_language_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +3 -1
- data/lib/hubspot/discovery/crm/{objects/feedback_submissions/api/public_object_api.rb → associations/v4/api/report_api.rb} +3 -3
- data/lib/hubspot/discovery/crm/associations/v4/client.rb +1 -0
- data/lib/hubspot/discovery/crm/associations/v4/schema/api/definition_configurations_api.rb +17 -0
- data/lib/hubspot/discovery/crm/associations/v4/schema/client.rb +1 -0
- data/lib/hubspot/discovery/crm/client.rb +2 -0
- data/lib/hubspot/discovery/crm/commerce/client.rb +19 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/client.rb +23 -0
- data/lib/hubspot/discovery/crm/exports/api/public_exports_api.rb +13 -0
- data/lib/hubspot/discovery/crm/exports/client.rb +19 -0
- data/lib/hubspot/discovery/crm/extensions/calling/api/channel_connection_settings_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/calling/client.rb +1 -0
- data/lib/hubspot/discovery/crm/objects/client.rb +1 -3
- data/lib/hubspot/discovery/crm/objects/{feedback_submissions/api/gdpr_api.rb → deal_splits/api/batch_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/objects/deal_splits/client.rb +21 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +0 -2
- data/lib/hubspot/discovery/events/send/api/{custom_event_data_api.rb → basic_api.rb} +1 -1
- data/lib/hubspot/discovery/events/send/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/events/send/client.rb +2 -1
- data/lib/hubspot/discovery/marketing/client.rb +1 -0
- data/lib/hubspot/discovery/marketing/emails/api/marketing_emails_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/emails/api/statistics_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/emails/client.rb +20 -0
- data/lib/hubspot/discovery/marketing/events/api/{attendance_subscriber_state_changes_api.rb → add_event_attendees_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/{participant_state_api.rb → batch_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/change_property_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/identifiers_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/retrieve_participant_state_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/client.rb +5 -2
- data/lib/hubspot/helpers/requests/http_auth.rb +33 -0
- data/lib/hubspot/helpers/requests/http_request_builder.rb +120 -0
- data/lib/hubspot/helpers/signature.rb +54 -26
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/client_spec.rb +1 -0
- data/spec/discovery/cms/blogs/blog-posts/{blog_posts_api_spec.rb → basic_api_spec.rb} +2 -6
- data/spec/discovery/cms/blogs/blog-posts/batch_api_spec.rb +11 -0
- data/spec/discovery/cms/blogs/blog-posts/multi_language_api_spec.rb +11 -0
- data/spec/discovery/crm/associations/v4/report_api_spec.rb +7 -0
- data/spec/discovery/crm/associations/v4/schema/definition_configurations_api_spec.rb +11 -0
- data/spec/discovery/crm/associations/v4/schema/definitions_api_spec.rb +2 -2
- data/spec/discovery/crm/commerce/client_spec.rb +7 -0
- data/spec/discovery/crm/commerce/invoices/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/commerce/invoices/batch_api_spec.rb +11 -0
- data/spec/discovery/crm/commerce/invoices/search_api_spec.rb +7 -0
- data/spec/discovery/crm/exports/public_exports_api_spec.rb +8 -0
- data/spec/discovery/crm/extensions/calling/channel_connection_settings_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/deal_splits/batch_api_spec.rb +8 -0
- data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +0 -3
- data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +0 -3
- data/spec/discovery/crm/objects/goals/basic_api_spec.rb +3 -0
- data/spec/discovery/crm/objects/goals/batch_api_spec.rb +4 -0
- data/spec/discovery/events/send/basic_api_spec.rb +7 -0
- data/spec/discovery/events/send/batch_api_spec.rb +7 -0
- data/spec/discovery/marketing/emails/marketing_emails_api_spec.rb +24 -0
- data/spec/discovery/marketing/emails/statistics_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/add_event_attendees_api_spec.rb +10 -0
- data/spec/discovery/marketing/events/basic_api_spec.rb +5 -6
- data/spec/discovery/marketing/events/batch_api_spec.rb +10 -0
- data/spec/discovery/marketing/events/change_property_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/identifiers_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/{participant_state_api_spec.rb → retrieve_participant_state_api_spec.rb} +2 -2
- data/spec/helpers/requests/http_auth_spec.rb +58 -0
- data/spec/helpers/requests/http_request_spec.rb +71 -0
- data/spec/helpers/signature_spec.rb +15 -5
- metadata +276 -52
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/blog_posts_api.rb +0 -1694
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/marketing/events/api/attendance_subscriber_state_changes_api.rb +0 -192
- data/spec/discovery/crm/objects/feedback_submissions/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/feedback_submissions/public_object_api_spec.rb +0 -7
- data/spec/discovery/events/send/custom_event_data_api_spec.rb +0 -7
- data/spec/discovery/marketing/events/attendance_subscriber_state_changes_api_spec.rb +0 -8
@@ -0,0 +1,252 @@
|
|
1
|
+
=begin
|
2
|
+
#Communications
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Hubspot
|
17
|
+
module Crm
|
18
|
+
module Objects
|
19
|
+
module Communications
|
20
|
+
class SimplePublicObjectBatchInputForCreate
|
21
|
+
attr_accessor :associations
|
22
|
+
|
23
|
+
attr_accessor :object_write_trace_id
|
24
|
+
|
25
|
+
attr_accessor :properties
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'associations' => :'associations',
|
31
|
+
:'object_write_trace_id' => :'objectWriteTraceId',
|
32
|
+
:'properties' => :'properties'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'associations' => :'Array<PublicAssociationsForObject>',
|
45
|
+
:'object_write_trace_id' => :'String',
|
46
|
+
:'properties' => :'Hash<String, String>'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# List of attributes with nullable: true
|
51
|
+
def self.openapi_nullable
|
52
|
+
Set.new([
|
53
|
+
])
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::Communications::SimplePublicObjectBatchInputForCreate` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::Communications::SimplePublicObjectBatchInputForCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
|
+
end
|
68
|
+
h[k.to_sym] = v
|
69
|
+
}
|
70
|
+
|
71
|
+
if attributes.key?(:'associations')
|
72
|
+
if (value = attributes[:'associations']).is_a?(Array)
|
73
|
+
self.associations = value
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'object_write_trace_id')
|
78
|
+
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'properties')
|
82
|
+
if (value = attributes[:'properties']).is_a?(Hash)
|
83
|
+
self.properties = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
89
|
+
# @return Array for valid properties with the reasons
|
90
|
+
def list_invalid_properties
|
91
|
+
invalid_properties = Array.new
|
92
|
+
if @properties.nil?
|
93
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
invalid_properties
|
97
|
+
end
|
98
|
+
|
99
|
+
# Check to see if the all the properties in the model are valid
|
100
|
+
# @return true if the model is valid
|
101
|
+
def valid?
|
102
|
+
return false if @properties.nil?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def ==(o)
|
109
|
+
return true if self.equal?(o)
|
110
|
+
self.class == o.class &&
|
111
|
+
associations == o.associations &&
|
112
|
+
object_write_trace_id == o.object_write_trace_id &&
|
113
|
+
properties == o.properties
|
114
|
+
end
|
115
|
+
|
116
|
+
# @see the `==` method
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def eql?(o)
|
119
|
+
self == o
|
120
|
+
end
|
121
|
+
|
122
|
+
# Calculates hash code according to all attributes.
|
123
|
+
# @return [Integer] Hash code
|
124
|
+
def hash
|
125
|
+
[associations, object_write_trace_id, properties].hash
|
126
|
+
end
|
127
|
+
|
128
|
+
# Builds the object from hash
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
130
|
+
# @return [Object] Returns the model itself
|
131
|
+
def self.build_from_hash(attributes)
|
132
|
+
new.build_from_hash(attributes)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Builds the object from hash
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
137
|
+
# @return [Object] Returns the model itself
|
138
|
+
def build_from_hash(attributes)
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
140
|
+
attributes = attributes.transform_keys(&:to_sym)
|
141
|
+
self.class.openapi_types.each_pair do |key, type|
|
142
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
143
|
+
self.send("#{key}=", nil)
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
145
|
+
# check to ensure the input is an array given that the attribute
|
146
|
+
# is documented as an array but the input is not
|
147
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
148
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
149
|
+
end
|
150
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
151
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
self
|
156
|
+
end
|
157
|
+
|
158
|
+
# Deserializes the data based on type
|
159
|
+
# @param string type Data type
|
160
|
+
# @param string value Value to be deserialized
|
161
|
+
# @return [Object] Deserialized data
|
162
|
+
def _deserialize(type, value)
|
163
|
+
case type.to_sym
|
164
|
+
when :Time
|
165
|
+
Time.parse(value)
|
166
|
+
when :Date
|
167
|
+
Date.parse(value)
|
168
|
+
when :String
|
169
|
+
value.to_s
|
170
|
+
when :Integer
|
171
|
+
value.to_i
|
172
|
+
when :Float
|
173
|
+
value.to_f
|
174
|
+
when :Boolean
|
175
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
176
|
+
true
|
177
|
+
else
|
178
|
+
false
|
179
|
+
end
|
180
|
+
when :Object
|
181
|
+
# generic object (usually a Hash), return directly
|
182
|
+
value
|
183
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
184
|
+
inner_type = Regexp.last_match[:inner_type]
|
185
|
+
value.map { |v| _deserialize(inner_type, v) }
|
186
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
187
|
+
k_type = Regexp.last_match[:k_type]
|
188
|
+
v_type = Regexp.last_match[:v_type]
|
189
|
+
{}.tap do |hash|
|
190
|
+
value.each do |k, v|
|
191
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
else # model
|
195
|
+
# models (e.g. Pet) or oneOf
|
196
|
+
klass = Hubspot::Crm::Objects::Communications.const_get(type)
|
197
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the string representation of the object
|
202
|
+
# @return [String] String presentation of the object
|
203
|
+
def to_s
|
204
|
+
to_hash.to_s
|
205
|
+
end
|
206
|
+
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_body
|
210
|
+
to_hash
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns the object in the form of hash
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
215
|
+
def to_hash
|
216
|
+
hash = {}
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
218
|
+
value = self.send(attr)
|
219
|
+
if value.nil?
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
|
+
end
|
223
|
+
|
224
|
+
hash[param] = _to_hash(value)
|
225
|
+
end
|
226
|
+
hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Outputs non-array value in the form of hash
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
231
|
+
# @param [Object] value Any valid value
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
233
|
+
def _to_hash(value)
|
234
|
+
if value.is_a?(Array)
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
236
|
+
elsif value.is_a?(Hash)
|
237
|
+
{}.tap do |hash|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
239
|
+
end
|
240
|
+
elsif value.respond_to? :to_hash
|
241
|
+
value.to_hash
|
242
|
+
else
|
243
|
+
value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
end
|
248
|
+
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
@@ -18,14 +18,11 @@ module Hubspot
|
|
18
18
|
module Objects
|
19
19
|
module Communications
|
20
20
|
class SimplePublicObjectInput
|
21
|
-
attr_accessor :object_write_trace_id
|
22
|
-
|
23
21
|
attr_accessor :properties
|
24
22
|
|
25
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
24
|
def self.attribute_map
|
27
25
|
{
|
28
|
-
:'object_write_trace_id' => :'objectWriteTraceId',
|
29
26
|
:'properties' => :'properties'
|
30
27
|
}
|
31
28
|
end
|
@@ -38,7 +35,6 @@ module Hubspot
|
|
38
35
|
# Attribute type mapping.
|
39
36
|
def self.openapi_types
|
40
37
|
{
|
41
|
-
:'object_write_trace_id' => :'String',
|
42
38
|
:'properties' => :'Hash<String, String>'
|
43
39
|
}
|
44
40
|
end
|
@@ -64,10 +60,6 @@ module Hubspot
|
|
64
60
|
h[k.to_sym] = v
|
65
61
|
}
|
66
62
|
|
67
|
-
if attributes.key?(:'object_write_trace_id')
|
68
|
-
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
69
|
-
end
|
70
|
-
|
71
63
|
if attributes.key?(:'properties')
|
72
64
|
if (value = attributes[:'properties']).is_a?(Hash)
|
73
65
|
self.properties = value
|
@@ -98,7 +90,6 @@ module Hubspot
|
|
98
90
|
def ==(o)
|
99
91
|
return true if self.equal?(o)
|
100
92
|
self.class == o.class &&
|
101
|
-
object_write_trace_id == o.object_write_trace_id &&
|
102
93
|
properties == o.properties
|
103
94
|
end
|
104
95
|
|
@@ -111,7 +102,7 @@ module Hubspot
|
|
111
102
|
# Calculates hash code according to all attributes.
|
112
103
|
# @return [Integer] Hash code
|
113
104
|
def hash
|
114
|
-
[
|
105
|
+
[properties].hash
|
115
106
|
end
|
116
107
|
|
117
108
|
# Builds the object from hash
|
data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb
CHANGED
@@ -20,15 +20,12 @@ module Hubspot
|
|
20
20
|
class SimplePublicObjectInputForCreate
|
21
21
|
attr_accessor :associations
|
22
22
|
|
23
|
-
attr_accessor :object_write_trace_id
|
24
|
-
|
25
23
|
attr_accessor :properties
|
26
24
|
|
27
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
26
|
def self.attribute_map
|
29
27
|
{
|
30
28
|
:'associations' => :'associations',
|
31
|
-
:'object_write_trace_id' => :'objectWriteTraceId',
|
32
29
|
:'properties' => :'properties'
|
33
30
|
}
|
34
31
|
end
|
@@ -42,7 +39,6 @@ module Hubspot
|
|
42
39
|
def self.openapi_types
|
43
40
|
{
|
44
41
|
:'associations' => :'Array<PublicAssociationsForObject>',
|
45
|
-
:'object_write_trace_id' => :'String',
|
46
42
|
:'properties' => :'Hash<String, String>'
|
47
43
|
}
|
48
44
|
end
|
@@ -74,10 +70,6 @@ module Hubspot
|
|
74
70
|
end
|
75
71
|
end
|
76
72
|
|
77
|
-
if attributes.key?(:'object_write_trace_id')
|
78
|
-
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
79
|
-
end
|
80
|
-
|
81
73
|
if attributes.key?(:'properties')
|
82
74
|
if (value = attributes[:'properties']).is_a?(Hash)
|
83
75
|
self.properties = value
|
@@ -89,10 +81,6 @@ module Hubspot
|
|
89
81
|
# @return Array for valid properties with the reasons
|
90
82
|
def list_invalid_properties
|
91
83
|
invalid_properties = Array.new
|
92
|
-
if @associations.nil?
|
93
|
-
invalid_properties.push('invalid value for "associations", associations cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
84
|
if @properties.nil?
|
97
85
|
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
98
86
|
end
|
@@ -103,7 +91,6 @@ module Hubspot
|
|
103
91
|
# Check to see if the all the properties in the model are valid
|
104
92
|
# @return true if the model is valid
|
105
93
|
def valid?
|
106
|
-
return false if @associations.nil?
|
107
94
|
return false if @properties.nil?
|
108
95
|
true
|
109
96
|
end
|
@@ -114,7 +101,6 @@ module Hubspot
|
|
114
101
|
return true if self.equal?(o)
|
115
102
|
self.class == o.class &&
|
116
103
|
associations == o.associations &&
|
117
|
-
object_write_trace_id == o.object_write_trace_id &&
|
118
104
|
properties == o.properties
|
119
105
|
end
|
120
106
|
|
@@ -127,7 +113,7 @@ module Hubspot
|
|
127
113
|
# Calculates hash code according to all attributes.
|
128
114
|
# @return [Integer] Hash code
|
129
115
|
def hash
|
130
|
-
[associations,
|
116
|
+
[associations, properties].hash
|
131
117
|
end
|
132
118
|
|
133
119
|
# Builds the object from hash
|
data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_with_associations.rb
CHANGED
@@ -30,6 +30,8 @@ module Hubspot
|
|
30
30
|
|
31
31
|
attr_accessor :id
|
32
32
|
|
33
|
+
attr_accessor :object_write_trace_id
|
34
|
+
|
33
35
|
attr_accessor :properties
|
34
36
|
|
35
37
|
attr_accessor :updated_at
|
@@ -43,6 +45,7 @@ module Hubspot
|
|
43
45
|
:'archived_at' => :'archivedAt',
|
44
46
|
:'properties_with_history' => :'propertiesWithHistory',
|
45
47
|
:'id' => :'id',
|
48
|
+
:'object_write_trace_id' => :'objectWriteTraceId',
|
46
49
|
:'properties' => :'properties',
|
47
50
|
:'updated_at' => :'updatedAt'
|
48
51
|
}
|
@@ -62,6 +65,7 @@ module Hubspot
|
|
62
65
|
:'archived_at' => :'Time',
|
63
66
|
:'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>',
|
64
67
|
:'id' => :'String',
|
68
|
+
:'object_write_trace_id' => :'String',
|
65
69
|
:'properties' => :'Hash<String, String>',
|
66
70
|
:'updated_at' => :'Time'
|
67
71
|
}
|
@@ -116,6 +120,10 @@ module Hubspot
|
|
116
120
|
self.id = attributes[:'id']
|
117
121
|
end
|
118
122
|
|
123
|
+
if attributes.key?(:'object_write_trace_id')
|
124
|
+
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
125
|
+
end
|
126
|
+
|
119
127
|
if attributes.key?(:'properties')
|
120
128
|
if (value = attributes[:'properties']).is_a?(Hash)
|
121
129
|
self.properties = value
|
@@ -171,6 +179,7 @@ module Hubspot
|
|
171
179
|
archived_at == o.archived_at &&
|
172
180
|
properties_with_history == o.properties_with_history &&
|
173
181
|
id == o.id &&
|
182
|
+
object_write_trace_id == o.object_write_trace_id &&
|
174
183
|
properties == o.properties &&
|
175
184
|
updated_at == o.updated_at
|
176
185
|
end
|
@@ -184,7 +193,7 @@ module Hubspot
|
|
184
193
|
# Calculates hash code according to all attributes.
|
185
194
|
# @return [Integer] Hash code
|
186
195
|
def hash
|
187
|
-
[associations, created_at, archived, archived_at, properties_with_history, id, properties, updated_at].hash
|
196
|
+
[associations, created_at, archived, archived_at, properties_with_history, id, object_write_trace_id, properties, updated_at].hash
|
188
197
|
end
|
189
198
|
|
190
199
|
# Builds the object from hash
|
@@ -30,6 +30,8 @@ module Hubspot
|
|
30
30
|
|
31
31
|
attr_accessor :id
|
32
32
|
|
33
|
+
attr_accessor :object_write_trace_id
|
34
|
+
|
33
35
|
attr_accessor :properties
|
34
36
|
|
35
37
|
attr_accessor :updated_at
|
@@ -43,6 +45,7 @@ module Hubspot
|
|
43
45
|
:'new' => :'new',
|
44
46
|
:'properties_with_history' => :'propertiesWithHistory',
|
45
47
|
:'id' => :'id',
|
48
|
+
:'object_write_trace_id' => :'objectWriteTraceId',
|
46
49
|
:'properties' => :'properties',
|
47
50
|
:'updated_at' => :'updatedAt'
|
48
51
|
}
|
@@ -62,6 +65,7 @@ module Hubspot
|
|
62
65
|
:'new' => :'Boolean',
|
63
66
|
:'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>',
|
64
67
|
:'id' => :'String',
|
68
|
+
:'object_write_trace_id' => :'String',
|
65
69
|
:'properties' => :'Hash<String, String>',
|
66
70
|
:'updated_at' => :'Time'
|
67
71
|
}
|
@@ -114,6 +118,10 @@ module Hubspot
|
|
114
118
|
self.id = attributes[:'id']
|
115
119
|
end
|
116
120
|
|
121
|
+
if attributes.key?(:'object_write_trace_id')
|
122
|
+
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
123
|
+
end
|
124
|
+
|
117
125
|
if attributes.key?(:'properties')
|
118
126
|
if (value = attributes[:'properties']).is_a?(Hash)
|
119
127
|
self.properties = value
|
@@ -174,6 +182,7 @@ module Hubspot
|
|
174
182
|
new == o.new &&
|
175
183
|
properties_with_history == o.properties_with_history &&
|
176
184
|
id == o.id &&
|
185
|
+
object_write_trace_id == o.object_write_trace_id &&
|
177
186
|
properties == o.properties &&
|
178
187
|
updated_at == o.updated_at
|
179
188
|
end
|
@@ -187,7 +196,7 @@ module Hubspot
|
|
187
196
|
# Calculates hash code according to all attributes.
|
188
197
|
# @return [Integer] Hash code
|
189
198
|
def hash
|
190
|
-
[created_at, archived, archived_at, new, properties_with_history, id, properties, updated_at].hash
|
199
|
+
[created_at, archived, archived_at, new, properties_with_history, id, object_write_trace_id, properties, updated_at].hash
|
191
200
|
end
|
192
201
|
|
193
202
|
# Builds the object from hash
|
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#Objects
|
2
|
+
#CRM Objects
|
3
3
|
|
4
4
|
#CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
|
5
5
|
|
@@ -0,0 +1,160 @@
|
|
1
|
+
=begin
|
2
|
+
#CRM Deal Splits
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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 Crm
|
17
|
+
module Objects
|
18
|
+
module DealSplits
|
19
|
+
class BatchApi
|
20
|
+
attr_accessor :api_client
|
21
|
+
|
22
|
+
def initialize(api_client = ApiClient.default)
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# Read a batch of deal split objects by their associated deal object internal ID
|
26
|
+
# @param batch_input_public_object_id [BatchInputPublicObjectId]
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [BatchResponseDealToDealSplits]
|
29
|
+
def read(batch_input_public_object_id, opts = {})
|
30
|
+
data, _status_code, _headers = read_with_http_info(batch_input_public_object_id, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Read a batch of deal split objects by their associated deal object internal ID
|
35
|
+
# @param batch_input_public_object_id [BatchInputPublicObjectId]
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(BatchResponseDealToDealSplits, Integer, Hash)>] BatchResponseDealToDealSplits data, response status code and response headers
|
38
|
+
def read_with_http_info(batch_input_public_object_id, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.read ...'
|
41
|
+
end
|
42
|
+
# verify the required parameter 'batch_input_public_object_id' is set
|
43
|
+
if @api_client.config.client_side_validation && batch_input_public_object_id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_public_object_id' when calling BatchApi.read"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = '/crm/v3/objects/deals/splits/batch/read'
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = opts[:query_params] || {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = opts[:header_params] || {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
58
|
+
if !content_type.nil?
|
59
|
+
header_params['Content-Type'] = content_type
|
60
|
+
end
|
61
|
+
|
62
|
+
# form parameters
|
63
|
+
form_params = opts[:form_params] || {}
|
64
|
+
|
65
|
+
# http body (model)
|
66
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_public_object_id)
|
67
|
+
|
68
|
+
# return_type
|
69
|
+
return_type = opts[:debug_return_type] || 'BatchResponseDealToDealSplits'
|
70
|
+
|
71
|
+
# auth_names
|
72
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
73
|
+
|
74
|
+
new_options = opts.merge(
|
75
|
+
:operation => :"BatchApi.read",
|
76
|
+
:header_params => header_params,
|
77
|
+
:query_params => query_params,
|
78
|
+
:form_params => form_params,
|
79
|
+
:body => post_body,
|
80
|
+
:auth_names => auth_names,
|
81
|
+
:return_type => return_type
|
82
|
+
)
|
83
|
+
|
84
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: BatchApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
91
|
+
# Create or replace deal splits for deals with the provided IDs. Deal split percentages for each deal must sum up to 1.0 (100%) and may have up to 8 decimal places
|
92
|
+
# @param public_deal_splits_batch_create_request [PublicDealSplitsBatchCreateRequest]
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [BatchResponseDealToDealSplits]
|
95
|
+
def upsert(public_deal_splits_batch_create_request, opts = {})
|
96
|
+
data, _status_code, _headers = upsert_with_http_info(public_deal_splits_batch_create_request, opts)
|
97
|
+
data
|
98
|
+
end
|
99
|
+
|
100
|
+
# Create or replace deal splits for deals with the provided IDs. Deal split percentages for each deal must sum up to 1.0 (100%) and may have up to 8 decimal places
|
101
|
+
# @param public_deal_splits_batch_create_request [PublicDealSplitsBatchCreateRequest]
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [Array<(BatchResponseDealToDealSplits, Integer, Hash)>] BatchResponseDealToDealSplits data, response status code and response headers
|
104
|
+
def upsert_with_http_info(public_deal_splits_batch_create_request, opts = {})
|
105
|
+
if @api_client.config.debugging
|
106
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.upsert ...'
|
107
|
+
end
|
108
|
+
# verify the required parameter 'public_deal_splits_batch_create_request' is set
|
109
|
+
if @api_client.config.client_side_validation && public_deal_splits_batch_create_request.nil?
|
110
|
+
fail ArgumentError, "Missing the required parameter 'public_deal_splits_batch_create_request' when calling BatchApi.upsert"
|
111
|
+
end
|
112
|
+
# resource path
|
113
|
+
local_var_path = '/crm/v3/objects/deals/splits/batch/upsert'
|
114
|
+
|
115
|
+
# query parameters
|
116
|
+
query_params = opts[:query_params] || {}
|
117
|
+
|
118
|
+
# header parameters
|
119
|
+
header_params = opts[:header_params] || {}
|
120
|
+
# HTTP header 'Accept' (if needed)
|
121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
122
|
+
# HTTP header 'Content-Type'
|
123
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
124
|
+
if !content_type.nil?
|
125
|
+
header_params['Content-Type'] = content_type
|
126
|
+
end
|
127
|
+
|
128
|
+
# form parameters
|
129
|
+
form_params = opts[:form_params] || {}
|
130
|
+
|
131
|
+
# http body (model)
|
132
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(public_deal_splits_batch_create_request)
|
133
|
+
|
134
|
+
# return_type
|
135
|
+
return_type = opts[:debug_return_type] || 'BatchResponseDealToDealSplits'
|
136
|
+
|
137
|
+
# auth_names
|
138
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
139
|
+
|
140
|
+
new_options = opts.merge(
|
141
|
+
:operation => :"BatchApi.upsert",
|
142
|
+
:header_params => header_params,
|
143
|
+
:query_params => query_params,
|
144
|
+
:form_params => form_params,
|
145
|
+
:body => post_body,
|
146
|
+
:auth_names => auth_names,
|
147
|
+
:return_type => return_type
|
148
|
+
)
|
149
|
+
|
150
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
151
|
+
if @api_client.config.debugging
|
152
|
+
@api_client.config.logger.debug "API called: BatchApi#upsert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
153
|
+
end
|
154
|
+
return data, status_code, headers
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|