hubspot-api-client 19.0.0 → 20.0.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -1
- data/Gemfile.lock +1 -1
- data/README.md +83 -8
- data/lib/hubspot/client.rb +7 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/basic_api.rb +1079 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/batch_api.rb +306 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/multi_language_api.rb +368 -0
- data/lib/hubspot/codegen/cms/blogs/blog_posts/models/blog_post.rb +18 -18
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +7 -7
- data/lib/hubspot/codegen/cms/hubdb/models/unified_collection_response_with_total_base_hub_db_table_row_v3.rb +1 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/collection_response_public_association_definition_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/models/public_association_definition.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/v4/api/report_api.rb +91 -0
- data/lib/hubspot/codegen/crm/associations/v4/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_archive.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_default_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_fetch_associations_batch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/date_time.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_archive.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_fetch_associations_batch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/report_creation_response.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/schema/api/definition_configurations_api.rb +396 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +69 -69
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_definition_configuration_create_request.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_definition_configuration_update_request.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_spec.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_configuration_update_result.rb +330 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_configuration_update_result_with_errors.rb +350 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_user_configuration.rb +330 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_definition_user_configuration_with_errors.rb +350 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/collection_response_public_association_definition_user_configuration_no_paging.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_create_request.rb +294 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_update_request.rb +294 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_configuration_update_result.rb +289 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_user_configuration.rb +298 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_spec.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/standard_error.rb +326 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/api/basic_api.rb +391 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/api/batch_api.rb +363 -0
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions/api/public_object_api.rb → commerce/invoices/api/search_api.rb} +24 -22
- data/lib/hubspot/codegen/crm/commerce/invoices/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/association_spec.rb +278 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_batch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_input_simple_public_object_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_read_input_simple_public_object_id.rb +273 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_object.rb +328 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/collection_response_associated_id.rb +241 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions/models/public_merge_input.rb → commerce/invoices/models/collection_response_with_total_simple_public_object_forward_paging.rb} +37 -26
- data/lib/hubspot/codegen/crm/commerce/invoices/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/filter.rb +308 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/filter_group.rb +232 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/forward_paging.rb +225 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/paging.rb +234 -0
- data/lib/hubspot/codegen/crm/{objects/feedback_submissions/models/batch_input_simple_public_object_input_for_create.rb → commerce/invoices/models/previous_page.rb} +26 -19
- data/lib/hubspot/codegen/crm/commerce/invoices/models/public_associations_for_object.rb +246 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/public_object_search_request.rb +276 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_batch_input.rb +264 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_batch_input_upsert.rb +264 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_input.rb +241 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_input_for_create.rb +257 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_object_with_associations.rb +314 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/simple_public_upsert_object.rb +317 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/standard_error.rb +324 -0
- data/lib/hubspot/codegen/crm/commerce/invoices/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/exports/api/public_exports_api.rb +157 -0
- data/lib/hubspot/codegen/crm/exports/api_client.rb +410 -0
- data/lib/hubspot/codegen/crm/exports/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/exports/configuration.rb +287 -0
- data/lib/hubspot/codegen/crm/exports/models/action_response_with_single_result_uri.rb +339 -0
- data/lib/hubspot/codegen/crm/exports/models/error.rb +305 -0
- data/lib/hubspot/codegen/crm/exports/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/crm/exports/models/filter.rb +305 -0
- data/lib/hubspot/codegen/crm/exports/models/public_crm_search_request.rb +260 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_list_request.rb +420 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_list_request_all_of.rb +413 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_request.rb +109 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_view_request.rb +415 -0
- data/lib/hubspot/codegen/crm/exports/models/public_export_view_request_all_of.rb +408 -0
- data/lib/hubspot/codegen/crm/exports/models/standard_error.rb +322 -0
- data/lib/hubspot/codegen/crm/exports/models/task_locator.rb +239 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api/channel_connection_settings_api.rb +302 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api/recording_settings_api.rb +12 -12
- data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +10 -10
- data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_patch_request.rb +236 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_request.rb +246 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/channel_connection_settings_response.rb +276 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/recording_settings_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +21 -1
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +21 -1
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +31 -1
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
- data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +6 -0
- data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +15 -1
- data/lib/hubspot/codegen/crm/imports/models/property_value.rb +514 -0
- data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +32 -5
- data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +17 -1
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/line_items/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/lists/models/public_form_submission_filter_coalescing_refine_by.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_indexed_time_point_index_reference.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_property_association_filter_branch_filters_inner.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_survey_monkey_value_filter_value_comparison.rb +1 -0
- data/lib/hubspot/codegen/crm/lists/models/public_time_point_operation_time_point.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +2 -1
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +12 -10
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +17 -9
- data/lib/hubspot/codegen/crm/objects/calls/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/calls/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/calls/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +13 -12
- data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +17 -9
- data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/deal_splits/api/batch_api.rb +160 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/configuration.rb +289 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_input_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_response_deal_to_deal_splits.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/batch_response_deal_to_deal_splits_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/deal_to_deal_splits.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions/models/public_gdpr_delete_input.rb → deal_splits/models/public_deal_split_input.rb} +27 -22
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/public_deal_splits_batch_create_request.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/public_deal_splits_create_request.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → deal_splits}/models/public_object_id.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/standard_error.rb +331 -0
- data/lib/hubspot/codegen/crm/objects/deal_splits/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/emails/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/emails/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/emails/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +0 -208
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -198
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_search_request.rb +0 -25
- data/lib/hubspot/codegen/crm/objects/goals/api/basic_api.rb +208 -0
- data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +266 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/association_spec.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/batch_input_simple_public_object_batch_input.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_input_simple_public_object_batch_input_upsert.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/batch_input_simple_public_object_id.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/{tasks → goals}/models/batch_input_simple_public_object_input_for_create.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_upsert_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_response_simple_public_upsert_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/public_associations_for_object.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/goals/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_batch_input.rb +15 -6
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input_upsert.rb +264 -0
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_input.rb +15 -6
- data/lib/hubspot/codegen/crm/objects/{feedback_submissions → goals}/models/simple_public_object_input_for_create.rb +15 -6
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_upsert_object.rb +317 -0
- data/lib/hubspot/codegen/crm/objects/leads/api/basic_api.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/leads/api/batch_api.rb +13 -11
- data/lib/hubspot/codegen/crm/objects/leads/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/leads/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/leads/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/meetings/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/meetings/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/association_spec.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +5 -5
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input_upsert.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_upsert_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_with_associations_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/public_associations_for_object.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input_upsert.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +2 -11
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +2 -16
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/simple_public_upsert_object.rb +11 -2
- data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/value_with_timestamp.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/notes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/notes/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/notes/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_input_simple_public_object_batch_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/taxes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/objects/taxes/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/taxes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/taxes/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/taxes/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +58 -1
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +7 -6
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/quotes/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/events/api/events_api.rb +22 -22
- data/lib/hubspot/codegen/events/send/api/{custom_event_data_api.rb → basic_api.rb} +13 -10
- data/lib/hubspot/codegen/events/send/api/batch_api.rb +94 -0
- data/lib/hubspot/codegen/events/send/api_client.rb +1 -1
- data/lib/hubspot/codegen/events/send/api_error.rb +1 -1
- data/lib/hubspot/codegen/events/send/configuration.rb +1 -1
- data/lib/hubspot/codegen/events/send/models/batched_behavioral_event_http_completion_request.rb +230 -0
- data/lib/hubspot/codegen/events/send/models/behavioral_event_http_completion_request.rb +8 -7
- data/lib/hubspot/codegen/events/send/models/error.rb +1 -1
- data/lib/hubspot/codegen/events/send/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/marketing/emails/api/marketing_emails_api.rb +1226 -0
- data/lib/hubspot/codegen/marketing/emails/api/statistics_api.rb +168 -0
- data/lib/hubspot/codegen/marketing/emails/api_client.rb +410 -0
- data/lib/hubspot/codegen/marketing/emails/api_error.rb +61 -0
- data/lib/hubspot/codegen/marketing/emails/configuration.rb +287 -0
- data/lib/hubspot/codegen/marketing/emails/models/ab_test_create_request_v_next.rb +244 -0
- data/lib/hubspot/codegen/marketing/emails/models/aggregate_email_statistics.rb +248 -0
- data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_email_statistic_interval_no_paging.rb +247 -0
- data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_public_email_forward_paging.rb +256 -0
- data/lib/hubspot/codegen/marketing/emails/models/collection_response_with_total_version_public_email.rb +256 -0
- data/lib/hubspot/codegen/marketing/emails/models/content_clone_request_v_next.rb +240 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_create_request.rb +468 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_statistic_interval.rb +232 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_statistics_data.rb +282 -0
- data/lib/hubspot/codegen/marketing/emails/models/email_update_request.rb +453 -0
- data/lib/hubspot/codegen/marketing/emails/models/error.rb +305 -0
- data/lib/hubspot/codegen/marketing/emails/models/error_detail.rb +271 -0
- data/lib/hubspot/codegen/marketing/emails/models/forward_paging.rb +223 -0
- data/lib/hubspot/codegen/marketing/emails/models/interval.rb +242 -0
- data/lib/hubspot/codegen/marketing/emails/models/next_page.rb +240 -0
- data/lib/hubspot/codegen/marketing/emails/models/paging.rb +238 -0
- data/lib/hubspot/codegen/marketing/emails/models/previous_page.rb +240 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_button_style_settings.rb +241 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_divider_style_settings.rb +241 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email.rb +654 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_content.rb +304 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_from_details.rb +245 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_recipients.rb +239 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_style_settings.rb +484 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_subscription_details.rb +245 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_testing_details.rb +355 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_email_to_details.rb +262 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_font_style.rb +268 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_rss_email_details.rb +307 -0
- data/lib/hubspot/codegen/marketing/emails/models/public_webversion_details.rb +311 -0
- data/lib/hubspot/codegen/marketing/emails/models/version_public_email.rb +272 -0
- data/lib/hubspot/codegen/marketing/emails/models/version_user.rb +260 -0
- data/lib/hubspot/codegen/marketing/events/api/add_event_attendees_api.rb +352 -0
- data/lib/hubspot/codegen/marketing/events/api/basic_api.rb +177 -264
- data/lib/hubspot/codegen/marketing/events/api/batch_api.rb +298 -0
- data/lib/hubspot/codegen/marketing/events/api/change_property_api.rb +177 -0
- data/lib/hubspot/codegen/marketing/events/api/identifiers_api.rb +153 -0
- data/lib/hubspot/codegen/marketing/events/api/list_associations_api.rb +2 -2
- data/lib/hubspot/codegen/marketing/events/api/{participant_state_api.rb → retrieve_participant_state_api.rb} +23 -23
- data/lib/hubspot/codegen/marketing/events/api/subscriber_state_changes_api.rb +8 -8
- data/lib/hubspot/codegen/marketing/events/models/app_info.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_public_object_id_delete_request.rb +230 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_public_update_request_full_v2.rb +230 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response_v2.rb +326 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_response_marketing_event_public_default_response_v2_with_errors.rb +346 -0
- data/lib/hubspot/codegen/marketing/events/models/collection_response_marketing_event_public_read_response_v2_forward_paging.rb +239 -0
- data/lib/hubspot/codegen/marketing/events/models/{collection_response_marketing_event_external_unique_identifier_no_paging.rb → collection_response_search_public_response_wrapper_no_paging.rb} +4 -4
- data/lib/hubspot/codegen/marketing/events/models/collection_response_with_total_marketing_event_identifiers_response_no_paging.rb +244 -0
- data/lib/hubspot/codegen/marketing/events/models/crm_property_wrapper.rb +242 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_default_response.rb +13 -4
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_email_subscriber.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_identifiers_response.rb +274 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response.rb +10 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_default_response_v2.rb +367 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_object_id_delete_request.rb +228 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response.rb +10 -1
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_read_response_v2.rb +421 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_update_request_full_v2.rb +316 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_public_update_request_v2.rb +302 -0
- data/lib/hubspot/codegen/marketing/events/models/marketing_event_subscriber.rb +1 -1
- data/lib/hubspot/codegen/marketing/events/models/property_value.rb +2 -2
- data/lib/hubspot/codegen/marketing/events/models/search_public_response_wrapper.rb +270 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition.rb +0 -1
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_create_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +18 -6
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +42 -18
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +13 -3
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +1 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +13 -3
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +2 -50
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/{blog_posts_api.rb → basic_api.rb} +1 -1
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/multi_language_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +3 -1
- data/lib/hubspot/discovery/crm/{objects/feedback_submissions/api/public_object_api.rb → associations/v4/api/report_api.rb} +3 -3
- data/lib/hubspot/discovery/crm/associations/v4/client.rb +1 -0
- data/lib/hubspot/discovery/crm/associations/v4/schema/api/definition_configurations_api.rb +17 -0
- data/lib/hubspot/discovery/crm/associations/v4/schema/client.rb +1 -0
- data/lib/hubspot/discovery/crm/client.rb +2 -0
- data/lib/hubspot/discovery/crm/commerce/client.rb +19 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/commerce/invoices/client.rb +23 -0
- data/lib/hubspot/discovery/crm/exports/api/public_exports_api.rb +13 -0
- data/lib/hubspot/discovery/crm/exports/client.rb +19 -0
- data/lib/hubspot/discovery/crm/extensions/calling/api/channel_connection_settings_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/calling/client.rb +1 -0
- data/lib/hubspot/discovery/crm/objects/client.rb +1 -3
- data/lib/hubspot/discovery/crm/objects/{feedback_submissions/api/gdpr_api.rb → deal_splits/api/batch_api.rb} +2 -2
- data/lib/hubspot/discovery/crm/objects/deal_splits/client.rb +21 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +0 -2
- data/lib/hubspot/discovery/events/send/api/{custom_event_data_api.rb → basic_api.rb} +1 -1
- data/lib/hubspot/discovery/events/send/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/events/send/client.rb +2 -1
- data/lib/hubspot/discovery/marketing/client.rb +1 -0
- data/lib/hubspot/discovery/marketing/emails/api/marketing_emails_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/emails/api/statistics_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/emails/client.rb +20 -0
- data/lib/hubspot/discovery/marketing/events/api/{attendance_subscriber_state_changes_api.rb → add_event_attendees_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/{participant_state_api.rb → batch_api.rb} +1 -1
- data/lib/hubspot/discovery/marketing/events/api/change_property_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/identifiers_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/api/retrieve_participant_state_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/client.rb +5 -2
- data/lib/hubspot/helpers/requests/http_auth.rb +33 -0
- data/lib/hubspot/helpers/requests/http_request_builder.rb +120 -0
- data/lib/hubspot/helpers/signature.rb +54 -26
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/client_spec.rb +1 -0
- data/spec/discovery/cms/blogs/blog-posts/{blog_posts_api_spec.rb → basic_api_spec.rb} +2 -6
- data/spec/discovery/cms/blogs/blog-posts/batch_api_spec.rb +11 -0
- data/spec/discovery/cms/blogs/blog-posts/multi_language_api_spec.rb +11 -0
- data/spec/discovery/crm/associations/v4/report_api_spec.rb +7 -0
- data/spec/discovery/crm/associations/v4/schema/definition_configurations_api_spec.rb +11 -0
- data/spec/discovery/crm/associations/v4/schema/definitions_api_spec.rb +2 -2
- data/spec/discovery/crm/commerce/client_spec.rb +7 -0
- data/spec/discovery/crm/commerce/invoices/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/commerce/invoices/batch_api_spec.rb +11 -0
- data/spec/discovery/crm/commerce/invoices/search_api_spec.rb +7 -0
- data/spec/discovery/crm/exports/public_exports_api_spec.rb +8 -0
- data/spec/discovery/crm/extensions/calling/channel_connection_settings_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/deal_splits/batch_api_spec.rb +8 -0
- data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +0 -3
- data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +0 -3
- data/spec/discovery/crm/objects/goals/basic_api_spec.rb +3 -0
- data/spec/discovery/crm/objects/goals/batch_api_spec.rb +4 -0
- data/spec/discovery/events/send/basic_api_spec.rb +7 -0
- data/spec/discovery/events/send/batch_api_spec.rb +7 -0
- data/spec/discovery/marketing/emails/marketing_emails_api_spec.rb +24 -0
- data/spec/discovery/marketing/emails/statistics_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/add_event_attendees_api_spec.rb +10 -0
- data/spec/discovery/marketing/events/basic_api_spec.rb +5 -6
- data/spec/discovery/marketing/events/batch_api_spec.rb +10 -0
- data/spec/discovery/marketing/events/change_property_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/identifiers_api_spec.rb +8 -0
- data/spec/discovery/marketing/events/{participant_state_api_spec.rb → retrieve_participant_state_api_spec.rb} +2 -2
- data/spec/helpers/requests/http_auth_spec.rb +58 -0
- data/spec/helpers/requests/http_request_spec.rb +71 -0
- data/spec/helpers/signature_spec.rb +15 -5
- metadata +276 -52
- data/lib/hubspot/codegen/cms/blogs/blog_posts/api/blog_posts_api.rb +0 -1694
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/gdpr_api.rb +0 -96
- data/lib/hubspot/codegen/marketing/events/api/attendance_subscriber_state_changes_api.rb +0 -192
- data/spec/discovery/crm/objects/feedback_submissions/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/objects/feedback_submissions/public_object_api_spec.rb +0 -7
- data/spec/discovery/events/send/custom_event_data_api_spec.rb +0 -7
- data/spec/discovery/marketing/events/attendance_subscriber_state_changes_api_spec.rb +0 -8
@@ -0,0 +1,391 @@
|
|
1
|
+
=begin
|
2
|
+
#Invoices
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Commerce
|
18
|
+
module Invoices
|
19
|
+
class BasicApi
|
20
|
+
include Hubspot::Helpers::GetAllHelper
|
21
|
+
|
22
|
+
attr_accessor :api_client
|
23
|
+
|
24
|
+
def initialize(api_client = ApiClient.default)
|
25
|
+
@api_client = api_client
|
26
|
+
end
|
27
|
+
# Archive
|
28
|
+
# Move an Object identified by `{invoiceId}` to the recycling bin.
|
29
|
+
# @param invoice_id [String]
|
30
|
+
# @param [Hash] opts the optional parameters
|
31
|
+
# @return [nil]
|
32
|
+
def archive(invoice_id, opts = {})
|
33
|
+
archive_with_http_info(invoice_id, opts)
|
34
|
+
nil
|
35
|
+
end
|
36
|
+
|
37
|
+
# Archive
|
38
|
+
# Move an Object identified by `{invoiceId}` to the recycling bin.
|
39
|
+
# @param invoice_id [String]
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
42
|
+
def archive_with_http_info(invoice_id, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.archive ...'
|
45
|
+
end
|
46
|
+
# verify the required parameter 'invoice_id' is set
|
47
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling BasicApi.archive"
|
49
|
+
end
|
50
|
+
# resource path
|
51
|
+
local_var_path = '/crm/v3/objects/invoices/{invoiceId}'.sub('{' + 'invoiceId' + '}', CGI.escape(invoice_id.to_s))
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = opts[:query_params] || {}
|
55
|
+
|
56
|
+
# header parameters
|
57
|
+
header_params = opts[:header_params] || {}
|
58
|
+
# HTTP header 'Accept' (if needed)
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
60
|
+
|
61
|
+
# form parameters
|
62
|
+
form_params = opts[:form_params] || {}
|
63
|
+
|
64
|
+
# http body (model)
|
65
|
+
post_body = opts[:debug_body]
|
66
|
+
|
67
|
+
# return_type
|
68
|
+
return_type = opts[:debug_return_type]
|
69
|
+
|
70
|
+
# auth_names
|
71
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
72
|
+
|
73
|
+
new_options = opts.merge(
|
74
|
+
:operation => :"BasicApi.archive",
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
81
|
+
)
|
82
|
+
|
83
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: BasicApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# Create
|
91
|
+
# Create a invoice with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard invoices is provided.
|
92
|
+
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [SimplePublicObject]
|
95
|
+
def create(simple_public_object_input_for_create, opts = {})
|
96
|
+
data, _status_code, _headers = create_with_http_info(simple_public_object_input_for_create, opts)
|
97
|
+
data
|
98
|
+
end
|
99
|
+
|
100
|
+
# Create
|
101
|
+
# Create a invoice with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard invoices is provided.
|
102
|
+
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
105
|
+
def create_with_http_info(simple_public_object_input_for_create, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.create ...'
|
108
|
+
end
|
109
|
+
# verify the required parameter 'simple_public_object_input_for_create' is set
|
110
|
+
if @api_client.config.client_side_validation && simple_public_object_input_for_create.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'simple_public_object_input_for_create' when calling BasicApi.create"
|
112
|
+
end
|
113
|
+
# resource path
|
114
|
+
local_var_path = '/crm/v3/objects/invoices'
|
115
|
+
|
116
|
+
# query parameters
|
117
|
+
query_params = opts[:query_params] || {}
|
118
|
+
|
119
|
+
# header parameters
|
120
|
+
header_params = opts[:header_params] || {}
|
121
|
+
# HTTP header 'Accept' (if needed)
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
123
|
+
# HTTP header 'Content-Type'
|
124
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
125
|
+
if !content_type.nil?
|
126
|
+
header_params['Content-Type'] = content_type
|
127
|
+
end
|
128
|
+
|
129
|
+
# form parameters
|
130
|
+
form_params = opts[:form_params] || {}
|
131
|
+
|
132
|
+
# http body (model)
|
133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_public_object_input_for_create)
|
134
|
+
|
135
|
+
# return_type
|
136
|
+
return_type = opts[:debug_return_type] || 'SimplePublicObject'
|
137
|
+
|
138
|
+
# auth_names
|
139
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
140
|
+
|
141
|
+
new_options = opts.merge(
|
142
|
+
:operation => :"BasicApi.create",
|
143
|
+
:header_params => header_params,
|
144
|
+
:query_params => query_params,
|
145
|
+
:form_params => form_params,
|
146
|
+
:body => post_body,
|
147
|
+
:auth_names => auth_names,
|
148
|
+
:return_type => return_type
|
149
|
+
)
|
150
|
+
|
151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: BasicApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
+
end
|
155
|
+
return data, status_code, headers
|
156
|
+
end
|
157
|
+
|
158
|
+
# Read
|
159
|
+
# Read an Object identified by `{invoiceId}`. `{invoiceId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param.
|
160
|
+
# @param invoice_id [String]
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
163
|
+
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
164
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
165
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
166
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object
|
167
|
+
# @return [SimplePublicObjectWithAssociations]
|
168
|
+
def get_by_id(invoice_id, opts = {})
|
169
|
+
data, _status_code, _headers = get_by_id_with_http_info(invoice_id, opts)
|
170
|
+
data
|
171
|
+
end
|
172
|
+
|
173
|
+
# Read
|
174
|
+
# Read an Object identified by `{invoiceId}`. `{invoiceId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param.
|
175
|
+
# @param invoice_id [String]
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
178
|
+
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
179
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
180
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
181
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object
|
182
|
+
# @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
|
183
|
+
def get_by_id_with_http_info(invoice_id, opts = {})
|
184
|
+
if @api_client.config.debugging
|
185
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
|
186
|
+
end
|
187
|
+
# verify the required parameter 'invoice_id' is set
|
188
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
189
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling BasicApi.get_by_id"
|
190
|
+
end
|
191
|
+
# resource path
|
192
|
+
local_var_path = '/crm/v3/objects/invoices/{invoiceId}'.sub('{' + 'invoiceId' + '}', CGI.escape(invoice_id.to_s))
|
193
|
+
|
194
|
+
# query parameters
|
195
|
+
query_params = opts[:query_params] || {}
|
196
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
197
|
+
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
198
|
+
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
199
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
200
|
+
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
201
|
+
|
202
|
+
# header parameters
|
203
|
+
header_params = opts[:header_params] || {}
|
204
|
+
# HTTP header 'Accept' (if needed)
|
205
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
206
|
+
|
207
|
+
# form parameters
|
208
|
+
form_params = opts[:form_params] || {}
|
209
|
+
|
210
|
+
# http body (model)
|
211
|
+
post_body = opts[:debug_body]
|
212
|
+
|
213
|
+
# return_type
|
214
|
+
return_type = opts[:debug_return_type] || 'SimplePublicObjectWithAssociations'
|
215
|
+
|
216
|
+
# auth_names
|
217
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
218
|
+
|
219
|
+
new_options = opts.merge(
|
220
|
+
:operation => :"BasicApi.get_by_id",
|
221
|
+
:header_params => header_params,
|
222
|
+
:query_params => query_params,
|
223
|
+
:form_params => form_params,
|
224
|
+
:body => post_body,
|
225
|
+
:auth_names => auth_names,
|
226
|
+
:return_type => return_type
|
227
|
+
)
|
228
|
+
|
229
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
230
|
+
if @api_client.config.debugging
|
231
|
+
@api_client.config.logger.debug "API called: BasicApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
232
|
+
end
|
233
|
+
return data, status_code, headers
|
234
|
+
end
|
235
|
+
|
236
|
+
# List
|
237
|
+
# Read a page of invoices. Control what is returned via the `properties` query param.
|
238
|
+
# @param [Hash] opts the optional parameters
|
239
|
+
# @option opts [Integer] :limit The maximum number of results to display per page. (default to 10)
|
240
|
+
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
241
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
242
|
+
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
|
243
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
244
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
245
|
+
# @return [CollectionResponseSimplePublicObjectWithAssociationsForwardPaging]
|
246
|
+
def get_page(opts = {})
|
247
|
+
data, _status_code, _headers = get_page_with_http_info(opts)
|
248
|
+
data
|
249
|
+
end
|
250
|
+
|
251
|
+
# List
|
252
|
+
# Read a page of invoices. Control what is returned via the `properties` query param.
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @option opts [Integer] :limit The maximum number of results to display per page. (default to 10)
|
255
|
+
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
256
|
+
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
257
|
+
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
|
258
|
+
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
259
|
+
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
260
|
+
# @return [Array<(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, Integer, Hash)>] CollectionResponseSimplePublicObjectWithAssociationsForwardPaging data, response status code and response headers
|
261
|
+
def get_page_with_http_info(opts = {})
|
262
|
+
if @api_client.config.debugging
|
263
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
|
264
|
+
end
|
265
|
+
# resource path
|
266
|
+
local_var_path = '/crm/v3/objects/invoices'
|
267
|
+
|
268
|
+
# query parameters
|
269
|
+
query_params = opts[:query_params] || {}
|
270
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
271
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
272
|
+
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
|
273
|
+
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
|
274
|
+
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
275
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
276
|
+
|
277
|
+
# header parameters
|
278
|
+
header_params = opts[:header_params] || {}
|
279
|
+
# HTTP header 'Accept' (if needed)
|
280
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
281
|
+
|
282
|
+
# form parameters
|
283
|
+
form_params = opts[:form_params] || {}
|
284
|
+
|
285
|
+
# http body (model)
|
286
|
+
post_body = opts[:debug_body]
|
287
|
+
|
288
|
+
# return_type
|
289
|
+
return_type = opts[:debug_return_type] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
|
290
|
+
|
291
|
+
# auth_names
|
292
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
293
|
+
|
294
|
+
new_options = opts.merge(
|
295
|
+
:operation => :"BasicApi.get_page",
|
296
|
+
:header_params => header_params,
|
297
|
+
:query_params => query_params,
|
298
|
+
:form_params => form_params,
|
299
|
+
:body => post_body,
|
300
|
+
:auth_names => auth_names,
|
301
|
+
:return_type => return_type
|
302
|
+
)
|
303
|
+
|
304
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
305
|
+
if @api_client.config.debugging
|
306
|
+
@api_client.config.logger.debug "API called: BasicApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
307
|
+
end
|
308
|
+
return data, status_code, headers
|
309
|
+
end
|
310
|
+
|
311
|
+
# Update
|
312
|
+
# Perform a partial update of an Object identified by `{invoiceId}`or optionally a unique property value as specified by the `idProperty` query param. `{invoiceId}` refers to the internal object ID by default, and the `idProperty` query param refers to a property whose values are unique for the object. Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string.
|
313
|
+
# @param invoice_id [String]
|
314
|
+
# @param simple_public_object_input [SimplePublicObjectInput]
|
315
|
+
# @param [Hash] opts the optional parameters
|
316
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object
|
317
|
+
# @return [SimplePublicObject]
|
318
|
+
def update(invoice_id, simple_public_object_input, opts = {})
|
319
|
+
data, _status_code, _headers = update_with_http_info(invoice_id, simple_public_object_input, opts)
|
320
|
+
data
|
321
|
+
end
|
322
|
+
|
323
|
+
# Update
|
324
|
+
# Perform a partial update of an Object identified by `{invoiceId}`or optionally a unique property value as specified by the `idProperty` query param. `{invoiceId}` refers to the internal object ID by default, and the `idProperty` query param refers to a property whose values are unique for the object. Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string.
|
325
|
+
# @param invoice_id [String]
|
326
|
+
# @param simple_public_object_input [SimplePublicObjectInput]
|
327
|
+
# @param [Hash] opts the optional parameters
|
328
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object
|
329
|
+
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
330
|
+
def update_with_http_info(invoice_id, simple_public_object_input, opts = {})
|
331
|
+
if @api_client.config.debugging
|
332
|
+
@api_client.config.logger.debug 'Calling API: BasicApi.update ...'
|
333
|
+
end
|
334
|
+
# verify the required parameter 'invoice_id' is set
|
335
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
336
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling BasicApi.update"
|
337
|
+
end
|
338
|
+
# verify the required parameter 'simple_public_object_input' is set
|
339
|
+
if @api_client.config.client_side_validation && simple_public_object_input.nil?
|
340
|
+
fail ArgumentError, "Missing the required parameter 'simple_public_object_input' when calling BasicApi.update"
|
341
|
+
end
|
342
|
+
# resource path
|
343
|
+
local_var_path = '/crm/v3/objects/invoices/{invoiceId}'.sub('{' + 'invoiceId' + '}', CGI.escape(invoice_id.to_s))
|
344
|
+
|
345
|
+
# query parameters
|
346
|
+
query_params = opts[:query_params] || {}
|
347
|
+
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
348
|
+
|
349
|
+
# header parameters
|
350
|
+
header_params = opts[:header_params] || {}
|
351
|
+
# HTTP header 'Accept' (if needed)
|
352
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
353
|
+
# HTTP header 'Content-Type'
|
354
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
355
|
+
if !content_type.nil?
|
356
|
+
header_params['Content-Type'] = content_type
|
357
|
+
end
|
358
|
+
|
359
|
+
# form parameters
|
360
|
+
form_params = opts[:form_params] || {}
|
361
|
+
|
362
|
+
# http body (model)
|
363
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_public_object_input)
|
364
|
+
|
365
|
+
# return_type
|
366
|
+
return_type = opts[:debug_return_type] || 'SimplePublicObject'
|
367
|
+
|
368
|
+
# auth_names
|
369
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
370
|
+
|
371
|
+
new_options = opts.merge(
|
372
|
+
:operation => :"BasicApi.update",
|
373
|
+
:header_params => header_params,
|
374
|
+
:query_params => query_params,
|
375
|
+
:form_params => form_params,
|
376
|
+
:body => post_body,
|
377
|
+
:auth_names => auth_names,
|
378
|
+
:return_type => return_type
|
379
|
+
)
|
380
|
+
|
381
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
382
|
+
if @api_client.config.debugging
|
383
|
+
@api_client.config.logger.debug "API called: BasicApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
384
|
+
end
|
385
|
+
return data, status_code, headers
|
386
|
+
end
|
387
|
+
end
|
388
|
+
end
|
389
|
+
end
|
390
|
+
end
|
391
|
+
end
|