hubspot-api-client 6.0.0 → 7.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +41 -0
- data/lib/hubspot-api-client.rb +55 -0
- data/lib/hubspot/codegen/cms/audit-logs/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/performance/configuration.rb +0 -14
- data/lib/hubspot/codegen/cms/site-search/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/url-redirects/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/associations/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/companies/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/deals/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +0 -14
- data/lib/hubspot/codegen/crm/imports/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +0 -7
- 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/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/products/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/properties/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +0 -7
- 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/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +0 -7
- data/lib/hubspot/codegen/oauth/configuration.rb +0 -21
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +16 -12
- data/lib/hubspot/codegen/webhooks/configuration.rb +0 -14
- 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/timeline-events-app/.env.template +5 -0
- data/sample-apps/timeline-events-app/.gitignore +35 -0
- data/sample-apps/timeline-events-app/.rspec +1 -0
- data/sample-apps/timeline-events-app/.ruby-version +1 -0
- data/sample-apps/timeline-events-app/Dockerfile +22 -0
- data/sample-apps/timeline-events-app/Gemfile +33 -0
- data/sample-apps/timeline-events-app/Gemfile.lock +271 -0
- data/sample-apps/timeline-events-app/README.md +0 -0
- data/sample-apps/timeline-events-app/Rakefile +6 -0
- data/sample-apps/timeline-events-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/timeline-events-app/app/assets/images/.keep +0 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/timeline-events-app/app/assets/stylesheets/application.css +101 -0
- data/sample-apps/timeline-events-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/timeline-events-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/timeline-events-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/timeline-events-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/timeline-events-app/app/controllers/timeline_events_controller.rb +37 -0
- data/sample-apps/timeline-events-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/contacts/search.rb +37 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/timeline/create_event.rb +20 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/timeline/create_template.rb +39 -0
- data/sample-apps/timeline-events-app/app/models/application_record.rb +3 -0
- data/sample-apps/timeline-events-app/app/models/concerns/.keep +0 -0
- data/sample-apps/timeline-events-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/timeline-events-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/timeline-events-app/app/views/shared/_header.html.erb +12 -0
- data/sample-apps/timeline-events-app/app/views/timeline_events/index.html.erb +55 -0
- data/sample-apps/timeline-events-app/bin/bundle +3 -0
- data/sample-apps/timeline-events-app/bin/rails +9 -0
- data/sample-apps/timeline-events-app/bin/rake +9 -0
- data/sample-apps/timeline-events-app/bin/setup +36 -0
- data/sample-apps/timeline-events-app/bin/spring +17 -0
- data/sample-apps/timeline-events-app/bin/update +31 -0
- data/sample-apps/timeline-events-app/bin/yarn +11 -0
- data/sample-apps/timeline-events-app/config.ru +5 -0
- data/sample-apps/timeline-events-app/config/application.rb +19 -0
- data/sample-apps/timeline-events-app/config/boot.rb +3 -0
- data/sample-apps/timeline-events-app/config/database.yml +25 -0
- data/sample-apps/timeline-events-app/config/environment.rb +5 -0
- data/sample-apps/timeline-events-app/config/environments/development.rb +61 -0
- data/sample-apps/timeline-events-app/config/environments/production.rb +94 -0
- data/sample-apps/timeline-events-app/config/environments/test.rb +46 -0
- data/sample-apps/timeline-events-app/config/initializers/assets.rb +14 -0
- data/sample-apps/timeline-events-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/timeline-events-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/timeline-events-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/timeline-events-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/timeline-events-app/config/locales/en.yml +33 -0
- data/sample-apps/timeline-events-app/config/puma.rb +34 -0
- data/sample-apps/timeline-events-app/config/routes.rb +7 -0
- data/sample-apps/timeline-events-app/config/spring.rb +6 -0
- data/sample-apps/timeline-events-app/db/seeds.rb +7 -0
- data/sample-apps/timeline-events-app/docker-compose.yml +11 -0
- data/sample-apps/timeline-events-app/docker-entrypoint.sh +8 -0
- data/sample-apps/timeline-events-app/lib/assets/.keep +0 -0
- data/sample-apps/timeline-events-app/lib/tasks/.keep +0 -0
- data/sample-apps/timeline-events-app/log/.keep +0 -0
- data/sample-apps/timeline-events-app/package.json +5 -0
- data/sample-apps/timeline-events-app/public/404.html +67 -0
- data/sample-apps/timeline-events-app/public/422.html +67 -0
- data/sample-apps/timeline-events-app/public/500.html +66 -0
- data/sample-apps/timeline-events-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/timeline-events-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/timeline-events-app/public/favicon.ico +0 -0
- data/sample-apps/timeline-events-app/public/robots.txt +1 -0
- data/sample-apps/timeline-events-app/spec/rails_helper.rb +42 -0
- data/sample-apps/timeline-events-app/spec/spec_helper.rb +11 -0
- data/sample-apps/timeline-events-app/tmp/.keep +0 -0
- 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 +466 -2
@@ -0,0 +1,252 @@
|
|
1
|
+
=begin
|
2
|
+
#Schemas
|
3
|
+
|
4
|
+
#The CRM uses schemas to define how custom objects should store and represent information in the HubSpot CRM. Schemas define details about an object's type, properties, and associations. The schema can be uniquely identified by its **object type ID**.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Schemas
|
18
|
+
class PropertyModificationMetadata
|
19
|
+
attr_accessor :archivable
|
20
|
+
|
21
|
+
attr_accessor :read_only_definition
|
22
|
+
|
23
|
+
attr_accessor :read_only_options
|
24
|
+
|
25
|
+
attr_accessor :read_only_value
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'archivable' => :'archivable',
|
31
|
+
:'read_only_definition' => :'readOnlyDefinition',
|
32
|
+
:'read_only_options' => :'readOnlyOptions',
|
33
|
+
:'read_only_value' => :'readOnlyValue'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'archivable' => :'Boolean',
|
41
|
+
:'read_only_definition' => :'Boolean',
|
42
|
+
:'read_only_options' => :'Boolean',
|
43
|
+
:'read_only_value' => :'Boolean'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Schemas::PropertyModificationMetadata` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Schemas::PropertyModificationMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'archivable')
|
69
|
+
self.archivable = attributes[:'archivable']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'read_only_definition')
|
73
|
+
self.read_only_definition = attributes[:'read_only_definition']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'read_only_options')
|
77
|
+
self.read_only_options = attributes[:'read_only_options']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'read_only_value')
|
81
|
+
self.read_only_value = attributes[:'read_only_value']
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
86
|
+
# @return Array for valid properties with the reasons
|
87
|
+
def list_invalid_properties
|
88
|
+
invalid_properties = Array.new
|
89
|
+
if @archivable.nil?
|
90
|
+
invalid_properties.push('invalid value for "archivable", archivable cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @read_only_definition.nil?
|
94
|
+
invalid_properties.push('invalid value for "read_only_definition", read_only_definition cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if @read_only_value.nil?
|
98
|
+
invalid_properties.push('invalid value for "read_only_value", read_only_value cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
invalid_properties
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check to see if the all the properties in the model are valid
|
105
|
+
# @return true if the model is valid
|
106
|
+
def valid?
|
107
|
+
return false if @archivable.nil?
|
108
|
+
return false if @read_only_definition.nil?
|
109
|
+
return false if @read_only_value.nil?
|
110
|
+
true
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
archivable == o.archivable &&
|
119
|
+
read_only_definition == o.read_only_definition &&
|
120
|
+
read_only_options == o.read_only_options &&
|
121
|
+
read_only_value == o.read_only_value
|
122
|
+
end
|
123
|
+
|
124
|
+
# @see the `==` method
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def eql?(o)
|
127
|
+
self == o
|
128
|
+
end
|
129
|
+
|
130
|
+
# Calculates hash code according to all attributes.
|
131
|
+
# @return [Integer] Hash code
|
132
|
+
def hash
|
133
|
+
[archivable, read_only_definition, read_only_options, read_only_value].hash
|
134
|
+
end
|
135
|
+
|
136
|
+
# Builds the object from hash
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
# @return [Object] Returns the model itself
|
139
|
+
def self.build_from_hash(attributes)
|
140
|
+
new.build_from_hash(attributes)
|
141
|
+
end
|
142
|
+
|
143
|
+
# Builds the object from hash
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
145
|
+
# @return [Object] Returns the model itself
|
146
|
+
def build_from_hash(attributes)
|
147
|
+
return nil unless attributes.is_a?(Hash)
|
148
|
+
self.class.openapi_types.each_pair do |key, type|
|
149
|
+
if type =~ /\AArray<(.*)>/i
|
150
|
+
# check to ensure the input is an array given that the attribute
|
151
|
+
# is documented as an array but the input is not
|
152
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
153
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
154
|
+
end
|
155
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
156
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
157
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
158
|
+
end
|
159
|
+
|
160
|
+
self
|
161
|
+
end
|
162
|
+
|
163
|
+
# Deserializes the data based on type
|
164
|
+
# @param string type Data type
|
165
|
+
# @param string value Value to be deserialized
|
166
|
+
# @return [Object] Deserialized data
|
167
|
+
def _deserialize(type, value)
|
168
|
+
case type.to_sym
|
169
|
+
when :DateTime
|
170
|
+
DateTime.parse(value)
|
171
|
+
when :Date
|
172
|
+
Date.parse(value)
|
173
|
+
when :String
|
174
|
+
value.to_s
|
175
|
+
when :Integer
|
176
|
+
value.to_i
|
177
|
+
when :Float
|
178
|
+
value.to_f
|
179
|
+
when :Boolean
|
180
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
181
|
+
true
|
182
|
+
else
|
183
|
+
false
|
184
|
+
end
|
185
|
+
when :Object
|
186
|
+
# generic object (usually a Hash), return directly
|
187
|
+
value
|
188
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
189
|
+
inner_type = Regexp.last_match[:inner_type]
|
190
|
+
value.map { |v| _deserialize(inner_type, v) }
|
191
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
192
|
+
k_type = Regexp.last_match[:k_type]
|
193
|
+
v_type = Regexp.last_match[:v_type]
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each do |k, v|
|
196
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
else # model
|
200
|
+
Hubspot::Crm::Schemas.const_get(type).build_from_hash(value)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# Returns the string representation of the object
|
205
|
+
# @return [String] String presentation of the object
|
206
|
+
def to_s
|
207
|
+
to_hash.to_s
|
208
|
+
end
|
209
|
+
|
210
|
+
# to_body is an alias to to_hash (backward compatibility)
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_body
|
213
|
+
to_hash
|
214
|
+
end
|
215
|
+
|
216
|
+
# Returns the object in the form of hash
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_hash
|
219
|
+
hash = {}
|
220
|
+
self.class.attribute_map.each_pair do |attr, param|
|
221
|
+
value = self.send(attr)
|
222
|
+
if value.nil?
|
223
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
224
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
225
|
+
end
|
226
|
+
|
227
|
+
hash[param] = _to_hash(value)
|
228
|
+
end
|
229
|
+
hash
|
230
|
+
end
|
231
|
+
|
232
|
+
# Outputs non-array value in the form of hash
|
233
|
+
# For object, use to_hash. Otherwise, just return the value
|
234
|
+
# @param [Object] value Any valid value
|
235
|
+
# @return [Hash] Returns the value in the form of hash
|
236
|
+
def _to_hash(value)
|
237
|
+
if value.is_a?(Array)
|
238
|
+
value.compact.map { |v| _to_hash(v) }
|
239
|
+
elsif value.is_a?(Hash)
|
240
|
+
{}.tap do |hash|
|
241
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
242
|
+
end
|
243
|
+
elsif value.respond_to? :to_hash
|
244
|
+
value.to_hash
|
245
|
+
else
|
246
|
+
value
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
@@ -194,13 +194,6 @@ module Hubspot
|
|
194
194
|
# Returns Auth Settings hash for api client.
|
195
195
|
def auth_settings
|
196
196
|
{
|
197
|
-
'developer-hapikey' =>
|
198
|
-
{
|
199
|
-
type: 'api_key',
|
200
|
-
in: 'query',
|
201
|
-
key: 'hapikey',
|
202
|
-
value: api_key_with_prefix('hapikey')
|
203
|
-
},
|
204
197
|
'hapikey' =>
|
205
198
|
{
|
206
199
|
type: 'api_key',
|
@@ -194,13 +194,6 @@ module Hubspot
|
|
194
194
|
# Returns Auth Settings hash for api client.
|
195
195
|
def auth_settings
|
196
196
|
{
|
197
|
-
'developer-hapikey' =>
|
198
|
-
{
|
199
|
-
type: 'api_key',
|
200
|
-
in: 'query',
|
201
|
-
key: 'hapikey',
|
202
|
-
value: api_key_with_prefix('hapikey')
|
203
|
-
},
|
204
197
|
'hapikey' =>
|
205
198
|
{
|
206
199
|
type: 'api_key',
|
@@ -193,27 +193,6 @@ module Hubspot
|
|
193
193
|
# Returns Auth Settings hash for api client.
|
194
194
|
def auth_settings
|
195
195
|
{
|
196
|
-
'developer-hapikey' =>
|
197
|
-
{
|
198
|
-
type: 'api_key',
|
199
|
-
in: 'query',
|
200
|
-
key: 'hapikey',
|
201
|
-
value: api_key_with_prefix('hapikey')
|
202
|
-
},
|
203
|
-
'hapikey' =>
|
204
|
-
{
|
205
|
-
type: 'api_key',
|
206
|
-
in: 'query',
|
207
|
-
key: 'hapikey',
|
208
|
-
value: api_key_with_prefix('hapikey')
|
209
|
-
},
|
210
|
-
'oauth2' =>
|
211
|
-
{
|
212
|
-
type: 'oauth2',
|
213
|
-
in: 'header',
|
214
|
-
key: 'Authorization',
|
215
|
-
value: "Bearer #{access_token}"
|
216
|
-
},
|
217
196
|
}
|
218
197
|
end
|
219
198
|
|
@@ -292,11 +292,11 @@ module Hubspot
|
|
292
292
|
# Updates the details for an existing subscription.
|
293
293
|
# @param subscription_id [Integer] The ID of the subscription to update.
|
294
294
|
# @param app_id [Integer] The ID of the target app.
|
295
|
+
# @param subscription_patch_request [SubscriptionPatchRequest] Updated details for the subscription.
|
295
296
|
# @param [Hash] opts the optional parameters
|
296
|
-
# @option opts [SubscriptionPatchRequest] :subscription_patch_request Updated details for the subscription.
|
297
297
|
# @return [SubscriptionResponse]
|
298
|
-
def update(subscription_id, app_id, opts = {})
|
299
|
-
data, _status_code, _headers = update_with_http_info(subscription_id, app_id, opts)
|
298
|
+
def update(subscription_id, app_id, subscription_patch_request, opts = {})
|
299
|
+
data, _status_code, _headers = update_with_http_info(subscription_id, app_id, subscription_patch_request, opts)
|
300
300
|
data
|
301
301
|
end
|
302
302
|
|
@@ -304,10 +304,10 @@ module Hubspot
|
|
304
304
|
# Updates the details for an existing subscription.
|
305
305
|
# @param subscription_id [Integer] The ID of the subscription to update.
|
306
306
|
# @param app_id [Integer] The ID of the target app.
|
307
|
+
# @param subscription_patch_request [SubscriptionPatchRequest] Updated details for the subscription.
|
307
308
|
# @param [Hash] opts the optional parameters
|
308
|
-
# @option opts [SubscriptionPatchRequest] :subscription_patch_request Updated details for the subscription.
|
309
309
|
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
310
|
-
def update_with_http_info(subscription_id, app_id, opts = {})
|
310
|
+
def update_with_http_info(subscription_id, app_id, subscription_patch_request, opts = {})
|
311
311
|
if @api_client.config.debugging
|
312
312
|
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.update ...'
|
313
313
|
end
|
@@ -319,6 +319,10 @@ module Hubspot
|
|
319
319
|
if @api_client.config.client_side_validation && app_id.nil?
|
320
320
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.update"
|
321
321
|
end
|
322
|
+
# verify the required parameter 'subscription_patch_request' is set
|
323
|
+
if @api_client.config.client_side_validation && subscription_patch_request.nil?
|
324
|
+
fail ArgumentError, "Missing the required parameter 'subscription_patch_request' when calling SubscriptionsApi.update"
|
325
|
+
end
|
322
326
|
# resource path
|
323
327
|
local_var_path = '/webhooks/v3/{appId}/subscriptions/{subscriptionId}'.sub('{' + 'subscriptionId' + '}', CGI.escape(subscription_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
324
328
|
|
@@ -336,7 +340,7 @@ module Hubspot
|
|
336
340
|
form_params = opts[:form_params] || {}
|
337
341
|
|
338
342
|
# http body (model)
|
339
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
343
|
+
post_body = opts[:body] || @api_client.object_to_http_body(subscription_patch_request)
|
340
344
|
|
341
345
|
# return_type
|
342
346
|
return_type = opts[:return_type] || 'SubscriptionResponse'
|
@@ -361,9 +365,9 @@ module Hubspot
|
|
361
365
|
end
|
362
366
|
|
363
367
|
# Batch update subscriptions
|
364
|
-
# Activates or deactivates
|
365
|
-
# @param app_id [Integer] The ID of the target app.
|
366
|
-
# @param batch_input_subscription_batch_update_request [BatchInputSubscriptionBatchUpdateRequest]
|
368
|
+
# Activates or deactivates target app subscriptions.
|
369
|
+
# @param app_id [Integer] The app ID of the target app.
|
370
|
+
# @param batch_input_subscription_batch_update_request [BatchInputSubscriptionBatchUpdateRequest] Updated details for the specified subscriptions.
|
367
371
|
# @param [Hash] opts the optional parameters
|
368
372
|
# @return [BatchResponseSubscriptionResponse]
|
369
373
|
def update_batch(app_id, batch_input_subscription_batch_update_request, opts = {})
|
@@ -372,9 +376,9 @@ module Hubspot
|
|
372
376
|
end
|
373
377
|
|
374
378
|
# Batch update subscriptions
|
375
|
-
# Activates or deactivates
|
376
|
-
# @param app_id [Integer] The ID of the target app.
|
377
|
-
# @param batch_input_subscription_batch_update_request [BatchInputSubscriptionBatchUpdateRequest]
|
379
|
+
# Activates or deactivates target app subscriptions.
|
380
|
+
# @param app_id [Integer] The app ID of the target app.
|
381
|
+
# @param batch_input_subscription_batch_update_request [BatchInputSubscriptionBatchUpdateRequest] Updated details for the specified subscriptions.
|
378
382
|
# @param [Hash] opts the optional parameters
|
379
383
|
# @return [Array<(BatchResponseSubscriptionResponse, Integer, Hash)>] BatchResponseSubscriptionResponse data, response status code and response headers
|
380
384
|
def update_batch_with_http_info(app_id, batch_input_subscription_batch_update_request, opts = {})
|
@@ -193,13 +193,6 @@ module Hubspot
|
|
193
193
|
# Returns Auth Settings hash for api client.
|
194
194
|
def auth_settings
|
195
195
|
{
|
196
|
-
'developer-hapikey' =>
|
197
|
-
{
|
198
|
-
type: 'api_key',
|
199
|
-
in: 'query',
|
200
|
-
key: 'hapikey',
|
201
|
-
value: api_key_with_prefix('hapikey')
|
202
|
-
},
|
203
196
|
'hapikey' =>
|
204
197
|
{
|
205
198
|
type: 'api_key',
|
@@ -207,13 +200,6 @@ module Hubspot
|
|
207
200
|
key: 'hapikey',
|
208
201
|
value: api_key_with_prefix('hapikey')
|
209
202
|
},
|
210
|
-
'oauth2' =>
|
211
|
-
{
|
212
|
-
type: 'oauth2',
|
213
|
-
in: 'header',
|
214
|
-
key: 'Authorization',
|
215
|
-
value: "Bearer #{access_token}"
|
216
|
-
},
|
217
203
|
}
|
218
204
|
end
|
219
205
|
|
@@ -19,10 +19,6 @@ module Hubspot
|
|
19
19
|
|
20
20
|
attr_accessor :results
|
21
21
|
|
22
|
-
attr_accessor :num_errors
|
23
|
-
|
24
|
-
attr_accessor :errors
|
25
|
-
|
26
22
|
attr_accessor :requested_at
|
27
23
|
|
28
24
|
attr_accessor :started_at
|
@@ -58,8 +54,6 @@ module Hubspot
|
|
58
54
|
{
|
59
55
|
:'status' => :'status',
|
60
56
|
:'results' => :'results',
|
61
|
-
:'num_errors' => :'numErrors',
|
62
|
-
:'errors' => :'errors',
|
63
57
|
:'requested_at' => :'requestedAt',
|
64
58
|
:'started_at' => :'startedAt',
|
65
59
|
:'completed_at' => :'completedAt',
|
@@ -72,8 +66,6 @@ module Hubspot
|
|
72
66
|
{
|
73
67
|
:'status' => :'String',
|
74
68
|
:'results' => :'Array<SubscriptionResponse>',
|
75
|
-
:'num_errors' => :'Integer',
|
76
|
-
:'errors' => :'Array<Error>',
|
77
69
|
:'requested_at' => :'DateTime',
|
78
70
|
:'started_at' => :'DateTime',
|
79
71
|
:'completed_at' => :'DateTime',
|
@@ -112,16 +104,6 @@ module Hubspot
|
|
112
104
|
end
|
113
105
|
end
|
114
106
|
|
115
|
-
if attributes.key?(:'num_errors')
|
116
|
-
self.num_errors = attributes[:'num_errors']
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.key?(:'errors')
|
120
|
-
if (value = attributes[:'errors']).is_a?(Array)
|
121
|
-
self.errors = value
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
107
|
if attributes.key?(:'requested_at')
|
126
108
|
self.requested_at = attributes[:'requested_at']
|
127
109
|
end
|
@@ -193,8 +175,6 @@ module Hubspot
|
|
193
175
|
self.class == o.class &&
|
194
176
|
status == o.status &&
|
195
177
|
results == o.results &&
|
196
|
-
num_errors == o.num_errors &&
|
197
|
-
errors == o.errors &&
|
198
178
|
requested_at == o.requested_at &&
|
199
179
|
started_at == o.started_at &&
|
200
180
|
completed_at == o.completed_at &&
|
@@ -210,7 +190,7 @@ module Hubspot
|
|
210
190
|
# Calculates hash code according to all attributes.
|
211
191
|
# @return [Integer] Hash code
|
212
192
|
def hash
|
213
|
-
[status, results,
|
193
|
+
[status, results, requested_at, started_at, completed_at, links].hash
|
214
194
|
end
|
215
195
|
|
216
196
|
# Builds the object from hash
|