hubspot-api-client 2.3.2 → 3.0.0.pre.beta
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 +13 -0
- data/README.md +2 -31
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +22 -22
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +8 -8
- data/lib/hubspot/codegen/crm/associations/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/api_error.rb +2 -2
- 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 +2 -2
- 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/collection_response_public_association_definiton.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/public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.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 +2 -2
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/companies/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +4 -4
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/deals/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +4 -4
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +0 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +2 -2
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +279 -0
- data/lib/hubspot/codegen/crm/imports/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/imports/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/imports/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/{timeline/models/divide_numbers.rb → imports/models/action_response.rb} +54 -48
- data/lib/hubspot/codegen/crm/{timeline/models/now.rb → imports/models/collection_response_public_import_response.rb} +25 -79
- data/lib/hubspot/codegen/crm/{timeline/models/date.rb → imports/models/error.rb} +82 -70
- data/lib/hubspot/codegen/crm/{timeline/models/add_numbers.rb → imports/models/error_detail.rb} +51 -73
- data/lib/hubspot/codegen/crm/{timeline/models/model_or.rb → imports/models/next_page.rb} +24 -80
- data/lib/hubspot/codegen/crm/{timeline/models/month.rb → imports/models/paging.rb} +15 -85
- data/lib/hubspot/codegen/crm/{timeline/models/pipeline_probability.rb → imports/models/public_import_metadata.rb} +48 -76
- data/lib/hubspot/codegen/crm/{timeline/models/contains.rb → imports/models/public_import_response.rb} +93 -57
- data/lib/hubspot/codegen/crm/{timeline/models/xor.rb → imports/models/public_object_list_record.rb} +31 -80
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/owners/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +3 -3
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +3 -3
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +3 -3
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +2 -3
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +2 -2
- data/lib/hubspot/codegen/crm/products/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/products/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/products/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +3 -3
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +19 -19
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/properties/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/option.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +2 -3
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +25 -25
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +20 -20
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +34 -34
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +24 -24
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +1 -2
- data/lib/hubspot/codegen/oauth/api_client.rb +3 -3
- data/lib/hubspot/codegen/oauth/api_error.rb +2 -2
- data/lib/hubspot/codegen/oauth/configuration.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +2 -2
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +2 -2
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +25 -21
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +59 -55
- data/lib/hubspot/codegen/webhooks/api_client.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +0 -1
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +1 -1
- metadata +32 -211
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +0 -294
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/has_email_reply.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +0 -303
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +0 -303
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +0 -303
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +0 -294
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +0 -280
|
@@ -99,7 +99,7 @@ module Hubspot
|
|
|
99
99
|
fail ApiError.new(:code => response.status,
|
|
100
100
|
:response_headers => response.headers,
|
|
101
101
|
:response_body => response.body),
|
|
102
|
-
|
|
102
|
+
response.reason_phrase
|
|
103
103
|
end
|
|
104
104
|
end
|
|
105
105
|
rescue Faraday::TimeoutError
|
|
@@ -419,4 +419,4 @@ module Hubspot
|
|
|
419
419
|
end
|
|
420
420
|
end
|
|
421
421
|
end
|
|
422
|
-
end
|
|
422
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# Used to create timeline events in batches.
|
|
19
18
|
class BatchInputTimelineEvent
|
|
20
19
|
# A collection of timeline events we want to create.
|
|
21
20
|
attr_accessor :inputs
|
|
@@ -216,4 +215,4 @@ module Hubspot
|
|
|
216
215
|
end
|
|
217
216
|
end
|
|
218
217
|
end
|
|
219
|
-
end
|
|
218
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# The state of the batch event request.
|
|
19
18
|
class BatchResponseTimelineEventResponse
|
|
20
19
|
# Successfully created events.
|
|
21
20
|
attr_accessor :results
|
|
@@ -327,4 +326,4 @@ module Hubspot
|
|
|
327
326
|
end
|
|
328
327
|
end
|
|
329
328
|
end
|
|
330
|
-
end
|
|
329
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# Container for all templates being returned.
|
|
19
18
|
class CollectionResponseTimelineEventTemplate
|
|
20
19
|
# A collection of templates.
|
|
21
20
|
attr_accessor :results
|
|
@@ -225,4 +224,4 @@ module Hubspot
|
|
|
225
224
|
end
|
|
226
225
|
end
|
|
227
226
|
end
|
|
228
|
-
end
|
|
227
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# The details Markdown rendered as HTML.
|
|
19
18
|
class EventDetail
|
|
20
19
|
# The details Markdown rendered as HTML.
|
|
21
20
|
attr_accessor :details
|
|
@@ -214,4 +213,4 @@ module Hubspot
|
|
|
214
213
|
end
|
|
215
214
|
end
|
|
216
215
|
end
|
|
217
|
-
end
|
|
216
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# The state of the timeline event.
|
|
19
18
|
class TimelineEvent
|
|
20
19
|
# Identifier for the event. This is optional, and we recommend you do not pass this in. We will create one for you if you omit this. You can also use `{{uuid}}` anywhere in the ID to generate a unique string, guaranteeing uniqueness.
|
|
21
20
|
attr_accessor :id
|
|
@@ -315,4 +314,4 @@ module Hubspot
|
|
|
315
314
|
end
|
|
316
315
|
end
|
|
317
316
|
end
|
|
318
|
-
end
|
|
317
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# The current state of the timeline event.
|
|
19
18
|
class TimelineEventResponse
|
|
20
19
|
# The ObjectType associated with the EventTemplate.
|
|
21
20
|
attr_accessor :object_type
|
|
@@ -339,4 +338,4 @@ module Hubspot
|
|
|
339
338
|
end
|
|
340
339
|
end
|
|
341
340
|
end
|
|
342
|
-
end
|
|
341
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# The current state of the template definition.
|
|
19
18
|
class TimelineEventTemplate
|
|
20
19
|
# The template ID.
|
|
21
20
|
attr_accessor :id
|
|
@@ -301,4 +300,4 @@ module Hubspot
|
|
|
301
300
|
end
|
|
302
301
|
end
|
|
303
302
|
end
|
|
304
|
-
end
|
|
303
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# State of the template definition being created.
|
|
19
18
|
class TimelineEventTemplateCreateRequest
|
|
20
19
|
# The type of CRM object you want this template applicable for. Currently we support [contacts, companies, deals].
|
|
21
20
|
attr_accessor :object_type
|
|
@@ -266,4 +265,4 @@ module Hubspot
|
|
|
266
265
|
end
|
|
267
266
|
end
|
|
268
267
|
end
|
|
269
|
-
end
|
|
268
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# State of the token definition.
|
|
19
18
|
class TimelineEventTemplateToken
|
|
20
19
|
# The name of the token referenced in the templates. This must be unique for the specific template. It may only contain alphanumeric characters, periods, dashes, or underscores (. - _).
|
|
21
20
|
attr_accessor :name
|
|
@@ -325,4 +324,4 @@ module Hubspot
|
|
|
325
324
|
end
|
|
326
325
|
end
|
|
327
326
|
end
|
|
328
|
-
end
|
|
327
|
+
end
|
data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb
CHANGED
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# State of the token definition for update requests.
|
|
19
18
|
class TimelineEventTemplateTokenUpdateRequest
|
|
20
19
|
# Used for list segmentation and reporting.
|
|
21
20
|
attr_accessor :label
|
|
@@ -241,4 +240,4 @@ module Hubspot
|
|
|
241
240
|
end
|
|
242
241
|
end
|
|
243
242
|
end
|
|
244
|
-
end
|
|
243
|
+
end
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
17
|
module Timeline
|
|
18
|
-
# State of the template definition being updated.
|
|
19
18
|
class TimelineEventTemplateUpdateRequest
|
|
20
19
|
# The template ID.
|
|
21
20
|
attr_accessor :id
|
|
@@ -266,4 +265,4 @@ module Hubspot
|
|
|
266
265
|
end
|
|
267
266
|
end
|
|
268
267
|
end
|
|
269
|
-
end
|
|
268
|
+
end
|
|
@@ -31,7 +31,7 @@ module Hubspot
|
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
32
32
|
def initialize(config = Configuration.default)
|
|
33
33
|
@config = config
|
|
34
|
-
@user_agent = "
|
|
34
|
+
@user_agent = "hubspot-api-client-ruby; #{VERSION}"
|
|
35
35
|
@default_headers = {
|
|
36
36
|
'Content-Type' => 'application/json',
|
|
37
37
|
'User-Agent' => @user_agent
|
|
@@ -98,7 +98,7 @@ module Hubspot
|
|
|
98
98
|
fail ApiError.new(:code => response.status,
|
|
99
99
|
:response_headers => response.headers,
|
|
100
100
|
:response_body => response.body),
|
|
101
|
-
|
|
101
|
+
response.reason_phrase
|
|
102
102
|
end
|
|
103
103
|
end
|
|
104
104
|
rescue Faraday::TimeoutError
|
|
@@ -417,4 +417,4 @@ module Hubspot
|
|
|
417
417
|
end
|
|
418
418
|
end
|
|
419
419
|
end
|
|
420
|
-
end
|
|
420
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -314,4 +314,4 @@ module Hubspot
|
|
|
314
314
|
end
|
|
315
315
|
end
|
|
316
316
|
end
|
|
317
|
-
end
|
|
317
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -300,4 +300,4 @@ module Hubspot
|
|
|
300
300
|
end
|
|
301
301
|
end
|
|
302
302
|
end
|
|
303
|
-
end
|
|
303
|
+
end
|
|
@@ -25,8 +25,8 @@ module Hubspot
|
|
|
25
25
|
# @param app_id [Integer] The ID of the target app.
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @return [nil]
|
|
28
|
-
def
|
|
29
|
-
|
|
28
|
+
def clear(app_id, opts = {})
|
|
29
|
+
clear_with_http_info(app_id, opts)
|
|
30
30
|
nil
|
|
31
31
|
end
|
|
32
32
|
|
|
@@ -35,13 +35,13 @@ module Hubspot
|
|
|
35
35
|
# @param app_id [Integer] The ID of the target app.
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
|
37
37
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
38
|
-
def
|
|
38
|
+
def clear_with_http_info(app_id, opts = {})
|
|
39
39
|
if @api_client.config.debugging
|
|
40
|
-
@api_client.config.logger.debug 'Calling API: SettingsApi.
|
|
40
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.clear ...'
|
|
41
41
|
end
|
|
42
42
|
# verify the required parameter 'app_id' is set
|
|
43
43
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
44
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.
|
|
44
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.clear"
|
|
45
45
|
end
|
|
46
46
|
# resource path
|
|
47
47
|
local_var_path = '/webhooks/v3/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -77,7 +77,7 @@ module Hubspot
|
|
|
77
77
|
|
|
78
78
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
79
79
|
if @api_client.config.debugging
|
|
80
|
-
@api_client.config.logger.debug "API called: SettingsApi#
|
|
80
|
+
@api_client.config.logger.debug "API called: SettingsApi#clear\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
81
81
|
end
|
|
82
82
|
return data, status_code, headers
|
|
83
83
|
end
|
|
@@ -85,27 +85,31 @@ module Hubspot
|
|
|
85
85
|
# Configure webhook settings
|
|
86
86
|
# Used to set the webhook target URL and max concurrency limit for the given app.
|
|
87
87
|
# @param app_id [Integer] The ID of the target app.
|
|
88
|
+
# @param settings_change_request [SettingsChangeRequest] Settings state to create new with or replace existing settings with.
|
|
88
89
|
# @param [Hash] opts the optional parameters
|
|
89
|
-
# @option opts [SettingsChangeRequest] :settings_change_request Settings state to create new with or replace existing settings with.
|
|
90
90
|
# @return [SettingsResponse]
|
|
91
|
-
def
|
|
92
|
-
data, _status_code, _headers =
|
|
91
|
+
def configure(app_id, settings_change_request, opts = {})
|
|
92
|
+
data, _status_code, _headers = configure_with_http_info(app_id, settings_change_request, opts)
|
|
93
93
|
data
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
# Configure webhook settings
|
|
97
97
|
# Used to set the webhook target URL and max concurrency limit for the given app.
|
|
98
98
|
# @param app_id [Integer] The ID of the target app.
|
|
99
|
+
# @param settings_change_request [SettingsChangeRequest] Settings state to create new with or replace existing settings with.
|
|
99
100
|
# @param [Hash] opts the optional parameters
|
|
100
|
-
# @option opts [SettingsChangeRequest] :settings_change_request Settings state to create new with or replace existing settings with.
|
|
101
101
|
# @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
|
|
102
|
-
def
|
|
102
|
+
def configure_with_http_info(app_id, settings_change_request, opts = {})
|
|
103
103
|
if @api_client.config.debugging
|
|
104
|
-
@api_client.config.logger.debug 'Calling API: SettingsApi.
|
|
104
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.configure ...'
|
|
105
105
|
end
|
|
106
106
|
# verify the required parameter 'app_id' is set
|
|
107
107
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
108
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.
|
|
108
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.configure"
|
|
109
|
+
end
|
|
110
|
+
# verify the required parameter 'settings_change_request' is set
|
|
111
|
+
if @api_client.config.client_side_validation && settings_change_request.nil?
|
|
112
|
+
fail ArgumentError, "Missing the required parameter 'settings_change_request' when calling SettingsApi.configure"
|
|
109
113
|
end
|
|
110
114
|
# resource path
|
|
111
115
|
local_var_path = '/webhooks/v3/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -124,7 +128,7 @@ module Hubspot
|
|
|
124
128
|
form_params = opts[:form_params] || {}
|
|
125
129
|
|
|
126
130
|
# http body (model)
|
|
127
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
131
|
+
post_body = opts[:body] || @api_client.object_to_http_body(settings_change_request)
|
|
128
132
|
|
|
129
133
|
# return_type
|
|
130
134
|
return_type = opts[:return_type] || 'SettingsResponse'
|
|
@@ -143,7 +147,7 @@ module Hubspot
|
|
|
143
147
|
|
|
144
148
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
145
149
|
if @api_client.config.debugging
|
|
146
|
-
@api_client.config.logger.debug "API called: SettingsApi#
|
|
150
|
+
@api_client.config.logger.debug "API called: SettingsApi#configure\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
147
151
|
end
|
|
148
152
|
return data, status_code, headers
|
|
149
153
|
end
|
|
@@ -153,8 +157,8 @@ module Hubspot
|
|
|
153
157
|
# @param app_id [Integer] The ID of the target app.
|
|
154
158
|
# @param [Hash] opts the optional parameters
|
|
155
159
|
# @return [SettingsResponse]
|
|
156
|
-
def
|
|
157
|
-
data, _status_code, _headers =
|
|
160
|
+
def get_all(app_id, opts = {})
|
|
161
|
+
data, _status_code, _headers = get_all_with_http_info(app_id, opts)
|
|
158
162
|
data
|
|
159
163
|
end
|
|
160
164
|
|
|
@@ -163,13 +167,13 @@ module Hubspot
|
|
|
163
167
|
# @param app_id [Integer] The ID of the target app.
|
|
164
168
|
# @param [Hash] opts the optional parameters
|
|
165
169
|
# @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
|
|
166
|
-
def
|
|
170
|
+
def get_all_with_http_info(app_id, opts = {})
|
|
167
171
|
if @api_client.config.debugging
|
|
168
|
-
@api_client.config.logger.debug 'Calling API: SettingsApi.
|
|
172
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.get_all ...'
|
|
169
173
|
end
|
|
170
174
|
# verify the required parameter 'app_id' is set
|
|
171
175
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
172
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.
|
|
176
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.get_all"
|
|
173
177
|
end
|
|
174
178
|
# resource path
|
|
175
179
|
local_var_path = '/webhooks/v3/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -205,7 +209,7 @@ module Hubspot
|
|
|
205
209
|
|
|
206
210
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
207
211
|
if @api_client.config.debugging
|
|
208
|
-
@api_client.config.logger.debug "API called: SettingsApi#
|
|
212
|
+
@api_client.config.logger.debug "API called: SettingsApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
209
213
|
end
|
|
210
214
|
return data, status_code, headers
|
|
211
215
|
end
|
|
@@ -26,8 +26,8 @@ module Hubspot
|
|
|
26
26
|
# @param app_id [Integer] The ID of the target app.
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
28
|
# @return [nil]
|
|
29
|
-
def
|
|
30
|
-
|
|
29
|
+
def archive(subscription_id, app_id, opts = {})
|
|
30
|
+
archive_with_http_info(subscription_id, app_id, opts)
|
|
31
31
|
nil
|
|
32
32
|
end
|
|
33
33
|
|
|
@@ -37,17 +37,17 @@ module Hubspot
|
|
|
37
37
|
# @param app_id [Integer] The ID of the target app.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
40
|
-
def
|
|
40
|
+
def archive_with_http_info(subscription_id, app_id, opts = {})
|
|
41
41
|
if @api_client.config.debugging
|
|
42
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
|
42
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.archive ...'
|
|
43
43
|
end
|
|
44
44
|
# verify the required parameter 'subscription_id' is set
|
|
45
45
|
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
46
|
-
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.
|
|
46
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.archive"
|
|
47
47
|
end
|
|
48
48
|
# verify the required parameter 'app_id' is set
|
|
49
49
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
50
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.
|
|
50
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.archive"
|
|
51
51
|
end
|
|
52
52
|
# resource path
|
|
53
53
|
local_var_path = '/webhooks/v3/{appId}/subscriptions/{subscriptionId}'.sub('{' + 'subscriptionId' + '}', CGI.escape(subscription_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -83,42 +83,42 @@ module Hubspot
|
|
|
83
83
|
|
|
84
84
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
85
85
|
if @api_client.config.debugging
|
|
86
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
|
86
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
87
87
|
end
|
|
88
88
|
return data, status_code, headers
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
#
|
|
92
|
-
#
|
|
91
|
+
# Subscribe to an event
|
|
92
|
+
# Creates a new webhook subscription for the given app. Each subscription in an app must be unique.
|
|
93
93
|
# @param app_id [Integer] The ID of the target app.
|
|
94
|
-
# @param
|
|
94
|
+
# @param subscription_create_request [SubscriptionCreateRequest] Details about the new subscription.
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @return [SubscriptionResponse]
|
|
97
|
-
def
|
|
98
|
-
data, _status_code, _headers =
|
|
97
|
+
def create(app_id, subscription_create_request, opts = {})
|
|
98
|
+
data, _status_code, _headers = create_with_http_info(app_id, subscription_create_request, opts)
|
|
99
99
|
data
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
#
|
|
103
|
-
#
|
|
102
|
+
# Subscribe to an event
|
|
103
|
+
# Creates a new webhook subscription for the given app. Each subscription in an app must be unique.
|
|
104
104
|
# @param app_id [Integer] The ID of the target app.
|
|
105
|
-
# @param
|
|
105
|
+
# @param subscription_create_request [SubscriptionCreateRequest] Details about the new subscription.
|
|
106
106
|
# @param [Hash] opts the optional parameters
|
|
107
107
|
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
|
108
|
-
def
|
|
108
|
+
def create_with_http_info(app_id, subscription_create_request, opts = {})
|
|
109
109
|
if @api_client.config.debugging
|
|
110
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
|
110
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.create ...'
|
|
111
111
|
end
|
|
112
112
|
# verify the required parameter 'app_id' is set
|
|
113
113
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
114
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.create"
|
|
115
115
|
end
|
|
116
|
-
# verify the required parameter '
|
|
117
|
-
if @api_client.config.client_side_validation &&
|
|
118
|
-
fail ArgumentError, "Missing the required parameter '
|
|
116
|
+
# verify the required parameter 'subscription_create_request' is set
|
|
117
|
+
if @api_client.config.client_side_validation && subscription_create_request.nil?
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'subscription_create_request' when calling SubscriptionsApi.create"
|
|
119
119
|
end
|
|
120
120
|
# resource path
|
|
121
|
-
local_var_path = '/webhooks/v3/{appId}/subscriptions
|
|
121
|
+
local_var_path = '/webhooks/v3/{appId}/subscriptions'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
122
122
|
|
|
123
123
|
# query parameters
|
|
124
124
|
query_params = opts[:query_params] || {}
|
|
@@ -127,12 +127,14 @@ module Hubspot
|
|
|
127
127
|
header_params = opts[:header_params] || {}
|
|
128
128
|
# HTTP header 'Accept' (if needed)
|
|
129
129
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
130
|
+
# HTTP header 'Content-Type'
|
|
131
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
130
132
|
|
|
131
133
|
# form parameters
|
|
132
134
|
form_params = opts[:form_params] || {}
|
|
133
135
|
|
|
134
136
|
# http body (model)
|
|
135
|
-
post_body = opts[:body]
|
|
137
|
+
post_body = opts[:body] || @api_client.object_to_http_body(subscription_create_request)
|
|
136
138
|
|
|
137
139
|
# return_type
|
|
138
140
|
return_type = opts[:return_type] || 'SubscriptionResponse'
|
|
@@ -149,9 +151,9 @@ module Hubspot
|
|
|
149
151
|
:return_type => return_type
|
|
150
152
|
)
|
|
151
153
|
|
|
152
|
-
data, status_code, headers = @api_client.call_api(:
|
|
154
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
153
155
|
if @api_client.config.debugging
|
|
154
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
|
156
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
155
157
|
end
|
|
156
158
|
return data, status_code, headers
|
|
157
159
|
end
|
|
@@ -161,8 +163,8 @@ module Hubspot
|
|
|
161
163
|
# @param app_id [Integer] The ID of the target app.
|
|
162
164
|
# @param [Hash] opts the optional parameters
|
|
163
165
|
# @return [SubscriptionListResponse]
|
|
164
|
-
def
|
|
165
|
-
data, _status_code, _headers =
|
|
166
|
+
def get_all(app_id, opts = {})
|
|
167
|
+
data, _status_code, _headers = get_all_with_http_info(app_id, opts)
|
|
166
168
|
data
|
|
167
169
|
end
|
|
168
170
|
|
|
@@ -171,13 +173,13 @@ module Hubspot
|
|
|
171
173
|
# @param app_id [Integer] The ID of the target app.
|
|
172
174
|
# @param [Hash] opts the optional parameters
|
|
173
175
|
# @return [Array<(SubscriptionListResponse, Integer, Hash)>] SubscriptionListResponse data, response status code and response headers
|
|
174
|
-
def
|
|
176
|
+
def get_all_with_http_info(app_id, opts = {})
|
|
175
177
|
if @api_client.config.debugging
|
|
176
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
|
178
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.get_all ...'
|
|
177
179
|
end
|
|
178
180
|
# verify the required parameter 'app_id' is set
|
|
179
181
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
180
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.
|
|
182
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.get_all"
|
|
181
183
|
end
|
|
182
184
|
# resource path
|
|
183
185
|
local_var_path = '/webhooks/v3/{appId}/subscriptions'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -213,38 +215,42 @@ module Hubspot
|
|
|
213
215
|
|
|
214
216
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
215
217
|
if @api_client.config.debugging
|
|
216
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
|
218
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
217
219
|
end
|
|
218
220
|
return data, status_code, headers
|
|
219
221
|
end
|
|
220
222
|
|
|
221
|
-
#
|
|
222
|
-
#
|
|
223
|
+
# Get subscription
|
|
224
|
+
# Returns details about a subscription.
|
|
223
225
|
# @param app_id [Integer] The ID of the target app.
|
|
226
|
+
# @param subscription_id [Integer] The ID of the target subscription.
|
|
224
227
|
# @param [Hash] opts the optional parameters
|
|
225
|
-
# @option opts [SubscriptionCreateRequest] :subscription_create_request Details about the new subscription.
|
|
226
228
|
# @return [SubscriptionResponse]
|
|
227
|
-
def
|
|
228
|
-
data, _status_code, _headers =
|
|
229
|
+
def get_by_id(app_id, subscription_id, opts = {})
|
|
230
|
+
data, _status_code, _headers = get_by_id_with_http_info(app_id, subscription_id, opts)
|
|
229
231
|
data
|
|
230
232
|
end
|
|
231
233
|
|
|
232
|
-
#
|
|
233
|
-
#
|
|
234
|
+
# Get subscription
|
|
235
|
+
# Returns details about a subscription.
|
|
234
236
|
# @param app_id [Integer] The ID of the target app.
|
|
237
|
+
# @param subscription_id [Integer] The ID of the target subscription.
|
|
235
238
|
# @param [Hash] opts the optional parameters
|
|
236
|
-
# @option opts [SubscriptionCreateRequest] :subscription_create_request Details about the new subscription.
|
|
237
239
|
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
|
238
|
-
def
|
|
240
|
+
def get_by_id_with_http_info(app_id, subscription_id, opts = {})
|
|
239
241
|
if @api_client.config.debugging
|
|
240
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
|
242
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.get_by_id ...'
|
|
241
243
|
end
|
|
242
244
|
# verify the required parameter 'app_id' is set
|
|
243
245
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
244
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.
|
|
246
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.get_by_id"
|
|
247
|
+
end
|
|
248
|
+
# verify the required parameter 'subscription_id' is set
|
|
249
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
250
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_by_id"
|
|
245
251
|
end
|
|
246
252
|
# resource path
|
|
247
|
-
local_var_path = '/webhooks/v3/{appId}/subscriptions'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
253
|
+
local_var_path = '/webhooks/v3/{appId}/subscriptions/{subscriptionId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'subscriptionId' + '}', CGI.escape(subscription_id.to_s))
|
|
248
254
|
|
|
249
255
|
# query parameters
|
|
250
256
|
query_params = opts[:query_params] || {}
|
|
@@ -253,14 +259,12 @@ module Hubspot
|
|
|
253
259
|
header_params = opts[:header_params] || {}
|
|
254
260
|
# HTTP header 'Accept' (if needed)
|
|
255
261
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
256
|
-
# HTTP header 'Content-Type'
|
|
257
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
258
262
|
|
|
259
263
|
# form parameters
|
|
260
264
|
form_params = opts[:form_params] || {}
|
|
261
265
|
|
|
262
266
|
# http body (model)
|
|
263
|
-
post_body = opts[:body]
|
|
267
|
+
post_body = opts[:body]
|
|
264
268
|
|
|
265
269
|
# return_type
|
|
266
270
|
return_type = opts[:return_type] || 'SubscriptionResponse'
|
|
@@ -277,9 +281,9 @@ module Hubspot
|
|
|
277
281
|
:return_type => return_type
|
|
278
282
|
)
|
|
279
283
|
|
|
280
|
-
data, status_code, headers = @api_client.call_api(:
|
|
284
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
281
285
|
if @api_client.config.debugging
|
|
282
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
|
286
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
283
287
|
end
|
|
284
288
|
return data, status_code, headers
|
|
285
289
|
end
|
|
@@ -291,8 +295,8 @@ module Hubspot
|
|
|
291
295
|
# @param [Hash] opts the optional parameters
|
|
292
296
|
# @option opts [SubscriptionPatchRequest] :subscription_patch_request Updated details for the subscription.
|
|
293
297
|
# @return [SubscriptionResponse]
|
|
294
|
-
def
|
|
295
|
-
data, _status_code, _headers =
|
|
298
|
+
def update(subscription_id, app_id, opts = {})
|
|
299
|
+
data, _status_code, _headers = update_with_http_info(subscription_id, app_id, opts)
|
|
296
300
|
data
|
|
297
301
|
end
|
|
298
302
|
|
|
@@ -303,17 +307,17 @@ module Hubspot
|
|
|
303
307
|
# @param [Hash] opts the optional parameters
|
|
304
308
|
# @option opts [SubscriptionPatchRequest] :subscription_patch_request Updated details for the subscription.
|
|
305
309
|
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
|
306
|
-
def
|
|
310
|
+
def update_with_http_info(subscription_id, app_id, opts = {})
|
|
307
311
|
if @api_client.config.debugging
|
|
308
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
|
312
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.update ...'
|
|
309
313
|
end
|
|
310
314
|
# verify the required parameter 'subscription_id' is set
|
|
311
315
|
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
312
|
-
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.
|
|
316
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.update"
|
|
313
317
|
end
|
|
314
318
|
# verify the required parameter 'app_id' is set
|
|
315
319
|
if @api_client.config.client_side_validation && app_id.nil?
|
|
316
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.
|
|
320
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.update"
|
|
317
321
|
end
|
|
318
322
|
# resource path
|
|
319
323
|
local_var_path = '/webhooks/v3/{appId}/subscriptions/{subscriptionId}'.sub('{' + 'subscriptionId' + '}', CGI.escape(subscription_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
@@ -351,7 +355,7 @@ module Hubspot
|
|
|
351
355
|
|
|
352
356
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
353
357
|
if @api_client.config.debugging
|
|
354
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
|
358
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
355
359
|
end
|
|
356
360
|
return data, status_code, headers
|
|
357
361
|
end
|