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,247 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting Extension
|
3
|
+
|
4
|
+
#These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot
|
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 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Extensions
|
18
|
+
module Accounting
|
19
|
+
class InvoiceApi
|
20
|
+
attr_accessor :api_client
|
21
|
+
|
22
|
+
def initialize(api_client = ApiClient.default)
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# Records an invoice payment
|
26
|
+
# Records an payment against an invoice.
|
27
|
+
# @param invoice_id [String] The ID of the invoice. This is the invoice ID from the external accounting system.
|
28
|
+
# @param invoice_create_payment_request [InvoiceCreatePaymentRequest] The payment information
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @option opts [String] :account_id The ID of the account that the invoice belongs to. This is the account ID from the external accounting system.
|
31
|
+
# @return [InvoiceUpdateResponse]
|
32
|
+
def create_payment(invoice_id, invoice_create_payment_request, opts = {})
|
33
|
+
data, _status_code, _headers = create_payment_with_http_info(invoice_id, invoice_create_payment_request, opts)
|
34
|
+
data
|
35
|
+
end
|
36
|
+
|
37
|
+
# Records an invoice payment
|
38
|
+
# Records an payment against an invoice.
|
39
|
+
# @param invoice_id [String] The ID of the invoice. This is the invoice ID from the external accounting system.
|
40
|
+
# @param invoice_create_payment_request [InvoiceCreatePaymentRequest] The payment information
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [String] :account_id The ID of the account that the invoice belongs to. This is the account ID from the external accounting system.
|
43
|
+
# @return [Array<(InvoiceUpdateResponse, Integer, Hash)>] InvoiceUpdateResponse data, response status code and response headers
|
44
|
+
def create_payment_with_http_info(invoice_id, invoice_create_payment_request, opts = {})
|
45
|
+
if @api_client.config.debugging
|
46
|
+
@api_client.config.logger.debug 'Calling API: InvoiceApi.create_payment ...'
|
47
|
+
end
|
48
|
+
# verify the required parameter 'invoice_id' is set
|
49
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoiceApi.create_payment"
|
51
|
+
end
|
52
|
+
# verify the required parameter 'invoice_create_payment_request' is set
|
53
|
+
if @api_client.config.client_side_validation && invoice_create_payment_request.nil?
|
54
|
+
fail ArgumentError, "Missing the required parameter 'invoice_create_payment_request' when calling InvoiceApi.create_payment"
|
55
|
+
end
|
56
|
+
# resource path
|
57
|
+
local_var_path = '/crm/v3/extensions/accounting/invoice/{invoiceId}/payment'.sub('{' + 'invoiceId' + '}', CGI.escape(invoice_id.to_s))
|
58
|
+
|
59
|
+
# query parameters
|
60
|
+
query_params = opts[:query_params] || {}
|
61
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
62
|
+
|
63
|
+
# header parameters
|
64
|
+
header_params = opts[:header_params] || {}
|
65
|
+
# HTTP header 'Accept' (if needed)
|
66
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
67
|
+
# HTTP header 'Content-Type'
|
68
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
69
|
+
|
70
|
+
# form parameters
|
71
|
+
form_params = opts[:form_params] || {}
|
72
|
+
|
73
|
+
# http body (model)
|
74
|
+
post_body = opts[:body] || @api_client.object_to_http_body(invoice_create_payment_request)
|
75
|
+
|
76
|
+
# return_type
|
77
|
+
return_type = opts[:return_type] || 'InvoiceUpdateResponse'
|
78
|
+
|
79
|
+
# auth_names
|
80
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
81
|
+
|
82
|
+
new_options = opts.merge(
|
83
|
+
:header_params => header_params,
|
84
|
+
:query_params => query_params,
|
85
|
+
:form_params => form_params,
|
86
|
+
:body => post_body,
|
87
|
+
:auth_names => auth_names,
|
88
|
+
:return_type => return_type
|
89
|
+
)
|
90
|
+
|
91
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug "API called: InvoiceApi#create_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
94
|
+
end
|
95
|
+
return data, status_code, headers
|
96
|
+
end
|
97
|
+
|
98
|
+
# Get invoice data
|
99
|
+
# Returns invoice data for an Accounting account from the specified ID
|
100
|
+
# @param invoice_id [String] The ID of the invoice. This is the invoice ID from the external accounting system.
|
101
|
+
# @param account_id [String] The ID of the account that the invoice belongs to. This is the account ID from the external accounting system.
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [InvoiceReadResponse]
|
104
|
+
def get_by_id(invoice_id, account_id, opts = {})
|
105
|
+
data, _status_code, _headers = get_by_id_with_http_info(invoice_id, account_id, opts)
|
106
|
+
data
|
107
|
+
end
|
108
|
+
|
109
|
+
# Get invoice data
|
110
|
+
# Returns invoice data for an Accounting account from the specified ID
|
111
|
+
# @param invoice_id [String] The ID of the invoice. This is the invoice ID from the external accounting system.
|
112
|
+
# @param account_id [String] The ID of the account that the invoice belongs to. This is the account ID from the external accounting system.
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @return [Array<(InvoiceReadResponse, Integer, Hash)>] InvoiceReadResponse data, response status code and response headers
|
115
|
+
def get_by_id_with_http_info(invoice_id, account_id, opts = {})
|
116
|
+
if @api_client.config.debugging
|
117
|
+
@api_client.config.logger.debug 'Calling API: InvoiceApi.get_by_id ...'
|
118
|
+
end
|
119
|
+
# verify the required parameter 'invoice_id' is set
|
120
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoiceApi.get_by_id"
|
122
|
+
end
|
123
|
+
# verify the required parameter 'account_id' is set
|
124
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling InvoiceApi.get_by_id"
|
126
|
+
end
|
127
|
+
# resource path
|
128
|
+
local_var_path = '/crm/v3/extensions/accounting/invoice/{invoiceId}'.sub('{' + 'invoiceId' + '}', CGI.escape(invoice_id.to_s))
|
129
|
+
|
130
|
+
# query parameters
|
131
|
+
query_params = opts[:query_params] || {}
|
132
|
+
query_params[:'accountId'] = account_id
|
133
|
+
|
134
|
+
# header parameters
|
135
|
+
header_params = opts[:header_params] || {}
|
136
|
+
# HTTP header 'Accept' (if needed)
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
138
|
+
|
139
|
+
# form parameters
|
140
|
+
form_params = opts[:form_params] || {}
|
141
|
+
|
142
|
+
# http body (model)
|
143
|
+
post_body = opts[:body]
|
144
|
+
|
145
|
+
# return_type
|
146
|
+
return_type = opts[:return_type] || 'InvoiceReadResponse'
|
147
|
+
|
148
|
+
# auth_names
|
149
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
150
|
+
|
151
|
+
new_options = opts.merge(
|
152
|
+
:header_params => header_params,
|
153
|
+
:query_params => query_params,
|
154
|
+
:form_params => form_params,
|
155
|
+
:body => post_body,
|
156
|
+
:auth_names => auth_names,
|
157
|
+
:return_type => return_type
|
158
|
+
)
|
159
|
+
|
160
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
161
|
+
if @api_client.config.debugging
|
162
|
+
@api_client.config.logger.debug "API called: InvoiceApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
163
|
+
end
|
164
|
+
return data, status_code, headers
|
165
|
+
end
|
166
|
+
|
167
|
+
# Update an invoice
|
168
|
+
# Updates an Invoice by the given ID.
|
169
|
+
# @param invoice_id [String] The ID of the invoice. This is the invoice ID from the external accounting system.
|
170
|
+
# @param account_id [String] The ID of the account that the invoice belongs to. This is the account ID from the external accounting system.
|
171
|
+
# @param invoice_update_request [InvoiceUpdateRequest] The invoice data to update
|
172
|
+
# @param [Hash] opts the optional parameters
|
173
|
+
# @return [InvoiceUpdateResponse]
|
174
|
+
def update(invoice_id, account_id, invoice_update_request, opts = {})
|
175
|
+
data, _status_code, _headers = update_with_http_info(invoice_id, account_id, invoice_update_request, opts)
|
176
|
+
data
|
177
|
+
end
|
178
|
+
|
179
|
+
# Update an invoice
|
180
|
+
# Updates an Invoice by the given ID.
|
181
|
+
# @param invoice_id [String] The ID of the invoice. This is the invoice ID from the external accounting system.
|
182
|
+
# @param account_id [String] The ID of the account that the invoice belongs to. This is the account ID from the external accounting system.
|
183
|
+
# @param invoice_update_request [InvoiceUpdateRequest] The invoice data to update
|
184
|
+
# @param [Hash] opts the optional parameters
|
185
|
+
# @return [Array<(InvoiceUpdateResponse, Integer, Hash)>] InvoiceUpdateResponse data, response status code and response headers
|
186
|
+
def update_with_http_info(invoice_id, account_id, invoice_update_request, opts = {})
|
187
|
+
if @api_client.config.debugging
|
188
|
+
@api_client.config.logger.debug 'Calling API: InvoiceApi.update ...'
|
189
|
+
end
|
190
|
+
# verify the required parameter 'invoice_id' is set
|
191
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
192
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoiceApi.update"
|
193
|
+
end
|
194
|
+
# verify the required parameter 'account_id' is set
|
195
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
196
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling InvoiceApi.update"
|
197
|
+
end
|
198
|
+
# verify the required parameter 'invoice_update_request' is set
|
199
|
+
if @api_client.config.client_side_validation && invoice_update_request.nil?
|
200
|
+
fail ArgumentError, "Missing the required parameter 'invoice_update_request' when calling InvoiceApi.update"
|
201
|
+
end
|
202
|
+
# resource path
|
203
|
+
local_var_path = '/crm/v3/extensions/accounting/invoice/{invoiceId}'.sub('{' + 'invoiceId' + '}', CGI.escape(invoice_id.to_s))
|
204
|
+
|
205
|
+
# query parameters
|
206
|
+
query_params = opts[:query_params] || {}
|
207
|
+
query_params[:'accountId'] = account_id
|
208
|
+
|
209
|
+
# header parameters
|
210
|
+
header_params = opts[:header_params] || {}
|
211
|
+
# HTTP header 'Accept' (if needed)
|
212
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
213
|
+
# HTTP header 'Content-Type'
|
214
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
215
|
+
|
216
|
+
# form parameters
|
217
|
+
form_params = opts[:form_params] || {}
|
218
|
+
|
219
|
+
# http body (model)
|
220
|
+
post_body = opts[:body] || @api_client.object_to_http_body(invoice_update_request)
|
221
|
+
|
222
|
+
# return_type
|
223
|
+
return_type = opts[:return_type] || 'InvoiceUpdateResponse'
|
224
|
+
|
225
|
+
# auth_names
|
226
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
227
|
+
|
228
|
+
new_options = opts.merge(
|
229
|
+
:header_params => header_params,
|
230
|
+
:query_params => query_params,
|
231
|
+
:form_params => form_params,
|
232
|
+
:body => post_body,
|
233
|
+
:auth_names => auth_names,
|
234
|
+
:return_type => return_type
|
235
|
+
)
|
236
|
+
|
237
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
238
|
+
if @api_client.config.debugging
|
239
|
+
@api_client.config.logger.debug "API called: InvoiceApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
240
|
+
end
|
241
|
+
return data, status_code, headers
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
@@ -0,0 +1,160 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting Extension
|
3
|
+
|
4
|
+
#These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot
|
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 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Extensions
|
18
|
+
module Accounting
|
19
|
+
class SettingsApi
|
20
|
+
attr_accessor :api_client
|
21
|
+
|
22
|
+
def initialize(api_client = ApiClient.default)
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# Get URL settings
|
26
|
+
# Returns the URL settings for an accounting app with the specified ID.
|
27
|
+
# @param app_id [Integer] The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [AccountingAppSettings]
|
30
|
+
def get_by_id(app_id, opts = {})
|
31
|
+
data, _status_code, _headers = get_by_id_with_http_info(app_id, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# Get URL settings
|
36
|
+
# Returns the URL settings for an accounting app with the specified ID.
|
37
|
+
# @param app_id [Integer] The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(AccountingAppSettings, Integer, Hash)>] AccountingAppSettings data, response status code and response headers
|
40
|
+
def get_by_id_with_http_info(app_id, opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.get_by_id ...'
|
43
|
+
end
|
44
|
+
# verify the required parameter 'app_id' is set
|
45
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.get_by_id"
|
47
|
+
end
|
48
|
+
# resource path
|
49
|
+
local_var_path = '/crm/v3/extensions/accounting/settings/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
50
|
+
|
51
|
+
# query parameters
|
52
|
+
query_params = opts[:query_params] || {}
|
53
|
+
|
54
|
+
# header parameters
|
55
|
+
header_params = opts[:header_params] || {}
|
56
|
+
# HTTP header 'Accept' (if needed)
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = opts[:form_params] || {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = opts[:body]
|
64
|
+
|
65
|
+
# return_type
|
66
|
+
return_type = opts[:return_type] || 'AccountingAppSettings'
|
67
|
+
|
68
|
+
# auth_names
|
69
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
70
|
+
|
71
|
+
new_options = opts.merge(
|
72
|
+
:header_params => header_params,
|
73
|
+
:query_params => query_params,
|
74
|
+
:form_params => form_params,
|
75
|
+
:body => post_body,
|
76
|
+
:auth_names => auth_names,
|
77
|
+
:return_type => return_type
|
78
|
+
)
|
79
|
+
|
80
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
81
|
+
if @api_client.config.debugging
|
82
|
+
@api_client.config.logger.debug "API called: SettingsApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
83
|
+
end
|
84
|
+
return data, status_code, headers
|
85
|
+
end
|
86
|
+
|
87
|
+
# Add/Update URL Settings
|
88
|
+
# Add/Update the URL settings for an accounting app with the specified ID. All URLs must use the `https` protocol.
|
89
|
+
# @param app_id [Integer] The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
|
90
|
+
# @param accounting_app_settings [AccountingAppSettings]
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [nil]
|
93
|
+
def replace(app_id, accounting_app_settings, opts = {})
|
94
|
+
replace_with_http_info(app_id, accounting_app_settings, opts)
|
95
|
+
nil
|
96
|
+
end
|
97
|
+
|
98
|
+
# Add/Update URL Settings
|
99
|
+
# Add/Update the URL settings for an accounting app with the specified ID. All URLs must use the `https` protocol.
|
100
|
+
# @param app_id [Integer] The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
|
101
|
+
# @param accounting_app_settings [AccountingAppSettings]
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
104
|
+
def replace_with_http_info(app_id, accounting_app_settings, opts = {})
|
105
|
+
if @api_client.config.debugging
|
106
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.replace ...'
|
107
|
+
end
|
108
|
+
# verify the required parameter 'app_id' is set
|
109
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
110
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.replace"
|
111
|
+
end
|
112
|
+
# verify the required parameter 'accounting_app_settings' is set
|
113
|
+
if @api_client.config.client_side_validation && accounting_app_settings.nil?
|
114
|
+
fail ArgumentError, "Missing the required parameter 'accounting_app_settings' when calling SettingsApi.replace"
|
115
|
+
end
|
116
|
+
# resource path
|
117
|
+
local_var_path = '/crm/v3/extensions/accounting/settings/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
118
|
+
|
119
|
+
# query parameters
|
120
|
+
query_params = opts[:query_params] || {}
|
121
|
+
|
122
|
+
# header parameters
|
123
|
+
header_params = opts[:header_params] || {}
|
124
|
+
# HTTP header 'Accept' (if needed)
|
125
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
126
|
+
# HTTP header 'Content-Type'
|
127
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
128
|
+
|
129
|
+
# form parameters
|
130
|
+
form_params = opts[:form_params] || {}
|
131
|
+
|
132
|
+
# http body (model)
|
133
|
+
post_body = opts[:body] || @api_client.object_to_http_body(accounting_app_settings)
|
134
|
+
|
135
|
+
# return_type
|
136
|
+
return_type = opts[:return_type]
|
137
|
+
|
138
|
+
# auth_names
|
139
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
140
|
+
|
141
|
+
new_options = opts.merge(
|
142
|
+
:header_params => header_params,
|
143
|
+
:query_params => query_params,
|
144
|
+
:form_params => form_params,
|
145
|
+
:body => post_body,
|
146
|
+
:auth_names => auth_names,
|
147
|
+
:return_type => return_type
|
148
|
+
)
|
149
|
+
|
150
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
151
|
+
if @api_client.config.debugging
|
152
|
+
@api_client.config.logger.debug "API called: SettingsApi#replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
153
|
+
end
|
154
|
+
return data, status_code, headers
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
@@ -0,0 +1,168 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting Extension
|
3
|
+
|
4
|
+
#These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot
|
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 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Extensions
|
18
|
+
module Accounting
|
19
|
+
class SyncApi
|
20
|
+
attr_accessor :api_client
|
21
|
+
|
22
|
+
def initialize(api_client = ApiClient.default)
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# Import contacts
|
26
|
+
# Imports contacts' properties from an external accounting system to HubSpot. Import details, including property mappings, must be configured previously in HubSpot infrastructure.
|
27
|
+
# @param app_id [Integer] The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
|
28
|
+
# @param sync_contacts_request [SyncContactsRequest]
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @return [ActionResponse]
|
31
|
+
def create_contact(app_id, sync_contacts_request, opts = {})
|
32
|
+
data, _status_code, _headers = create_contact_with_http_info(app_id, sync_contacts_request, opts)
|
33
|
+
data
|
34
|
+
end
|
35
|
+
|
36
|
+
# Import contacts
|
37
|
+
# Imports contacts' properties from an external accounting system to HubSpot. Import details, including property mappings, must be configured previously in HubSpot infrastructure.
|
38
|
+
# @param app_id [Integer] The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
|
39
|
+
# @param sync_contacts_request [SyncContactsRequest]
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Array<(ActionResponse, Integer, Hash)>] ActionResponse data, response status code and response headers
|
42
|
+
def create_contact_with_http_info(app_id, sync_contacts_request, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug 'Calling API: SyncApi.create_contact ...'
|
45
|
+
end
|
46
|
+
# verify the required parameter 'app_id' is set
|
47
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SyncApi.create_contact"
|
49
|
+
end
|
50
|
+
# verify the required parameter 'sync_contacts_request' is set
|
51
|
+
if @api_client.config.client_side_validation && sync_contacts_request.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'sync_contacts_request' when calling SyncApi.create_contact"
|
53
|
+
end
|
54
|
+
# resource path
|
55
|
+
local_var_path = '/crm/v3/extensions/accounting/sync/{appId}/contacts'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
56
|
+
|
57
|
+
# query parameters
|
58
|
+
query_params = opts[:query_params] || {}
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = opts[:header_params] || {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = opts[:form_params] || {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = opts[:body] || @api_client.object_to_http_body(sync_contacts_request)
|
72
|
+
|
73
|
+
# return_type
|
74
|
+
return_type = opts[:return_type] || 'ActionResponse'
|
75
|
+
|
76
|
+
# auth_names
|
77
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
78
|
+
|
79
|
+
new_options = opts.merge(
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names,
|
85
|
+
:return_type => return_type
|
86
|
+
)
|
87
|
+
|
88
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug "API called: SyncApi#create_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
|
+
end
|
92
|
+
return data, status_code, headers
|
93
|
+
end
|
94
|
+
|
95
|
+
# Import products
|
96
|
+
# Imports products' properties from an external accounting system to HubSpot. Import details, including property mappings, must be configured previously in HubSpot infrastructure.
|
97
|
+
# @param app_id [Integer] The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
|
98
|
+
# @param sync_products_request [SyncProductsRequest]
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [ActionResponse]
|
101
|
+
def create_product(app_id, sync_products_request, opts = {})
|
102
|
+
data, _status_code, _headers = create_product_with_http_info(app_id, sync_products_request, opts)
|
103
|
+
data
|
104
|
+
end
|
105
|
+
|
106
|
+
# Import products
|
107
|
+
# Imports products' properties from an external accounting system to HubSpot. Import details, including property mappings, must be configured previously in HubSpot infrastructure.
|
108
|
+
# @param app_id [Integer] The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
|
109
|
+
# @param sync_products_request [SyncProductsRequest]
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [Array<(ActionResponse, Integer, Hash)>] ActionResponse data, response status code and response headers
|
112
|
+
def create_product_with_http_info(app_id, sync_products_request, opts = {})
|
113
|
+
if @api_client.config.debugging
|
114
|
+
@api_client.config.logger.debug 'Calling API: SyncApi.create_product ...'
|
115
|
+
end
|
116
|
+
# verify the required parameter 'app_id' is set
|
117
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
118
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SyncApi.create_product"
|
119
|
+
end
|
120
|
+
# verify the required parameter 'sync_products_request' is set
|
121
|
+
if @api_client.config.client_side_validation && sync_products_request.nil?
|
122
|
+
fail ArgumentError, "Missing the required parameter 'sync_products_request' when calling SyncApi.create_product"
|
123
|
+
end
|
124
|
+
# resource path
|
125
|
+
local_var_path = '/crm/v3/extensions/accounting/sync/{appId}/products'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
126
|
+
|
127
|
+
# query parameters
|
128
|
+
query_params = opts[:query_params] || {}
|
129
|
+
|
130
|
+
# header parameters
|
131
|
+
header_params = opts[:header_params] || {}
|
132
|
+
# HTTP header 'Accept' (if needed)
|
133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
134
|
+
# HTTP header 'Content-Type'
|
135
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
136
|
+
|
137
|
+
# form parameters
|
138
|
+
form_params = opts[:form_params] || {}
|
139
|
+
|
140
|
+
# http body (model)
|
141
|
+
post_body = opts[:body] || @api_client.object_to_http_body(sync_products_request)
|
142
|
+
|
143
|
+
# return_type
|
144
|
+
return_type = opts[:return_type] || 'ActionResponse'
|
145
|
+
|
146
|
+
# auth_names
|
147
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
148
|
+
|
149
|
+
new_options = opts.merge(
|
150
|
+
:header_params => header_params,
|
151
|
+
:query_params => query_params,
|
152
|
+
:form_params => form_params,
|
153
|
+
:body => post_body,
|
154
|
+
:auth_names => auth_names,
|
155
|
+
:return_type => return_type
|
156
|
+
)
|
157
|
+
|
158
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
159
|
+
if @api_client.config.debugging
|
160
|
+
@api_client.config.logger.debug "API called: SyncApi#create_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
161
|
+
end
|
162
|
+
return data, status_code, headers
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|