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