hubspot-api-client 9.3.0 → 10.0.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 +27 -0
- data/Gemfile.lock +6 -4
- data/LICENSE +201 -0
- data/README.md +1 -1
- data/hubspot-api-client.gemspec +2 -1
- data/lib/hubspot-api-client.rb +5 -664
- data/lib/hubspot/codegen/automation/actions/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/blogs/authors/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +108 -102
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/layout_section.rb +4 -2
- data/lib/hubspot/codegen/cms/blogs/tags/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/domains/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +15 -1
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/column_input.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +5 -3
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_input.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_input.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +2 -5
- data/lib/hubspot/codegen/cms/site-search/api_client.rb +14 -0
- data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +19 -2
- data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +5 -2
- data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +17 -15
- data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +14 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/api/generate_api.rb +90 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/api_client.rb +406 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/api_error.rb +61 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/configuration.rb +263 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/models/error.rb +292 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_generation_request.rb +236 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_response.rb +215 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/companies/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/companies/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/companies/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/companies/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/contacts/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/contacts/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/contacts/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/deals/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/deals/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/deals/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/deals/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +728 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +247 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +160 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +168 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +154 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +408 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/configuration.rb +265 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +241 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +381 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_customer.rb +262 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_invoice.rb +357 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +253 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +248 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/action_response.rb +299 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +253 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +232 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +293 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +248 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/customer_search_response_external.rb +269 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/exchange_rate_response.rb +297 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +218 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_create_payment_request.rb +263 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_pdf_response.rb +283 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +455 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_search_response.rb +264 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +281 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_response.rb +441 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +264 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/object_sync_feature.rb +218 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +281 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +264 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/result_id_accounting_response.rb +267 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +235 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +235 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax.rb +248 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +264 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +228 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +264 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +228 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +319 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_product.rb +324 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +284 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +408 -0
- data/lib/hubspot/codegen/crm/extensions/calling/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +253 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +263 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +308 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/api/settings_api.rb +222 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +408 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/external_settings.rb +248 -0
- data/lib/hubspot/codegen/crm/imports/api/default_api.rb +90 -0
- data/lib/hubspot/codegen/crm/imports/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/imports/models/collection_response_public_import_error_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/imports/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +238 -0
- data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +353 -0
- data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +14 -0
- 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/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/line_items/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/line_items/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/line_items/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +10 -10
- data/lib/hubspot/codegen/crm/objects/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +100 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +175 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +95 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +92 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +408 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/associated_id.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_batch_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +244 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object.rb +315 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors.rb +335 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object_with_associations_forward_paging.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_with_total_simple_public_object_forward_paging.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error.rb +294 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error_category.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error_detail.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +274 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter_group.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/forward_paging.rb +212 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/next_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/paging.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/previous_page.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_search_request.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +279 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_batch_input.rb +233 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_input.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations.rb +290 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/standard_error.rb +311 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/objects/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/objects/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +9 -3
- data/lib/hubspot/codegen/crm/owners/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/owners/models/{collection_response_public_owner.rb → collection_response_public_owner_forward_paging.rb} +4 -4
- data/lib/hubspot/codegen/crm/owners/models/{paging.rb → forward_paging.rb} +3 -3
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/products/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/products/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/products/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/products/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/properties/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +3 -6
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +6 -12
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/quotes/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/quotes/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/quotes/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +23 -17
- data/lib/hubspot/codegen/crm/schemas/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +1 -75
- data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +4 -78
- data/lib/hubspot/codegen/crm/schemas/models/{collection_response_object_schema.rb → collection_response_object_schema_no_paging.rb} +7 -16
- data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +15 -1
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +15 -1
- data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +6 -12
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +11 -14
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +14 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id_forward_paging.rb +226 -0
- data/lib/hubspot/codegen/crm/tickets/models/{collection_response_simple_public_object.rb → collection_response_simple_public_object_with_associations_forward_paging.rb} +5 -5
- data/lib/hubspot/codegen/crm/tickets/models/{collection_response_with_total_simple_public_object.rb → collection_response_with_total_simple_public_object_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/crm/tickets/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +1 -12
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_with_associations.rb +288 -0
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +14 -0
- data/lib/hubspot/codegen/events/api/events_api.rb +105 -0
- data/lib/hubspot/codegen/events/api_client.rb +404 -0
- data/lib/hubspot/codegen/events/api_error.rb +59 -0
- data/lib/hubspot/codegen/events/configuration.rb +261 -0
- data/lib/hubspot/codegen/events/models/collection_response_external_unified_event.rb +224 -0
- data/lib/hubspot/codegen/events/models/error.rb +290 -0
- data/lib/hubspot/codegen/events/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/events/models/external_unified_event.rb +290 -0
- data/lib/hubspot/codegen/events/models/next_page.rb +222 -0
- data/lib/hubspot/codegen/events/models/paging.rb +208 -0
- data/lib/hubspot/codegen/files/files/api/files_api.rb +787 -0
- data/lib/hubspot/codegen/files/files/api/folders_api.rb +579 -0
- data/lib/hubspot/codegen/files/files/api_client.rb +406 -0
- data/lib/hubspot/codegen/files/files/api_error.rb +61 -0
- data/lib/hubspot/codegen/files/files/configuration.rb +263 -0
- data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +226 -0
- data/lib/hubspot/codegen/files/files/models/collection_response_folder.rb +226 -0
- data/lib/hubspot/codegen/files/files/models/error.rb +292 -0
- data/lib/hubspot/codegen/files/files/models/error_category.rb +263 -0
- data/lib/hubspot/codegen/files/files/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/files/files/models/file_action_response.rb +348 -0
- data/lib/hubspot/codegen/files/files/models/file_update_input.rb +285 -0
- data/lib/hubspot/codegen/files/files/models/folder.rb +301 -0
- data/lib/hubspot/codegen/files/files/models/folder_action_response.rb +348 -0
- data/lib/hubspot/codegen/files/files/models/folder_input.rb +236 -0
- data/lib/hubspot/codegen/files/files/models/folder_update_input.rb +236 -0
- data/lib/hubspot/codegen/files/files/models/folder_update_task_locator.rb +228 -0
- data/lib/hubspot/codegen/files/files/models/hubspot_file.rb +440 -0
- data/lib/hubspot/codegen/files/files/models/import_from_url_input.rb +374 -0
- data/lib/hubspot/codegen/files/files/models/import_from_url_task_locator.rb +228 -0
- data/lib/hubspot/codegen/{crm/schemas → files/files}/models/next_page.rb +7 -7
- data/lib/hubspot/codegen/{crm/schemas → files/files}/models/paging.rb +7 -7
- data/lib/hubspot/codegen/{crm/schemas → files/files}/models/previous_page.rb +7 -7
- data/lib/hubspot/codegen/files/files/models/signed_url.rb +311 -0
- data/lib/hubspot/codegen/files/files/models/standard_error.rb +309 -0
- data/lib/hubspot/codegen/marketing/transactional/api/default_api.rb +400 -0
- data/lib/hubspot/codegen/marketing/transactional/api_client.rb +406 -0
- data/lib/hubspot/codegen/marketing/transactional/api_error.rb +61 -0
- data/lib/hubspot/codegen/marketing/transactional/configuration.rb +263 -0
- data/lib/hubspot/codegen/marketing/transactional/models/collection_response_smtp_api_token_view.rb +227 -0
- data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +326 -0
- data/lib/hubspot/codegen/marketing/transactional/models/error.rb +292 -0
- data/lib/hubspot/codegen/marketing/transactional/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +231 -0
- data/lib/hubspot/codegen/marketing/transactional/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/marketing/transactional/models/paging.rb +210 -0
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +282 -0
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +262 -0
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +231 -0
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +301 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +14 -0
- data/lib/hubspot/codegen/webhooks/api_client.rb +14 -0
- data/lib/hubspot/version.rb +1 -1
- data/spec/codegen/cms/blogs/authors/api/default_api_spec.rb +24 -24
- data/spec/codegen/cms/blogs/blog-posts/api/default_api_spec.rb +26 -26
- data/spec/codegen/cms/blogs/blog-posts/models/blog_post_spec.rb +14 -14
- data/spec/codegen/cms/blogs/tags/api/default_api_spec.rb +24 -24
- data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/column_input_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_input_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_input_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
- data/spec/codegen/cms/site-search/api/default_api_spec.rb +0 -1
- data/spec/codegen/cms/site-search/models/content_search_result_spec.rb +1 -1
- data/spec/codegen/cms/site-search/models/indexed_data_spec.rb +1 -1
- data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
- data/spec/codegen/conversations/visitor-identification/api/generate_api_spec.rb +47 -0
- data/spec/codegen/conversations/visitor-identification/models/error_detail_spec.rb +65 -0
- data/spec/codegen/conversations/visitor-identification/models/error_spec.rb +77 -0
- data/spec/codegen/conversations/visitor-identification/models/identification_token_generation_request_spec.rb +53 -0
- data/spec/codegen/conversations/visitor-identification/models/identification_token_response_spec.rb +41 -0
- data/spec/codegen/crm/companies/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/companies/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/companies/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/companies/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/companies/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/companies/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/companies/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/companies/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/companies/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/companies/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/contacts/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/contacts/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/contacts/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/contacts/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/contacts/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/contacts/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/contacts/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/contacts/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/contacts/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/contacts/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/deals/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/deals/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/deals/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/deals/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/deals/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/deals/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/deals/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/deals/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/deals/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/deals/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/extensions/accounting/api/callbacks_api_spec.rb +165 -0
- data/spec/codegen/crm/extensions/accounting/api/invoice_api_spec.rb +76 -0
- data/spec/codegen/crm/extensions/accounting/api/settings_api_spec.rb +60 -0
- data/spec/codegen/crm/extensions/accounting/api/sync_api_spec.rb +61 -0
- data/spec/codegen/crm/extensions/accounting/api/user_accounts_api_spec.rb +59 -0
- data/spec/codegen/crm/extensions/accounting/models/accounting_app_settings_spec.rb +53 -0
- data/spec/codegen/crm/extensions/accounting/models/accounting_app_urls_spec.rb +125 -0
- data/spec/codegen/crm/extensions/accounting/models/accounting_extension_customer_spec.rb +65 -0
- data/spec/codegen/crm/extensions/accounting/models/accounting_extension_invoice_spec.rb +93 -0
- data/spec/codegen/crm/extensions/accounting/models/accounting_extension_term_spec.rb +59 -0
- data/spec/codegen/crm/extensions/accounting/models/accounting_features_spec.rb +53 -0
- data/spec/codegen/crm/extensions/accounting/models/action_response_spec.rb +69 -0
- data/spec/codegen/crm/extensions/accounting/models/address_spec.rb +65 -0
- data/spec/codegen/crm/extensions/accounting/models/create_invoice_feature_spec.rb +47 -0
- data/spec/codegen/crm/extensions/accounting/models/create_invoice_sub_features_spec.rb +71 -0
- data/spec/codegen/crm/extensions/accounting/models/create_user_account_request_external_spec.rb +53 -0
- data/spec/codegen/crm/extensions/accounting/models/customer_search_response_external_spec.rb +51 -0
- data/spec/codegen/crm/extensions/accounting/models/error_detail_spec.rb +65 -0
- data/spec/codegen/crm/extensions/accounting/models/error_spec.rb +77 -0
- data/spec/codegen/crm/extensions/accounting/models/exchange_rate_response_spec.rb +63 -0
- data/spec/codegen/crm/extensions/accounting/models/import_invoice_feature_spec.rb +41 -0
- data/spec/codegen/crm/extensions/accounting/models/invoice_create_payment_request_spec.rb +59 -0
- data/spec/codegen/crm/extensions/accounting/models/invoice_pdf_response_spec.rb +51 -0
- data/spec/codegen/crm/extensions/accounting/models/invoice_read_response_spec.rb +135 -0
- data/spec/codegen/crm/extensions/accounting/models/invoice_search_response_spec.rb +51 -0
- data/spec/codegen/crm/extensions/accounting/models/invoice_update_request_spec.rb +83 -0
- data/spec/codegen/crm/extensions/accounting/models/invoice_update_response_spec.rb +135 -0
- data/spec/codegen/crm/extensions/accounting/models/invoices_response_external_spec.rb +51 -0
- data/spec/codegen/crm/extensions/accounting/models/object_sync_feature_spec.rb +41 -0
- data/spec/codegen/crm/extensions/accounting/models/product_search_response_spec.rb +51 -0
- data/spec/codegen/crm/extensions/accounting/models/product_spec.rb +71 -0
- data/spec/codegen/crm/extensions/accounting/models/result_id_accounting_response_spec.rb +51 -0
- data/spec/codegen/crm/extensions/accounting/models/sync_contacts_request_spec.rb +47 -0
- data/spec/codegen/crm/extensions/accounting/models/sync_products_request_spec.rb +47 -0
- data/spec/codegen/crm/extensions/accounting/models/tax_search_response_spec.rb +51 -0
- data/spec/codegen/crm/extensions/accounting/models/tax_spec.rb +53 -0
- data/spec/codegen/crm/extensions/accounting/models/tax_type_spec.rb +47 -0
- data/spec/codegen/crm/extensions/accounting/models/terms_response_spec.rb +51 -0
- data/spec/codegen/crm/extensions/accounting/models/unit_price_spec.rb +47 -0
- data/spec/codegen/crm/extensions/accounting/models/updated_contact_spec.rb +73 -0
- data/spec/codegen/crm/extensions/accounting/models/updated_product_spec.rb +75 -0
- data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +85 -0
- data/spec/codegen/crm/extensions/calling/models/error_detail_spec.rb +65 -0
- data/spec/codegen/crm/extensions/calling/models/error_spec.rb +77 -0
- data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +65 -0
- data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +65 -0
- data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +77 -0
- data/spec/codegen/crm/extensions/videoconferencing/api/settings_api_spec.rb +72 -0
- data/spec/codegen/crm/extensions/videoconferencing/models/error_detail_spec.rb +65 -0
- data/spec/codegen/crm/extensions/videoconferencing/models/error_spec.rb +77 -0
- data/spec/codegen/crm/extensions/videoconferencing/models/external_settings_spec.rb +59 -0
- data/spec/codegen/crm/imports/api/default_api_spec.rb +47 -0
- data/spec/codegen/crm/imports/models/collection_response_public_import_error_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/imports/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/imports/models/import_row_core_spec.rb +53 -0
- data/spec/codegen/crm/imports/models/public_import_error_spec.rb +97 -0
- data/spec/codegen/crm/imports/models/public_import_response_spec.rb +1 -1
- data/spec/codegen/crm/line_items/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/line_items/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/line_items/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/line_items/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/line_items/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/line_items/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/line_items/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/line_items/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/line_items/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/line_items/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/objects/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/objects/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/objects/api/search_api_spec.rb +3 -3
- data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +49 -0
- data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +67 -0
- data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +48 -0
- data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_spec.rb +75 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object_with_associations_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_with_total_simple_public_object_forward_paging_spec.rb +53 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/error_category_spec.rb +51 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/error_detail_spec.rb +65 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/error_spec.rb +77 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/filter_group_spec.rb +41 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +57 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/next_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/previous_page_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/public_object_search_request_spec.rb +71 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_batch_input_spec.rb +47 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_id_spec.rb +41 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_input_spec.rb +41 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_spec.rb +71 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/objects/feedback_submissions/models/standard_error_spec.rb +83 -0
- data/spec/codegen/crm/objects/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/objects/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/objects/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/objects/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/objects/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/objects/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/objects/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/owners/api/default_api_spec.rb +3 -1
- data/spec/codegen/crm/owners/models/{collection_response_public_owner_spec.rb → collection_response_public_owner_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/owners/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/products/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/products/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/products/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/products/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/products/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/products/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/products/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/products/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/products/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/products/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/quotes/api/associations_api_spec.rb +1 -2
- data/spec/codegen/crm/quotes/api/basic_api_spec.rb +2 -4
- data/spec/codegen/crm/quotes/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/quotes/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/quotes/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/quotes/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/quotes/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/quotes/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/quotes/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/quotes/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/crm/schemas/api/core_api_spec.rb +10 -8
- data/spec/codegen/crm/schemas/models/association_definition_egg_spec.rb +0 -20
- data/spec/codegen/crm/schemas/models/association_definition_spec.rb +0 -20
- data/spec/codegen/crm/schemas/models/{collection_response_object_schema_spec.rb → collection_response_object_schema_no_paging_spec.rb} +6 -12
- data/spec/codegen/crm/schemas/models/object_schema_spec.rb +6 -0
- data/spec/codegen/crm/schemas/models/object_type_definition_spec.rb +6 -0
- data/spec/codegen/crm/schemas/models/object_type_property_create_spec.rb +1 -1
- data/spec/codegen/crm/tickets/api/associations_api_spec.rb +2 -4
- data/spec/codegen/crm/tickets/api/basic_api_spec.rb +4 -5
- data/spec/codegen/crm/tickets/api/search_api_spec.rb +1 -1
- data/spec/codegen/crm/tickets/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/codegen/crm/tickets/models/collection_response_associated_id_forward_paging_spec.rb +47 -0
- data/spec/codegen/crm/tickets/models/{collection_response_simple_public_object_spec.rb → collection_response_simple_public_object_with_associations_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/tickets/models/{collection_response_with_total_simple_public_object_spec.rb → collection_response_with_total_simple_public_object_forward_paging_spec.rb} +6 -6
- data/spec/codegen/crm/tickets/models/forward_paging_spec.rb +41 -0
- data/spec/codegen/crm/tickets/models/simple_public_object_spec.rb +0 -6
- data/spec/codegen/crm/tickets/models/simple_public_object_with_associations_spec.rb +77 -0
- data/spec/codegen/events/api/events_api_spec.rb +54 -0
- data/spec/codegen/events/models/collection_response_external_unified_event_spec.rb +47 -0
- data/spec/codegen/events/models/error_detail_spec.rb +65 -0
- data/spec/codegen/events/models/error_spec.rb +77 -0
- data/spec/codegen/events/models/external_unified_event_spec.rb +71 -0
- data/spec/codegen/events/models/next_page_spec.rb +47 -0
- data/spec/codegen/events/models/paging_spec.rb +41 -0
- data/spec/codegen/files/files/api/files_api_spec.rb +189 -0
- data/spec/codegen/files/files/api/folders_api_spec.rb +143 -0
- data/spec/codegen/files/files/models/collection_response_file_spec.rb +47 -0
- data/spec/codegen/files/files/models/collection_response_folder_spec.rb +47 -0
- data/spec/codegen/files/files/models/error_category_spec.rb +51 -0
- data/spec/codegen/files/files/models/error_detail_spec.rb +65 -0
- data/spec/codegen/files/files/models/error_spec.rb +77 -0
- data/spec/codegen/files/files/models/file_action_response_spec.rb +93 -0
- data/spec/codegen/files/files/models/file_update_input_spec.rb +69 -0
- data/spec/codegen/files/files/models/folder_action_response_spec.rb +93 -0
- data/spec/codegen/files/files/models/folder_input_spec.rb +53 -0
- data/spec/codegen/files/files/models/folder_spec.rb +83 -0
- data/spec/codegen/files/files/models/folder_update_input_spec.rb +53 -0
- data/spec/codegen/files/files/models/folder_update_task_locator_spec.rb +47 -0
- data/spec/codegen/files/files/models/hubspot_file_spec.rb +147 -0
- data/spec/codegen/files/files/models/import_from_url_input_spec.rb +101 -0
- data/spec/codegen/files/files/models/import_from_url_task_locator_spec.rb +47 -0
- data/spec/codegen/{crm/schemas → files/files}/models/next_page_spec.rb +5 -5
- data/spec/codegen/{crm/schemas → files/files}/models/paging_spec.rb +5 -5
- data/spec/codegen/{crm/schemas → files/files}/models/previous_page_spec.rb +5 -5
- data/spec/codegen/files/files/models/signed_url_spec.rb +83 -0
- data/spec/codegen/files/files/models/standard_error_spec.rb +83 -0
- data/spec/codegen/marketing/transactional/api/default_api_spec.rb +110 -0
- data/spec/codegen/marketing/transactional/models/collection_response_smtp_api_token_view_spec.rb +47 -0
- data/spec/codegen/marketing/transactional/models/email_send_status_view_spec.rb +85 -0
- data/spec/codegen/marketing/transactional/models/error_detail_spec.rb +65 -0
- data/spec/codegen/marketing/transactional/models/error_spec.rb +77 -0
- data/spec/codegen/marketing/transactional/models/event_id_view_spec.rb +47 -0
- data/spec/codegen/marketing/transactional/models/next_page_spec.rb +47 -0
- data/spec/codegen/marketing/transactional/models/paging_spec.rb +41 -0
- data/spec/codegen/marketing/transactional/models/public_single_send_email_spec.rb +71 -0
- data/spec/codegen/marketing/transactional/models/public_single_send_request_egg_spec.rb +59 -0
- data/spec/codegen/marketing/transactional/models/smtp_api_token_request_egg_spec.rb +47 -0
- data/spec/codegen/marketing/transactional/models/smtp_api_token_view_spec.rb +77 -0
- data/spec/features/conversations/visitor-identification/generate_api_spec.rb +7 -0
- data/spec/features/crm/extensions/accounting/callbacks_api_spec.rb +16 -0
- data/spec/features/crm/extensions/accounting/invoice_api_spec.rb +9 -0
- data/spec/features/crm/extensions/accounting/settings_api_spec.rb +8 -0
- data/spec/features/crm/extensions/accounting/sync_api_spec.rb +8 -0
- data/spec/features/crm/extensions/accounting/user_accounts_api_spec.rb +8 -0
- data/spec/features/crm/extensions/calling/settings_api_spec.rb +10 -0
- data/spec/features/crm/extensions/videoconferencing/settings_api_spec.rb +9 -0
- data/spec/features/crm/objects/feedback_submissions/associations_api_spec.rb +7 -0
- data/spec/features/crm/objects/feedback_submissions/basic_api_spec.rb +8 -0
- data/spec/features/crm/objects/feedback_submissions/batch_api_spec.rb +7 -0
- data/spec/features/crm/objects/feedback_submissions/search_api_spec.rb +7 -0
- data/spec/features/crm/objects/search_api_spec.rb +1 -1
- data/spec/features/events/events_api_spec.rb +7 -0
- data/spec/features/files/files/files_api_spec.rb +16 -0
- data/spec/features/files/files/folders_api_spec.rb +14 -0
- data/spec/features/marketing/transactional/default_api_spec.rb +12 -0
- metadata +602 -69
@@ -0,0 +1,242 @@
|
|
1
|
+
=begin
|
2
|
+
#Feedback Submissions
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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 Objects
|
18
|
+
module FeedbackSubmissions
|
19
|
+
class CollectionResponseWithTotalSimplePublicObjectForwardPaging
|
20
|
+
attr_accessor :total
|
21
|
+
|
22
|
+
attr_accessor :results
|
23
|
+
|
24
|
+
attr_accessor :paging
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'total' => :'total',
|
30
|
+
:'results' => :'results',
|
31
|
+
:'paging' => :'paging'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'total' => :'Integer',
|
39
|
+
:'results' => :'Array<SimplePublicObject>',
|
40
|
+
:'paging' => :'ForwardPaging'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# List of attributes with nullable: true
|
45
|
+
def self.openapi_nullable
|
46
|
+
Set.new([
|
47
|
+
])
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::FeedbackSubmissions::CollectionResponseWithTotalSimplePublicObjectForwardPaging` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::FeedbackSubmissions::CollectionResponseWithTotalSimplePublicObjectForwardPaging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
64
|
+
|
65
|
+
if attributes.key?(:'total')
|
66
|
+
self.total = attributes[:'total']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'results')
|
70
|
+
if (value = attributes[:'results']).is_a?(Array)
|
71
|
+
self.results = value
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.key?(:'paging')
|
76
|
+
self.paging = attributes[:'paging']
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
81
|
+
# @return Array for valid properties with the reasons
|
82
|
+
def list_invalid_properties
|
83
|
+
invalid_properties = Array.new
|
84
|
+
if @total.nil?
|
85
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
86
|
+
end
|
87
|
+
|
88
|
+
if @results.nil?
|
89
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
90
|
+
end
|
91
|
+
|
92
|
+
invalid_properties
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
def valid?
|
98
|
+
return false if @total.nil?
|
99
|
+
return false if @results.nil?
|
100
|
+
true
|
101
|
+
end
|
102
|
+
|
103
|
+
# Checks equality by comparing each attribute.
|
104
|
+
# @param [Object] Object to be compared
|
105
|
+
def ==(o)
|
106
|
+
return true if self.equal?(o)
|
107
|
+
self.class == o.class &&
|
108
|
+
total == o.total &&
|
109
|
+
results == o.results &&
|
110
|
+
paging == o.paging
|
111
|
+
end
|
112
|
+
|
113
|
+
# @see the `==` method
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def eql?(o)
|
116
|
+
self == o
|
117
|
+
end
|
118
|
+
|
119
|
+
# Calculates hash code according to all attributes.
|
120
|
+
# @return [Integer] Hash code
|
121
|
+
def hash
|
122
|
+
[total, results, paging].hash
|
123
|
+
end
|
124
|
+
|
125
|
+
# Builds the object from hash
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
+
# @return [Object] Returns the model itself
|
128
|
+
def self.build_from_hash(attributes)
|
129
|
+
new.build_from_hash(attributes)
|
130
|
+
end
|
131
|
+
|
132
|
+
# Builds the object from hash
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
+
# @return [Object] Returns the model itself
|
135
|
+
def build_from_hash(attributes)
|
136
|
+
return nil unless attributes.is_a?(Hash)
|
137
|
+
self.class.openapi_types.each_pair do |key, type|
|
138
|
+
if type =~ /\AArray<(.*)>/i
|
139
|
+
# check to ensure the input is an array given that the attribute
|
140
|
+
# is documented as an array but the input is not
|
141
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
142
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
143
|
+
end
|
144
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
145
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
146
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
147
|
+
end
|
148
|
+
|
149
|
+
self
|
150
|
+
end
|
151
|
+
|
152
|
+
# Deserializes the data based on type
|
153
|
+
# @param string type Data type
|
154
|
+
# @param string value Value to be deserialized
|
155
|
+
# @return [Object] Deserialized data
|
156
|
+
def _deserialize(type, value)
|
157
|
+
case type.to_sym
|
158
|
+
when :DateTime
|
159
|
+
DateTime.parse(value)
|
160
|
+
when :Date
|
161
|
+
Date.parse(value)
|
162
|
+
when :String
|
163
|
+
value.to_s
|
164
|
+
when :Integer
|
165
|
+
value.to_i
|
166
|
+
when :Float
|
167
|
+
value.to_f
|
168
|
+
when :Boolean
|
169
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
170
|
+
true
|
171
|
+
else
|
172
|
+
false
|
173
|
+
end
|
174
|
+
when :Object
|
175
|
+
# generic object (usually a Hash), return directly
|
176
|
+
value
|
177
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
178
|
+
inner_type = Regexp.last_match[:inner_type]
|
179
|
+
value.map { |v| _deserialize(inner_type, v) }
|
180
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
181
|
+
k_type = Regexp.last_match[:k_type]
|
182
|
+
v_type = Regexp.last_match[:v_type]
|
183
|
+
{}.tap do |hash|
|
184
|
+
value.each do |k, v|
|
185
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
else # model
|
189
|
+
Hubspot::Crm::Objects::FeedbackSubmissions.const_get(type).build_from_hash(value)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the string representation of the object
|
194
|
+
# @return [String] String presentation of the object
|
195
|
+
def to_s
|
196
|
+
to_hash.to_s
|
197
|
+
end
|
198
|
+
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_body
|
202
|
+
to_hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the object in the form of hash
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
207
|
+
def to_hash
|
208
|
+
hash = {}
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
210
|
+
value = self.send(attr)
|
211
|
+
if value.nil?
|
212
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
|
+
end
|
215
|
+
|
216
|
+
hash[param] = _to_hash(value)
|
217
|
+
end
|
218
|
+
hash
|
219
|
+
end
|
220
|
+
|
221
|
+
# Outputs non-array value in the form of hash
|
222
|
+
# For object, use to_hash. Otherwise, just return the value
|
223
|
+
# @param [Object] value Any valid value
|
224
|
+
# @return [Hash] Returns the value in the form of hash
|
225
|
+
def _to_hash(value)
|
226
|
+
if value.is_a?(Array)
|
227
|
+
value.compact.map { |v| _to_hash(v) }
|
228
|
+
elsif value.is_a?(Hash)
|
229
|
+
{}.tap do |hash|
|
230
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
231
|
+
end
|
232
|
+
elsif value.respond_to? :to_hash
|
233
|
+
value.to_hash
|
234
|
+
else
|
235
|
+
value
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
@@ -0,0 +1,294 @@
|
|
1
|
+
=begin
|
2
|
+
#Feedback Submissions
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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 Objects
|
18
|
+
module FeedbackSubmissions
|
19
|
+
class Error
|
20
|
+
# A human readable message describing the error along with remediation steps where appropriate
|
21
|
+
attr_accessor :message
|
22
|
+
|
23
|
+
# A unique identifier for the request. Include this value with any error reports or support tickets
|
24
|
+
attr_accessor :correlation_id
|
25
|
+
|
26
|
+
# The error category
|
27
|
+
attr_accessor :category
|
28
|
+
|
29
|
+
# A specific category that contains more specific detail about the error
|
30
|
+
attr_accessor :sub_category
|
31
|
+
|
32
|
+
# further information about the error
|
33
|
+
attr_accessor :errors
|
34
|
+
|
35
|
+
# Context about the error condition
|
36
|
+
attr_accessor :context
|
37
|
+
|
38
|
+
# A map of link names to associated URIs containing documentation about the error or recommended remediation steps
|
39
|
+
attr_accessor :links
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
def self.attribute_map
|
43
|
+
{
|
44
|
+
:'message' => :'message',
|
45
|
+
:'correlation_id' => :'correlationId',
|
46
|
+
:'category' => :'category',
|
47
|
+
:'sub_category' => :'subCategory',
|
48
|
+
:'errors' => :'errors',
|
49
|
+
:'context' => :'context',
|
50
|
+
:'links' => :'links'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'message' => :'String',
|
58
|
+
:'correlation_id' => :'String',
|
59
|
+
:'category' => :'String',
|
60
|
+
:'sub_category' => :'String',
|
61
|
+
:'errors' => :'Array<ErrorDetail>',
|
62
|
+
:'context' => :'Hash<String, Array<String>>',
|
63
|
+
:'links' => :'Hash<String, String>'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# List of attributes with nullable: true
|
68
|
+
def self.openapi_nullable
|
69
|
+
Set.new([
|
70
|
+
])
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
def initialize(attributes = {})
|
76
|
+
if (!attributes.is_a?(Hash))
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::FeedbackSubmissions::Error` initialize method"
|
78
|
+
end
|
79
|
+
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::FeedbackSubmissions::Error`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
|
+
end
|
85
|
+
h[k.to_sym] = v
|
86
|
+
}
|
87
|
+
|
88
|
+
if attributes.key?(:'message')
|
89
|
+
self.message = attributes[:'message']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'correlation_id')
|
93
|
+
self.correlation_id = attributes[:'correlation_id']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'category')
|
97
|
+
self.category = attributes[:'category']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'sub_category')
|
101
|
+
self.sub_category = attributes[:'sub_category']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'errors')
|
105
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
106
|
+
self.errors = value
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'context')
|
111
|
+
if (value = attributes[:'context']).is_a?(Hash)
|
112
|
+
self.context = value
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'links')
|
117
|
+
if (value = attributes[:'links']).is_a?(Hash)
|
118
|
+
self.links = value
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
124
|
+
# @return Array for valid properties with the reasons
|
125
|
+
def list_invalid_properties
|
126
|
+
invalid_properties = Array.new
|
127
|
+
if @message.nil?
|
128
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
129
|
+
end
|
130
|
+
|
131
|
+
if @correlation_id.nil?
|
132
|
+
invalid_properties.push('invalid value for "correlation_id", correlation_id cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @category.nil?
|
136
|
+
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
invalid_properties
|
140
|
+
end
|
141
|
+
|
142
|
+
# Check to see if the all the properties in the model are valid
|
143
|
+
# @return true if the model is valid
|
144
|
+
def valid?
|
145
|
+
return false if @message.nil?
|
146
|
+
return false if @correlation_id.nil?
|
147
|
+
return false if @category.nil?
|
148
|
+
true
|
149
|
+
end
|
150
|
+
|
151
|
+
# Checks equality by comparing each attribute.
|
152
|
+
# @param [Object] Object to be compared
|
153
|
+
def ==(o)
|
154
|
+
return true if self.equal?(o)
|
155
|
+
self.class == o.class &&
|
156
|
+
message == o.message &&
|
157
|
+
correlation_id == o.correlation_id &&
|
158
|
+
category == o.category &&
|
159
|
+
sub_category == o.sub_category &&
|
160
|
+
errors == o.errors &&
|
161
|
+
context == o.context &&
|
162
|
+
links == o.links
|
163
|
+
end
|
164
|
+
|
165
|
+
# @see the `==` method
|
166
|
+
# @param [Object] Object to be compared
|
167
|
+
def eql?(o)
|
168
|
+
self == o
|
169
|
+
end
|
170
|
+
|
171
|
+
# Calculates hash code according to all attributes.
|
172
|
+
# @return [Integer] Hash code
|
173
|
+
def hash
|
174
|
+
[message, correlation_id, category, sub_category, errors, context, links].hash
|
175
|
+
end
|
176
|
+
|
177
|
+
# Builds the object from hash
|
178
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
179
|
+
# @return [Object] Returns the model itself
|
180
|
+
def self.build_from_hash(attributes)
|
181
|
+
new.build_from_hash(attributes)
|
182
|
+
end
|
183
|
+
|
184
|
+
# Builds the object from hash
|
185
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
186
|
+
# @return [Object] Returns the model itself
|
187
|
+
def build_from_hash(attributes)
|
188
|
+
return nil unless attributes.is_a?(Hash)
|
189
|
+
self.class.openapi_types.each_pair do |key, type|
|
190
|
+
if type =~ /\AArray<(.*)>/i
|
191
|
+
# check to ensure the input is an array given that the attribute
|
192
|
+
# is documented as an array but the input is not
|
193
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
194
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
195
|
+
end
|
196
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
197
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
198
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
199
|
+
end
|
200
|
+
|
201
|
+
self
|
202
|
+
end
|
203
|
+
|
204
|
+
# Deserializes the data based on type
|
205
|
+
# @param string type Data type
|
206
|
+
# @param string value Value to be deserialized
|
207
|
+
# @return [Object] Deserialized data
|
208
|
+
def _deserialize(type, value)
|
209
|
+
case type.to_sym
|
210
|
+
when :DateTime
|
211
|
+
DateTime.parse(value)
|
212
|
+
when :Date
|
213
|
+
Date.parse(value)
|
214
|
+
when :String
|
215
|
+
value.to_s
|
216
|
+
when :Integer
|
217
|
+
value.to_i
|
218
|
+
when :Float
|
219
|
+
value.to_f
|
220
|
+
when :Boolean
|
221
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
222
|
+
true
|
223
|
+
else
|
224
|
+
false
|
225
|
+
end
|
226
|
+
when :Object
|
227
|
+
# generic object (usually a Hash), return directly
|
228
|
+
value
|
229
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
230
|
+
inner_type = Regexp.last_match[:inner_type]
|
231
|
+
value.map { |v| _deserialize(inner_type, v) }
|
232
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
233
|
+
k_type = Regexp.last_match[:k_type]
|
234
|
+
v_type = Regexp.last_match[:v_type]
|
235
|
+
{}.tap do |hash|
|
236
|
+
value.each do |k, v|
|
237
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
238
|
+
end
|
239
|
+
end
|
240
|
+
else # model
|
241
|
+
Hubspot::Crm::Objects::FeedbackSubmissions.const_get(type).build_from_hash(value)
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# Returns the string representation of the object
|
246
|
+
# @return [String] String presentation of the object
|
247
|
+
def to_s
|
248
|
+
to_hash.to_s
|
249
|
+
end
|
250
|
+
|
251
|
+
# to_body is an alias to to_hash (backward compatibility)
|
252
|
+
# @return [Hash] Returns the object in the form of hash
|
253
|
+
def to_body
|
254
|
+
to_hash
|
255
|
+
end
|
256
|
+
|
257
|
+
# Returns the object in the form of hash
|
258
|
+
# @return [Hash] Returns the object in the form of hash
|
259
|
+
def to_hash
|
260
|
+
hash = {}
|
261
|
+
self.class.attribute_map.each_pair do |attr, param|
|
262
|
+
value = self.send(attr)
|
263
|
+
if value.nil?
|
264
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
265
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
266
|
+
end
|
267
|
+
|
268
|
+
hash[param] = _to_hash(value)
|
269
|
+
end
|
270
|
+
hash
|
271
|
+
end
|
272
|
+
|
273
|
+
# Outputs non-array value in the form of hash
|
274
|
+
# For object, use to_hash. Otherwise, just return the value
|
275
|
+
# @param [Object] value Any valid value
|
276
|
+
# @return [Hash] Returns the value in the form of hash
|
277
|
+
def _to_hash(value)
|
278
|
+
if value.is_a?(Array)
|
279
|
+
value.compact.map { |v| _to_hash(v) }
|
280
|
+
elsif value.is_a?(Hash)
|
281
|
+
{}.tap do |hash|
|
282
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
283
|
+
end
|
284
|
+
elsif value.respond_to? :to_hash
|
285
|
+
value.to_hash
|
286
|
+
else
|
287
|
+
value
|
288
|
+
end
|
289
|
+
end
|
290
|
+
end
|
291
|
+
end
|
292
|
+
end
|
293
|
+
end
|
294
|
+
end
|