hubspot-api-client 5.0.0 → 7.2.0
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 +21 -0
- data/README.md +41 -0
- data/lib/hubspot-api-client.rb +63 -0
- data/lib/hubspot/codegen/cms/audit-logs/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +278 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +405 -0
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +309 -0
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +96 -0
- data/lib/hubspot/codegen/crm/objects/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/objects/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/objects/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +313 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +0 -2
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/products/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +30 -18
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +20 -12
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +20 -12
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +18 -18
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +29 -23
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +14 -4
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +14 -4
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +1 -157
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +2 -190
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +11 -187
- data/lib/hubspot/codegen/crm/quotes/api/default_api.rb +426 -0
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +11 -7
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +478 -0
- data/lib/hubspot/codegen/crm/schemas/api/default_api.rb +84 -0
- data/lib/hubspot/codegen/crm/schemas/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/schemas/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/schemas/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +350 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +315 -0
- data/lib/hubspot/codegen/crm/schemas/models/collection_response_object_schema.rb +226 -0
- data/lib/hubspot/codegen/crm/schemas/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/schemas/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/schemas/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +389 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_schema_egg.rb +325 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +364 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_labels.rb +221 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_patch.rb +265 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +356 -0
- data/lib/hubspot/codegen/crm/schemas/models/option.rb +266 -0
- data/lib/hubspot/codegen/crm/schemas/models/option_input.rb +271 -0
- data/lib/hubspot/codegen/crm/schemas/models/paging.rb +219 -0
- data/lib/hubspot/codegen/crm/schemas/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/schemas/models/property.rb +465 -0
- data/lib/hubspot/codegen/crm/schemas/models/property_modification_metadata.rb +252 -0
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/oauth/configuration.rb +0 -14
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +16 -12
- data/lib/hubspot/codegen/webhooks/configuration.rb +0 -7
- data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response.rb +1 -21
- data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response_with_errors.rb +331 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +28 -28
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +16 -13
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +7 -7
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +45 -39
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/companies-app/Gemfile.lock +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/get_by_id.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/create.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/search.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb +1 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/contacts-app/Gemfile.lock +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +1 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb +1 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/update.rb +1 -2
- 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/oauth-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +1 -2
- 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/search-result-paging-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb +1 -2
- data/sample-apps/trello-integration-app/.env.template +7 -0
- data/sample-apps/trello-integration-app/.gitignore +35 -0
- data/sample-apps/trello-integration-app/.rspec +1 -0
- data/sample-apps/trello-integration-app/.ruby-version +1 -0
- data/sample-apps/trello-integration-app/Dockerfile +22 -0
- data/sample-apps/trello-integration-app/Gemfile +38 -0
- data/sample-apps/trello-integration-app/Gemfile.lock +314 -0
- data/sample-apps/trello-integration-app/README.md +31 -0
- data/sample-apps/trello-integration-app/Rakefile +6 -0
- data/sample-apps/trello-integration-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/trello-integration-app/app/assets/images/.keep +0 -0
- data/sample-apps/trello-integration-app/app/assets/images/right-arrow.png +0 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/application.js +22 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/jquery-spinner.min.js +11071 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/lodash.js +15972 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/mappings.js +78 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/typeahead.bundle.min.js +8 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/application.css +46 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/authorization.scss +34 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/jquery-spinner.css +33 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/mappings.scss +55 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/navigation.scss +43 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/search_frame.scss +81 -0
- data/sample-apps/trello-integration-app/app/controllers/application_controller.rb +38 -0
- data/sample-apps/trello-integration-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/trello-integration-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/trello-integration-app/app/controllers/home_controller.rb +20 -0
- data/sample-apps/trello-integration-app/app/controllers/mappings_controller.rb +64 -0
- data/sample-apps/trello-integration-app/app/controllers/oauth/authorization_controller.rb +28 -0
- data/sample-apps/trello-integration-app/app/controllers/trello/cards_controller.rb +94 -0
- data/sample-apps/trello-integration-app/app/controllers/trello/webhooks_controller.rb +30 -0
- data/sample-apps/trello-integration-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/trello-integration-app/app/helpers/oauth/authorization_helper.rb +11 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/authorize.rb +17 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/get_authorization_uri.rb +35 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/tokens/base.rb +21 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/tokens/generate.rb +28 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/tokens/refresh.rb +35 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/deals/get_by_id.rb +15 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/deals/update.rb +17 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/extensions_cards/create.rb +82 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/pipelines/get_all.rb +11 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/pipelines/get_by_id.rb +15 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/authorization/authorize.rb +20 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/boards/get_all.rb +11 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/boards/get_by_id.rb +19 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/cards/format.rb +78 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/cards/get_by_id.rb +15 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/cards/search.rb +15 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/webhooks/create.rb +31 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/webhooks/delete.rb +17 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/webhooks/update.rb +19 -0
- data/sample-apps/trello-integration-app/app/models/application_record.rb +3 -0
- data/sample-apps/trello-integration-app/app/models/concerns/.keep +0 -0
- data/sample-apps/trello-integration-app/app/models/deal_association.rb +2 -0
- data/sample-apps/trello-integration-app/app/models/extension_card.rb +4 -0
- data/sample-apps/trello-integration-app/app/models/hubspot_token.rb +19 -0
- data/sample-apps/trello-integration-app/app/models/mapping.rb +2 -0
- data/sample-apps/trello-integration-app/app/models/trello_token.rb +19 -0
- data/sample-apps/trello-integration-app/app/models/webhook.rb +2 -0
- data/sample-apps/trello-integration-app/app/views/home/index.html.erb +23 -0
- data/sample-apps/trello-integration-app/app/views/home/success.html.erb +11 -0
- data/sample-apps/trello-integration-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/trello-integration-app/app/views/mappings/_mapping.html.erb +13 -0
- data/sample-apps/trello-integration-app/app/views/mappings/index.html.erb +44 -0
- data/sample-apps/trello-integration-app/app/views/oauth/authorization/login.html.erb +42 -0
- data/sample-apps/trello-integration-app/app/views/shared/_header.html.erb +15 -0
- data/sample-apps/trello-integration-app/app/views/trello/cards/search_frame.html.erb +69 -0
- data/sample-apps/trello-integration-app/app/views/trello/cards/search_frame_success.html.erb +7 -0
- data/sample-apps/trello-integration-app/bin/bundle +3 -0
- data/sample-apps/trello-integration-app/bin/rails +9 -0
- data/sample-apps/trello-integration-app/bin/rake +9 -0
- data/sample-apps/trello-integration-app/bin/setup +36 -0
- data/sample-apps/trello-integration-app/bin/spring +17 -0
- data/sample-apps/trello-integration-app/bin/update +31 -0
- data/sample-apps/trello-integration-app/bin/yarn +11 -0
- data/sample-apps/trello-integration-app/config.ru +5 -0
- data/sample-apps/trello-integration-app/config/application.rb +20 -0
- data/sample-apps/trello-integration-app/config/boot.rb +3 -0
- data/sample-apps/trello-integration-app/config/cable.yml +10 -0
- data/sample-apps/trello-integration-app/config/database.yml +16 -0
- data/sample-apps/trello-integration-app/config/environment.rb +5 -0
- data/sample-apps/trello-integration-app/config/environments/development.rb +61 -0
- data/sample-apps/trello-integration-app/config/environments/production.rb +94 -0
- data/sample-apps/trello-integration-app/config/environments/test.rb +46 -0
- data/sample-apps/trello-integration-app/config/initializers/assets.rb +14 -0
- data/sample-apps/trello-integration-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/trello-integration-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/trello-integration-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/trello-integration-app/config/initializers/omniauth.rb +11 -0
- data/sample-apps/trello-integration-app/config/initializers/trello.rb +1 -0
- data/sample-apps/trello-integration-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/trello-integration-app/config/locales/en.yml +33 -0
- data/sample-apps/trello-integration-app/config/puma.rb +34 -0
- data/sample-apps/trello-integration-app/config/routes.rb +29 -0
- data/sample-apps/trello-integration-app/config/spring.rb +6 -0
- data/sample-apps/trello-integration-app/config/storage.yml +34 -0
- data/sample-apps/trello-integration-app/db/migrate/20200624132327_create_hubspot_tokens.rb +10 -0
- data/sample-apps/trello-integration-app/db/migrate/20200624132336_create_trello_tokens.rb +8 -0
- data/sample-apps/trello-integration-app/db/migrate/20200624132337_create_deal_associations.rb +8 -0
- data/sample-apps/trello-integration-app/db/migrate/20200702130530_create_extension_cards.rb +8 -0
- data/sample-apps/trello-integration-app/db/migrate/20200715143913_create_mappings.rb +12 -0
- data/sample-apps/trello-integration-app/db/migrate/20200727083656_create_webhooks.rb +9 -0
- data/sample-apps/trello-integration-app/db/schema.rb +52 -0
- data/sample-apps/trello-integration-app/db/seeds.rb +7 -0
- data/sample-apps/trello-integration-app/docker-compose.yml +41 -0
- data/sample-apps/trello-integration-app/docker-entrypoint.sh +8 -0
- data/sample-apps/trello-integration-app/lib/assets/.keep +0 -0
- data/sample-apps/trello-integration-app/lib/middlewares/trello_payload_params_handler.rb +18 -0
- data/sample-apps/trello-integration-app/lib/tasks/.keep +0 -0
- data/sample-apps/trello-integration-app/log/.keep +0 -0
- data/sample-apps/trello-integration-app/package.json +5 -0
- data/sample-apps/trello-integration-app/public/404.html +67 -0
- data/sample-apps/trello-integration-app/public/422.html +67 -0
- data/sample-apps/trello-integration-app/public/500.html +66 -0
- data/sample-apps/trello-integration-app/public/favicon.ico +0 -0
- data/sample-apps/trello-integration-app/public/robots.txt +1 -0
- data/sample-apps/trello-integration-app/tmp/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +1 -4
- metadata +329 -2
|
@@ -46,6 +46,9 @@ module Hubspot
|
|
|
46
46
|
# If true, the property won't be visible and can't be used in HubSpot.
|
|
47
47
|
attr_accessor :hidden
|
|
48
48
|
|
|
49
|
+
# Whether or not the property can be used in a HubSpot form.
|
|
50
|
+
attr_accessor :form_field
|
|
51
|
+
|
|
49
52
|
class EnumAttributeValidator
|
|
50
53
|
attr_reader :datatype
|
|
51
54
|
attr_reader :allowable_values
|
|
@@ -80,7 +83,8 @@ module Hubspot
|
|
|
80
83
|
:'options' => :'options',
|
|
81
84
|
:'display_order' => :'displayOrder',
|
|
82
85
|
:'has_unique_value' => :'hasUniqueValue',
|
|
83
|
-
:'hidden' => :'hidden'
|
|
86
|
+
:'hidden' => :'hidden',
|
|
87
|
+
:'form_field' => :'formField'
|
|
84
88
|
}
|
|
85
89
|
end
|
|
86
90
|
|
|
@@ -96,7 +100,8 @@ module Hubspot
|
|
|
96
100
|
:'options' => :'Array<OptionInput>',
|
|
97
101
|
:'display_order' => :'Integer',
|
|
98
102
|
:'has_unique_value' => :'Boolean',
|
|
99
|
-
:'hidden' => :'Boolean'
|
|
103
|
+
:'hidden' => :'Boolean',
|
|
104
|
+
:'form_field' => :'Boolean'
|
|
100
105
|
}
|
|
101
106
|
end
|
|
102
107
|
|
|
@@ -162,6 +167,10 @@ module Hubspot
|
|
|
162
167
|
if attributes.key?(:'hidden')
|
|
163
168
|
self.hidden = attributes[:'hidden']
|
|
164
169
|
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'form_field')
|
|
172
|
+
self.form_field = attributes[:'form_field']
|
|
173
|
+
end
|
|
165
174
|
end
|
|
166
175
|
|
|
167
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -240,7 +249,8 @@ module Hubspot
|
|
|
240
249
|
options == o.options &&
|
|
241
250
|
display_order == o.display_order &&
|
|
242
251
|
has_unique_value == o.has_unique_value &&
|
|
243
|
-
hidden == o.hidden
|
|
252
|
+
hidden == o.hidden &&
|
|
253
|
+
form_field == o.form_field
|
|
244
254
|
end
|
|
245
255
|
|
|
246
256
|
# @see the `==` method
|
|
@@ -252,7 +262,7 @@ module Hubspot
|
|
|
252
262
|
# Calculates hash code according to all attributes.
|
|
253
263
|
# @return [Integer] Hash code
|
|
254
264
|
def hash
|
|
255
|
-
[name, label, type, field_type, group_name, description, options, display_order, has_unique_value, hidden].hash
|
|
265
|
+
[name, label, type, field_type, group_name, description, options, display_order, has_unique_value, hidden, form_field].hash
|
|
256
266
|
end
|
|
257
267
|
|
|
258
268
|
# Builds the object from hash
|
|
@@ -40,6 +40,9 @@ module Hubspot
|
|
|
40
40
|
# If true, the property won't be visible and can't be used in HubSpot.
|
|
41
41
|
attr_accessor :hidden
|
|
42
42
|
|
|
43
|
+
# Whether or not the property can be used in a HubSpot form.
|
|
44
|
+
attr_accessor :form_field
|
|
45
|
+
|
|
43
46
|
class EnumAttributeValidator
|
|
44
47
|
attr_reader :datatype
|
|
45
48
|
attr_reader :allowable_values
|
|
@@ -72,7 +75,8 @@ module Hubspot
|
|
|
72
75
|
:'description' => :'description',
|
|
73
76
|
:'options' => :'options',
|
|
74
77
|
:'display_order' => :'displayOrder',
|
|
75
|
-
:'hidden' => :'hidden'
|
|
78
|
+
:'hidden' => :'hidden',
|
|
79
|
+
:'form_field' => :'formField'
|
|
76
80
|
}
|
|
77
81
|
end
|
|
78
82
|
|
|
@@ -86,7 +90,8 @@ module Hubspot
|
|
|
86
90
|
:'description' => :'String',
|
|
87
91
|
:'options' => :'Array<OptionInput>',
|
|
88
92
|
:'display_order' => :'Integer',
|
|
89
|
-
:'hidden' => :'Boolean'
|
|
93
|
+
:'hidden' => :'Boolean',
|
|
94
|
+
:'form_field' => :'Boolean'
|
|
90
95
|
}
|
|
91
96
|
end
|
|
92
97
|
|
|
@@ -144,6 +149,10 @@ module Hubspot
|
|
|
144
149
|
if attributes.key?(:'hidden')
|
|
145
150
|
self.hidden = attributes[:'hidden']
|
|
146
151
|
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'form_field')
|
|
154
|
+
self.form_field = attributes[:'form_field']
|
|
155
|
+
end
|
|
147
156
|
end
|
|
148
157
|
|
|
149
158
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -195,7 +204,8 @@ module Hubspot
|
|
|
195
204
|
description == o.description &&
|
|
196
205
|
options == o.options &&
|
|
197
206
|
display_order == o.display_order &&
|
|
198
|
-
hidden == o.hidden
|
|
207
|
+
hidden == o.hidden &&
|
|
208
|
+
form_field == o.form_field
|
|
199
209
|
end
|
|
200
210
|
|
|
201
211
|
# @see the `==` method
|
|
@@ -207,7 +217,7 @@ module Hubspot
|
|
|
207
217
|
# Calculates hash code according to all attributes.
|
|
208
218
|
# @return [Integer] Hash code
|
|
209
219
|
def hash
|
|
210
|
-
[label, type, field_type, group_name, description, options, display_order, hidden].hash
|
|
220
|
+
[label, type, field_type, group_name, description, options, display_order, hidden, form_field].hash
|
|
211
221
|
end
|
|
212
222
|
|
|
213
223
|
# Builds the object from hash
|
|
@@ -21,162 +21,6 @@ module Hubspot
|
|
|
21
21
|
def initialize(api_client = ApiClient.default)
|
|
22
22
|
@api_client = api_client
|
|
23
23
|
end
|
|
24
|
-
# Remove an association between two quotes
|
|
25
|
-
# @param quote_id [String]
|
|
26
|
-
# @param to_object_type [String]
|
|
27
|
-
# @param to_object_id [String]
|
|
28
|
-
# @param association_type [String]
|
|
29
|
-
# @param [Hash] opts the optional parameters
|
|
30
|
-
# @return [nil]
|
|
31
|
-
def archive(quote_id, to_object_type, to_object_id, association_type, opts = {})
|
|
32
|
-
archive_with_http_info(quote_id, to_object_type, to_object_id, association_type, opts)
|
|
33
|
-
nil
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Remove an association between two quotes
|
|
37
|
-
# @param quote_id [String]
|
|
38
|
-
# @param to_object_type [String]
|
|
39
|
-
# @param to_object_id [String]
|
|
40
|
-
# @param association_type [String]
|
|
41
|
-
# @param [Hash] opts the optional parameters
|
|
42
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
43
|
-
def archive_with_http_info(quote_id, to_object_type, to_object_id, association_type, opts = {})
|
|
44
|
-
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API: AssociationsApi.archive ...'
|
|
46
|
-
end
|
|
47
|
-
# verify the required parameter 'quote_id' is set
|
|
48
|
-
if @api_client.config.client_side_validation && quote_id.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'quote_id' when calling AssociationsApi.archive"
|
|
50
|
-
end
|
|
51
|
-
# verify the required parameter 'to_object_type' is set
|
|
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.archive"
|
|
54
|
-
end
|
|
55
|
-
# verify the required parameter 'to_object_id' is set
|
|
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.archive"
|
|
58
|
-
end
|
|
59
|
-
# verify the required parameter 'association_type' is set
|
|
60
|
-
if @api_client.config.client_side_validation && association_type.nil?
|
|
61
|
-
fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.archive"
|
|
62
|
-
end
|
|
63
|
-
# resource path
|
|
64
|
-
local_var_path = '/crm/v3/objects/quotes/{quoteId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'quoteId' + '}', CGI.escape(quote_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))
|
|
65
|
-
|
|
66
|
-
# query parameters
|
|
67
|
-
query_params = opts[:query_params] || {}
|
|
68
|
-
|
|
69
|
-
# header parameters
|
|
70
|
-
header_params = opts[:header_params] || {}
|
|
71
|
-
# HTTP header 'Accept' (if needed)
|
|
72
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
73
|
-
|
|
74
|
-
# form parameters
|
|
75
|
-
form_params = opts[:form_params] || {}
|
|
76
|
-
|
|
77
|
-
# http body (model)
|
|
78
|
-
post_body = opts[:body]
|
|
79
|
-
|
|
80
|
-
# return_type
|
|
81
|
-
return_type = opts[:return_type]
|
|
82
|
-
|
|
83
|
-
# auth_names
|
|
84
|
-
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
|
85
|
-
|
|
86
|
-
new_options = opts.merge(
|
|
87
|
-
:header_params => header_params,
|
|
88
|
-
:query_params => query_params,
|
|
89
|
-
:form_params => form_params,
|
|
90
|
-
:body => post_body,
|
|
91
|
-
:auth_names => auth_names,
|
|
92
|
-
:return_type => return_type
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
96
|
-
if @api_client.config.debugging
|
|
97
|
-
@api_client.config.logger.debug "API called: AssociationsApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
98
|
-
end
|
|
99
|
-
return data, status_code, headers
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
# Associate two quotes
|
|
103
|
-
# @param quote_id [String]
|
|
104
|
-
# @param to_object_type [String]
|
|
105
|
-
# @param to_object_id [String]
|
|
106
|
-
# @param association_type [String]
|
|
107
|
-
# @param [Hash] opts the optional parameters
|
|
108
|
-
# @return [SimplePublicObject]
|
|
109
|
-
def create(quote_id, to_object_type, to_object_id, association_type, opts = {})
|
|
110
|
-
data, _status_code, _headers = create_with_http_info(quote_id, to_object_type, to_object_id, association_type, opts)
|
|
111
|
-
data
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# Associate two quotes
|
|
115
|
-
# @param quote_id [String]
|
|
116
|
-
# @param to_object_type [String]
|
|
117
|
-
# @param to_object_id [String]
|
|
118
|
-
# @param association_type [String]
|
|
119
|
-
# @param [Hash] opts the optional parameters
|
|
120
|
-
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
|
121
|
-
def create_with_http_info(quote_id, to_object_type, to_object_id, association_type, opts = {})
|
|
122
|
-
if @api_client.config.debugging
|
|
123
|
-
@api_client.config.logger.debug 'Calling API: AssociationsApi.create ...'
|
|
124
|
-
end
|
|
125
|
-
# verify the required parameter 'quote_id' is set
|
|
126
|
-
if @api_client.config.client_side_validation && quote_id.nil?
|
|
127
|
-
fail ArgumentError, "Missing the required parameter 'quote_id' when calling AssociationsApi.create"
|
|
128
|
-
end
|
|
129
|
-
# verify the required parameter 'to_object_type' is set
|
|
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.create"
|
|
132
|
-
end
|
|
133
|
-
# verify the required parameter 'to_object_id' is set
|
|
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.create"
|
|
136
|
-
end
|
|
137
|
-
# verify the required parameter 'association_type' is set
|
|
138
|
-
if @api_client.config.client_side_validation && association_type.nil?
|
|
139
|
-
fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.create"
|
|
140
|
-
end
|
|
141
|
-
# resource path
|
|
142
|
-
local_var_path = '/crm/v3/objects/quotes/{quoteId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'quoteId' + '}', CGI.escape(quote_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))
|
|
143
|
-
|
|
144
|
-
# query parameters
|
|
145
|
-
query_params = opts[:query_params] || {}
|
|
146
|
-
|
|
147
|
-
# header parameters
|
|
148
|
-
header_params = opts[:header_params] || {}
|
|
149
|
-
# HTTP header 'Accept' (if needed)
|
|
150
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
151
|
-
|
|
152
|
-
# form parameters
|
|
153
|
-
form_params = opts[:form_params] || {}
|
|
154
|
-
|
|
155
|
-
# http body (model)
|
|
156
|
-
post_body = opts[:body]
|
|
157
|
-
|
|
158
|
-
# return_type
|
|
159
|
-
return_type = opts[:return_type] || 'SimplePublicObject'
|
|
160
|
-
|
|
161
|
-
# auth_names
|
|
162
|
-
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
|
163
|
-
|
|
164
|
-
new_options = opts.merge(
|
|
165
|
-
:header_params => header_params,
|
|
166
|
-
:query_params => query_params,
|
|
167
|
-
:form_params => form_params,
|
|
168
|
-
:body => post_body,
|
|
169
|
-
:auth_names => auth_names,
|
|
170
|
-
:return_type => return_type
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
174
|
-
if @api_client.config.debugging
|
|
175
|
-
@api_client.config.logger.debug "API called: AssociationsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
176
|
-
end
|
|
177
|
-
return data, status_code, headers
|
|
178
|
-
end
|
|
179
|
-
|
|
180
24
|
# List associations of a quote by type
|
|
181
25
|
# @param quote_id [String]
|
|
182
26
|
# @param to_object_type [String]
|
|
@@ -225,7 +69,7 @@ module Hubspot
|
|
|
225
69
|
return_type = opts[:return_type] || 'CollectionResponseAssociatedId'
|
|
226
70
|
|
|
227
71
|
# auth_names
|
|
228
|
-
auth_names = opts[:auth_names] || ['hapikey'
|
|
72
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
229
73
|
|
|
230
74
|
new_options = opts.merge(
|
|
231
75
|
:header_params => header_params,
|
|
@@ -23,128 +23,6 @@ module Hubspot
|
|
|
23
23
|
def initialize(api_client = ApiClient.default)
|
|
24
24
|
@api_client = api_client
|
|
25
25
|
end
|
|
26
|
-
# Archive
|
|
27
|
-
# Move an Object identified by `{quoteId}` to the recycling bin.
|
|
28
|
-
# @param quote_id [String]
|
|
29
|
-
# @param [Hash] opts the optional parameters
|
|
30
|
-
# @return [nil]
|
|
31
|
-
def archive(quote_id, opts = {})
|
|
32
|
-
archive_with_http_info(quote_id, opts)
|
|
33
|
-
nil
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Archive
|
|
37
|
-
# Move an Object identified by `{quoteId}` to the recycling bin.
|
|
38
|
-
# @param quote_id [String]
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
41
|
-
def archive_with_http_info(quote_id, opts = {})
|
|
42
|
-
if @api_client.config.debugging
|
|
43
|
-
@api_client.config.logger.debug 'Calling API: BasicApi.archive ...'
|
|
44
|
-
end
|
|
45
|
-
# verify the required parameter 'quote_id' is set
|
|
46
|
-
if @api_client.config.client_side_validation && quote_id.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'quote_id' when calling BasicApi.archive"
|
|
48
|
-
end
|
|
49
|
-
# resource path
|
|
50
|
-
local_var_path = '/crm/v3/objects/quotes/{quoteId}'.sub('{' + 'quoteId' + '}', CGI.escape(quote_id.to_s))
|
|
51
|
-
|
|
52
|
-
# query parameters
|
|
53
|
-
query_params = opts[:query_params] || {}
|
|
54
|
-
|
|
55
|
-
# header parameters
|
|
56
|
-
header_params = opts[:header_params] || {}
|
|
57
|
-
# HTTP header 'Accept' (if needed)
|
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
59
|
-
|
|
60
|
-
# form parameters
|
|
61
|
-
form_params = opts[:form_params] || {}
|
|
62
|
-
|
|
63
|
-
# http body (model)
|
|
64
|
-
post_body = opts[:body]
|
|
65
|
-
|
|
66
|
-
# return_type
|
|
67
|
-
return_type = opts[:return_type]
|
|
68
|
-
|
|
69
|
-
# auth_names
|
|
70
|
-
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
|
71
|
-
|
|
72
|
-
new_options = opts.merge(
|
|
73
|
-
:header_params => header_params,
|
|
74
|
-
:query_params => query_params,
|
|
75
|
-
:form_params => form_params,
|
|
76
|
-
:body => post_body,
|
|
77
|
-
:auth_names => auth_names,
|
|
78
|
-
:return_type => return_type
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
82
|
-
if @api_client.config.debugging
|
|
83
|
-
@api_client.config.logger.debug "API called: BasicApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
-
end
|
|
85
|
-
return data, status_code, headers
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# Create
|
|
89
|
-
# Create a quote with the given properties and return a copy of the object, including the ID. Documentation and examples for creating native quotes is provided.
|
|
90
|
-
# @param [Hash] opts the optional parameters
|
|
91
|
-
# @option opts [SimplePublicObjectInput] :simple_public_object_input
|
|
92
|
-
# @return [SimplePublicObject]
|
|
93
|
-
def create(opts = {})
|
|
94
|
-
data, _status_code, _headers = create_with_http_info(opts)
|
|
95
|
-
data
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
# Create
|
|
99
|
-
# Create a quote with the given properties and return a copy of the object, including the ID. Documentation and examples for creating native quotes is provided.
|
|
100
|
-
# @param [Hash] opts the optional parameters
|
|
101
|
-
# @option opts [SimplePublicObjectInput] :simple_public_object_input
|
|
102
|
-
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
|
103
|
-
def create_with_http_info(opts = {})
|
|
104
|
-
if @api_client.config.debugging
|
|
105
|
-
@api_client.config.logger.debug 'Calling API: BasicApi.create ...'
|
|
106
|
-
end
|
|
107
|
-
# resource path
|
|
108
|
-
local_var_path = '/crm/v3/objects/quotes'
|
|
109
|
-
|
|
110
|
-
# query parameters
|
|
111
|
-
query_params = opts[:query_params] || {}
|
|
112
|
-
|
|
113
|
-
# header parameters
|
|
114
|
-
header_params = opts[:header_params] || {}
|
|
115
|
-
# HTTP header 'Accept' (if needed)
|
|
116
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
117
|
-
# HTTP header 'Content-Type'
|
|
118
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
119
|
-
|
|
120
|
-
# form parameters
|
|
121
|
-
form_params = opts[:form_params] || {}
|
|
122
|
-
|
|
123
|
-
# http body (model)
|
|
124
|
-
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'simple_public_object_input'])
|
|
125
|
-
|
|
126
|
-
# return_type
|
|
127
|
-
return_type = opts[:return_type] || 'SimplePublicObject'
|
|
128
|
-
|
|
129
|
-
# auth_names
|
|
130
|
-
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
|
131
|
-
|
|
132
|
-
new_options = opts.merge(
|
|
133
|
-
:header_params => header_params,
|
|
134
|
-
:query_params => query_params,
|
|
135
|
-
:form_params => form_params,
|
|
136
|
-
:body => post_body,
|
|
137
|
-
:auth_names => auth_names,
|
|
138
|
-
:return_type => return_type
|
|
139
|
-
)
|
|
140
|
-
|
|
141
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
142
|
-
if @api_client.config.debugging
|
|
143
|
-
@api_client.config.logger.debug "API called: BasicApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
|
-
end
|
|
145
|
-
return data, status_code, headers
|
|
146
|
-
end
|
|
147
|
-
|
|
148
26
|
# Read
|
|
149
27
|
# Read an Object identified by `{quoteId}`. `{quoteId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param.
|
|
150
28
|
# @param quote_id [String]
|
|
@@ -201,7 +79,7 @@ module Hubspot
|
|
|
201
79
|
return_type = opts[:return_type] || 'SimplePublicObject'
|
|
202
80
|
|
|
203
81
|
# auth_names
|
|
204
|
-
auth_names = opts[:auth_names] || ['hapikey'
|
|
82
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
205
83
|
|
|
206
84
|
new_options = opts.merge(
|
|
207
85
|
:header_params => header_params,
|
|
@@ -272,7 +150,7 @@ module Hubspot
|
|
|
272
150
|
return_type = opts[:return_type] || 'CollectionResponseSimplePublicObject'
|
|
273
151
|
|
|
274
152
|
# auth_names
|
|
275
|
-
auth_names = opts[:auth_names] || ['hapikey'
|
|
153
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
|
276
154
|
|
|
277
155
|
new_options = opts.merge(
|
|
278
156
|
:header_params => header_params,
|
|
@@ -289,72 +167,6 @@ module Hubspot
|
|
|
289
167
|
end
|
|
290
168
|
return data, status_code, headers
|
|
291
169
|
end
|
|
292
|
-
|
|
293
|
-
# Update
|
|
294
|
-
# Perform a partial update of an Object identified by `{quoteId}`. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
|
295
|
-
# @param quote_id [String]
|
|
296
|
-
# @param [Hash] opts the optional parameters
|
|
297
|
-
# @option opts [SimplePublicObjectInput] :simple_public_object_input
|
|
298
|
-
# @return [SimplePublicObject]
|
|
299
|
-
def update(quote_id, opts = {})
|
|
300
|
-
data, _status_code, _headers = update_with_http_info(quote_id, opts)
|
|
301
|
-
data
|
|
302
|
-
end
|
|
303
|
-
|
|
304
|
-
# Update
|
|
305
|
-
# Perform a partial update of an Object identified by `{quoteId}`. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
|
|
306
|
-
# @param quote_id [String]
|
|
307
|
-
# @param [Hash] opts the optional parameters
|
|
308
|
-
# @option opts [SimplePublicObjectInput] :simple_public_object_input
|
|
309
|
-
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
|
310
|
-
def update_with_http_info(quote_id, opts = {})
|
|
311
|
-
if @api_client.config.debugging
|
|
312
|
-
@api_client.config.logger.debug 'Calling API: BasicApi.update ...'
|
|
313
|
-
end
|
|
314
|
-
# verify the required parameter 'quote_id' is set
|
|
315
|
-
if @api_client.config.client_side_validation && quote_id.nil?
|
|
316
|
-
fail ArgumentError, "Missing the required parameter 'quote_id' when calling BasicApi.update"
|
|
317
|
-
end
|
|
318
|
-
# resource path
|
|
319
|
-
local_var_path = '/crm/v3/objects/quotes/{quoteId}'.sub('{' + 'quoteId' + '}', CGI.escape(quote_id.to_s))
|
|
320
|
-
|
|
321
|
-
# query parameters
|
|
322
|
-
query_params = opts[:query_params] || {}
|
|
323
|
-
|
|
324
|
-
# header parameters
|
|
325
|
-
header_params = opts[:header_params] || {}
|
|
326
|
-
# HTTP header 'Accept' (if needed)
|
|
327
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
|
328
|
-
# HTTP header 'Content-Type'
|
|
329
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
330
|
-
|
|
331
|
-
# form parameters
|
|
332
|
-
form_params = opts[:form_params] || {}
|
|
333
|
-
|
|
334
|
-
# http body (model)
|
|
335
|
-
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'simple_public_object_input'])
|
|
336
|
-
|
|
337
|
-
# return_type
|
|
338
|
-
return_type = opts[:return_type] || 'SimplePublicObject'
|
|
339
|
-
|
|
340
|
-
# auth_names
|
|
341
|
-
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
|
342
|
-
|
|
343
|
-
new_options = opts.merge(
|
|
344
|
-
:header_params => header_params,
|
|
345
|
-
:query_params => query_params,
|
|
346
|
-
:form_params => form_params,
|
|
347
|
-
:body => post_body,
|
|
348
|
-
:auth_names => auth_names,
|
|
349
|
-
:return_type => return_type
|
|
350
|
-
)
|
|
351
|
-
|
|
352
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
353
|
-
if @api_client.config.debugging
|
|
354
|
-
@api_client.config.logger.debug "API called: BasicApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
355
|
-
end
|
|
356
|
-
return data, status_code, headers
|
|
357
|
-
end
|
|
358
170
|
end
|
|
359
171
|
end
|
|
360
172
|
end
|