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,319 @@
|
|
1
|
+
=begin
|
2
|
+
#CRM Pipelines
|
3
|
+
|
4
|
+
#Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Pipelines
|
18
|
+
# A pipeline stage definition.
|
19
|
+
class PipelineStage
|
20
|
+
# The date the pipeline stage was created. The stages on default pipelines will have createdAt = 0.
|
21
|
+
attr_accessor :created_at
|
22
|
+
|
23
|
+
# The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived.
|
24
|
+
attr_accessor :archived_at
|
25
|
+
|
26
|
+
# The date the pipeline stage was last updated.
|
27
|
+
attr_accessor :updated_at
|
28
|
+
|
29
|
+
# Whether the pipeline is archived.
|
30
|
+
attr_accessor :archived
|
31
|
+
|
32
|
+
# A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline.
|
33
|
+
attr_accessor :label
|
34
|
+
|
35
|
+
# The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label.
|
36
|
+
attr_accessor :display_order
|
37
|
+
|
38
|
+
# A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`.
|
39
|
+
attr_accessor :metadata
|
40
|
+
|
41
|
+
# A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline stage.
|
42
|
+
attr_accessor :id
|
43
|
+
|
44
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
45
|
+
def self.attribute_map
|
46
|
+
{
|
47
|
+
:'created_at' => :'createdAt',
|
48
|
+
:'archived_at' => :'archivedAt',
|
49
|
+
:'updated_at' => :'updatedAt',
|
50
|
+
:'archived' => :'archived',
|
51
|
+
:'label' => :'label',
|
52
|
+
:'display_order' => :'displayOrder',
|
53
|
+
:'metadata' => :'metadata',
|
54
|
+
:'id' => :'id'
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# Attribute type mapping.
|
59
|
+
def self.openapi_types
|
60
|
+
{
|
61
|
+
:'created_at' => :'DateTime',
|
62
|
+
:'archived_at' => :'DateTime',
|
63
|
+
:'updated_at' => :'DateTime',
|
64
|
+
:'archived' => :'Boolean',
|
65
|
+
:'label' => :'String',
|
66
|
+
:'display_order' => :'Integer',
|
67
|
+
:'metadata' => :'Hash<String, String>',
|
68
|
+
:'id' => :'String'
|
69
|
+
}
|
70
|
+
end
|
71
|
+
|
72
|
+
# List of attributes with nullable: true
|
73
|
+
def self.openapi_nullable
|
74
|
+
Set.new([
|
75
|
+
])
|
76
|
+
end
|
77
|
+
|
78
|
+
# Initializes the object
|
79
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
80
|
+
def initialize(attributes = {})
|
81
|
+
if (!attributes.is_a?(Hash))
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Pipelines::PipelineStage` initialize method"
|
83
|
+
end
|
84
|
+
|
85
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
87
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Pipelines::PipelineStage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
89
|
+
end
|
90
|
+
h[k.to_sym] = v
|
91
|
+
}
|
92
|
+
|
93
|
+
if attributes.key?(:'created_at')
|
94
|
+
self.created_at = attributes[:'created_at']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'archived_at')
|
98
|
+
self.archived_at = attributes[:'archived_at']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'updated_at')
|
102
|
+
self.updated_at = attributes[:'updated_at']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'archived')
|
106
|
+
self.archived = attributes[:'archived']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'label')
|
110
|
+
self.label = attributes[:'label']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'display_order')
|
114
|
+
self.display_order = attributes[:'display_order']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'metadata')
|
118
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
119
|
+
self.metadata = value
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'id')
|
124
|
+
self.id = attributes[:'id']
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
129
|
+
# @return Array for valid properties with the reasons
|
130
|
+
def list_invalid_properties
|
131
|
+
invalid_properties = Array.new
|
132
|
+
if @created_at.nil?
|
133
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
|
+
if @updated_at.nil?
|
137
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if @archived.nil?
|
141
|
+
invalid_properties.push('invalid value for "archived", archived cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
|
+
if @label.nil?
|
145
|
+
invalid_properties.push('invalid value for "label", label cannot be nil.')
|
146
|
+
end
|
147
|
+
|
148
|
+
if @display_order.nil?
|
149
|
+
invalid_properties.push('invalid value for "display_order", display_order cannot be nil.')
|
150
|
+
end
|
151
|
+
|
152
|
+
if @metadata.nil?
|
153
|
+
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
154
|
+
end
|
155
|
+
|
156
|
+
if @id.nil?
|
157
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
158
|
+
end
|
159
|
+
|
160
|
+
invalid_properties
|
161
|
+
end
|
162
|
+
|
163
|
+
# Check to see if the all the properties in the model are valid
|
164
|
+
# @return true if the model is valid
|
165
|
+
def valid?
|
166
|
+
return false if @created_at.nil?
|
167
|
+
return false if @updated_at.nil?
|
168
|
+
return false if @archived.nil?
|
169
|
+
return false if @label.nil?
|
170
|
+
return false if @display_order.nil?
|
171
|
+
return false if @metadata.nil?
|
172
|
+
return false if @id.nil?
|
173
|
+
true
|
174
|
+
end
|
175
|
+
|
176
|
+
# Checks equality by comparing each attribute.
|
177
|
+
# @param [Object] Object to be compared
|
178
|
+
def ==(o)
|
179
|
+
return true if self.equal?(o)
|
180
|
+
self.class == o.class &&
|
181
|
+
created_at == o.created_at &&
|
182
|
+
archived_at == o.archived_at &&
|
183
|
+
updated_at == o.updated_at &&
|
184
|
+
archived == o.archived &&
|
185
|
+
label == o.label &&
|
186
|
+
display_order == o.display_order &&
|
187
|
+
metadata == o.metadata &&
|
188
|
+
id == o.id
|
189
|
+
end
|
190
|
+
|
191
|
+
# @see the `==` method
|
192
|
+
# @param [Object] Object to be compared
|
193
|
+
def eql?(o)
|
194
|
+
self == o
|
195
|
+
end
|
196
|
+
|
197
|
+
# Calculates hash code according to all attributes.
|
198
|
+
# @return [Integer] Hash code
|
199
|
+
def hash
|
200
|
+
[created_at, archived_at, updated_at, archived, label, display_order, metadata, id].hash
|
201
|
+
end
|
202
|
+
|
203
|
+
# Builds the object from hash
|
204
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
205
|
+
# @return [Object] Returns the model itself
|
206
|
+
def self.build_from_hash(attributes)
|
207
|
+
new.build_from_hash(attributes)
|
208
|
+
end
|
209
|
+
|
210
|
+
# Builds the object from hash
|
211
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
212
|
+
# @return [Object] Returns the model itself
|
213
|
+
def build_from_hash(attributes)
|
214
|
+
return nil unless attributes.is_a?(Hash)
|
215
|
+
self.class.openapi_types.each_pair do |key, type|
|
216
|
+
if type =~ /\AArray<(.*)>/i
|
217
|
+
# check to ensure the input is an array given that the attribute
|
218
|
+
# is documented as an array but the input is not
|
219
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
220
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
221
|
+
end
|
222
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
223
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
224
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
225
|
+
end
|
226
|
+
|
227
|
+
self
|
228
|
+
end
|
229
|
+
|
230
|
+
# Deserializes the data based on type
|
231
|
+
# @param string type Data type
|
232
|
+
# @param string value Value to be deserialized
|
233
|
+
# @return [Object] Deserialized data
|
234
|
+
def _deserialize(type, value)
|
235
|
+
case type.to_sym
|
236
|
+
when :DateTime
|
237
|
+
DateTime.parse(value)
|
238
|
+
when :Date
|
239
|
+
Date.parse(value)
|
240
|
+
when :String
|
241
|
+
value.to_s
|
242
|
+
when :Integer
|
243
|
+
value.to_i
|
244
|
+
when :Float
|
245
|
+
value.to_f
|
246
|
+
when :Boolean
|
247
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
248
|
+
true
|
249
|
+
else
|
250
|
+
false
|
251
|
+
end
|
252
|
+
when :Object
|
253
|
+
# generic object (usually a Hash), return directly
|
254
|
+
value
|
255
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
256
|
+
inner_type = Regexp.last_match[:inner_type]
|
257
|
+
value.map { |v| _deserialize(inner_type, v) }
|
258
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
259
|
+
k_type = Regexp.last_match[:k_type]
|
260
|
+
v_type = Regexp.last_match[:v_type]
|
261
|
+
{}.tap do |hash|
|
262
|
+
value.each do |k, v|
|
263
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
else # model
|
267
|
+
Hubspot::Crm::Pipelines.const_get(type).build_from_hash(value)
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
# Returns the string representation of the object
|
272
|
+
# @return [String] String presentation of the object
|
273
|
+
def to_s
|
274
|
+
to_hash.to_s
|
275
|
+
end
|
276
|
+
|
277
|
+
# to_body is an alias to to_hash (backward compatibility)
|
278
|
+
# @return [Hash] Returns the object in the form of hash
|
279
|
+
def to_body
|
280
|
+
to_hash
|
281
|
+
end
|
282
|
+
|
283
|
+
# Returns the object in the form of hash
|
284
|
+
# @return [Hash] Returns the object in the form of hash
|
285
|
+
def to_hash
|
286
|
+
hash = {}
|
287
|
+
self.class.attribute_map.each_pair do |attr, param|
|
288
|
+
value = self.send(attr)
|
289
|
+
if value.nil?
|
290
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
291
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
292
|
+
end
|
293
|
+
|
294
|
+
hash[param] = _to_hash(value)
|
295
|
+
end
|
296
|
+
hash
|
297
|
+
end
|
298
|
+
|
299
|
+
# Outputs non-array value in the form of hash
|
300
|
+
# For object, use to_hash. Otherwise, just return the value
|
301
|
+
# @param [Object] value Any valid value
|
302
|
+
# @return [Hash] Returns the value in the form of hash
|
303
|
+
def _to_hash(value)
|
304
|
+
if value.is_a?(Array)
|
305
|
+
value.compact.map { |v| _to_hash(v) }
|
306
|
+
elsif value.is_a?(Hash)
|
307
|
+
{}.tap do |hash|
|
308
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
309
|
+
end
|
310
|
+
elsif value.respond_to? :to_hash
|
311
|
+
value.to_hash
|
312
|
+
else
|
313
|
+
value
|
314
|
+
end
|
315
|
+
end
|
316
|
+
end
|
317
|
+
end
|
318
|
+
end
|
319
|
+
end
|
@@ -0,0 +1,249 @@
|
|
1
|
+
=begin
|
2
|
+
#CRM Pipelines
|
3
|
+
|
4
|
+
#Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Pipelines
|
18
|
+
# An input used to create or replace a pipeline stage's definition.
|
19
|
+
class PipelineStageInput
|
20
|
+
# A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline.
|
21
|
+
attr_accessor :label
|
22
|
+
|
23
|
+
# The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label.
|
24
|
+
attr_accessor :display_order
|
25
|
+
|
26
|
+
# A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`.
|
27
|
+
attr_accessor :metadata
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'label' => :'label',
|
33
|
+
:'display_order' => :'displayOrder',
|
34
|
+
:'metadata' => :'metadata'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'label' => :'String',
|
42
|
+
:'display_order' => :'Integer',
|
43
|
+
:'metadata' => :'Hash<String, String>'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Pipelines::PipelineStageInput` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Pipelines::PipelineStageInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'label')
|
69
|
+
self.label = attributes[:'label']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'display_order')
|
73
|
+
self.display_order = attributes[:'display_order']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'metadata')
|
77
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
78
|
+
self.metadata = value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properties with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
invalid_properties = Array.new
|
87
|
+
if @label.nil?
|
88
|
+
invalid_properties.push('invalid value for "label", label cannot be nil.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if @display_order.nil?
|
92
|
+
invalid_properties.push('invalid value for "display_order", display_order cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @metadata.nil?
|
96
|
+
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
|
+
invalid_properties
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check to see if the all the properties in the model are valid
|
103
|
+
# @return true if the model is valid
|
104
|
+
def valid?
|
105
|
+
return false if @label.nil?
|
106
|
+
return false if @display_order.nil?
|
107
|
+
return false if @metadata.nil?
|
108
|
+
true
|
109
|
+
end
|
110
|
+
|
111
|
+
# Checks equality by comparing each attribute.
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def ==(o)
|
114
|
+
return true if self.equal?(o)
|
115
|
+
self.class == o.class &&
|
116
|
+
label == o.label &&
|
117
|
+
display_order == o.display_order &&
|
118
|
+
metadata == o.metadata
|
119
|
+
end
|
120
|
+
|
121
|
+
# @see the `==` method
|
122
|
+
# @param [Object] Object to be compared
|
123
|
+
def eql?(o)
|
124
|
+
self == o
|
125
|
+
end
|
126
|
+
|
127
|
+
# Calculates hash code according to all attributes.
|
128
|
+
# @return [Integer] Hash code
|
129
|
+
def hash
|
130
|
+
[label, display_order, metadata].hash
|
131
|
+
end
|
132
|
+
|
133
|
+
# Builds the object from hash
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
+
# @return [Object] Returns the model itself
|
136
|
+
def self.build_from_hash(attributes)
|
137
|
+
new.build_from_hash(attributes)
|
138
|
+
end
|
139
|
+
|
140
|
+
# Builds the object from hash
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
+
# @return [Object] Returns the model itself
|
143
|
+
def build_from_hash(attributes)
|
144
|
+
return nil unless attributes.is_a?(Hash)
|
145
|
+
self.class.openapi_types.each_pair do |key, type|
|
146
|
+
if type =~ /\AArray<(.*)>/i
|
147
|
+
# check to ensure the input is an array given that the attribute
|
148
|
+
# is documented as an array but the input is not
|
149
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
150
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
151
|
+
end
|
152
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
153
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
154
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
155
|
+
end
|
156
|
+
|
157
|
+
self
|
158
|
+
end
|
159
|
+
|
160
|
+
# Deserializes the data based on type
|
161
|
+
# @param string type Data type
|
162
|
+
# @param string value Value to be deserialized
|
163
|
+
# @return [Object] Deserialized data
|
164
|
+
def _deserialize(type, value)
|
165
|
+
case type.to_sym
|
166
|
+
when :DateTime
|
167
|
+
DateTime.parse(value)
|
168
|
+
when :Date
|
169
|
+
Date.parse(value)
|
170
|
+
when :String
|
171
|
+
value.to_s
|
172
|
+
when :Integer
|
173
|
+
value.to_i
|
174
|
+
when :Float
|
175
|
+
value.to_f
|
176
|
+
when :Boolean
|
177
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
178
|
+
true
|
179
|
+
else
|
180
|
+
false
|
181
|
+
end
|
182
|
+
when :Object
|
183
|
+
# generic object (usually a Hash), return directly
|
184
|
+
value
|
185
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
186
|
+
inner_type = Regexp.last_match[:inner_type]
|
187
|
+
value.map { |v| _deserialize(inner_type, v) }
|
188
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
189
|
+
k_type = Regexp.last_match[:k_type]
|
190
|
+
v_type = Regexp.last_match[:v_type]
|
191
|
+
{}.tap do |hash|
|
192
|
+
value.each do |k, v|
|
193
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
else # model
|
197
|
+
Hubspot::Crm::Pipelines.const_get(type).build_from_hash(value)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the string representation of the object
|
202
|
+
# @return [String] String presentation of the object
|
203
|
+
def to_s
|
204
|
+
to_hash.to_s
|
205
|
+
end
|
206
|
+
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_body
|
210
|
+
to_hash
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns the object in the form of hash
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
215
|
+
def to_hash
|
216
|
+
hash = {}
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
218
|
+
value = self.send(attr)
|
219
|
+
if value.nil?
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
|
+
end
|
223
|
+
|
224
|
+
hash[param] = _to_hash(value)
|
225
|
+
end
|
226
|
+
hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Outputs non-array value in the form of hash
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
231
|
+
# @param [Object] value Any valid value
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
233
|
+
def _to_hash(value)
|
234
|
+
if value.is_a?(Array)
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
236
|
+
elsif value.is_a?(Hash)
|
237
|
+
{}.tap do |hash|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
239
|
+
end
|
240
|
+
elsif value.respond_to? :to_hash
|
241
|
+
value.to_hash
|
242
|
+
else
|
243
|
+
value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|