test_test_gem 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +68 -0
- data/Rakefile +8 -0
- data/git_push.sh +55 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +242 -0
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +94 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/associations/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/associations/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +217 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +322 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +322 -0
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +226 -0
- data/lib/hubspot/codegen/crm/associations/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +243 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +216 -0
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/companies/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/companies/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/companies/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/companies/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/deals/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/deals/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/deals/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/deals/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +364 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +84 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +245 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +327 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +261 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +300 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +236 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +231 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +269 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +241 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +296 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +283 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +320 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +303 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +272 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +278 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +237 -0
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +158 -0
- data/lib/hubspot/codegen/crm/owners/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/owners/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/owners/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +226 -0
- data/lib/hubspot/codegen/crm/owners/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +304 -0
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +272 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +479 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +443 -0
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +226 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +226 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +319 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +249 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +319 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +249 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +249 -0
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/products/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/products/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/products/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/products/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/products/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/products/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +224 -0
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +368 -0
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +362 -0
- data/lib/hubspot/codegen/crm/properties/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/properties/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/properties/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +217 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +217 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +231 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +327 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +226 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +226 -0
- data/lib/hubspot/codegen/crm/properties/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/properties/models/option.rb +266 -0
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +266 -0
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/properties/models/property.rb +465 -0
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +374 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +261 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +241 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +221 -0
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +252 -0
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +216 -0
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +329 -0
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +248 -0
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +361 -0
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +269 -0
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +86 -0
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +322 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +353 -0
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +362 -0
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +250 -0
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/timeline/models/add_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +219 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +330 -0
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +228 -0
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/contains.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/date.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/divide_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/has_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_or.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/month.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/timeline/models/now.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/pipeline_probability.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +318 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +276 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +342 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +304 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +269 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +328 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +229 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +244 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +269 -0
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/xor.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +280 -0
- data/lib/hubspot/codegen/oauth/api/default_api.rb +270 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +420 -0
- data/lib/hubspot/codegen/oauth/api_error.rb +59 -0
- data/lib/hubspot/codegen/oauth/configuration.rb +256 -0
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +317 -0
- data/lib/hubspot/codegen/oauth/models/error.rb +290 -0
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +303 -0
- data/lib/hubspot/codegen/oauth/models/token_response_if.rb +241 -0
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +214 -0
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +360 -0
- data/lib/hubspot/codegen/webhooks/api_client.rb +420 -0
- data/lib/hubspot/codegen/webhooks/api_error.rb +59 -0
- data/lib/hubspot/codegen/webhooks/configuration.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/error.rb +290 -0
- data/lib/hubspot/codegen/webhooks/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +229 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +254 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +268 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +217 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +210 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +308 -0
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +264 -0
- data/lib/hubspot/configuration.rb +207 -0
- data/lib/hubspot/exceptions.rb +3 -0
- data/lib/hubspot/helpers/get_all_helper.rb +27 -0
- data/lib/hubspot/oauth_helper.rb +17 -0
- data/lib/hubspot/version.rb +3 -0
- data/lib/test_test_gem.rb +50 -0
- data/test_test_gem.gemspec +30 -0
- metadata +609 -0
@@ -0,0 +1,254 @@
|
|
1
|
+
=begin
|
2
|
+
#Webhooks API
|
3
|
+
|
4
|
+
#Provides a way for apps to subscribe to certain change events in HubSpot. Once configured, apps will receive event payloads containing details about the changes at a specified target URL. There can only be one target URL for receiving event notifications per app.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Webhooks
|
17
|
+
# Webhook settings for an app.
|
18
|
+
class SettingsResponse
|
19
|
+
# When this subscription was created. Formatted as milliseconds from the [Unix epoch](#).
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
22
|
+
# When this subscription was last updated. Formatted as milliseconds from the [Unix epoch](#).
|
23
|
+
attr_accessor :updated_at
|
24
|
+
|
25
|
+
# A publicly available URL for Hubspot to call where event payloads will be delivered. See [link-so-some-doc](#) for details about the format of these event payloads.
|
26
|
+
attr_accessor :target_url
|
27
|
+
|
28
|
+
attr_accessor :throttling
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'created_at' => :'createdAt',
|
34
|
+
:'updated_at' => :'updatedAt',
|
35
|
+
:'target_url' => :'targetUrl',
|
36
|
+
:'throttling' => :'throttling'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'created_at' => :'DateTime',
|
44
|
+
:'updated_at' => :'DateTime',
|
45
|
+
:'target_url' => :'String',
|
46
|
+
:'throttling' => :'ThrottlingSettings'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# List of attributes with nullable: true
|
51
|
+
def self.openapi_nullable
|
52
|
+
Set.new([
|
53
|
+
])
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Webhooks::SettingsResponse` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Webhooks::SettingsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
|
+
end
|
68
|
+
h[k.to_sym] = v
|
69
|
+
}
|
70
|
+
|
71
|
+
if attributes.key?(:'created_at')
|
72
|
+
self.created_at = attributes[:'created_at']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.key?(:'updated_at')
|
76
|
+
self.updated_at = attributes[:'updated_at']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'target_url')
|
80
|
+
self.target_url = attributes[:'target_url']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'throttling')
|
84
|
+
self.throttling = attributes[:'throttling']
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
89
|
+
# @return Array for valid properties with the reasons
|
90
|
+
def list_invalid_properties
|
91
|
+
invalid_properties = Array.new
|
92
|
+
if @created_at.nil?
|
93
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
if @target_url.nil?
|
97
|
+
invalid_properties.push('invalid value for "target_url", target_url cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @throttling.nil?
|
101
|
+
invalid_properties.push('invalid value for "throttling", throttling cannot be nil.')
|
102
|
+
end
|
103
|
+
|
104
|
+
invalid_properties
|
105
|
+
end
|
106
|
+
|
107
|
+
# Check to see if the all the properties in the model are valid
|
108
|
+
# @return true if the model is valid
|
109
|
+
def valid?
|
110
|
+
return false if @created_at.nil?
|
111
|
+
return false if @target_url.nil?
|
112
|
+
return false if @throttling.nil?
|
113
|
+
true
|
114
|
+
end
|
115
|
+
|
116
|
+
# Checks equality by comparing each attribute.
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
created_at == o.created_at &&
|
122
|
+
updated_at == o.updated_at &&
|
123
|
+
target_url == o.target_url &&
|
124
|
+
throttling == o.throttling
|
125
|
+
end
|
126
|
+
|
127
|
+
# @see the `==` method
|
128
|
+
# @param [Object] Object to be compared
|
129
|
+
def eql?(o)
|
130
|
+
self == o
|
131
|
+
end
|
132
|
+
|
133
|
+
# Calculates hash code according to all attributes.
|
134
|
+
# @return [Integer] Hash code
|
135
|
+
def hash
|
136
|
+
[created_at, updated_at, target_url, throttling].hash
|
137
|
+
end
|
138
|
+
|
139
|
+
# Builds the object from hash
|
140
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
141
|
+
# @return [Object] Returns the model itself
|
142
|
+
def self.build_from_hash(attributes)
|
143
|
+
new.build_from_hash(attributes)
|
144
|
+
end
|
145
|
+
|
146
|
+
# Builds the object from hash
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
148
|
+
# @return [Object] Returns the model itself
|
149
|
+
def build_from_hash(attributes)
|
150
|
+
return nil unless attributes.is_a?(Hash)
|
151
|
+
self.class.openapi_types.each_pair do |key, type|
|
152
|
+
if type =~ /\AArray<(.*)>/i
|
153
|
+
# check to ensure the input is an array given that the attribute
|
154
|
+
# is documented as an array but the input is not
|
155
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
156
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
157
|
+
end
|
158
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
159
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
160
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
161
|
+
end
|
162
|
+
|
163
|
+
self
|
164
|
+
end
|
165
|
+
|
166
|
+
# Deserializes the data based on type
|
167
|
+
# @param string type Data type
|
168
|
+
# @param string value Value to be deserialized
|
169
|
+
# @return [Object] Deserialized data
|
170
|
+
def _deserialize(type, value)
|
171
|
+
case type.to_sym
|
172
|
+
when :DateTime
|
173
|
+
DateTime.parse(value)
|
174
|
+
when :Date
|
175
|
+
Date.parse(value)
|
176
|
+
when :String
|
177
|
+
value.to_s
|
178
|
+
when :Integer
|
179
|
+
value.to_i
|
180
|
+
when :Float
|
181
|
+
value.to_f
|
182
|
+
when :Boolean
|
183
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
184
|
+
true
|
185
|
+
else
|
186
|
+
false
|
187
|
+
end
|
188
|
+
when :Object
|
189
|
+
# generic object (usually a Hash), return directly
|
190
|
+
value
|
191
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
192
|
+
inner_type = Regexp.last_match[:inner_type]
|
193
|
+
value.map { |v| _deserialize(inner_type, v) }
|
194
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
195
|
+
k_type = Regexp.last_match[:k_type]
|
196
|
+
v_type = Regexp.last_match[:v_type]
|
197
|
+
{}.tap do |hash|
|
198
|
+
value.each do |k, v|
|
199
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
else # model
|
203
|
+
Hubspot::Webhooks.const_get(type).build_from_hash(value)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
# Returns the string representation of the object
|
208
|
+
# @return [String] String presentation of the object
|
209
|
+
def to_s
|
210
|
+
to_hash.to_s
|
211
|
+
end
|
212
|
+
|
213
|
+
# to_body is an alias to to_hash (backward compatibility)
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
215
|
+
def to_body
|
216
|
+
to_hash
|
217
|
+
end
|
218
|
+
|
219
|
+
# Returns the object in the form of hash
|
220
|
+
# @return [Hash] Returns the object in the form of hash
|
221
|
+
def to_hash
|
222
|
+
hash = {}
|
223
|
+
self.class.attribute_map.each_pair do |attr, param|
|
224
|
+
value = self.send(attr)
|
225
|
+
if value.nil?
|
226
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
227
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
228
|
+
end
|
229
|
+
|
230
|
+
hash[param] = _to_hash(value)
|
231
|
+
end
|
232
|
+
hash
|
233
|
+
end
|
234
|
+
|
235
|
+
# Outputs non-array value in the form of hash
|
236
|
+
# For object, use to_hash. Otherwise, just return the value
|
237
|
+
# @param [Object] value Any valid value
|
238
|
+
# @return [Hash] Returns the value in the form of hash
|
239
|
+
def _to_hash(value)
|
240
|
+
if value.is_a?(Array)
|
241
|
+
value.compact.map { |v| _to_hash(v) }
|
242
|
+
elsif value.is_a?(Hash)
|
243
|
+
{}.tap do |hash|
|
244
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
245
|
+
end
|
246
|
+
elsif value.respond_to? :to_hash
|
247
|
+
value.to_hash
|
248
|
+
else
|
249
|
+
value
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
@@ -0,0 +1,268 @@
|
|
1
|
+
=begin
|
2
|
+
#Webhooks API
|
3
|
+
|
4
|
+
#Provides a way for apps to subscribe to certain change events in HubSpot. Once configured, apps will receive event payloads containing details about the changes at a specified target URL. There can only be one target URL for receiving event notifications per app.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Webhooks
|
17
|
+
# New webhook settings for an app.
|
18
|
+
class SubscriptionCreateRequest
|
19
|
+
attr_accessor :active
|
20
|
+
|
21
|
+
# Type of event to listen for. Can be one of `create`, `delete`, `deletedForPrivacy`, or `propertyChange`.
|
22
|
+
attr_accessor :event_type
|
23
|
+
|
24
|
+
# The internal name of the property to monitor for changes. Only applies when `eventType` is `propertyChange`.
|
25
|
+
attr_accessor :property_name
|
26
|
+
|
27
|
+
class EnumAttributeValidator
|
28
|
+
attr_reader :datatype
|
29
|
+
attr_reader :allowable_values
|
30
|
+
|
31
|
+
def initialize(datatype, allowable_values)
|
32
|
+
@allowable_values = allowable_values.map do |value|
|
33
|
+
case datatype.to_s
|
34
|
+
when /Integer/i
|
35
|
+
value.to_i
|
36
|
+
when /Float/i
|
37
|
+
value.to_f
|
38
|
+
else
|
39
|
+
value
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def valid?(value)
|
45
|
+
!value || allowable_values.include?(value)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
50
|
+
def self.attribute_map
|
51
|
+
{
|
52
|
+
:'active' => :'active',
|
53
|
+
:'event_type' => :'eventType',
|
54
|
+
:'property_name' => :'propertyName'
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# Attribute type mapping.
|
59
|
+
def self.openapi_types
|
60
|
+
{
|
61
|
+
:'active' => :'Boolean',
|
62
|
+
:'event_type' => :'String',
|
63
|
+
:'property_name' => :'String'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# List of attributes with nullable: true
|
68
|
+
def self.openapi_nullable
|
69
|
+
Set.new([
|
70
|
+
])
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
def initialize(attributes = {})
|
76
|
+
if (!attributes.is_a?(Hash))
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Webhooks::SubscriptionCreateRequest` initialize method"
|
78
|
+
end
|
79
|
+
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Webhooks::SubscriptionCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
|
+
end
|
85
|
+
h[k.to_sym] = v
|
86
|
+
}
|
87
|
+
|
88
|
+
if attributes.key?(:'active')
|
89
|
+
self.active = attributes[:'active']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'event_type')
|
93
|
+
self.event_type = attributes[:'event_type']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'property_name')
|
97
|
+
self.property_name = attributes[:'property_name']
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
102
|
+
# @return Array for valid properties with the reasons
|
103
|
+
def list_invalid_properties
|
104
|
+
invalid_properties = Array.new
|
105
|
+
if @event_type.nil?
|
106
|
+
invalid_properties.push('invalid value for "event_type", event_type cannot be nil.')
|
107
|
+
end
|
108
|
+
|
109
|
+
invalid_properties
|
110
|
+
end
|
111
|
+
|
112
|
+
# Check to see if the all the properties in the model are valid
|
113
|
+
# @return true if the model is valid
|
114
|
+
def valid?
|
115
|
+
return false if @event_type.nil?
|
116
|
+
event_type_validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion"])
|
117
|
+
return false unless event_type_validator.valid?(@event_type)
|
118
|
+
true
|
119
|
+
end
|
120
|
+
|
121
|
+
# Custom attribute writer method checking allowed values (enum).
|
122
|
+
# @param [Object] event_type Object to be assigned
|
123
|
+
def event_type=(event_type)
|
124
|
+
validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion"])
|
125
|
+
unless validator.valid?(event_type)
|
126
|
+
fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
|
127
|
+
end
|
128
|
+
@event_type = event_type
|
129
|
+
end
|
130
|
+
|
131
|
+
# Checks equality by comparing each attribute.
|
132
|
+
# @param [Object] Object to be compared
|
133
|
+
def ==(o)
|
134
|
+
return true if self.equal?(o)
|
135
|
+
self.class == o.class &&
|
136
|
+
active == o.active &&
|
137
|
+
event_type == o.event_type &&
|
138
|
+
property_name == o.property_name
|
139
|
+
end
|
140
|
+
|
141
|
+
# @see the `==` method
|
142
|
+
# @param [Object] Object to be compared
|
143
|
+
def eql?(o)
|
144
|
+
self == o
|
145
|
+
end
|
146
|
+
|
147
|
+
# Calculates hash code according to all attributes.
|
148
|
+
# @return [Integer] Hash code
|
149
|
+
def hash
|
150
|
+
[active, event_type, property_name].hash
|
151
|
+
end
|
152
|
+
|
153
|
+
# Builds the object from hash
|
154
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
155
|
+
# @return [Object] Returns the model itself
|
156
|
+
def self.build_from_hash(attributes)
|
157
|
+
new.build_from_hash(attributes)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Builds the object from hash
|
161
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
162
|
+
# @return [Object] Returns the model itself
|
163
|
+
def build_from_hash(attributes)
|
164
|
+
return nil unless attributes.is_a?(Hash)
|
165
|
+
self.class.openapi_types.each_pair do |key, type|
|
166
|
+
if type =~ /\AArray<(.*)>/i
|
167
|
+
# check to ensure the input is an array given that the attribute
|
168
|
+
# is documented as an array but the input is not
|
169
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
170
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
171
|
+
end
|
172
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
173
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
174
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
175
|
+
end
|
176
|
+
|
177
|
+
self
|
178
|
+
end
|
179
|
+
|
180
|
+
# Deserializes the data based on type
|
181
|
+
# @param string type Data type
|
182
|
+
# @param string value Value to be deserialized
|
183
|
+
# @return [Object] Deserialized data
|
184
|
+
def _deserialize(type, value)
|
185
|
+
case type.to_sym
|
186
|
+
when :DateTime
|
187
|
+
DateTime.parse(value)
|
188
|
+
when :Date
|
189
|
+
Date.parse(value)
|
190
|
+
when :String
|
191
|
+
value.to_s
|
192
|
+
when :Integer
|
193
|
+
value.to_i
|
194
|
+
when :Float
|
195
|
+
value.to_f
|
196
|
+
when :Boolean
|
197
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
198
|
+
true
|
199
|
+
else
|
200
|
+
false
|
201
|
+
end
|
202
|
+
when :Object
|
203
|
+
# generic object (usually a Hash), return directly
|
204
|
+
value
|
205
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
206
|
+
inner_type = Regexp.last_match[:inner_type]
|
207
|
+
value.map { |v| _deserialize(inner_type, v) }
|
208
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
209
|
+
k_type = Regexp.last_match[:k_type]
|
210
|
+
v_type = Regexp.last_match[:v_type]
|
211
|
+
{}.tap do |hash|
|
212
|
+
value.each do |k, v|
|
213
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
else # model
|
217
|
+
Hubspot::Webhooks.const_get(type).build_from_hash(value)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# Returns the string representation of the object
|
222
|
+
# @return [String] String presentation of the object
|
223
|
+
def to_s
|
224
|
+
to_hash.to_s
|
225
|
+
end
|
226
|
+
|
227
|
+
# to_body is an alias to to_hash (backward compatibility)
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
229
|
+
def to_body
|
230
|
+
to_hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the object in the form of hash
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
235
|
+
def to_hash
|
236
|
+
hash = {}
|
237
|
+
self.class.attribute_map.each_pair do |attr, param|
|
238
|
+
value = self.send(attr)
|
239
|
+
if value.nil?
|
240
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
241
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
|
+
end
|
243
|
+
|
244
|
+
hash[param] = _to_hash(value)
|
245
|
+
end
|
246
|
+
hash
|
247
|
+
end
|
248
|
+
|
249
|
+
# Outputs non-array value in the form of hash
|
250
|
+
# For object, use to_hash. Otherwise, just return the value
|
251
|
+
# @param [Object] value Any valid value
|
252
|
+
# @return [Hash] Returns the value in the form of hash
|
253
|
+
def _to_hash(value)
|
254
|
+
if value.is_a?(Array)
|
255
|
+
value.compact.map { |v| _to_hash(v) }
|
256
|
+
elsif value.is_a?(Hash)
|
257
|
+
{}.tap do |hash|
|
258
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
259
|
+
end
|
260
|
+
elsif value.respond_to? :to_hash
|
261
|
+
value.to_hash
|
262
|
+
else
|
263
|
+
value
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|