hubspot-api-client 2.3.2 → 3.0.0.pre.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +2 -31
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +22 -22
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +8 -8
- data/lib/hubspot/codegen/crm/associations/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +2 -2
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/companies/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +4 -4
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/deals/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +4 -4
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +0 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +2 -2
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +279 -0
- data/lib/hubspot/codegen/crm/imports/api_client.rb +422 -0
- data/lib/hubspot/codegen/crm/imports/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/imports/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/{timeline/models/divide_numbers.rb → imports/models/action_response.rb} +54 -48
- data/lib/hubspot/codegen/crm/{timeline/models/now.rb → imports/models/collection_response_public_import_response.rb} +25 -79
- data/lib/hubspot/codegen/crm/{timeline/models/date.rb → imports/models/error.rb} +82 -70
- data/lib/hubspot/codegen/crm/{timeline/models/add_numbers.rb → imports/models/error_detail.rb} +51 -73
- data/lib/hubspot/codegen/crm/{timeline/models/model_or.rb → imports/models/next_page.rb} +24 -80
- data/lib/hubspot/codegen/crm/{timeline/models/month.rb → imports/models/paging.rb} +15 -85
- data/lib/hubspot/codegen/crm/{timeline/models/pipeline_probability.rb → imports/models/public_import_metadata.rb} +48 -76
- data/lib/hubspot/codegen/crm/{timeline/models/contains.rb → imports/models/public_import_response.rb} +93 -57
- data/lib/hubspot/codegen/crm/{timeline/models/xor.rb → imports/models/public_object_list_record.rb} +31 -80
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/owners/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +3 -3
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +3 -3
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +3 -3
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +2 -3
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +2 -3
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +2 -2
- data/lib/hubspot/codegen/crm/products/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/products/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/products/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +3 -3
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +19 -19
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/properties/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/option.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +2 -3
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +2 -2
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +26 -26
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +21 -21
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +3 -3
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +25 -25
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +20 -20
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +34 -34
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +24 -24
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +1 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +1 -2
- data/lib/hubspot/codegen/oauth/api_client.rb +3 -3
- data/lib/hubspot/codegen/oauth/api_error.rb +2 -2
- data/lib/hubspot/codegen/oauth/configuration.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +2 -2
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +2 -2
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +25 -21
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +59 -55
- data/lib/hubspot/codegen/webhooks/api_client.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +0 -1
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +0 -1
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +1 -1
- metadata +32 -211
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +0 -294
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/has_email_reply.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +0 -303
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +0 -303
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +0 -303
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +0 -294
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +0 -280
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +0 -280
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM Imports
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
@@ -14,17 +14,23 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
|
-
module
|
|
18
|
-
class
|
|
19
|
-
attr_accessor :
|
|
17
|
+
module Imports
|
|
18
|
+
class PublicImportResponse
|
|
19
|
+
attr_accessor :created_at
|
|
20
20
|
|
|
21
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :metadata
|
|
22
22
|
|
|
23
|
-
attr_accessor :
|
|
23
|
+
attr_accessor :updated_at
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
# The status of the import.
|
|
26
|
+
attr_accessor :state
|
|
26
27
|
|
|
27
|
-
attr_accessor :
|
|
28
|
+
attr_accessor :import_request_json
|
|
29
|
+
|
|
30
|
+
# Whether or not the import is a list of people disqualified from receiving emails.
|
|
31
|
+
attr_accessor :opt_out_import
|
|
32
|
+
|
|
33
|
+
attr_accessor :id
|
|
28
34
|
|
|
29
35
|
class EnumAttributeValidator
|
|
30
36
|
attr_reader :datatype
|
|
@@ -51,22 +57,26 @@ module Hubspot
|
|
|
51
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
58
|
def self.attribute_map
|
|
53
59
|
{
|
|
54
|
-
:'
|
|
55
|
-
:'
|
|
56
|
-
:'
|
|
57
|
-
:'
|
|
58
|
-
:'
|
|
60
|
+
:'created_at' => :'createdAt',
|
|
61
|
+
:'metadata' => :'metadata',
|
|
62
|
+
:'updated_at' => :'updatedAt',
|
|
63
|
+
:'state' => :'state',
|
|
64
|
+
:'import_request_json' => :'importRequestJson',
|
|
65
|
+
:'opt_out_import' => :'optOutImport',
|
|
66
|
+
:'id' => :'id'
|
|
59
67
|
}
|
|
60
68
|
end
|
|
61
69
|
|
|
62
70
|
# Attribute type mapping.
|
|
63
71
|
def self.openapi_types
|
|
64
72
|
{
|
|
65
|
-
:'
|
|
66
|
-
:'
|
|
67
|
-
:'
|
|
68
|
-
:'
|
|
69
|
-
:'
|
|
73
|
+
:'created_at' => :'DateTime',
|
|
74
|
+
:'metadata' => :'PublicImportMetadata',
|
|
75
|
+
:'updated_at' => :'DateTime',
|
|
76
|
+
:'state' => :'String',
|
|
77
|
+
:'import_request_json' => :'Object',
|
|
78
|
+
:'opt_out_import' => :'Boolean',
|
|
79
|
+
:'id' => :'String'
|
|
70
80
|
}
|
|
71
81
|
end
|
|
72
82
|
|
|
@@ -80,39 +90,43 @@ module Hubspot
|
|
|
80
90
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
81
91
|
def initialize(attributes = {})
|
|
82
92
|
if (!attributes.is_a?(Hash))
|
|
83
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::
|
|
93
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Imports::PublicImportResponse` initialize method"
|
|
84
94
|
end
|
|
85
95
|
|
|
86
96
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
87
97
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
98
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::
|
|
99
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Imports::PublicImportResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
90
100
|
end
|
|
91
101
|
h[k.to_sym] = v
|
|
92
102
|
}
|
|
93
103
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
96
|
-
else
|
|
97
|
-
self.operator = 'CONTAINS'
|
|
104
|
+
if attributes.key?(:'created_at')
|
|
105
|
+
self.created_at = attributes[:'created_at']
|
|
98
106
|
end
|
|
99
107
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
self.
|
|
108
|
+
if attributes.key?(:'metadata')
|
|
109
|
+
self.metadata = attributes[:'metadata']
|
|
102
110
|
end
|
|
103
111
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
112
|
+
if attributes.key?(:'updated_at')
|
|
113
|
+
self.updated_at = attributes[:'updated_at']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'state')
|
|
117
|
+
self.state = attributes[:'state']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'import_request_json')
|
|
121
|
+
self.import_request_json = attributes[:'import_request_json']
|
|
108
122
|
end
|
|
109
123
|
|
|
110
|
-
if attributes.key?(:'
|
|
111
|
-
self.
|
|
124
|
+
if attributes.key?(:'opt_out_import')
|
|
125
|
+
self.opt_out_import = attributes[:'opt_out_import']
|
|
112
126
|
end
|
|
113
127
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
128
|
+
if attributes.key?(:'id')
|
|
129
|
+
self.id = attributes[:'id']
|
|
116
130
|
end
|
|
117
131
|
end
|
|
118
132
|
|
|
@@ -120,12 +134,28 @@ module Hubspot
|
|
|
120
134
|
# @return Array for valid properties with the reasons
|
|
121
135
|
def list_invalid_properties
|
|
122
136
|
invalid_properties = Array.new
|
|
123
|
-
if @
|
|
124
|
-
invalid_properties.push('invalid value for "
|
|
137
|
+
if @created_at.nil?
|
|
138
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if @metadata.nil?
|
|
142
|
+
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if @updated_at.nil?
|
|
146
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if @state.nil?
|
|
150
|
+
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if @opt_out_import.nil?
|
|
154
|
+
invalid_properties.push('invalid value for "opt_out_import", opt_out_import cannot be nil.')
|
|
125
155
|
end
|
|
126
156
|
|
|
127
|
-
if @
|
|
128
|
-
invalid_properties.push('invalid value for "
|
|
157
|
+
if @id.nil?
|
|
158
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
129
159
|
end
|
|
130
160
|
|
|
131
161
|
invalid_properties
|
|
@@ -134,21 +164,25 @@ module Hubspot
|
|
|
134
164
|
# Check to see if the all the properties in the model are valid
|
|
135
165
|
# @return true if the model is valid
|
|
136
166
|
def valid?
|
|
137
|
-
return false if @
|
|
138
|
-
|
|
139
|
-
return false
|
|
140
|
-
return false if @
|
|
167
|
+
return false if @created_at.nil?
|
|
168
|
+
return false if @metadata.nil?
|
|
169
|
+
return false if @updated_at.nil?
|
|
170
|
+
return false if @state.nil?
|
|
171
|
+
state_validator = EnumAttributeValidator.new('String', ["STARTED", "PROCESSING", "DONE", "FAILED", "CANCELED"])
|
|
172
|
+
return false unless state_validator.valid?(@state)
|
|
173
|
+
return false if @opt_out_import.nil?
|
|
174
|
+
return false if @id.nil?
|
|
141
175
|
true
|
|
142
176
|
end
|
|
143
177
|
|
|
144
178
|
# Custom attribute writer method checking allowed values (enum).
|
|
145
|
-
# @param [Object]
|
|
146
|
-
def
|
|
147
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
148
|
-
unless validator.valid?(
|
|
149
|
-
fail ArgumentError, "invalid value for \"
|
|
179
|
+
# @param [Object] state Object to be assigned
|
|
180
|
+
def state=(state)
|
|
181
|
+
validator = EnumAttributeValidator.new('String', ["STARTED", "PROCESSING", "DONE", "FAILED", "CANCELED"])
|
|
182
|
+
unless validator.valid?(state)
|
|
183
|
+
fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}."
|
|
150
184
|
end
|
|
151
|
-
@
|
|
185
|
+
@state = state
|
|
152
186
|
end
|
|
153
187
|
|
|
154
188
|
# Checks equality by comparing each attribute.
|
|
@@ -156,11 +190,13 @@ module Hubspot
|
|
|
156
190
|
def ==(o)
|
|
157
191
|
return true if self.equal?(o)
|
|
158
192
|
self.class == o.class &&
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
193
|
+
created_at == o.created_at &&
|
|
194
|
+
metadata == o.metadata &&
|
|
195
|
+
updated_at == o.updated_at &&
|
|
196
|
+
state == o.state &&
|
|
197
|
+
import_request_json == o.import_request_json &&
|
|
198
|
+
opt_out_import == o.opt_out_import &&
|
|
199
|
+
id == o.id
|
|
164
200
|
end
|
|
165
201
|
|
|
166
202
|
# @see the `==` method
|
|
@@ -172,7 +208,7 @@ module Hubspot
|
|
|
172
208
|
# Calculates hash code according to all attributes.
|
|
173
209
|
# @return [Integer] Hash code
|
|
174
210
|
def hash
|
|
175
|
-
[
|
|
211
|
+
[created_at, metadata, updated_at, state, import_request_json, opt_out_import, id].hash
|
|
176
212
|
end
|
|
177
213
|
|
|
178
214
|
# Builds the object from hash
|
|
@@ -239,7 +275,7 @@ module Hubspot
|
|
|
239
275
|
end
|
|
240
276
|
end
|
|
241
277
|
else # model
|
|
242
|
-
Hubspot::Crm::
|
|
278
|
+
Hubspot::Crm::Imports.const_get(type).build_from_hash(value)
|
|
243
279
|
end
|
|
244
280
|
end
|
|
245
281
|
|
|
@@ -291,4 +327,4 @@ module Hubspot
|
|
|
291
327
|
end
|
|
292
328
|
end
|
|
293
329
|
end
|
|
294
|
-
end
|
|
330
|
+
end
|
data/lib/hubspot/codegen/crm/{timeline/models/xor.rb → imports/models/public_object_list_record.rb}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM Imports
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
@@ -14,55 +14,27 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Hubspot
|
|
16
16
|
module Crm
|
|
17
|
-
module
|
|
18
|
-
class
|
|
19
|
-
|
|
17
|
+
module Imports
|
|
18
|
+
class PublicObjectListRecord
|
|
19
|
+
# The ID of the list containing the imported objects.
|
|
20
|
+
attr_accessor :list_id
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
attr_accessor :inputs
|
|
24
|
-
|
|
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
|
|
22
|
+
# The type of object contained in the list.
|
|
23
|
+
attr_accessor :object_type
|
|
48
24
|
|
|
49
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
26
|
def self.attribute_map
|
|
51
27
|
{
|
|
52
|
-
:'
|
|
53
|
-
:'
|
|
54
|
-
:'inputs' => :'inputs',
|
|
55
|
-
:'property_name' => :'propertyName'
|
|
28
|
+
:'list_id' => :'listId',
|
|
29
|
+
:'object_type' => :'objectType'
|
|
56
30
|
}
|
|
57
31
|
end
|
|
58
32
|
|
|
59
33
|
# Attribute type mapping.
|
|
60
34
|
def self.openapi_types
|
|
61
35
|
{
|
|
62
|
-
:'
|
|
63
|
-
:'
|
|
64
|
-
:'inputs' => :'Array<AnyOfConstantBooleanConstantNumberConstantStringBooleanPropertyVariableStringPropertyVariableNumberPropertyVariableAddNumbersSubtractNumbersMultiplyNumbersDivideNumbersRoundDownNumbersRoundUpNumbersUpperCaseLowerCaseConcatStringsContainsBeginsWithNumberToStringParseNumberFetchExchangeRatePipelineProbabilityMaxNumbersMinNumbersLessThanLessThanOrEqualMoreThanMoreThanOrEqualNumberEqualsStringEqualsNotDateMonthYearNowTimeBetweenPeriodToMonthsAndOrXorIfStringIfNumberIfBooleanIsPresentHasEmailReplyHasPlainTextEmailReplyExtractMostRecentEmailReplyHtmlExtractMostRecentEmailReplyTextExtractMostRecentPlainTextEmailReply>',
|
|
65
|
-
:'property_name' => :'String'
|
|
36
|
+
:'list_id' => :'String',
|
|
37
|
+
:'object_type' => :'String'
|
|
66
38
|
}
|
|
67
39
|
end
|
|
68
40
|
|
|
@@ -76,35 +48,23 @@ module Hubspot
|
|
|
76
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
77
49
|
def initialize(attributes = {})
|
|
78
50
|
if (!attributes.is_a?(Hash))
|
|
79
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::
|
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Imports::PublicObjectListRecord` initialize method"
|
|
80
52
|
end
|
|
81
53
|
|
|
82
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
83
55
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
84
56
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
85
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::
|
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Imports::PublicObjectListRecord`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
86
58
|
end
|
|
87
59
|
h[k.to_sym] = v
|
|
88
60
|
}
|
|
89
61
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
92
|
-
else
|
|
93
|
-
self.operator = 'XOR'
|
|
62
|
+
if attributes.key?(:'list_id')
|
|
63
|
+
self.list_id = attributes[:'list_id']
|
|
94
64
|
end
|
|
95
65
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
if attributes.key?(:'inputs')
|
|
101
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
102
|
-
self.inputs = value
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
if attributes.key?(:'property_name')
|
|
107
|
-
self.property_name = attributes[:'property_name']
|
|
66
|
+
if attributes.key?(:'object_type')
|
|
67
|
+
self.object_type = attributes[:'object_type']
|
|
108
68
|
end
|
|
109
69
|
end
|
|
110
70
|
|
|
@@ -112,8 +72,12 @@ module Hubspot
|
|
|
112
72
|
# @return Array for valid properties with the reasons
|
|
113
73
|
def list_invalid_properties
|
|
114
74
|
invalid_properties = Array.new
|
|
115
|
-
if @
|
|
116
|
-
invalid_properties.push('invalid value for "
|
|
75
|
+
if @list_id.nil?
|
|
76
|
+
invalid_properties.push('invalid value for "list_id", list_id cannot be nil.')
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if @object_type.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "object_type", object_type cannot be nil.')
|
|
117
81
|
end
|
|
118
82
|
|
|
119
83
|
invalid_properties
|
|
@@ -122,31 +86,18 @@ module Hubspot
|
|
|
122
86
|
# Check to see if the all the properties in the model are valid
|
|
123
87
|
# @return true if the model is valid
|
|
124
88
|
def valid?
|
|
125
|
-
return false if @
|
|
126
|
-
|
|
127
|
-
return false unless operator_validator.valid?(@operator)
|
|
89
|
+
return false if @list_id.nil?
|
|
90
|
+
return false if @object_type.nil?
|
|
128
91
|
true
|
|
129
92
|
end
|
|
130
93
|
|
|
131
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
132
|
-
# @param [Object] operator Object to be assigned
|
|
133
|
-
def operator=(operator)
|
|
134
|
-
validator = EnumAttributeValidator.new('String', ["XOR"])
|
|
135
|
-
unless validator.valid?(operator)
|
|
136
|
-
fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
|
|
137
|
-
end
|
|
138
|
-
@operator = operator
|
|
139
|
-
end
|
|
140
|
-
|
|
141
94
|
# Checks equality by comparing each attribute.
|
|
142
95
|
# @param [Object] Object to be compared
|
|
143
96
|
def ==(o)
|
|
144
97
|
return true if self.equal?(o)
|
|
145
98
|
self.class == o.class &&
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
inputs == o.inputs &&
|
|
149
|
-
property_name == o.property_name
|
|
99
|
+
list_id == o.list_id &&
|
|
100
|
+
object_type == o.object_type
|
|
150
101
|
end
|
|
151
102
|
|
|
152
103
|
# @see the `==` method
|
|
@@ -158,7 +109,7 @@ module Hubspot
|
|
|
158
109
|
# Calculates hash code according to all attributes.
|
|
159
110
|
# @return [Integer] Hash code
|
|
160
111
|
def hash
|
|
161
|
-
[
|
|
112
|
+
[list_id, object_type].hash
|
|
162
113
|
end
|
|
163
114
|
|
|
164
115
|
# Builds the object from hash
|
|
@@ -225,7 +176,7 @@ module Hubspot
|
|
|
225
176
|
end
|
|
226
177
|
end
|
|
227
178
|
else # model
|
|
228
|
-
Hubspot::Crm::
|
|
179
|
+
Hubspot::Crm::Imports.const_get(type).build_from_hash(value)
|
|
229
180
|
end
|
|
230
181
|
end
|
|
231
182
|
|
|
@@ -277,4 +228,4 @@ module Hubspot
|
|
|
277
228
|
end
|
|
278
229
|
end
|
|
279
230
|
end
|
|
280
|
-
end
|
|
231
|
+
end
|
|
@@ -28,8 +28,8 @@ module Hubspot
|
|
|
28
28
|
# @param association_type [String]
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
30
|
# @return [nil]
|
|
31
|
-
def
|
|
32
|
-
|
|
31
|
+
def archive(line_item_id, to_object_type, to_object_id, association_type, opts = {})
|
|
32
|
+
archive_with_http_info(line_item_id, to_object_type, to_object_id, association_type, opts)
|
|
33
33
|
nil
|
|
34
34
|
end
|
|
35
35
|
|
|
@@ -40,25 +40,25 @@ module Hubspot
|
|
|
40
40
|
# @param association_type [String]
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
42
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
43
|
-
def
|
|
43
|
+
def archive_with_http_info(line_item_id, to_object_type, to_object_id, association_type, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API: AssociationsApi.
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: AssociationsApi.archive ...'
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'line_item_id' is set
|
|
48
48
|
if @api_client.config.client_side_validation && line_item_id.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling AssociationsApi.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling AssociationsApi.archive"
|
|
50
50
|
end
|
|
51
51
|
# verify the required parameter 'to_object_type' is set
|
|
52
52
|
if @api_client.config.client_side_validation && to_object_type.nil?
|
|
53
|
-
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.archive"
|
|
54
54
|
end
|
|
55
55
|
# verify the required parameter 'to_object_id' is set
|
|
56
56
|
if @api_client.config.client_side_validation && to_object_id.nil?
|
|
57
|
-
fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.archive"
|
|
58
58
|
end
|
|
59
59
|
# verify the required parameter 'association_type' is set
|
|
60
60
|
if @api_client.config.client_side_validation && association_type.nil?
|
|
61
|
-
fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.
|
|
61
|
+
fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.archive"
|
|
62
62
|
end
|
|
63
63
|
# resource path
|
|
64
64
|
local_var_path = '/crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s))
|
|
@@ -94,7 +94,7 @@ module Hubspot
|
|
|
94
94
|
|
|
95
95
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
96
96
|
if @api_client.config.debugging
|
|
97
|
-
@api_client.config.logger.debug "API called: AssociationsApi#
|
|
97
|
+
@api_client.config.logger.debug "API called: AssociationsApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
98
98
|
end
|
|
99
99
|
return data, status_code, headers
|
|
100
100
|
end
|
|
@@ -106,8 +106,8 @@ module Hubspot
|
|
|
106
106
|
# @param association_type [String]
|
|
107
107
|
# @param [Hash] opts the optional parameters
|
|
108
108
|
# @return [SimplePublicObject]
|
|
109
|
-
def
|
|
110
|
-
data, _status_code, _headers =
|
|
109
|
+
def create(line_item_id, to_object_type, to_object_id, association_type, opts = {})
|
|
110
|
+
data, _status_code, _headers = create_with_http_info(line_item_id, to_object_type, to_object_id, association_type, opts)
|
|
111
111
|
data
|
|
112
112
|
end
|
|
113
113
|
|
|
@@ -118,25 +118,25 @@ module Hubspot
|
|
|
118
118
|
# @param association_type [String]
|
|
119
119
|
# @param [Hash] opts the optional parameters
|
|
120
120
|
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
|
121
|
-
def
|
|
121
|
+
def create_with_http_info(line_item_id, to_object_type, to_object_id, association_type, opts = {})
|
|
122
122
|
if @api_client.config.debugging
|
|
123
|
-
@api_client.config.logger.debug 'Calling API: AssociationsApi.
|
|
123
|
+
@api_client.config.logger.debug 'Calling API: AssociationsApi.create ...'
|
|
124
124
|
end
|
|
125
125
|
# verify the required parameter 'line_item_id' is set
|
|
126
126
|
if @api_client.config.client_side_validation && line_item_id.nil?
|
|
127
|
-
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling AssociationsApi.
|
|
127
|
+
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling AssociationsApi.create"
|
|
128
128
|
end
|
|
129
129
|
# verify the required parameter 'to_object_type' is set
|
|
130
130
|
if @api_client.config.client_side_validation && to_object_type.nil?
|
|
131
|
-
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.
|
|
131
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.create"
|
|
132
132
|
end
|
|
133
133
|
# verify the required parameter 'to_object_id' is set
|
|
134
134
|
if @api_client.config.client_side_validation && to_object_id.nil?
|
|
135
|
-
fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.
|
|
135
|
+
fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.create"
|
|
136
136
|
end
|
|
137
137
|
# verify the required parameter 'association_type' is set
|
|
138
138
|
if @api_client.config.client_side_validation && association_type.nil?
|
|
139
|
-
fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.
|
|
139
|
+
fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.create"
|
|
140
140
|
end
|
|
141
141
|
# resource path
|
|
142
142
|
local_var_path = '/crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s))
|
|
@@ -172,7 +172,7 @@ module Hubspot
|
|
|
172
172
|
|
|
173
173
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
174
174
|
if @api_client.config.debugging
|
|
175
|
-
@api_client.config.logger.debug "API called: AssociationsApi#
|
|
175
|
+
@api_client.config.logger.debug "API called: AssociationsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
176
176
|
end
|
|
177
177
|
return data, status_code, headers
|
|
178
178
|
end
|
|
@@ -182,8 +182,8 @@ module Hubspot
|
|
|
182
182
|
# @param to_object_type [String]
|
|
183
183
|
# @param [Hash] opts the optional parameters
|
|
184
184
|
# @return [CollectionResponseAssociatedId]
|
|
185
|
-
def
|
|
186
|
-
data, _status_code, _headers =
|
|
185
|
+
def get_all(line_item_id, to_object_type, opts = {})
|
|
186
|
+
data, _status_code, _headers = get_all_with_http_info(line_item_id, to_object_type, opts)
|
|
187
187
|
data
|
|
188
188
|
end
|
|
189
189
|
|
|
@@ -192,17 +192,17 @@ module Hubspot
|
|
|
192
192
|
# @param to_object_type [String]
|
|
193
193
|
# @param [Hash] opts the optional parameters
|
|
194
194
|
# @return [Array<(CollectionResponseAssociatedId, Integer, Hash)>] CollectionResponseAssociatedId data, response status code and response headers
|
|
195
|
-
def
|
|
195
|
+
def get_all_with_http_info(line_item_id, to_object_type, opts = {})
|
|
196
196
|
if @api_client.config.debugging
|
|
197
|
-
@api_client.config.logger.debug 'Calling API: AssociationsApi.
|
|
197
|
+
@api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...'
|
|
198
198
|
end
|
|
199
199
|
# verify the required parameter 'line_item_id' is set
|
|
200
200
|
if @api_client.config.client_side_validation && line_item_id.nil?
|
|
201
|
-
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling AssociationsApi.
|
|
201
|
+
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling AssociationsApi.get_all"
|
|
202
202
|
end
|
|
203
203
|
# verify the required parameter 'to_object_type' is set
|
|
204
204
|
if @api_client.config.client_side_validation && to_object_type.nil?
|
|
205
|
-
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.
|
|
205
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.get_all"
|
|
206
206
|
end
|
|
207
207
|
# resource path
|
|
208
208
|
local_var_path = '/crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
|
|
@@ -238,11 +238,11 @@ module Hubspot
|
|
|
238
238
|
|
|
239
239
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
240
240
|
if @api_client.config.debugging
|
|
241
|
-
@api_client.config.logger.debug "API called: AssociationsApi#
|
|
241
|
+
@api_client.config.logger.debug "API called: AssociationsApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
242
242
|
end
|
|
243
243
|
return data, status_code, headers
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
246
|
end
|
|
247
247
|
end
|
|
248
|
-
end
|
|
248
|
+
end
|