hubspot-api-client 18.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 +287 -53
- 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/attach_to_lang_primary_request_v_next.rb +34 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/blog_post.rb +38 -38
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/breakpoint_styles.rb +258 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/content_language_variation.rb +15 -1
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/styles.rb +12 -1
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +52 -31
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +36 -36
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +55 -40
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_batch_clone_request.rb +230 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_batch_update_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/bounded_next_page.rb +237 -0
- data/lib/hubspot/codegen/cms/hubdb/models/bounded_paging.rb +223 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +61 -7
- data/lib/hubspot/codegen/cms/hubdb/models/column_request.rb +3 -3
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +16 -2
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_batch_clone_request.rb +237 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_batch_update_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +2 -2
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_request.rb +2 -2
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +69 -5
- data/lib/hubspot/codegen/cms/hubdb/models/paging.rb +232 -0
- data/lib/hubspot/codegen/cms/hubdb/models/previous_page.rb +237 -0
- data/lib/hubspot/codegen/{crm/lists/models/public_unified_events_in_list_filter.rb → cms/hubdb/models/random_access_collection_response_with_total_hub_db_table_row_v3.rb} +54 -61
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +8 -8
- data/lib/hubspot/codegen/cms/hubdb/models/streaming_collection_response_with_total_hub_db_table_row_v3.rb +303 -0
- data/lib/hubspot/codegen/cms/hubdb/models/unified_collection_response_with_total_base_hub_db_table_row_v3.rb +109 -0
- data/lib/hubspot/codegen/cms/source_code/api/content_api.rb +5 -5
- data/lib/hubspot/codegen/cms/source_code/api/extract_api.rb +89 -26
- data/lib/hubspot/codegen/cms/source_code/api/metadata_api.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/api/validation_api.rb +3 -3
- data/lib/hubspot/codegen/cms/source_code/api_client.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/action_response.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/asset_file_metadata.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/file_extract_request.rb +1 -1
- data/lib/hubspot/codegen/cms/source_code/models/task_locator.rb +1 -1
- data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/api_client.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/api_error.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/configuration.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/error.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +2 -2
- data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +12 -3
- data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +2 -2
- data/lib/hubspot/codegen/conversations/visitor_identification/api/generate_api.rb +1 -1
- 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/{objects/calls/api/public_object_api.rb → associations/v4/api/report_api.rb} +25 -28
- 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/emails/api/public_object_api.rb → commerce/invoices/api/search_api.rb} +24 -22
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/api_client.rb +5 -5
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/api_error.rb +4 -4
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/configuration.rb +4 -4
- data/lib/hubspot/codegen/crm/{objects/tasks/models/public_gdpr_delete_input.rb → commerce/invoices/models/associated_id.rb} +28 -23
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/customer_search_response_external.rb → commerce/invoices/models/association_spec.rb} +35 -40
- 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/commerce/invoices/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/models/error.rb +57 -57
- data/lib/hubspot/codegen/crm/{extensions/accounting → commerce/invoices}/models/error_detail.rb +35 -35
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/invoice_search_response.rb → commerce/invoices/models/filter.rb} +66 -36
- 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/commerce/invoices/models/previous_page.rb +239 -0
- 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/{extensions/accounting/models/accounting_extension_customer.rb → commerce/invoices/models/simple_public_object.rb} +68 -41
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions → commerce/invoices}/models/simple_public_object_batch_input.rb +16 -7
- 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/companies/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/companies/api/{public_object_api.rb → merge_api.rb} +5 -5
- data/lib/hubspot/codegen/crm/companies/models/association_spec.rb +0 -10
- data/lib/hubspot/codegen/crm/companies/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_upsert.rb} +15 -22
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/companies/models/public_associations_for_object.rb +0 -10
- data/lib/hubspot/codegen/crm/companies/models/public_object_id.rb +0 -5
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input_upsert.rb +262 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input_for_create.rb +10 -6
- data/lib/hubspot/codegen/crm/companies/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/contacts/api/{public_object_api.rb → merge_api.rb} +5 -5
- data/lib/hubspot/codegen/crm/contacts/models/association_spec.rb +0 -10
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_associations_for_object.rb +0 -10
- data/lib/hubspot/codegen/crm/contacts/models/public_object_id.rb +0 -5
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input_upsert.rb +262 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input_for_create.rb +10 -6
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/deals/api/{public_object_api.rb → merge_api.rb} +7 -7
- data/lib/hubspot/codegen/crm/deals/models/association_spec.rb +0 -10
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/deals/models/public_associations_for_object.rb +0 -10
- data/lib/hubspot/codegen/crm/deals/models/public_object_id.rb +0 -5
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input_upsert.rb +262 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input_for_create.rb +10 -6
- data/lib/hubspot/codegen/crm/deals/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/{cms/source_code/api/source_code_extract_api.rb → crm/exports/api/public_exports_api.rb} +52 -44
- 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 +88 -8
- data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +24 -24
- data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +9 -2
- 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/error.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/mark_recording_as_ready_request.rb +230 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_patch_request.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_request.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_response.rb +3 -2
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +35 -6
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +35 -6
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +50 -6
- 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 +81 -11
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/line_items/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_for_create.rb} +15 -22
- data/lib/hubspot/codegen/crm/line_items/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +15 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +17 -1
- 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 +263 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +5 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input_for_create.rb +3 -3
- 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 +324 -0
- data/lib/hubspot/codegen/crm/lists/api/folders_api.rb +420 -0
- data/lib/hubspot/codegen/crm/lists/api/lists_api.rb +15 -15
- data/lib/hubspot/codegen/crm/lists/api/mapping_api.rb +154 -0
- data/lib/hubspot/codegen/crm/lists/api/memberships_api.rb +169 -28
- data/lib/hubspot/codegen/crm/lists/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/{collection_response_long.rb → api_collection_response_join_time_and_record_id.rb} +15 -7
- data/lib/hubspot/codegen/crm/lists/models/api_collection_response_record_list_membership_no_paging.rb +239 -0
- data/lib/hubspot/codegen/crm/lists/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/{products/models/public_merge_input.rb → lists/models/join_time_and_record_id.rb} +25 -25
- data/lib/hubspot/codegen/crm/lists/models/list_create_request.rb +14 -2
- data/lib/hubspot/codegen/crm/lists/models/list_create_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/list_fetch_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/list_filter_update_request.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/list_folder_create_request.rb +239 -0
- data/lib/hubspot/codegen/crm/{products/models/public_gdpr_delete_input.rb → lists/models/list_folder_create_response.rb} +16 -25
- data/lib/hubspot/codegen/crm/{tickets/models/public_gdpr_delete_input.rb → lists/models/list_folder_fetch_response.rb} +16 -25
- data/lib/hubspot/codegen/crm/lists/models/list_move_request.rb +244 -0
- data/lib/hubspot/codegen/crm/lists/models/list_search_request.rb +38 -15
- data/lib/hubspot/codegen/crm/lists/models/list_search_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/list_update_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/lists_by_id_response.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/membership_change_request.rb +3 -3
- data/lib/hubspot/codegen/crm/lists/models/memberships_update_response.rb +4 -4
- data/lib/hubspot/codegen/crm/lists/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/public_absolute_comparative_timestamp_refine_by.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_absolute_ranged_timestamp_refine_by.rb +28 -28
- data/lib/hubspot/codegen/crm/lists/models/public_ads_search_filter.rb +39 -39
- data/lib/hubspot/codegen/crm/lists/models/public_ads_time_filter.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_all_history_refine_by.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/public_all_property_types_operation.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_and_filter_branch.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_association_filter_branch.rb +36 -36
- data/lib/hubspot/codegen/crm/lists/models/public_association_in_list_filter.rb +55 -55
- data/lib/hubspot/codegen/crm/lists/models/public_batch_migration_mapping.rb +247 -0
- data/lib/hubspot/codegen/crm/lists/models/public_bool_property_operation.rb +33 -33
- data/lib/hubspot/codegen/crm/lists/models/public_calendar_date_property_operation.rb +54 -54
- data/lib/hubspot/codegen/crm/lists/models/public_campaign_influenced_filter.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_communication_subscription_filter.rb +31 -31
- data/lib/hubspot/codegen/crm/lists/models/public_comparative_date_property_operation.rb +35 -35
- data/lib/hubspot/codegen/crm/lists/models/public_comparative_property_updated_operation.rb +35 -35
- data/lib/hubspot/codegen/crm/lists/models/public_constant_filter.rb +21 -21
- data/lib/hubspot/codegen/crm/lists/models/public_cta_analytics_filter.rb +28 -28
- data/lib/hubspot/codegen/crm/lists/models/public_date_point.rb +56 -56
- data/lib/hubspot/codegen/crm/lists/models/public_date_property_operation.rb +45 -45
- data/lib/hubspot/codegen/crm/lists/models/public_date_time_property_operation.rb +30 -30
- data/lib/hubspot/codegen/crm/lists/models/public_email_event_filter.rb +44 -44
- data/lib/hubspot/codegen/crm/lists/models/public_email_subscription_filter.rb +27 -27
- data/lib/hubspot/codegen/crm/lists/models/public_enumeration_property_operation.rb +35 -35
- data/lib/hubspot/codegen/crm/lists/models/public_event_analytics_filter.rb +28 -28
- data/lib/hubspot/codegen/crm/lists/models/public_event_filter_metadata.rb +2 -2
- data/lib/hubspot/codegen/crm/lists/models/public_fiscal_quarter_reference.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_fiscal_year_reference.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_form_submission_filter.rb +20 -20
- data/lib/hubspot/codegen/crm/lists/models/{public_event_analytics_filter_coalescing_refine_by.rb → public_form_submission_filter_coalescing_refine_by.rb} +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_form_submission_on_page_filter.rb +37 -37
- data/lib/hubspot/codegen/crm/lists/models/public_in_list_filter.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_in_list_filter_metadata.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/public_index_offset.rb +44 -44
- data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point.rb +30 -30
- data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point_index_reference.rb +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_integration_event_filter.rb +22 -22
- data/lib/hubspot/codegen/crm/lists/models/public_list_folder.rb +327 -0
- data/lib/hubspot/codegen/crm/lists/models/public_migration_mapping.rb +244 -0
- data/lib/hubspot/codegen/crm/lists/models/public_month_reference.rb +29 -29
- data/lib/hubspot/codegen/crm/lists/models/public_multi_string_property_operation.rb +35 -35
- data/lib/hubspot/codegen/crm/lists/models/public_not_all_filter_branch.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_not_any_filter_branch.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_now_reference.rb +23 -23
- data/lib/hubspot/codegen/crm/lists/models/public_num_associations_filter.rb +23 -23
- data/lib/hubspot/codegen/crm/lists/models/public_num_occurrences_refine_by.rb +14 -14
- data/lib/hubspot/codegen/crm/lists/models/public_number_property_operation.rb +33 -33
- data/lib/hubspot/codegen/crm/lists/models/public_object_list.rb +14 -5
- data/lib/hubspot/codegen/crm/lists/models/public_object_list_search_result.rb +4 -4
- data/lib/hubspot/codegen/crm/lists/models/public_or_filter_branch.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_page_view_analytics_filter.rb +37 -37
- data/lib/hubspot/codegen/crm/lists/models/public_privacy_analytics_filter.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.rb +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filters_inner.rb +2 -2
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_in_list_filter.rb +39 -39
- data/lib/hubspot/codegen/crm/lists/models/public_property_filter.rb +17 -17
- data/lib/hubspot/codegen/crm/lists/models/public_property_referenced_time.rb +25 -25
- data/lib/hubspot/codegen/crm/lists/models/public_quarter_reference.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_ranged_date_property_operation.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/public_ranged_number_property_operation.rb +36 -36
- data/lib/hubspot/codegen/crm/lists/models/public_ranged_time_operation.rb +67 -67
- data/lib/hubspot/codegen/crm/lists/models/public_relative_comparative_timestamp_refine_by.rb +22 -22
- data/lib/hubspot/codegen/crm/lists/models/public_relative_ranged_timestamp_refine_by.rb +31 -31
- data/lib/hubspot/codegen/crm/lists/models/public_restricted_filter_branch.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_rolling_date_range_property_operation.rb +36 -36
- data/lib/hubspot/codegen/crm/lists/models/public_rolling_property_updated_operation.rb +33 -33
- data/lib/hubspot/codegen/crm/lists/models/public_set_occurrences_refine_by.rb +1 -1
- data/lib/hubspot/codegen/crm/lists/models/public_string_property_operation.rb +33 -33
- data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_filter.rb +16 -16
- data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_value_filter.rb +26 -26
- data/lib/hubspot/codegen/crm/lists/models/{public_property_filter_operation.rb → public_survey_monkey_value_filter_value_comparison.rb} +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_time_offset.rb +19 -19
- data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation.rb +47 -47
- data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation_time_point.rb +2 -1
- data/lib/hubspot/codegen/crm/lists/models/public_today_reference.rb +23 -23
- data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter.rb +31 -31
- data/lib/hubspot/codegen/crm/lists/models/public_unified_events_filter_branch.rb +41 -32
- data/lib/hubspot/codegen/crm/lists/models/public_webinar_filter.rb +14 -14
- data/lib/hubspot/codegen/crm/lists/models/public_week_reference.rb +48 -48
- data/lib/hubspot/codegen/crm/lists/models/public_year_reference.rb +42 -42
- data/lib/hubspot/codegen/crm/lists/models/record_list_membership.rb +270 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +85 -9
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +87 -11
- 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_batch_input_for_create.rb +232 -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_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/calls/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/calls/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +39 -13
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input_for_create.rb +0 -5
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/updated_product.rb → objects/calls/models/simple_public_upsert_object.rb} +76 -88
- data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +87 -11
- data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions/models/batch_input_simple_public_object_input_for_create.rb → communications/models/batch_input_simple_public_object_batch_input_for_create.rb} +7 -7
- data/lib/hubspot/codegen/crm/objects/communications/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/communications/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_upsert.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- 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/{extensions/accounting/models/result_id_accounting_response.rb → objects/deal_splits/models/batch_response_deal_to_deal_splits.rb} +85 -38
- 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/{goals/models/public_gdpr_delete_input.rb → deal_splits/models/deal_to_deal_splits.rb} +29 -22
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/objects/{goals/models/public_merge_input.rb → deal_splits/models/error_detail.rb} +56 -27
- data/lib/hubspot/codegen/crm/objects/{emails/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/{postal_mail/models/public_gdpr_delete_input.rb → deal_splits/models/public_deal_splits_create_request.rb} +29 -22
- 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 +81 -11
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/emails/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_upsert.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- 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 +11 -11
- data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +74 -6
- data/lib/hubspot/codegen/crm/objects/goals/api/search_api.rb +1 -1
- 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/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/goals/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input_upsert.rb +264 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_input_for_create.rb +10 -1
- 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 +392 -0
- data/lib/hubspot/codegen/crm/objects/leads/api/batch_api.rb +365 -0
- data/lib/hubspot/codegen/crm/objects/{postal_mail/api/public_object_api.rb → leads/api/search_api.rb} +19 -21
- data/lib/hubspot/codegen/crm/objects/leads/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/objects/leads/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/leads/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/association_spec.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/batch_input_simple_public_object_batch_input.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/batch_input_simple_public_object_id.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_read_input_simple_public_object_id.rb +274 -0
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/action_response.rb → objects/leads/models/batch_response_simple_public_object.rb} +49 -33
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/exchange_rate_response.rb → objects/leads/models/batch_response_simple_public_object_with_errors.rb} +95 -58
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/{communications/models/public_gdpr_delete_input.rb → leads/models/collection_response_associated_id.rb} +24 -22
- data/lib/hubspot/codegen/crm/objects/leads/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/tax.rb → objects/leads/models/error_detail.rb} +49 -38
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/invoice_pdf_response.rb → objects/leads/models/filter.rb} +65 -54
- data/lib/hubspot/codegen/crm/objects/leads/models/filter_group.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/forward_paging.rb +225 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/paging.rb +234 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/previous_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/public_associations_for_object.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/leads/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/public_object_search_request.rb +276 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object.rb +312 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input.rb +266 -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 +265 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/simple_public_object_input.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → leads}/models/simple_public_object_input_for_create.rb +5 -10
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_with_associations.rb +323 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/standard_error.rb +324 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +81 -11
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/meetings/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/meetings/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +39 -13
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- data/lib/hubspot/codegen/crm/objects/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_for_create.rb} +15 -22
- data/lib/hubspot/codegen/crm/objects/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_upsert.rb +263 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +0 -5
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_upsert_object.rb +324 -0
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +81 -11
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/notes/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/notes/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +39 -13
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- 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 +81 -11
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- 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_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/{extensions/accounting/models/accounting_extension_invoice.rb → objects/postal_mail/models/batch_response_simple_public_upsert_object_with_errors.rb} +68 -91
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_upsert.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +81 -11
- 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_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.rb} +4 -4
- 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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/tasks/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_upsert.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- data/lib/hubspot/codegen/crm/objects/taxes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/taxes/api/batch_api.rb +81 -11
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- data/lib/hubspot/codegen/crm/objects/taxes/models/{public_merge_input.rb → simple_public_object_batch_input_for_create.rb} +32 -24
- data/lib/hubspot/codegen/crm/objects/taxes/models/{public_gdpr_delete_input.rb → simple_public_object_batch_input_upsert.rb} +39 -13
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input_for_create.rb +0 -5
- 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 +326 -0
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +58 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_audits_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stage_audits_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_public_audit_info_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/models/public_audit_info.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +5 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +22 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input_upsert.rb +263 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +15 -2
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input_for_create.rb +10 -2
- data/lib/hubspot/codegen/crm/products/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +81 -11
- data/lib/hubspot/codegen/crm/quotes/models/{public_gdpr_delete_input.rb → batch_input_simple_public_object_batch_input_for_create.rb} +15 -22
- data/lib/hubspot/codegen/crm/quotes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_upsert.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/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +0 -25
- 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 +12 -1
- 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 +263 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input_for_create.rb +0 -5
- 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 +324 -0
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +7 -7
- data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +19 -1
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_patch.rb +10 -1
- data/lib/hubspot/codegen/crm/schemas/models/property.rb +164 -110
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +70 -2
- data/lib/hubspot/codegen/crm/tickets/api/{public_object_api.rb → merge_api.rb} +5 -5
- data/lib/hubspot/codegen/crm/tickets/models/association_spec.rb +0 -10
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input_upsert.rb +230 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_upsert_object.rb +326 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_upsert_object_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_associations_for_object.rb +0 -10
- data/lib/hubspot/codegen/crm/tickets/models/public_object_id.rb +0 -5
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +10 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input_upsert.rb +262 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +10 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input_for_create.rb +10 -6
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_upsert_object.rb +315 -0
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +6 -6
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +6 -6
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +4 -4
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +1 -1
- data/lib/hubspot/codegen/events/api/events_api.rb +84 -29
- data/lib/hubspot/codegen/events/api_client.rb +2 -2
- data/lib/hubspot/codegen/events/api_error.rb +2 -2
- data/lib/hubspot/codegen/events/configuration.rb +2 -2
- data/lib/hubspot/codegen/events/models/collection_response_external_unified_event.rb +2 -2
- data/lib/hubspot/codegen/events/models/error.rb +2 -2
- data/lib/hubspot/codegen/events/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/events/models/external_unified_event.rb +2 -2
- data/lib/hubspot/codegen/events/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/events/models/paging.rb +2 -2
- data/lib/hubspot/codegen/events/models/previous_page.rb +2 -2
- data/lib/hubspot/codegen/events/models/visible_external_event_type_names.rb +229 -0
- data/lib/hubspot/codegen/events/send/api/{custom_event_data_api.rb → basic_api.rb} +13 -10
- data/lib/hubspot/codegen/{crm/deals/api/gdpr_api.rb → events/send/api/batch_api.rb} +21 -21
- 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/{crm/quotes/models/public_merge_input.rb → marketing/emails/models/ab_test_create_request_v_next.rb} +28 -26
- 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/{cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb → marketing/emails/models/collection_response_with_total_public_email_forward_paging.rb} +12 -11
- 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/{crm/line_items/models/public_merge_input.rb → marketing/emails/models/public_email_from_details.rb} +33 -30
- 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 +294 -100
- data/lib/hubspot/codegen/marketing/events/api/batch_api.rb +156 -20
- 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 +446 -0
- data/lib/hubspot/codegen/marketing/events/api/retrieve_participant_state_api.rb +386 -0
- data/lib/hubspot/codegen/marketing/events/api/settings_api.rb +42 -42
- data/lib/hubspot/codegen/marketing/events/api/subscriber_state_changes_api.rb +45 -45
- data/lib/hubspot/codegen/marketing/events/api_client.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/api_error.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/configuration.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/app_info.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/attendance_counters.rb +270 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_create_request_params.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber.rb +1 -2
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_external_unique_identifier.rb +1 -1
- 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_input_marketing_event_subscriber.rb +1 -2
- data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response.rb +1 -1
- 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/batch_response_subscriber_email_response.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/batch_response_subscriber_vid_response.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/{collection_response_marketing_event_external_unique_identifier_no_paging.rb → collection_response_marketing_event_public_read_response_v2_forward_paging.rb} +15 -6
- data/lib/hubspot/codegen/marketing/events/models/collection_response_search_public_response_wrapper_no_paging.rb +230 -0
- 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/collection_response_with_total_participation_breakdown_forward_paging.rb +253 -0
- data/lib/hubspot/codegen/marketing/events/models/collection_response_with_total_public_list_no_paging.rb +244 -0
- data/lib/hubspot/codegen/marketing/events/models/contact_association.rb +260 -0
- data/lib/hubspot/codegen/marketing/events/models/crm_property_wrapper.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/error.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/event_detail_settings.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/event_detail_settings_url.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/forward_paging.rb +223 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_association.rb +260 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_complete_request_params.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_create_request_params.rb +11 -2
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_default_response.rb +23 -5
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_email_subscriber.rb +2 -2
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_external_unique_identifier.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 +62 -44
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response_v2.rb +367 -0
- data/lib/hubspot/codegen/{crm/deals/models/public_gdpr_delete_input.rb → marketing/events/models/marketing_event_public_object_id_delete_request.rb} +8 -17
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response.rb +20 -2
- 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 +2 -2
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_update_request_params.rb +11 -2
- data/lib/hubspot/codegen/marketing/events/models/next_page.rb +237 -0
- data/lib/hubspot/codegen/marketing/events/models/participation_associations.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/participation_breakdown.rb +270 -0
- data/lib/hubspot/codegen/marketing/events/models/participation_properties.rb +294 -0
- data/lib/hubspot/codegen/marketing/events/models/property_value.rb +58 -4
- data/lib/hubspot/codegen/marketing/events/models/public_list.rb +361 -0
- data/lib/hubspot/codegen/marketing/events/models/search_public_response_wrapper.rb +270 -0
- data/lib/hubspot/codegen/marketing/events/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/subscriber_email_response.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/subscriber_vid_response.rb +1 -1
- data/lib/hubspot/codegen/marketing/forms/models/datepicker_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field_filter.rb +38 -33
- data/lib/hubspot/codegen/marketing/forms/models/dropdown_field.rb +84 -84
- data/lib/hubspot/codegen/marketing/forms/models/email_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/email_field_validation.rb +19 -19
- data/lib/hubspot/codegen/marketing/forms/models/enumerated_field_option.rb +29 -28
- data/lib/hubspot/codegen/marketing/forms/models/file_field.rb +77 -77
- 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/marketing/forms/models/legal_consent_checkbox.rb +20 -19
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_explicit_consent_to_process.rb +42 -35
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_implicit_consent_to_process.rb +27 -22
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_legitimate_interest.rb +33 -29
- data/lib/hubspot/codegen/marketing/forms/models/legal_consent_options_none.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/mobile_phone_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/multi_line_text_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/multiple_checkboxes_field.rb +78 -78
- data/lib/hubspot/codegen/marketing/forms/models/number_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/number_field_validation.rb +2 -0
- data/lib/hubspot/codegen/marketing/forms/models/payment_link_radio_field.rb +72 -72
- data/lib/hubspot/codegen/marketing/forms/models/phone_field.rb +77 -77
- data/lib/hubspot/codegen/marketing/forms/models/phone_field_validation.rb +2 -0
- data/lib/hubspot/codegen/marketing/forms/models/radio_field.rb +84 -84
- data/lib/hubspot/codegen/marketing/forms/models/single_checkbox_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/forms/models/single_line_text_field.rb +67 -67
- data/lib/hubspot/codegen/marketing/transactional/api/public_smtp_tokens_api.rb +21 -21
- data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/api_client.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/api_error.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/configuration.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/collection_response_smtp_api_token_view_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/error.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -1
- data/lib/hubspot/codegen/settings/users/api/roles_api.rb +1 -1
- data/lib/hubspot/codegen/settings/users/api/teams_api.rb +1 -1
- data/lib/hubspot/codegen/settings/users/api/users_api.rb +13 -1
- data/lib/hubspot/codegen/settings/users/api_client.rb +1 -1
- data/lib/hubspot/codegen/settings/users/api_error.rb +1 -1
- data/lib/hubspot/codegen/settings/users/configuration.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/collection_response_public_permission_set_no_paging.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/collection_response_public_team_no_paging.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/collection_response_public_user_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/error.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/public_permission_set.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/public_team.rb +1 -1
- data/lib/hubspot/codegen/settings/users/models/public_user.rb +20 -2
- data/lib/hubspot/codegen/settings/users/models/public_user_update.rb +20 -2
- data/lib/hubspot/codegen/settings/users/models/user_provision_request.rb +20 -2
- 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/{crm/extensions/accounting/api/invoice_api.rb → cms/blogs/blog_posts/api/multi_language_api.rb} +4 -4
- data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +3 -1
- data/lib/hubspot/discovery/cms/source_code/client.rb +0 -1
- data/lib/hubspot/discovery/crm/associations/v4/api/report_api.rb +15 -0
- 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/{extensions/accounting → commerce/invoices}/client.rb +5 -8
- data/lib/hubspot/discovery/crm/companies/api/{public_object_api.rb → merge_api.rb} +1 -1
- data/lib/hubspot/discovery/crm/companies/client.rb +1 -1
- data/lib/hubspot/discovery/crm/contacts/api/{public_object_api.rb → merge_api.rb} +1 -1
- data/lib/hubspot/discovery/crm/contacts/client.rb +1 -1
- data/lib/hubspot/discovery/crm/deals/api/{public_object_api.rb → merge_api.rb} +1 -1
- data/lib/hubspot/discovery/crm/deals/client.rb +1 -1
- data/lib/hubspot/discovery/crm/{line_items/api/gdpr_api.rb → exports/api/public_exports_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/exports/client.rb +19 -0
- data/lib/hubspot/discovery/crm/extensions/{accounting/api/sync_api.rb → calling/api/channel_connection_settings_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/extensions/calling/client.rb +1 -0
- data/lib/hubspot/discovery/crm/extensions/client.rb +0 -1
- data/lib/hubspot/discovery/crm/line_items/client.rb +0 -2
- data/lib/hubspot/discovery/crm/{quotes/api/gdpr_api.rb → lists/api/folders_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/{products/api/gdpr_api.rb → lists/api/mapping_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/lists/client.rb +2 -0
- data/lib/hubspot/discovery/crm/objects/calls/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/client.rb +2 -3
- data/lib/hubspot/discovery/crm/objects/communications/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/{meetings/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/emails/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/goals/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/{emails/api/gdpr_api.rb → leads/api/basic_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/objects/{calls/api/gdpr_api.rb → leads/api/batch_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/objects/{goals/api/gdpr_api.rb → leads/api/search_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/objects/leads/client.rb +23 -0
- data/lib/hubspot/discovery/crm/objects/meetings/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/notes/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/postal_mail/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/tasks/client.rb +0 -2
- data/lib/hubspot/discovery/crm/objects/taxes/client.rb +0 -2
- data/lib/hubspot/discovery/crm/products/client.rb +0 -3
- data/lib/hubspot/discovery/crm/quotes/client.rb +0 -3
- data/lib/hubspot/discovery/crm/schemas/client.rb +0 -1
- data/lib/hubspot/discovery/crm/tickets/api/{gdpr_api.rb → merge_api.rb} +1 -1
- data/lib/hubspot/discovery/crm/tickets/client.rb +1 -3
- data/lib/hubspot/discovery/events/send/api/{custom_event_data_api.rb → basic_api.rb} +1 -1
- data/lib/hubspot/discovery/{crm/objects/api/gdpr_api.rb → events/send/api/batch_api.rb} +3 -3
- 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/{marketing_events_external_api.rb → add_event_attendees_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/{attendance_subscriber_state_changes_api.rb → change_property_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/{search_api.rb → identifiers_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/list_associations_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 +6 -4
- data/lib/hubspot/discovery/marketing/transactional/api/public_smtp_tokens_api.rb +1 -1
- data/lib/hubspot/helpers/camel_case.rb +2 -0
- 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/cms/source-code/extract_api_spec.rb +2 -1
- 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/companies/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/{deals/public_object_api_spec.rb → companies/merge_api_spec.rb} +2 -2
- data/spec/discovery/crm/contacts/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/{quotes/public_object_api_spec.rb → contacts/merge_api_spec.rb} +2 -2
- data/spec/discovery/crm/deals/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/{objects/public_object_api_spec.rb → deals/merge_api_spec.rb} +2 -2
- 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/extensions/calling/recording_settings_api_spec.rb +1 -0
- data/spec/discovery/crm/extensions/client_spec.rb +0 -1
- data/spec/discovery/crm/line_items/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/lists/folders_api_spec.rb +12 -0
- data/spec/discovery/crm/lists/lists_api_spec.rb +4 -11
- data/spec/discovery/crm/lists/mapping_api_spec.rb +15 -0
- data/spec/discovery/crm/lists/memberships_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/calls/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/client_spec.rb +2 -0
- data/spec/discovery/crm/objects/communications/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/deal_splits/batch_api_spec.rb +8 -0
- data/spec/discovery/crm/objects/emails/batch_api_spec.rb +1 -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/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/leads/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/objects/leads/batch_api_spec.rb +11 -0
- data/spec/discovery/crm/objects/leads/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/meetings/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/notes/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/postal_mail/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/tasks/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/objects/taxes/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/products/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/quotes/basic_api_spec.rb +3 -0
- data/spec/discovery/crm/quotes/batch_api_spec.rb +4 -0
- data/spec/discovery/crm/tickets/batch_api_spec.rb +1 -0
- data/spec/discovery/crm/{objects/goals/public_object_api_spec.rb → tickets/merge_api_spec.rb} +2 -2
- data/spec/discovery/events/events_api_spec.rb +1 -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 +7 -4
- data/spec/discovery/marketing/events/batch_api_spec.rb +4 -2
- 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/list_associations_api_spec.rb +12 -0
- data/spec/discovery/marketing/events/retrieve_participant_state_api_spec.rb +11 -0
- data/spec/discovery/marketing/events/settings_api_spec.rb +1 -1
- data/spec/discovery/marketing/events/subscriber_state_changes_api_spec.rb +2 -2
- data/spec/discovery/marketing/transactional/public_smtp_tokens_api_spec.rb +1 -1
- 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 +457 -291
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/blog_posts_api.rb +0 -1694
- data/lib/hubspot/codegen/crm/companies/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +0 -768
- data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +0 -256
- data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +0 -165
- data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +0 -176
- data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +0 -159
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +0 -255
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +0 -395
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +0 -267
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +0 -262
- data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +0 -267
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +0 -246
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +0 -307
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +0 -262
- data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +0 -232
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_create_payment_request.rb +0 -276
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +0 -469
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +0 -295
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_response.rb +0 -454
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +0 -278
- data/lib/hubspot/codegen/crm/extensions/accounting/models/object_sync_feature.rb +0 -231
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +0 -295
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +0 -278
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +0 -249
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +0 -249
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +0 -278
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +0 -242
- data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +0 -278
- data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +0 -242
- data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +0 -333
- data/lib/hubspot/codegen/crm/line_items/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/crm/line_items/api/public_object_api.rb +0 -92
- data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +0 -100
- data/lib/hubspot/codegen/crm/objects/api/public_object_api.rb +0 -98
- data/lib/hubspot/codegen/crm/objects/calls/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/communications/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/communications/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/emails/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_gdpr_delete_input.rb +0 -239
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_merge_input.rb +0 -244
- data/lib/hubspot/codegen/crm/objects/goals/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/goals/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/meetings/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/meetings/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/notes/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/notes/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/tasks/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/tasks/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/objects/taxes/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/crm/objects/taxes/api/public_object_api.rb +0 -94
- data/lib/hubspot/codegen/crm/products/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/crm/products/api/public_object_api.rb +0 -92
- data/lib/hubspot/codegen/crm/quotes/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/crm/quotes/api/public_object_api.rb +0 -92
- data/lib/hubspot/codegen/crm/schemas/api/public_object_schemas_api.rb +0 -85
- data/lib/hubspot/codegen/crm/tickets/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/marketing/events/api/attendance_subscriber_state_changes_api.rb +0 -192
- data/lib/hubspot/codegen/marketing/events/api/marketing_events_external_api.rb +0 -103
- data/lib/hubspot/codegen/marketing/events/api/search_api.rb +0 -90
- data/lib/hubspot/discovery/cms/source_code/api/source_code_extract_api.rb +0 -13
- data/lib/hubspot/discovery/crm/extensions/accounting/api/callbacks_api.rb +0 -15
- data/lib/hubspot/discovery/crm/extensions/accounting/api/settings_api.rb +0 -15
- data/lib/hubspot/discovery/crm/extensions/accounting/api/user_accounts_api.rb +0 -15
- data/lib/hubspot/discovery/crm/line_items/api/public_object_api.rb +0 -13
- data/lib/hubspot/discovery/crm/objects/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/objects/api/public_object_api.rb +0 -13
- data/lib/hubspot/discovery/crm/objects/calls/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/communications/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/communications/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/emails/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/goals/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/meetings/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/notes/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/notes/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/postal_mail/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/postal_mail/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/tasks/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/tasks/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/taxes/api/gdpr_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/taxes/api/public_object_api.rb +0 -15
- data/lib/hubspot/discovery/crm/products/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/products/api/public_object_api.rb +0 -13
- data/lib/hubspot/discovery/crm/quotes/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/quotes/api/public_object_api.rb +0 -13
- data/lib/hubspot/discovery/crm/schemas/api/public_object_schemas_api.rb +0 -13
- data/lib/hubspot/discovery/crm/tickets/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/tickets/api/public_object_api.rb +0 -13
- data/spec/discovery/cms/source-code/source_code_extract_api_spec.rb +0 -8
- data/spec/discovery/crm/companies/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/contacts/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/extensions/accounting/callbacks_api_spec.rb +0 -16
- data/spec/discovery/crm/extensions/accounting/invoice_api_spec.rb +0 -9
- data/spec/discovery/crm/extensions/accounting/settings_api_spec.rb +0 -8
- data/spec/discovery/crm/extensions/accounting/sync_api_spec.rb +0 -8
- data/spec/discovery/crm/extensions/accounting/user_accounts_api_spec.rb +0 -8
- data/spec/discovery/crm/line_items/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/line_items/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/objects/calls/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/calls/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/communications/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/communications/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/emails/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/emails/public_object_api_spec.rb +0 -7
- 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/crm/objects/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/goals/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/meetings/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/meetings/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/notes/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/notes/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/postal_mail/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/postal_mail/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/tasks/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/tasks/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/taxes/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/taxes/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/products/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/products/public_object_api_spec.rb +0 -7
- data/spec/discovery/crm/quotes/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/schemas/public_object_schemas_api_spec.rb +0 -7
- data/spec/discovery/crm/tickets/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/tickets/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
- data/spec/discovery/marketing/events/marketing_events_external_api_spec.rb +0 -7
- data/spec/discovery/marketing/events/search_api_spec.rb +0 -7
- data/spec/integration/contacts_spec.rb +0 -85
@@ -0,0 +1,1226 @@
|
|
1
|
+
=begin
|
2
|
+
#Marketing Emails
|
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 Marketing
|
17
|
+
module Emails
|
18
|
+
class MarketingEmailsApi
|
19
|
+
attr_accessor :api_client
|
20
|
+
|
21
|
+
def initialize(api_client = ApiClient.default)
|
22
|
+
@api_client = api_client
|
23
|
+
end
|
24
|
+
# Delete a marketing email.
|
25
|
+
# @param email_id [String] The ID of the marketing email to delete.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
28
|
+
# @return [nil]
|
29
|
+
def archive(email_id, opts = {})
|
30
|
+
archive_with_http_info(email_id, opts)
|
31
|
+
nil
|
32
|
+
end
|
33
|
+
|
34
|
+
# Delete a marketing email.
|
35
|
+
# @param email_id [String] The ID of the marketing email to delete.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
38
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
39
|
+
def archive_with_http_info(email_id, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.archive ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'email_id' is set
|
44
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.archive"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/marketing/v3/emails/{emailId}'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
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(['*/*'])
|
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]
|
67
|
+
|
68
|
+
# auth_names
|
69
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
70
|
+
|
71
|
+
new_options = opts.merge(
|
72
|
+
:operation => :"MarketingEmailsApi.archive",
|
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(:DELETE, local_var_path, new_options)
|
82
|
+
if @api_client.config.debugging
|
83
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
return data, status_code, headers
|
86
|
+
end
|
87
|
+
|
88
|
+
# Clone a marketing email.
|
89
|
+
# This will create a duplicate email with the same properties as the original, with the exception of a unique ID.
|
90
|
+
# @param content_clone_request_v_next [ContentCloneRequestVNext]
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [PublicEmail]
|
93
|
+
def clone(content_clone_request_v_next, opts = {})
|
94
|
+
data, _status_code, _headers = clone_with_http_info(content_clone_request_v_next, opts)
|
95
|
+
data
|
96
|
+
end
|
97
|
+
|
98
|
+
# Clone a marketing email.
|
99
|
+
# This will create a duplicate email with the same properties as the original, with the exception of a unique ID.
|
100
|
+
# @param content_clone_request_v_next [ContentCloneRequestVNext]
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [Array<(PublicEmail, Integer, Hash)>] PublicEmail data, response status code and response headers
|
103
|
+
def clone_with_http_info(content_clone_request_v_next, opts = {})
|
104
|
+
if @api_client.config.debugging
|
105
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.clone ...'
|
106
|
+
end
|
107
|
+
# verify the required parameter 'content_clone_request_v_next' is set
|
108
|
+
if @api_client.config.client_side_validation && content_clone_request_v_next.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'content_clone_request_v_next' when calling MarketingEmailsApi.clone"
|
110
|
+
end
|
111
|
+
# resource path
|
112
|
+
local_var_path = '/marketing/v3/emails/clone'
|
113
|
+
|
114
|
+
# query parameters
|
115
|
+
query_params = opts[:query_params] || {}
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = opts[:header_params] || {}
|
119
|
+
# HTTP header 'Accept' (if needed)
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
121
|
+
# HTTP header 'Content-Type'
|
122
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
123
|
+
if !content_type.nil?
|
124
|
+
header_params['Content-Type'] = content_type
|
125
|
+
end
|
126
|
+
|
127
|
+
# form parameters
|
128
|
+
form_params = opts[:form_params] || {}
|
129
|
+
|
130
|
+
# http body (model)
|
131
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(content_clone_request_v_next)
|
132
|
+
|
133
|
+
# return_type
|
134
|
+
return_type = opts[:debug_return_type] || 'PublicEmail'
|
135
|
+
|
136
|
+
# auth_names
|
137
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
138
|
+
|
139
|
+
new_options = opts.merge(
|
140
|
+
:operation => :"MarketingEmailsApi.clone",
|
141
|
+
:header_params => header_params,
|
142
|
+
:query_params => query_params,
|
143
|
+
:form_params => form_params,
|
144
|
+
:body => post_body,
|
145
|
+
:auth_names => auth_names,
|
146
|
+
:return_type => return_type
|
147
|
+
)
|
148
|
+
|
149
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#clone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
|
156
|
+
# Create a new marketing email.
|
157
|
+
# Use this endpoint to create a new marketing email.
|
158
|
+
# @param email_create_request [EmailCreateRequest]
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [PublicEmail]
|
161
|
+
def create(email_create_request, opts = {})
|
162
|
+
data, _status_code, _headers = create_with_http_info(email_create_request, opts)
|
163
|
+
data
|
164
|
+
end
|
165
|
+
|
166
|
+
# Create a new marketing email.
|
167
|
+
# Use this endpoint to create a new marketing email.
|
168
|
+
# @param email_create_request [EmailCreateRequest]
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @return [Array<(PublicEmail, Integer, Hash)>] PublicEmail data, response status code and response headers
|
171
|
+
def create_with_http_info(email_create_request, opts = {})
|
172
|
+
if @api_client.config.debugging
|
173
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.create ...'
|
174
|
+
end
|
175
|
+
# verify the required parameter 'email_create_request' is set
|
176
|
+
if @api_client.config.client_side_validation && email_create_request.nil?
|
177
|
+
fail ArgumentError, "Missing the required parameter 'email_create_request' when calling MarketingEmailsApi.create"
|
178
|
+
end
|
179
|
+
# resource path
|
180
|
+
local_var_path = '/marketing/v3/emails/'
|
181
|
+
|
182
|
+
# query parameters
|
183
|
+
query_params = opts[:query_params] || {}
|
184
|
+
|
185
|
+
# header parameters
|
186
|
+
header_params = opts[:header_params] || {}
|
187
|
+
# HTTP header 'Accept' (if needed)
|
188
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
189
|
+
# HTTP header 'Content-Type'
|
190
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
191
|
+
if !content_type.nil?
|
192
|
+
header_params['Content-Type'] = content_type
|
193
|
+
end
|
194
|
+
|
195
|
+
# form parameters
|
196
|
+
form_params = opts[:form_params] || {}
|
197
|
+
|
198
|
+
# http body (model)
|
199
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(email_create_request)
|
200
|
+
|
201
|
+
# return_type
|
202
|
+
return_type = opts[:debug_return_type] || 'PublicEmail'
|
203
|
+
|
204
|
+
# auth_names
|
205
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
206
|
+
|
207
|
+
new_options = opts.merge(
|
208
|
+
:operation => :"MarketingEmailsApi.create",
|
209
|
+
:header_params => header_params,
|
210
|
+
:query_params => query_params,
|
211
|
+
:form_params => form_params,
|
212
|
+
:body => post_body,
|
213
|
+
:auth_names => auth_names,
|
214
|
+
:return_type => return_type
|
215
|
+
)
|
216
|
+
|
217
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
218
|
+
if @api_client.config.debugging
|
219
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
220
|
+
end
|
221
|
+
return data, status_code, headers
|
222
|
+
end
|
223
|
+
|
224
|
+
# Create an A/B test variation of a marketing email.
|
225
|
+
# Create a variation of a marketing email for an A/B test. The new variation will be created as a draft. If an active variation already exists, a new one won't be created.
|
226
|
+
# @param ab_test_create_request_v_next [AbTestCreateRequestVNext]
|
227
|
+
# @param [Hash] opts the optional parameters
|
228
|
+
# @return [PublicEmail]
|
229
|
+
def create_ab_test_variation(ab_test_create_request_v_next, opts = {})
|
230
|
+
data, _status_code, _headers = create_ab_test_variation_with_http_info(ab_test_create_request_v_next, opts)
|
231
|
+
data
|
232
|
+
end
|
233
|
+
|
234
|
+
# Create an A/B test variation of a marketing email.
|
235
|
+
# Create a variation of a marketing email for an A/B test. The new variation will be created as a draft. If an active variation already exists, a new one won't be created.
|
236
|
+
# @param ab_test_create_request_v_next [AbTestCreateRequestVNext]
|
237
|
+
# @param [Hash] opts the optional parameters
|
238
|
+
# @return [Array<(PublicEmail, Integer, Hash)>] PublicEmail data, response status code and response headers
|
239
|
+
def create_ab_test_variation_with_http_info(ab_test_create_request_v_next, opts = {})
|
240
|
+
if @api_client.config.debugging
|
241
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.create_ab_test_variation ...'
|
242
|
+
end
|
243
|
+
# verify the required parameter 'ab_test_create_request_v_next' is set
|
244
|
+
if @api_client.config.client_side_validation && ab_test_create_request_v_next.nil?
|
245
|
+
fail ArgumentError, "Missing the required parameter 'ab_test_create_request_v_next' when calling MarketingEmailsApi.create_ab_test_variation"
|
246
|
+
end
|
247
|
+
# resource path
|
248
|
+
local_var_path = '/marketing/v3/emails/ab-test/create-variation'
|
249
|
+
|
250
|
+
# query parameters
|
251
|
+
query_params = opts[:query_params] || {}
|
252
|
+
|
253
|
+
# header parameters
|
254
|
+
header_params = opts[:header_params] || {}
|
255
|
+
# HTTP header 'Accept' (if needed)
|
256
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
257
|
+
# HTTP header 'Content-Type'
|
258
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
259
|
+
if !content_type.nil?
|
260
|
+
header_params['Content-Type'] = content_type
|
261
|
+
end
|
262
|
+
|
263
|
+
# form parameters
|
264
|
+
form_params = opts[:form_params] || {}
|
265
|
+
|
266
|
+
# http body (model)
|
267
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(ab_test_create_request_v_next)
|
268
|
+
|
269
|
+
# return_type
|
270
|
+
return_type = opts[:debug_return_type] || 'PublicEmail'
|
271
|
+
|
272
|
+
# auth_names
|
273
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
274
|
+
|
275
|
+
new_options = opts.merge(
|
276
|
+
:operation => :"MarketingEmailsApi.create_ab_test_variation",
|
277
|
+
:header_params => header_params,
|
278
|
+
:query_params => query_params,
|
279
|
+
:form_params => form_params,
|
280
|
+
:body => post_body,
|
281
|
+
:auth_names => auth_names,
|
282
|
+
:return_type => return_type
|
283
|
+
)
|
284
|
+
|
285
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#create_ab_test_variation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
288
|
+
end
|
289
|
+
return data, status_code, headers
|
290
|
+
end
|
291
|
+
|
292
|
+
# Get the variation of a an A/B marketing email
|
293
|
+
# This endpoint lets you obtain the variation of an A/B marketing email. If the email is variation A (master) it will return variation B (variant) and vice versa.
|
294
|
+
# @param email_id [String] The ID of an A/B marketing email.
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @return [PublicEmail]
|
297
|
+
def get_ab_test_variation(email_id, opts = {})
|
298
|
+
data, _status_code, _headers = get_ab_test_variation_with_http_info(email_id, opts)
|
299
|
+
data
|
300
|
+
end
|
301
|
+
|
302
|
+
# Get the variation of a an A/B marketing email
|
303
|
+
# This endpoint lets you obtain the variation of an A/B marketing email. If the email is variation A (master) it will return variation B (variant) and vice versa.
|
304
|
+
# @param email_id [String] The ID of an A/B marketing email.
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @return [Array<(PublicEmail, Integer, Hash)>] PublicEmail data, response status code and response headers
|
307
|
+
def get_ab_test_variation_with_http_info(email_id, opts = {})
|
308
|
+
if @api_client.config.debugging
|
309
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.get_ab_test_variation ...'
|
310
|
+
end
|
311
|
+
# verify the required parameter 'email_id' is set
|
312
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
313
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.get_ab_test_variation"
|
314
|
+
end
|
315
|
+
# resource path
|
316
|
+
local_var_path = '/marketing/v3/emails/{emailId}/ab-test/get-variation'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
317
|
+
|
318
|
+
# query parameters
|
319
|
+
query_params = opts[:query_params] || {}
|
320
|
+
|
321
|
+
# header parameters
|
322
|
+
header_params = opts[:header_params] || {}
|
323
|
+
# HTTP header 'Accept' (if needed)
|
324
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
325
|
+
|
326
|
+
# form parameters
|
327
|
+
form_params = opts[:form_params] || {}
|
328
|
+
|
329
|
+
# http body (model)
|
330
|
+
post_body = opts[:debug_body]
|
331
|
+
|
332
|
+
# return_type
|
333
|
+
return_type = opts[:debug_return_type] || 'PublicEmail'
|
334
|
+
|
335
|
+
# auth_names
|
336
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
337
|
+
|
338
|
+
new_options = opts.merge(
|
339
|
+
:operation => :"MarketingEmailsApi.get_ab_test_variation",
|
340
|
+
:header_params => header_params,
|
341
|
+
:query_params => query_params,
|
342
|
+
:form_params => form_params,
|
343
|
+
:body => post_body,
|
344
|
+
:auth_names => auth_names,
|
345
|
+
:return_type => return_type
|
346
|
+
)
|
347
|
+
|
348
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
349
|
+
if @api_client.config.debugging
|
350
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#get_ab_test_variation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
351
|
+
end
|
352
|
+
return data, status_code, headers
|
353
|
+
end
|
354
|
+
|
355
|
+
# Get the details of a specified marketing email.
|
356
|
+
# Get the details for a marketing email.
|
357
|
+
# @param email_id [String] The marketing email ID.
|
358
|
+
# @param [Hash] opts the optional parameters
|
359
|
+
# @option opts [Boolean] :include_stats Include statistics with email
|
360
|
+
# @option opts [Boolean] :marketing_campaign_names
|
361
|
+
# @option opts [Boolean] :workflow_names
|
362
|
+
# @option opts [Array<String>] :included_properties
|
363
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
364
|
+
# @return [PublicEmail]
|
365
|
+
def get_by_id(email_id, opts = {})
|
366
|
+
data, _status_code, _headers = get_by_id_with_http_info(email_id, opts)
|
367
|
+
data
|
368
|
+
end
|
369
|
+
|
370
|
+
# Get the details of a specified marketing email.
|
371
|
+
# Get the details for a marketing email.
|
372
|
+
# @param email_id [String] The marketing email ID.
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @option opts [Boolean] :include_stats Include statistics with email
|
375
|
+
# @option opts [Boolean] :marketing_campaign_names
|
376
|
+
# @option opts [Boolean] :workflow_names
|
377
|
+
# @option opts [Array<String>] :included_properties
|
378
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
379
|
+
# @return [Array<(PublicEmail, Integer, Hash)>] PublicEmail data, response status code and response headers
|
380
|
+
def get_by_id_with_http_info(email_id, opts = {})
|
381
|
+
if @api_client.config.debugging
|
382
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.get_by_id ...'
|
383
|
+
end
|
384
|
+
# verify the required parameter 'email_id' is set
|
385
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
386
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.get_by_id"
|
387
|
+
end
|
388
|
+
# resource path
|
389
|
+
local_var_path = '/marketing/v3/emails/{emailId}'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
390
|
+
|
391
|
+
# query parameters
|
392
|
+
query_params = opts[:query_params] || {}
|
393
|
+
query_params[:'includeStats'] = opts[:'include_stats'] if !opts[:'include_stats'].nil?
|
394
|
+
query_params[:'marketingCampaignNames'] = opts[:'marketing_campaign_names'] if !opts[:'marketing_campaign_names'].nil?
|
395
|
+
query_params[:'workflowNames'] = opts[:'workflow_names'] if !opts[:'workflow_names'].nil?
|
396
|
+
query_params[:'includedProperties'] = @api_client.build_collection_param(opts[:'included_properties'], :multi) if !opts[:'included_properties'].nil?
|
397
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
398
|
+
|
399
|
+
# header parameters
|
400
|
+
header_params = opts[:header_params] || {}
|
401
|
+
# HTTP header 'Accept' (if needed)
|
402
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
403
|
+
|
404
|
+
# form parameters
|
405
|
+
form_params = opts[:form_params] || {}
|
406
|
+
|
407
|
+
# http body (model)
|
408
|
+
post_body = opts[:debug_body]
|
409
|
+
|
410
|
+
# return_type
|
411
|
+
return_type = opts[:debug_return_type] || 'PublicEmail'
|
412
|
+
|
413
|
+
# auth_names
|
414
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
415
|
+
|
416
|
+
new_options = opts.merge(
|
417
|
+
:operation => :"MarketingEmailsApi.get_by_id",
|
418
|
+
:header_params => header_params,
|
419
|
+
:query_params => query_params,
|
420
|
+
:form_params => form_params,
|
421
|
+
:body => post_body,
|
422
|
+
:auth_names => auth_names,
|
423
|
+
:return_type => return_type
|
424
|
+
)
|
425
|
+
|
426
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
427
|
+
if @api_client.config.debugging
|
428
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
429
|
+
end
|
430
|
+
return data, status_code, headers
|
431
|
+
end
|
432
|
+
|
433
|
+
# Get draft version of a marketing email
|
434
|
+
# Get the draft version of an email (if it exists). If no draft version exists, the published email is returned.
|
435
|
+
# @param email_id [String] The marketing email ID.
|
436
|
+
# @param [Hash] opts the optional parameters
|
437
|
+
# @return [PublicEmail]
|
438
|
+
def get_draft(email_id, opts = {})
|
439
|
+
data, _status_code, _headers = get_draft_with_http_info(email_id, opts)
|
440
|
+
data
|
441
|
+
end
|
442
|
+
|
443
|
+
# Get draft version of a marketing email
|
444
|
+
# Get the draft version of an email (if it exists). If no draft version exists, the published email is returned.
|
445
|
+
# @param email_id [String] The marketing email ID.
|
446
|
+
# @param [Hash] opts the optional parameters
|
447
|
+
# @return [Array<(PublicEmail, Integer, Hash)>] PublicEmail data, response status code and response headers
|
448
|
+
def get_draft_with_http_info(email_id, opts = {})
|
449
|
+
if @api_client.config.debugging
|
450
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.get_draft ...'
|
451
|
+
end
|
452
|
+
# verify the required parameter 'email_id' is set
|
453
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
454
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.get_draft"
|
455
|
+
end
|
456
|
+
# resource path
|
457
|
+
local_var_path = '/marketing/v3/emails/{emailId}/draft'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
458
|
+
|
459
|
+
# query parameters
|
460
|
+
query_params = opts[:query_params] || {}
|
461
|
+
|
462
|
+
# header parameters
|
463
|
+
header_params = opts[:header_params] || {}
|
464
|
+
# HTTP header 'Accept' (if needed)
|
465
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
466
|
+
|
467
|
+
# form parameters
|
468
|
+
form_params = opts[:form_params] || {}
|
469
|
+
|
470
|
+
# http body (model)
|
471
|
+
post_body = opts[:debug_body]
|
472
|
+
|
473
|
+
# return_type
|
474
|
+
return_type = opts[:debug_return_type] || 'PublicEmail'
|
475
|
+
|
476
|
+
# auth_names
|
477
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
478
|
+
|
479
|
+
new_options = opts.merge(
|
480
|
+
:operation => :"MarketingEmailsApi.get_draft",
|
481
|
+
:header_params => header_params,
|
482
|
+
:query_params => query_params,
|
483
|
+
:form_params => form_params,
|
484
|
+
:body => post_body,
|
485
|
+
:auth_names => auth_names,
|
486
|
+
:return_type => return_type
|
487
|
+
)
|
488
|
+
|
489
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
490
|
+
if @api_client.config.debugging
|
491
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#get_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
492
|
+
end
|
493
|
+
return data, status_code, headers
|
494
|
+
end
|
495
|
+
|
496
|
+
# Get all marketing emails for a HubSpot account.
|
497
|
+
# The results can be filtered, allowing you to find a specific set of emails. See the table below for a full list of filtering options.
|
498
|
+
# @param [Hash] opts the optional parameters
|
499
|
+
# @option opts [Time] :created_at Only return emails created at exactly the specified time.
|
500
|
+
# @option opts [Time] :created_after Only return emails created after the specified time.
|
501
|
+
# @option opts [Time] :created_before Only return emails created before the specified time.
|
502
|
+
# @option opts [Time] :updated_at Only return emails last updated at exactly the specified time.
|
503
|
+
# @option opts [Time] :updated_after Only return emails last updated after the specified time.
|
504
|
+
# @option opts [Time] :updated_before Only return emails last updated before the specified time.
|
505
|
+
# @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
|
506
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
507
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 100.
|
508
|
+
# @option opts [Boolean] :include_stats Include statistics with emails.
|
509
|
+
# @option opts [Boolean] :marketing_campaign_names
|
510
|
+
# @option opts [Boolean] :workflow_names
|
511
|
+
# @option opts [String] :type Email types to be filtered by. Multiple types can be included. All emails will be returned if not present.
|
512
|
+
# @option opts [Boolean] :is_published Filter by published/draft emails. All emails will be returned if not present.
|
513
|
+
# @option opts [Array<String>] :included_properties
|
514
|
+
# @option opts [Boolean] :archived Specifies whether to return archived emails. Defaults to `false`.
|
515
|
+
# @return [CollectionResponseWithTotalPublicEmailForwardPaging]
|
516
|
+
def get_page(opts = {})
|
517
|
+
data, _status_code, _headers = get_page_with_http_info(opts)
|
518
|
+
data
|
519
|
+
end
|
520
|
+
|
521
|
+
# Get all marketing emails for a HubSpot account.
|
522
|
+
# The results can be filtered, allowing you to find a specific set of emails. See the table below for a full list of filtering options.
|
523
|
+
# @param [Hash] opts the optional parameters
|
524
|
+
# @option opts [Time] :created_at Only return emails created at exactly the specified time.
|
525
|
+
# @option opts [Time] :created_after Only return emails created after the specified time.
|
526
|
+
# @option opts [Time] :created_before Only return emails created before the specified time.
|
527
|
+
# @option opts [Time] :updated_at Only return emails last updated at exactly the specified time.
|
528
|
+
# @option opts [Time] :updated_after Only return emails last updated after the specified time.
|
529
|
+
# @option opts [Time] :updated_before Only return emails last updated before the specified time.
|
530
|
+
# @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
|
531
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
532
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 100.
|
533
|
+
# @option opts [Boolean] :include_stats Include statistics with emails.
|
534
|
+
# @option opts [Boolean] :marketing_campaign_names
|
535
|
+
# @option opts [Boolean] :workflow_names
|
536
|
+
# @option opts [String] :type Email types to be filtered by. Multiple types can be included. All emails will be returned if not present.
|
537
|
+
# @option opts [Boolean] :is_published Filter by published/draft emails. All emails will be returned if not present.
|
538
|
+
# @option opts [Array<String>] :included_properties
|
539
|
+
# @option opts [Boolean] :archived Specifies whether to return archived emails. Defaults to `false`.
|
540
|
+
# @return [Array<(CollectionResponseWithTotalPublicEmailForwardPaging, Integer, Hash)>] CollectionResponseWithTotalPublicEmailForwardPaging data, response status code and response headers
|
541
|
+
def get_page_with_http_info(opts = {})
|
542
|
+
if @api_client.config.debugging
|
543
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.get_page ...'
|
544
|
+
end
|
545
|
+
allowable_values = ["AB_EMAIL", "BATCH_EMAIL", "LOCALTIME_EMAIL", "AUTOMATED_AB_EMAIL", "BLOG_EMAIL", "BLOG_EMAIL_CHILD", "RSS_EMAIL", "RSS_EMAIL_CHILD", "RESUBSCRIBE_EMAIL", "OPTIN_EMAIL", "OPTIN_FOLLOWUP_EMAIL", "AUTOMATED_EMAIL", "FEEDBACK_CES_EMAIL", "FEEDBACK_CUSTOM_EMAIL", "FEEDBACK_CUSTOM_SURVEY_EMAIL", "FEEDBACK_NPS_EMAIL", "FOLLOWUP_EMAIL", "LEADFLOW_EMAIL", "SINGLE_SEND_API", "MARKETING_SINGLE_SEND_API", "SMTP_TOKEN", "TICKET_EMAIL", "MEMBERSHIP_REGISTRATION_EMAIL", "MEMBERSHIP_PASSWORD_SAVED_EMAIL", "MEMBERSHIP_PASSWORD_RESET_EMAIL", "MEMBERSHIP_EMAIL_VERIFICATION_EMAIL", "MEMBERSHIP_PASSWORDLESS_AUTH_EMAIL", "MEMBERSHIP_REGISTRATION_FOLLOW_UP_EMAIL", "MEMBERSHIP_OTP_LOGIN_EMAIL", "MEMBERSHIP_FOLLOW_UP_EMAIL", "MEMBERSHIP_VERIFICATION_EMAIL"]
|
546
|
+
if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type'])
|
547
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
548
|
+
end
|
549
|
+
# resource path
|
550
|
+
local_var_path = '/marketing/v3/emails/'
|
551
|
+
|
552
|
+
# query parameters
|
553
|
+
query_params = opts[:query_params] || {}
|
554
|
+
query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
|
555
|
+
query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
556
|
+
query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
557
|
+
query_params[:'updatedAt'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
|
558
|
+
query_params[:'updatedAfter'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
|
559
|
+
query_params[:'updatedBefore'] = opts[:'updated_before'] if !opts[:'updated_before'].nil?
|
560
|
+
query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
|
561
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
562
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
563
|
+
query_params[:'includeStats'] = opts[:'include_stats'] if !opts[:'include_stats'].nil?
|
564
|
+
query_params[:'marketingCampaignNames'] = opts[:'marketing_campaign_names'] if !opts[:'marketing_campaign_names'].nil?
|
565
|
+
query_params[:'workflowNames'] = opts[:'workflow_names'] if !opts[:'workflow_names'].nil?
|
566
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
567
|
+
query_params[:'isPublished'] = opts[:'is_published'] if !opts[:'is_published'].nil?
|
568
|
+
query_params[:'includedProperties'] = @api_client.build_collection_param(opts[:'included_properties'], :multi) if !opts[:'included_properties'].nil?
|
569
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
570
|
+
|
571
|
+
# header parameters
|
572
|
+
header_params = opts[:header_params] || {}
|
573
|
+
# HTTP header 'Accept' (if needed)
|
574
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
575
|
+
|
576
|
+
# form parameters
|
577
|
+
form_params = opts[:form_params] || {}
|
578
|
+
|
579
|
+
# http body (model)
|
580
|
+
post_body = opts[:debug_body]
|
581
|
+
|
582
|
+
# return_type
|
583
|
+
return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalPublicEmailForwardPaging'
|
584
|
+
|
585
|
+
# auth_names
|
586
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
587
|
+
|
588
|
+
new_options = opts.merge(
|
589
|
+
:operation => :"MarketingEmailsApi.get_page",
|
590
|
+
:header_params => header_params,
|
591
|
+
:query_params => query_params,
|
592
|
+
:form_params => form_params,
|
593
|
+
:body => post_body,
|
594
|
+
:auth_names => auth_names,
|
595
|
+
:return_type => return_type
|
596
|
+
)
|
597
|
+
|
598
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
599
|
+
if @api_client.config.debugging
|
600
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
601
|
+
end
|
602
|
+
return data, status_code, headers
|
603
|
+
end
|
604
|
+
|
605
|
+
# Get a revision of a marketing email.
|
606
|
+
# Get a specific revision of a marketing email.
|
607
|
+
# @param email_id [String] The marketing email ID.
|
608
|
+
# @param revision_id [String] The ID of a revision.
|
609
|
+
# @param [Hash] opts the optional parameters
|
610
|
+
# @return [VersionPublicEmail]
|
611
|
+
def get_revision_by_id(email_id, revision_id, opts = {})
|
612
|
+
data, _status_code, _headers = get_revision_by_id_with_http_info(email_id, revision_id, opts)
|
613
|
+
data
|
614
|
+
end
|
615
|
+
|
616
|
+
# Get a revision of a marketing email.
|
617
|
+
# Get a specific revision of a marketing email.
|
618
|
+
# @param email_id [String] The marketing email ID.
|
619
|
+
# @param revision_id [String] The ID of a revision.
|
620
|
+
# @param [Hash] opts the optional parameters
|
621
|
+
# @return [Array<(VersionPublicEmail, Integer, Hash)>] VersionPublicEmail data, response status code and response headers
|
622
|
+
def get_revision_by_id_with_http_info(email_id, revision_id, opts = {})
|
623
|
+
if @api_client.config.debugging
|
624
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.get_revision_by_id ...'
|
625
|
+
end
|
626
|
+
# verify the required parameter 'email_id' is set
|
627
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
628
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.get_revision_by_id"
|
629
|
+
end
|
630
|
+
# verify the required parameter 'revision_id' is set
|
631
|
+
if @api_client.config.client_side_validation && revision_id.nil?
|
632
|
+
fail ArgumentError, "Missing the required parameter 'revision_id' when calling MarketingEmailsApi.get_revision_by_id"
|
633
|
+
end
|
634
|
+
# resource path
|
635
|
+
local_var_path = '/marketing/v3/emails/{emailId}/revisions/{revisionId}'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
|
636
|
+
|
637
|
+
# query parameters
|
638
|
+
query_params = opts[:query_params] || {}
|
639
|
+
|
640
|
+
# header parameters
|
641
|
+
header_params = opts[:header_params] || {}
|
642
|
+
# HTTP header 'Accept' (if needed)
|
643
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
644
|
+
|
645
|
+
# form parameters
|
646
|
+
form_params = opts[:form_params] || {}
|
647
|
+
|
648
|
+
# http body (model)
|
649
|
+
post_body = opts[:debug_body]
|
650
|
+
|
651
|
+
# return_type
|
652
|
+
return_type = opts[:debug_return_type] || 'VersionPublicEmail'
|
653
|
+
|
654
|
+
# auth_names
|
655
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
656
|
+
|
657
|
+
new_options = opts.merge(
|
658
|
+
:operation => :"MarketingEmailsApi.get_revision_by_id",
|
659
|
+
:header_params => header_params,
|
660
|
+
:query_params => query_params,
|
661
|
+
:form_params => form_params,
|
662
|
+
:body => post_body,
|
663
|
+
:auth_names => auth_names,
|
664
|
+
:return_type => return_type
|
665
|
+
)
|
666
|
+
|
667
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
668
|
+
if @api_client.config.debugging
|
669
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#get_revision_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
670
|
+
end
|
671
|
+
return data, status_code, headers
|
672
|
+
end
|
673
|
+
|
674
|
+
# Get revisions of a marketing email
|
675
|
+
# Get a list of all versions of a marketing email, with each entry including the full state of that particular version. The current revision has the ID -1.
|
676
|
+
# @param email_id [String] The marketing email ID.
|
677
|
+
# @param [Hash] opts the optional parameters
|
678
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
679
|
+
# @option opts [String] :before The cursor token value to get the previous set of results. You can get this from the `paging.prev.before` JSON property of a paged response containing more results.
|
680
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 100.
|
681
|
+
# @return [CollectionResponseWithTotalVersionPublicEmail]
|
682
|
+
def get_revisions(email_id, opts = {})
|
683
|
+
data, _status_code, _headers = get_revisions_with_http_info(email_id, opts)
|
684
|
+
data
|
685
|
+
end
|
686
|
+
|
687
|
+
# Get revisions of a marketing email
|
688
|
+
# Get a list of all versions of a marketing email, with each entry including the full state of that particular version. The current revision has the ID -1.
|
689
|
+
# @param email_id [String] The marketing email ID.
|
690
|
+
# @param [Hash] opts the optional parameters
|
691
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
692
|
+
# @option opts [String] :before The cursor token value to get the previous set of results. You can get this from the `paging.prev.before` JSON property of a paged response containing more results.
|
693
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 100.
|
694
|
+
# @return [Array<(CollectionResponseWithTotalVersionPublicEmail, Integer, Hash)>] CollectionResponseWithTotalVersionPublicEmail data, response status code and response headers
|
695
|
+
def get_revisions_with_http_info(email_id, opts = {})
|
696
|
+
if @api_client.config.debugging
|
697
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.get_revisions ...'
|
698
|
+
end
|
699
|
+
# verify the required parameter 'email_id' is set
|
700
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
701
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.get_revisions"
|
702
|
+
end
|
703
|
+
# resource path
|
704
|
+
local_var_path = '/marketing/v3/emails/{emailId}/revisions'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
705
|
+
|
706
|
+
# query parameters
|
707
|
+
query_params = opts[:query_params] || {}
|
708
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
709
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
710
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
711
|
+
|
712
|
+
# header parameters
|
713
|
+
header_params = opts[:header_params] || {}
|
714
|
+
# HTTP header 'Accept' (if needed)
|
715
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
716
|
+
|
717
|
+
# form parameters
|
718
|
+
form_params = opts[:form_params] || {}
|
719
|
+
|
720
|
+
# http body (model)
|
721
|
+
post_body = opts[:debug_body]
|
722
|
+
|
723
|
+
# return_type
|
724
|
+
return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalVersionPublicEmail'
|
725
|
+
|
726
|
+
# auth_names
|
727
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
728
|
+
|
729
|
+
new_options = opts.merge(
|
730
|
+
:operation => :"MarketingEmailsApi.get_revisions",
|
731
|
+
:header_params => header_params,
|
732
|
+
:query_params => query_params,
|
733
|
+
:form_params => form_params,
|
734
|
+
:body => post_body,
|
735
|
+
:auth_names => auth_names,
|
736
|
+
:return_type => return_type
|
737
|
+
)
|
738
|
+
|
739
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
740
|
+
if @api_client.config.debugging
|
741
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#get_revisions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
742
|
+
end
|
743
|
+
return data, status_code, headers
|
744
|
+
end
|
745
|
+
|
746
|
+
# Publish or send a marketing email.
|
747
|
+
# If you have a Marketing Hub Enterprise account or the transactional email add-on, you can use this endpoint to publish an automated email or send/schedule a regular email.
|
748
|
+
# @param email_id [String]
|
749
|
+
# @param [Hash] opts the optional parameters
|
750
|
+
# @return [nil]
|
751
|
+
def publish_or_send(email_id, opts = {})
|
752
|
+
publish_or_send_with_http_info(email_id, opts)
|
753
|
+
nil
|
754
|
+
end
|
755
|
+
|
756
|
+
# Publish or send a marketing email.
|
757
|
+
# If you have a Marketing Hub Enterprise account or the transactional email add-on, you can use this endpoint to publish an automated email or send/schedule a regular email.
|
758
|
+
# @param email_id [String]
|
759
|
+
# @param [Hash] opts the optional parameters
|
760
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
761
|
+
def publish_or_send_with_http_info(email_id, opts = {})
|
762
|
+
if @api_client.config.debugging
|
763
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.publish_or_send ...'
|
764
|
+
end
|
765
|
+
# verify the required parameter 'email_id' is set
|
766
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
767
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.publish_or_send"
|
768
|
+
end
|
769
|
+
# resource path
|
770
|
+
local_var_path = '/marketing/v3/emails/{emailId}/publish'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
771
|
+
|
772
|
+
# query parameters
|
773
|
+
query_params = opts[:query_params] || {}
|
774
|
+
|
775
|
+
# header parameters
|
776
|
+
header_params = opts[:header_params] || {}
|
777
|
+
# HTTP header 'Accept' (if needed)
|
778
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
779
|
+
|
780
|
+
# form parameters
|
781
|
+
form_params = opts[:form_params] || {}
|
782
|
+
|
783
|
+
# http body (model)
|
784
|
+
post_body = opts[:debug_body]
|
785
|
+
|
786
|
+
# return_type
|
787
|
+
return_type = opts[:debug_return_type]
|
788
|
+
|
789
|
+
# auth_names
|
790
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
791
|
+
|
792
|
+
new_options = opts.merge(
|
793
|
+
:operation => :"MarketingEmailsApi.publish_or_send",
|
794
|
+
:header_params => header_params,
|
795
|
+
:query_params => query_params,
|
796
|
+
:form_params => form_params,
|
797
|
+
:body => post_body,
|
798
|
+
:auth_names => auth_names,
|
799
|
+
:return_type => return_type
|
800
|
+
)
|
801
|
+
|
802
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
803
|
+
if @api_client.config.debugging
|
804
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#publish_or_send\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
805
|
+
end
|
806
|
+
return data, status_code, headers
|
807
|
+
end
|
808
|
+
|
809
|
+
# Reset Draft
|
810
|
+
# Resets the draft back to a copy of the live object.
|
811
|
+
# @param email_id [String] The marketing email ID.
|
812
|
+
# @param [Hash] opts the optional parameters
|
813
|
+
# @return [nil]
|
814
|
+
def reset_draft(email_id, opts = {})
|
815
|
+
reset_draft_with_http_info(email_id, opts)
|
816
|
+
nil
|
817
|
+
end
|
818
|
+
|
819
|
+
# Reset Draft
|
820
|
+
# Resets the draft back to a copy of the live object.
|
821
|
+
# @param email_id [String] The marketing email ID.
|
822
|
+
# @param [Hash] opts the optional parameters
|
823
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
824
|
+
def reset_draft_with_http_info(email_id, opts = {})
|
825
|
+
if @api_client.config.debugging
|
826
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.reset_draft ...'
|
827
|
+
end
|
828
|
+
# verify the required parameter 'email_id' is set
|
829
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
830
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.reset_draft"
|
831
|
+
end
|
832
|
+
# resource path
|
833
|
+
local_var_path = '/marketing/v3/emails/{emailId}/draft/reset'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
834
|
+
|
835
|
+
# query parameters
|
836
|
+
query_params = opts[:query_params] || {}
|
837
|
+
|
838
|
+
# header parameters
|
839
|
+
header_params = opts[:header_params] || {}
|
840
|
+
# HTTP header 'Accept' (if needed)
|
841
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
842
|
+
|
843
|
+
# form parameters
|
844
|
+
form_params = opts[:form_params] || {}
|
845
|
+
|
846
|
+
# http body (model)
|
847
|
+
post_body = opts[:debug_body]
|
848
|
+
|
849
|
+
# return_type
|
850
|
+
return_type = opts[:debug_return_type]
|
851
|
+
|
852
|
+
# auth_names
|
853
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
854
|
+
|
855
|
+
new_options = opts.merge(
|
856
|
+
:operation => :"MarketingEmailsApi.reset_draft",
|
857
|
+
:header_params => header_params,
|
858
|
+
:query_params => query_params,
|
859
|
+
:form_params => form_params,
|
860
|
+
:body => post_body,
|
861
|
+
:auth_names => auth_names,
|
862
|
+
:return_type => return_type
|
863
|
+
)
|
864
|
+
|
865
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
866
|
+
if @api_client.config.debugging
|
867
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#reset_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
868
|
+
end
|
869
|
+
return data, status_code, headers
|
870
|
+
end
|
871
|
+
|
872
|
+
# Restore a revision of a marketing email to DRAFT state
|
873
|
+
# Restores a previous revision of a marketing email to DRAFT state. If there is currently something in the draft for that object, it is overwritten.
|
874
|
+
# @param email_id [String] The marketing email ID.
|
875
|
+
# @param revision_id [Integer] The ID of a revision.
|
876
|
+
# @param [Hash] opts the optional parameters
|
877
|
+
# @return [PublicEmail]
|
878
|
+
def restore_draft_revision(email_id, revision_id, opts = {})
|
879
|
+
data, _status_code, _headers = restore_draft_revision_with_http_info(email_id, revision_id, opts)
|
880
|
+
data
|
881
|
+
end
|
882
|
+
|
883
|
+
# Restore a revision of a marketing email to DRAFT state
|
884
|
+
# Restores a previous revision of a marketing email to DRAFT state. If there is currently something in the draft for that object, it is overwritten.
|
885
|
+
# @param email_id [String] The marketing email ID.
|
886
|
+
# @param revision_id [Integer] The ID of a revision.
|
887
|
+
# @param [Hash] opts the optional parameters
|
888
|
+
# @return [Array<(PublicEmail, Integer, Hash)>] PublicEmail data, response status code and response headers
|
889
|
+
def restore_draft_revision_with_http_info(email_id, revision_id, opts = {})
|
890
|
+
if @api_client.config.debugging
|
891
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.restore_draft_revision ...'
|
892
|
+
end
|
893
|
+
# verify the required parameter 'email_id' is set
|
894
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
895
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.restore_draft_revision"
|
896
|
+
end
|
897
|
+
# verify the required parameter 'revision_id' is set
|
898
|
+
if @api_client.config.client_side_validation && revision_id.nil?
|
899
|
+
fail ArgumentError, "Missing the required parameter 'revision_id' when calling MarketingEmailsApi.restore_draft_revision"
|
900
|
+
end
|
901
|
+
# resource path
|
902
|
+
local_var_path = '/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore-to-draft'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
|
903
|
+
|
904
|
+
# query parameters
|
905
|
+
query_params = opts[:query_params] || {}
|
906
|
+
|
907
|
+
# header parameters
|
908
|
+
header_params = opts[:header_params] || {}
|
909
|
+
# HTTP header 'Accept' (if needed)
|
910
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
911
|
+
|
912
|
+
# form parameters
|
913
|
+
form_params = opts[:form_params] || {}
|
914
|
+
|
915
|
+
# http body (model)
|
916
|
+
post_body = opts[:debug_body]
|
917
|
+
|
918
|
+
# return_type
|
919
|
+
return_type = opts[:debug_return_type] || 'PublicEmail'
|
920
|
+
|
921
|
+
# auth_names
|
922
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
923
|
+
|
924
|
+
new_options = opts.merge(
|
925
|
+
:operation => :"MarketingEmailsApi.restore_draft_revision",
|
926
|
+
:header_params => header_params,
|
927
|
+
:query_params => query_params,
|
928
|
+
:form_params => form_params,
|
929
|
+
:body => post_body,
|
930
|
+
:auth_names => auth_names,
|
931
|
+
:return_type => return_type
|
932
|
+
)
|
933
|
+
|
934
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
935
|
+
if @api_client.config.debugging
|
936
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#restore_draft_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
937
|
+
end
|
938
|
+
return data, status_code, headers
|
939
|
+
end
|
940
|
+
|
941
|
+
# Restore a revision of a marketing email
|
942
|
+
# Restores a previous revision of a marketing email. The current revision becomes old, and the restored revision is given a new version number.
|
943
|
+
# @param email_id [String] The marketing email ID.
|
944
|
+
# @param revision_id [String] The ID of a revision.
|
945
|
+
# @param [Hash] opts the optional parameters
|
946
|
+
# @return [nil]
|
947
|
+
def restore_revision(email_id, revision_id, opts = {})
|
948
|
+
restore_revision_with_http_info(email_id, revision_id, opts)
|
949
|
+
nil
|
950
|
+
end
|
951
|
+
|
952
|
+
# Restore a revision of a marketing email
|
953
|
+
# Restores a previous revision of a marketing email. The current revision becomes old, and the restored revision is given a new version number.
|
954
|
+
# @param email_id [String] The marketing email ID.
|
955
|
+
# @param revision_id [String] The ID of a revision.
|
956
|
+
# @param [Hash] opts the optional parameters
|
957
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
958
|
+
def restore_revision_with_http_info(email_id, revision_id, opts = {})
|
959
|
+
if @api_client.config.debugging
|
960
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.restore_revision ...'
|
961
|
+
end
|
962
|
+
# verify the required parameter 'email_id' is set
|
963
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
964
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.restore_revision"
|
965
|
+
end
|
966
|
+
# verify the required parameter 'revision_id' is set
|
967
|
+
if @api_client.config.client_side_validation && revision_id.nil?
|
968
|
+
fail ArgumentError, "Missing the required parameter 'revision_id' when calling MarketingEmailsApi.restore_revision"
|
969
|
+
end
|
970
|
+
# resource path
|
971
|
+
local_var_path = '/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
|
972
|
+
|
973
|
+
# query parameters
|
974
|
+
query_params = opts[:query_params] || {}
|
975
|
+
|
976
|
+
# header parameters
|
977
|
+
header_params = opts[:header_params] || {}
|
978
|
+
# HTTP header 'Accept' (if needed)
|
979
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
980
|
+
|
981
|
+
# form parameters
|
982
|
+
form_params = opts[:form_params] || {}
|
983
|
+
|
984
|
+
# http body (model)
|
985
|
+
post_body = opts[:debug_body]
|
986
|
+
|
987
|
+
# return_type
|
988
|
+
return_type = opts[:debug_return_type]
|
989
|
+
|
990
|
+
# auth_names
|
991
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
992
|
+
|
993
|
+
new_options = opts.merge(
|
994
|
+
:operation => :"MarketingEmailsApi.restore_revision",
|
995
|
+
:header_params => header_params,
|
996
|
+
:query_params => query_params,
|
997
|
+
:form_params => form_params,
|
998
|
+
:body => post_body,
|
999
|
+
:auth_names => auth_names,
|
1000
|
+
:return_type => return_type
|
1001
|
+
)
|
1002
|
+
|
1003
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1004
|
+
if @api_client.config.debugging
|
1005
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#restore_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1006
|
+
end
|
1007
|
+
return data, status_code, headers
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
# Unpublish or cancel a marketing email.
|
1011
|
+
# If you have a Marketing Hub Enterprise account or the transactional email add-on, you can use this endpoint to unpublish an automated email or cancel a regular email. If the email is already in the process of being sent, canceling might not be possible.
|
1012
|
+
# @param email_id [String]
|
1013
|
+
# @param [Hash] opts the optional parameters
|
1014
|
+
# @return [nil]
|
1015
|
+
def unpublish_or_cancel(email_id, opts = {})
|
1016
|
+
unpublish_or_cancel_with_http_info(email_id, opts)
|
1017
|
+
nil
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
# Unpublish or cancel a marketing email.
|
1021
|
+
# If you have a Marketing Hub Enterprise account or the transactional email add-on, you can use this endpoint to unpublish an automated email or cancel a regular email. If the email is already in the process of being sent, canceling might not be possible.
|
1022
|
+
# @param email_id [String]
|
1023
|
+
# @param [Hash] opts the optional parameters
|
1024
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1025
|
+
def unpublish_or_cancel_with_http_info(email_id, opts = {})
|
1026
|
+
if @api_client.config.debugging
|
1027
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.unpublish_or_cancel ...'
|
1028
|
+
end
|
1029
|
+
# verify the required parameter 'email_id' is set
|
1030
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
1031
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.unpublish_or_cancel"
|
1032
|
+
end
|
1033
|
+
# resource path
|
1034
|
+
local_var_path = '/marketing/v3/emails/{emailId}/unpublish'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
1035
|
+
|
1036
|
+
# query parameters
|
1037
|
+
query_params = opts[:query_params] || {}
|
1038
|
+
|
1039
|
+
# header parameters
|
1040
|
+
header_params = opts[:header_params] || {}
|
1041
|
+
# HTTP header 'Accept' (if needed)
|
1042
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1043
|
+
|
1044
|
+
# form parameters
|
1045
|
+
form_params = opts[:form_params] || {}
|
1046
|
+
|
1047
|
+
# http body (model)
|
1048
|
+
post_body = opts[:debug_body]
|
1049
|
+
|
1050
|
+
# return_type
|
1051
|
+
return_type = opts[:debug_return_type]
|
1052
|
+
|
1053
|
+
# auth_names
|
1054
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1055
|
+
|
1056
|
+
new_options = opts.merge(
|
1057
|
+
:operation => :"MarketingEmailsApi.unpublish_or_cancel",
|
1058
|
+
:header_params => header_params,
|
1059
|
+
:query_params => query_params,
|
1060
|
+
:form_params => form_params,
|
1061
|
+
:body => post_body,
|
1062
|
+
:auth_names => auth_names,
|
1063
|
+
:return_type => return_type
|
1064
|
+
)
|
1065
|
+
|
1066
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1067
|
+
if @api_client.config.debugging
|
1068
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#unpublish_or_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1069
|
+
end
|
1070
|
+
return data, status_code, headers
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
# Update a marketing email.
|
1074
|
+
# Change properties of a marketing email.
|
1075
|
+
# @param email_id [String] The ID of the marketing email that should get updated
|
1076
|
+
# @param email_update_request [EmailUpdateRequest] A marketing email object with properties that should overwrite the corresponding properties of the marketing email.
|
1077
|
+
# @param [Hash] opts the optional parameters
|
1078
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
1079
|
+
# @return [PublicEmail]
|
1080
|
+
def update(email_id, email_update_request, opts = {})
|
1081
|
+
data, _status_code, _headers = update_with_http_info(email_id, email_update_request, opts)
|
1082
|
+
data
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
# Update a marketing email.
|
1086
|
+
# Change properties of a marketing email.
|
1087
|
+
# @param email_id [String] The ID of the marketing email that should get updated
|
1088
|
+
# @param email_update_request [EmailUpdateRequest] A marketing email object with properties that should overwrite the corresponding properties of the marketing email.
|
1089
|
+
# @param [Hash] opts the optional parameters
|
1090
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
1091
|
+
# @return [Array<(PublicEmail, Integer, Hash)>] PublicEmail data, response status code and response headers
|
1092
|
+
def update_with_http_info(email_id, email_update_request, opts = {})
|
1093
|
+
if @api_client.config.debugging
|
1094
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.update ...'
|
1095
|
+
end
|
1096
|
+
# verify the required parameter 'email_id' is set
|
1097
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
1098
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.update"
|
1099
|
+
end
|
1100
|
+
# verify the required parameter 'email_update_request' is set
|
1101
|
+
if @api_client.config.client_side_validation && email_update_request.nil?
|
1102
|
+
fail ArgumentError, "Missing the required parameter 'email_update_request' when calling MarketingEmailsApi.update"
|
1103
|
+
end
|
1104
|
+
# resource path
|
1105
|
+
local_var_path = '/marketing/v3/emails/{emailId}'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
1106
|
+
|
1107
|
+
# query parameters
|
1108
|
+
query_params = opts[:query_params] || {}
|
1109
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
1110
|
+
|
1111
|
+
# header parameters
|
1112
|
+
header_params = opts[:header_params] || {}
|
1113
|
+
# HTTP header 'Accept' (if needed)
|
1114
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
1115
|
+
# HTTP header 'Content-Type'
|
1116
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1117
|
+
if !content_type.nil?
|
1118
|
+
header_params['Content-Type'] = content_type
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
# form parameters
|
1122
|
+
form_params = opts[:form_params] || {}
|
1123
|
+
|
1124
|
+
# http body (model)
|
1125
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(email_update_request)
|
1126
|
+
|
1127
|
+
# return_type
|
1128
|
+
return_type = opts[:debug_return_type] || 'PublicEmail'
|
1129
|
+
|
1130
|
+
# auth_names
|
1131
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1132
|
+
|
1133
|
+
new_options = opts.merge(
|
1134
|
+
:operation => :"MarketingEmailsApi.update",
|
1135
|
+
:header_params => header_params,
|
1136
|
+
:query_params => query_params,
|
1137
|
+
:form_params => form_params,
|
1138
|
+
:body => post_body,
|
1139
|
+
:auth_names => auth_names,
|
1140
|
+
:return_type => return_type
|
1141
|
+
)
|
1142
|
+
|
1143
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1144
|
+
if @api_client.config.debugging
|
1145
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1146
|
+
end
|
1147
|
+
return data, status_code, headers
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# Create or update draft version
|
1151
|
+
# Create or update the draft version of a marketing email. If no draft exists, the system creates a draft from the current “live” email then applies the request body to that draft. The draft version only lives on the buffer—the email is not cloned.
|
1152
|
+
# @param email_id [String] The marketing email ID.
|
1153
|
+
# @param email_update_request [EmailUpdateRequest] A marketing email object with properties that should overwrite the corresponding properties in the email's current draft.
|
1154
|
+
# @param [Hash] opts the optional parameters
|
1155
|
+
# @return [PublicEmail]
|
1156
|
+
def upsert_draft(email_id, email_update_request, opts = {})
|
1157
|
+
data, _status_code, _headers = upsert_draft_with_http_info(email_id, email_update_request, opts)
|
1158
|
+
data
|
1159
|
+
end
|
1160
|
+
|
1161
|
+
# Create or update draft version
|
1162
|
+
# Create or update the draft version of a marketing email. If no draft exists, the system creates a draft from the current “live” email then applies the request body to that draft. The draft version only lives on the buffer—the email is not cloned.
|
1163
|
+
# @param email_id [String] The marketing email ID.
|
1164
|
+
# @param email_update_request [EmailUpdateRequest] A marketing email object with properties that should overwrite the corresponding properties in the email's current draft.
|
1165
|
+
# @param [Hash] opts the optional parameters
|
1166
|
+
# @return [Array<(PublicEmail, Integer, Hash)>] PublicEmail data, response status code and response headers
|
1167
|
+
def upsert_draft_with_http_info(email_id, email_update_request, opts = {})
|
1168
|
+
if @api_client.config.debugging
|
1169
|
+
@api_client.config.logger.debug 'Calling API: MarketingEmailsApi.upsert_draft ...'
|
1170
|
+
end
|
1171
|
+
# verify the required parameter 'email_id' is set
|
1172
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
1173
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling MarketingEmailsApi.upsert_draft"
|
1174
|
+
end
|
1175
|
+
# verify the required parameter 'email_update_request' is set
|
1176
|
+
if @api_client.config.client_side_validation && email_update_request.nil?
|
1177
|
+
fail ArgumentError, "Missing the required parameter 'email_update_request' when calling MarketingEmailsApi.upsert_draft"
|
1178
|
+
end
|
1179
|
+
# resource path
|
1180
|
+
local_var_path = '/marketing/v3/emails/{emailId}/draft'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
1181
|
+
|
1182
|
+
# query parameters
|
1183
|
+
query_params = opts[:query_params] || {}
|
1184
|
+
|
1185
|
+
# header parameters
|
1186
|
+
header_params = opts[:header_params] || {}
|
1187
|
+
# HTTP header 'Accept' (if needed)
|
1188
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
1189
|
+
# HTTP header 'Content-Type'
|
1190
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1191
|
+
if !content_type.nil?
|
1192
|
+
header_params['Content-Type'] = content_type
|
1193
|
+
end
|
1194
|
+
|
1195
|
+
# form parameters
|
1196
|
+
form_params = opts[:form_params] || {}
|
1197
|
+
|
1198
|
+
# http body (model)
|
1199
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(email_update_request)
|
1200
|
+
|
1201
|
+
# return_type
|
1202
|
+
return_type = opts[:debug_return_type] || 'PublicEmail'
|
1203
|
+
|
1204
|
+
# auth_names
|
1205
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1206
|
+
|
1207
|
+
new_options = opts.merge(
|
1208
|
+
:operation => :"MarketingEmailsApi.upsert_draft",
|
1209
|
+
:header_params => header_params,
|
1210
|
+
:query_params => query_params,
|
1211
|
+
:form_params => form_params,
|
1212
|
+
:body => post_body,
|
1213
|
+
:auth_names => auth_names,
|
1214
|
+
:return_type => return_type
|
1215
|
+
)
|
1216
|
+
|
1217
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1218
|
+
if @api_client.config.debugging
|
1219
|
+
@api_client.config.logger.debug "API called: MarketingEmailsApi#upsert_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1220
|
+
end
|
1221
|
+
return data, status_code, headers
|
1222
|
+
end
|
1223
|
+
end
|
1224
|
+
end
|
1225
|
+
end
|
1226
|
+
end
|