hubspot-api-client 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/hubspot-api-client.rb +3 -2
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +94 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +0 -5
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +0 -5
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +226 -0
- data/lib/hubspot/codegen/crm/associations/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +19 -5
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/companies/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/companies/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/contacts/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/deals/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/deals/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +36 -36
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +8 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +6 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +7 -4
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +8 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +7 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +24 -4
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/line_items/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +22 -2
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +6 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +7 -7
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +22 -2
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/products/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/products/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/products/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +6 -6
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +6 -6
- data/lib/hubspot/codegen/crm/properties/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/properties/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/quotes/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +4 -4
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/tickets/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +6 -6
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +353 -0
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +362 -0
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +250 -0
- data/lib/hubspot/codegen/crm/{objects → timeline}/api_client.rb +6 -5
- data/lib/hubspot/codegen/crm/{objects → timeline}/api_error.rb +4 -4
- data/lib/hubspot/codegen/crm/{objects → timeline}/configuration.rb +6 -6
- data/lib/hubspot/codegen/crm/timeline/models/add_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +219 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_response_simple_public_object.rb → timeline/models/batch_response_timeline_event_response.rb} +17 -14
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +228 -0
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/contains.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/date.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/divide_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects → timeline}/models/error.rb +18 -8
- data/lib/hubspot/codegen/crm/{objects → timeline}/models/error_detail.rb +26 -29
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_input_simple_public_object_input.rb → timeline/models/has_email_reply.rb} +78 -15
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_or.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/filter.rb → timeline/models/month.rb} +36 -28
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_input_simple_public_object_id.rb → timeline/models/now.rb} +78 -15
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/pipeline_probability.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/public_object_search_request.rb → timeline/models/timeline_event.rb} +101 -69
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object_id.rb → timeline/models/timeline_event_i_frame.rb} +79 -18
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +342 -0
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object.rb → timeline/models/timeline_event_template.rb} +62 -56
- data/lib/hubspot/codegen/crm/{objects/models/batch_read_input_simple_public_object_id.rb → timeline/models/timeline_event_template_create_request.rb} +63 -36
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +328 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +229 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +244 -0
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object_batch_input.rb → timeline/models/timeline_event_template_update_request.rb} +57 -19
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/xor.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +280 -0
- data/lib/hubspot/codegen/oauth/api/default_api.rb +270 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +3 -4
- data/lib/hubspot/codegen/oauth/configuration.rb +3 -3
- data/lib/hubspot/codegen/oauth/models/error.rb +14 -25
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +26 -6
- data/lib/hubspot/codegen/oauth/models/{refresh_token.rb → token_response_if.rb} +33 -47
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +214 -0
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +360 -0
- data/lib/hubspot/codegen/webhooks/api_client.rb +420 -0
- data/lib/hubspot/codegen/webhooks/api_error.rb +59 -0
- data/lib/hubspot/codegen/webhooks/configuration.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/error.rb +290 -0
- data/lib/hubspot/codegen/webhooks/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +229 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +254 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +268 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +217 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +210 -0
- data/lib/hubspot/codegen/{oauth/models/json_node.rb → webhooks/models/subscription_response.rb} +75 -189
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +264 -0
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/companies-app/Gemfile.lock +2 -2
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +3 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +3 -2
- data/sample-apps/contacts-app/Gemfile.lock +2 -2
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +1 -1
- data/sample-apps/contacts-app/app/views/contacts/show.html.erb +1 -0
- data/sample-apps/leaky-bucket-app/Gemfile.lock +2 -2
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/oauth-app/Gemfile.lock +2 -2
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- metadata +170 -90
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +0 -254
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +0 -389
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -293
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -92
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +0 -217
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +0 -226
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_id.rb +0 -226
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +0 -241
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +0 -217
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +0 -224
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +0 -210
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +0 -217
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +0 -84
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +0 -336
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +0 -98
- data/spec/objects/api/associations_api_spec.rb +0 -76
- data/spec/objects/api/basic_api_spec.rb +0 -108
- data/spec/objects/api/batch_api_spec.rb +0 -88
- data/spec/objects/api/search_api_spec.rb +0 -48
- data/spec/objects/api_client_spec.rb +0 -226
- data/spec/objects/configuration_spec.rb +0 -42
- data/spec/objects/models/batch_input_simple_public_object_batch_input_spec.rb +0 -41
- data/spec/objects/models/batch_input_simple_public_object_id_spec.rb +0 -41
- data/spec/objects/models/batch_input_simple_public_object_input_spec.rb +0 -41
- data/spec/objects/models/batch_read_input_simple_public_object_id_spec.rb +0 -47
- data/spec/objects/models/batch_response_simple_public_object_spec.rb +0 -81
- data/spec/objects/models/collection_response_simple_public_object_id_spec.rb +0 -47
- data/spec/objects/models/collection_response_simple_public_object_spec.rb +0 -47
- data/spec/objects/models/collection_response_with_total_simple_public_object_spec.rb +0 -53
- data/spec/objects/models/error_detail_spec.rb +0 -65
- data/spec/objects/models/error_spec.rb +0 -71
- data/spec/objects/models/filter_group_spec.rb +0 -41
- data/spec/objects/models/filter_spec.rb +0 -57
- data/spec/objects/models/next_page_spec.rb +0 -47
- data/spec/objects/models/paging_spec.rb +0 -41
- data/spec/objects/models/public_object_search_request_spec.rb +0 -71
- data/spec/objects/models/simple_public_object_batch_input_spec.rb +0 -47
- data/spec/objects/models/simple_public_object_id_spec.rb +0 -41
- data/spec/objects/models/simple_public_object_input_spec.rb +0 -41
- data/spec/objects/models/simple_public_object_spec.rb +0 -77
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM cards
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -17,8 +17,10 @@ module Hubspot
|
|
|
17
17
|
module Extensions
|
|
18
18
|
module Cards
|
|
19
19
|
class CardObjectTypeBody
|
|
20
|
+
# A CRM object type where this card should be displayed.
|
|
20
21
|
attr_accessor :name
|
|
21
22
|
|
|
23
|
+
# An array of properties that should be sent to this card's target URL when the data fetch request is made. Must be valid properties for the corresponding CRM object type.
|
|
22
24
|
attr_accessor :properties_to_send
|
|
23
25
|
|
|
24
26
|
class EnumAttributeValidator
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM cards
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,7 +16,9 @@ module Hubspot
|
|
|
16
16
|
module Crm
|
|
17
17
|
module Extensions
|
|
18
18
|
module Cards
|
|
19
|
+
# Body for a patch with optional fields
|
|
19
20
|
class CardPatchRequest
|
|
21
|
+
# The top-level title for this card. Displayed to users in the CRM UI.
|
|
20
22
|
attr_accessor :title
|
|
21
23
|
|
|
22
24
|
attr_accessor :fetch
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM cards
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,13 +16,18 @@ module Hubspot
|
|
|
16
16
|
module Crm
|
|
17
17
|
module Extensions
|
|
18
18
|
module Cards
|
|
19
|
+
# Current state of Card Definition
|
|
19
20
|
class CardResponse
|
|
21
|
+
# Generated unique ID for card.
|
|
20
22
|
attr_accessor :id
|
|
21
23
|
|
|
24
|
+
# When this card was created.
|
|
22
25
|
attr_accessor :created_at
|
|
23
26
|
|
|
27
|
+
# The last time this card was updated.
|
|
24
28
|
attr_accessor :updated_at
|
|
25
29
|
|
|
30
|
+
# Displayed title of this card.
|
|
26
31
|
attr_accessor :title
|
|
27
32
|
|
|
28
33
|
attr_accessor :fetch
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM cards
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,11 +16,15 @@ module Hubspot
|
|
|
16
16
|
module Crm
|
|
17
17
|
module Extensions
|
|
18
18
|
module Cards
|
|
19
|
+
# Option definition for STATUS dataTypes.
|
|
19
20
|
class DisplayOption
|
|
21
|
+
# JSON-friendly unique name for option.
|
|
20
22
|
attr_accessor :name
|
|
21
23
|
|
|
24
|
+
# The text that will be displayed to users for this option.
|
|
22
25
|
attr_accessor :label
|
|
23
26
|
|
|
27
|
+
# The type of status.
|
|
24
28
|
attr_accessor :type
|
|
25
29
|
|
|
26
30
|
class EnumAttributeValidator
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -26,6 +26,9 @@ module Hubspot
|
|
|
26
26
|
# The error category
|
|
27
27
|
attr_accessor :category
|
|
28
28
|
|
|
29
|
+
# A specific category that contains more specific detail about the error
|
|
30
|
+
attr_accessor :sub_category
|
|
31
|
+
|
|
29
32
|
# further information about the error
|
|
30
33
|
attr_accessor :errors
|
|
31
34
|
|
|
@@ -41,6 +44,7 @@ module Hubspot
|
|
|
41
44
|
:'message' => :'message',
|
|
42
45
|
:'correlation_id' => :'correlationId',
|
|
43
46
|
:'category' => :'category',
|
|
47
|
+
:'sub_category' => :'subCategory',
|
|
44
48
|
:'errors' => :'errors',
|
|
45
49
|
:'context' => :'context',
|
|
46
50
|
:'links' => :'links'
|
|
@@ -53,6 +57,7 @@ module Hubspot
|
|
|
53
57
|
:'message' => :'String',
|
|
54
58
|
:'correlation_id' => :'String',
|
|
55
59
|
:'category' => :'String',
|
|
60
|
+
:'sub_category' => :'String',
|
|
56
61
|
:'errors' => :'Array<ErrorDetail>',
|
|
57
62
|
:'context' => :'Hash<String, Array<String>>',
|
|
58
63
|
:'links' => :'Hash<String, String>'
|
|
@@ -92,6 +97,10 @@ module Hubspot
|
|
|
92
97
|
self.category = attributes[:'category']
|
|
93
98
|
end
|
|
94
99
|
|
|
100
|
+
if attributes.key?(:'sub_category')
|
|
101
|
+
self.sub_category = attributes[:'sub_category']
|
|
102
|
+
end
|
|
103
|
+
|
|
95
104
|
if attributes.key?(:'errors')
|
|
96
105
|
if (value = attributes[:'errors']).is_a?(Array)
|
|
97
106
|
self.errors = value
|
|
@@ -147,6 +156,7 @@ module Hubspot
|
|
|
147
156
|
message == o.message &&
|
|
148
157
|
correlation_id == o.correlation_id &&
|
|
149
158
|
category == o.category &&
|
|
159
|
+
sub_category == o.sub_category &&
|
|
150
160
|
errors == o.errors &&
|
|
151
161
|
context == o.context &&
|
|
152
162
|
links == o.links
|
|
@@ -161,7 +171,7 @@ module Hubspot
|
|
|
161
171
|
# Calculates hash code according to all attributes.
|
|
162
172
|
# @return [Integer] Hash code
|
|
163
173
|
def hash
|
|
164
|
-
[message, correlation_id, category, errors, context, links].hash
|
|
174
|
+
[message, correlation_id, category, sub_category, errors, context, links].hash
|
|
165
175
|
end
|
|
166
176
|
|
|
167
177
|
# Builds the object from hash
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#CRM cards
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -23,6 +23,12 @@ module Hubspot
|
|
|
23
23
|
# The name of the field or parameter in which the error was found.
|
|
24
24
|
attr_accessor :_in
|
|
25
25
|
|
|
26
|
+
# The status code associated with the error detail
|
|
27
|
+
attr_accessor :code
|
|
28
|
+
|
|
29
|
+
# A specific category that contains more specific detail about the error
|
|
30
|
+
attr_accessor :sub_category
|
|
31
|
+
|
|
26
32
|
# Context about the error condition
|
|
27
33
|
attr_accessor :context
|
|
28
34
|
|
|
@@ -31,6 +37,8 @@ module Hubspot
|
|
|
31
37
|
{
|
|
32
38
|
:'message' => :'message',
|
|
33
39
|
:'_in' => :'in',
|
|
40
|
+
:'code' => :'code',
|
|
41
|
+
:'sub_category' => :'subCategory',
|
|
34
42
|
:'context' => :'context'
|
|
35
43
|
}
|
|
36
44
|
end
|
|
@@ -40,6 +48,8 @@ module Hubspot
|
|
|
40
48
|
{
|
|
41
49
|
:'message' => :'String',
|
|
42
50
|
:'_in' => :'String',
|
|
51
|
+
:'code' => :'String',
|
|
52
|
+
:'sub_category' => :'String',
|
|
43
53
|
:'context' => :'Hash<String, Array<String>>'
|
|
44
54
|
}
|
|
45
55
|
end
|
|
@@ -73,6 +83,14 @@ module Hubspot
|
|
|
73
83
|
self._in = attributes[:'_in']
|
|
74
84
|
end
|
|
75
85
|
|
|
86
|
+
if attributes.key?(:'code')
|
|
87
|
+
self.code = attributes[:'code']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'sub_category')
|
|
91
|
+
self.sub_category = attributes[:'sub_category']
|
|
92
|
+
end
|
|
93
|
+
|
|
76
94
|
if attributes.key?(:'context')
|
|
77
95
|
if (value = attributes[:'context']).is_a?(Hash)
|
|
78
96
|
self.context = value
|
|
@@ -105,6 +123,8 @@ module Hubspot
|
|
|
105
123
|
self.class == o.class &&
|
|
106
124
|
message == o.message &&
|
|
107
125
|
_in == o._in &&
|
|
126
|
+
code == o.code &&
|
|
127
|
+
sub_category == o.sub_category &&
|
|
108
128
|
context == o.context
|
|
109
129
|
end
|
|
110
130
|
|
|
@@ -117,7 +137,7 @@ module Hubspot
|
|
|
117
137
|
# Calculates hash code according to all attributes.
|
|
118
138
|
# @return [Integer] Hash code
|
|
119
139
|
def hash
|
|
120
|
-
[message, _in, context].hash
|
|
140
|
+
[message, _in, code, sub_category, context].hash
|
|
121
141
|
end
|
|
122
142
|
|
|
123
143
|
# Builds the object from hash
|
|
@@ -23,22 +23,24 @@ module Hubspot
|
|
|
23
23
|
end
|
|
24
24
|
# Remove an association between two line items
|
|
25
25
|
# @param line_item_id [String]
|
|
26
|
-
# @param
|
|
26
|
+
# @param to_object_type [String]
|
|
27
27
|
# @param to_object_id [String]
|
|
28
|
+
# @param association_type [String]
|
|
28
29
|
# @param [Hash] opts the optional parameters
|
|
29
30
|
# @return [nil]
|
|
30
|
-
def archive_association(line_item_id,
|
|
31
|
-
archive_association_with_http_info(line_item_id,
|
|
31
|
+
def archive_association(line_item_id, to_object_type, to_object_id, association_type, opts = {})
|
|
32
|
+
archive_association_with_http_info(line_item_id, to_object_type, to_object_id, association_type, opts)
|
|
32
33
|
nil
|
|
33
34
|
end
|
|
34
35
|
|
|
35
36
|
# Remove an association between two line items
|
|
36
37
|
# @param line_item_id [String]
|
|
37
|
-
# @param
|
|
38
|
+
# @param to_object_type [String]
|
|
38
39
|
# @param to_object_id [String]
|
|
40
|
+
# @param association_type [String]
|
|
39
41
|
# @param [Hash] opts the optional parameters
|
|
40
42
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
41
|
-
def archive_association_with_http_info(line_item_id,
|
|
43
|
+
def archive_association_with_http_info(line_item_id, to_object_type, to_object_id, association_type, opts = {})
|
|
42
44
|
if @api_client.config.debugging
|
|
43
45
|
@api_client.config.logger.debug 'Calling API: AssociationsApi.archive_association ...'
|
|
44
46
|
end
|
|
@@ -46,16 +48,20 @@ module Hubspot
|
|
|
46
48
|
if @api_client.config.client_side_validation && line_item_id.nil?
|
|
47
49
|
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling AssociationsApi.archive_association"
|
|
48
50
|
end
|
|
49
|
-
# verify the required parameter '
|
|
50
|
-
if @api_client.config.client_side_validation &&
|
|
51
|
-
fail ArgumentError, "Missing the required parameter '
|
|
51
|
+
# verify the required parameter 'to_object_type' is set
|
|
52
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.archive_association"
|
|
52
54
|
end
|
|
53
55
|
# verify the required parameter 'to_object_id' is set
|
|
54
56
|
if @api_client.config.client_side_validation && to_object_id.nil?
|
|
55
57
|
fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.archive_association"
|
|
56
58
|
end
|
|
59
|
+
# verify the required parameter 'association_type' is set
|
|
60
|
+
if @api_client.config.client_side_validation && association_type.nil?
|
|
61
|
+
fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.archive_association"
|
|
62
|
+
end
|
|
57
63
|
# resource path
|
|
58
|
-
local_var_path = '/crm/v3/objects/line_items/{lineItemId}/associations/{
|
|
64
|
+
local_var_path = '/crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s))
|
|
59
65
|
|
|
60
66
|
# query parameters
|
|
61
67
|
query_params = opts[:query_params] || {}
|
|
@@ -95,22 +101,24 @@ module Hubspot
|
|
|
95
101
|
|
|
96
102
|
# Associate two line items
|
|
97
103
|
# @param line_item_id [String]
|
|
98
|
-
# @param
|
|
104
|
+
# @param to_object_type [String]
|
|
99
105
|
# @param to_object_id [String]
|
|
106
|
+
# @param association_type [String]
|
|
100
107
|
# @param [Hash] opts the optional parameters
|
|
101
108
|
# @return [SimplePublicObject]
|
|
102
|
-
def create_association(line_item_id,
|
|
103
|
-
data, _status_code, _headers = create_association_with_http_info(line_item_id,
|
|
109
|
+
def create_association(line_item_id, to_object_type, to_object_id, association_type, opts = {})
|
|
110
|
+
data, _status_code, _headers = create_association_with_http_info(line_item_id, to_object_type, to_object_id, association_type, opts)
|
|
104
111
|
data
|
|
105
112
|
end
|
|
106
113
|
|
|
107
114
|
# Associate two line items
|
|
108
115
|
# @param line_item_id [String]
|
|
109
|
-
# @param
|
|
116
|
+
# @param to_object_type [String]
|
|
110
117
|
# @param to_object_id [String]
|
|
118
|
+
# @param association_type [String]
|
|
111
119
|
# @param [Hash] opts the optional parameters
|
|
112
120
|
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
|
113
|
-
def create_association_with_http_info(line_item_id,
|
|
121
|
+
def create_association_with_http_info(line_item_id, to_object_type, to_object_id, association_type, opts = {})
|
|
114
122
|
if @api_client.config.debugging
|
|
115
123
|
@api_client.config.logger.debug 'Calling API: AssociationsApi.create_association ...'
|
|
116
124
|
end
|
|
@@ -118,16 +126,20 @@ module Hubspot
|
|
|
118
126
|
if @api_client.config.client_side_validation && line_item_id.nil?
|
|
119
127
|
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling AssociationsApi.create_association"
|
|
120
128
|
end
|
|
121
|
-
# verify the required parameter '
|
|
122
|
-
if @api_client.config.client_side_validation &&
|
|
123
|
-
fail ArgumentError, "Missing the required parameter '
|
|
129
|
+
# verify the required parameter 'to_object_type' is set
|
|
130
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
|
131
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.create_association"
|
|
124
132
|
end
|
|
125
133
|
# verify the required parameter 'to_object_id' is set
|
|
126
134
|
if @api_client.config.client_side_validation && to_object_id.nil?
|
|
127
135
|
fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.create_association"
|
|
128
136
|
end
|
|
137
|
+
# verify the required parameter 'association_type' is set
|
|
138
|
+
if @api_client.config.client_side_validation && association_type.nil?
|
|
139
|
+
fail ArgumentError, "Missing the required parameter 'association_type' when calling AssociationsApi.create_association"
|
|
140
|
+
end
|
|
129
141
|
# resource path
|
|
130
|
-
local_var_path = '/crm/v3/objects/line_items/{lineItemId}/associations/{
|
|
142
|
+
local_var_path = '/crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType}/{toObjectId}/{associationType}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s)).sub('{' + 'associationType' + '}', CGI.escape(association_type.to_s))
|
|
131
143
|
|
|
132
144
|
# query parameters
|
|
133
145
|
query_params = opts[:query_params] || {}
|
|
@@ -167,20 +179,20 @@ module Hubspot
|
|
|
167
179
|
|
|
168
180
|
# List associations of a line item by type
|
|
169
181
|
# @param line_item_id [String]
|
|
170
|
-
# @param
|
|
182
|
+
# @param to_object_type [String]
|
|
171
183
|
# @param [Hash] opts the optional parameters
|
|
172
|
-
# @return [
|
|
173
|
-
def get_associations(line_item_id,
|
|
174
|
-
data, _status_code, _headers = get_associations_with_http_info(line_item_id,
|
|
184
|
+
# @return [CollectionResponseAssociatedId]
|
|
185
|
+
def get_associations(line_item_id, to_object_type, opts = {})
|
|
186
|
+
data, _status_code, _headers = get_associations_with_http_info(line_item_id, to_object_type, opts)
|
|
175
187
|
data
|
|
176
188
|
end
|
|
177
189
|
|
|
178
190
|
# List associations of a line item by type
|
|
179
191
|
# @param line_item_id [String]
|
|
180
|
-
# @param
|
|
192
|
+
# @param to_object_type [String]
|
|
181
193
|
# @param [Hash] opts the optional parameters
|
|
182
|
-
# @return [Array<(
|
|
183
|
-
def get_associations_with_http_info(line_item_id,
|
|
194
|
+
# @return [Array<(CollectionResponseAssociatedId, Integer, Hash)>] CollectionResponseAssociatedId data, response status code and response headers
|
|
195
|
+
def get_associations_with_http_info(line_item_id, to_object_type, opts = {})
|
|
184
196
|
if @api_client.config.debugging
|
|
185
197
|
@api_client.config.logger.debug 'Calling API: AssociationsApi.get_associations ...'
|
|
186
198
|
end
|
|
@@ -188,12 +200,12 @@ module Hubspot
|
|
|
188
200
|
if @api_client.config.client_side_validation && line_item_id.nil?
|
|
189
201
|
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling AssociationsApi.get_associations"
|
|
190
202
|
end
|
|
191
|
-
# verify the required parameter '
|
|
192
|
-
if @api_client.config.client_side_validation &&
|
|
193
|
-
fail ArgumentError, "Missing the required parameter '
|
|
203
|
+
# verify the required parameter 'to_object_type' is set
|
|
204
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
|
205
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.get_associations"
|
|
194
206
|
end
|
|
195
207
|
# resource path
|
|
196
|
-
local_var_path = '/crm/v3/objects/line_items/{lineItemId}/associations/{
|
|
208
|
+
local_var_path = '/crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
|
|
197
209
|
|
|
198
210
|
# query parameters
|
|
199
211
|
query_params = opts[:query_params] || {}
|
|
@@ -210,7 +222,7 @@ module Hubspot
|
|
|
210
222
|
post_body = opts[:body]
|
|
211
223
|
|
|
212
224
|
# return_type
|
|
213
|
-
return_type = opts[:return_type] || '
|
|
225
|
+
return_type = opts[:return_type] || 'CollectionResponseAssociatedId'
|
|
214
226
|
|
|
215
227
|
# auth_names
|
|
216
228
|
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
|
@@ -47,7 +47,7 @@ module Hubspot
|
|
|
47
47
|
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling BasicApi.archive"
|
|
48
48
|
end
|
|
49
49
|
# resource path
|
|
50
|
-
local_var_path = '/crm/v3/objects/line_items/{lineItemId}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s)
|
|
50
|
+
local_var_path = '/crm/v3/objects/line_items/{lineItemId}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s))
|
|
51
51
|
|
|
52
52
|
# query parameters
|
|
53
53
|
query_params = opts[:query_params] || {}
|
|
@@ -146,12 +146,13 @@ module Hubspot
|
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
# Read
|
|
149
|
-
# Read an Object identified by `{lineItemId}`. Control what is returned via the `properties` query param.
|
|
149
|
+
# Read an Object identified by `{lineItemId}`. `{lineItemId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param.
|
|
150
150
|
# @param line_item_id [String]
|
|
151
151
|
# @param [Hash] opts the optional parameters
|
|
152
152
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
153
153
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
154
154
|
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
|
155
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
|
155
156
|
# @return [SimplePublicObject]
|
|
156
157
|
def get_by_id(line_item_id, opts = {})
|
|
157
158
|
data, _status_code, _headers = get_by_id_with_http_info(line_item_id, opts)
|
|
@@ -159,12 +160,13 @@ module Hubspot
|
|
|
159
160
|
end
|
|
160
161
|
|
|
161
162
|
# Read
|
|
162
|
-
# Read an Object identified by `{lineItemId}`. Control what is returned via the `properties` query param.
|
|
163
|
+
# Read an Object identified by `{lineItemId}`. `{lineItemId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param.
|
|
163
164
|
# @param line_item_id [String]
|
|
164
165
|
# @param [Hash] opts the optional parameters
|
|
165
166
|
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
|
|
166
167
|
# @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
|
|
167
168
|
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
|
169
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object type
|
|
168
170
|
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
|
169
171
|
def get_by_id_with_http_info(line_item_id, opts = {})
|
|
170
172
|
if @api_client.config.debugging
|
|
@@ -175,13 +177,14 @@ module Hubspot
|
|
|
175
177
|
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling BasicApi.get_by_id"
|
|
176
178
|
end
|
|
177
179
|
# resource path
|
|
178
|
-
local_var_path = '/crm/v3/objects/line_items/{lineItemId}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s)
|
|
180
|
+
local_var_path = '/crm/v3/objects/line_items/{lineItemId}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s))
|
|
179
181
|
|
|
180
182
|
# query parameters
|
|
181
183
|
query_params = opts[:query_params] || {}
|
|
182
184
|
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
|
|
183
185
|
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
|
|
184
186
|
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
|
187
|
+
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
|
|
185
188
|
|
|
186
189
|
# header parameters
|
|
187
190
|
header_params = opts[:header_params] || {}
|
|
@@ -313,7 +316,7 @@ module Hubspot
|
|
|
313
316
|
fail ArgumentError, "Missing the required parameter 'line_item_id' when calling BasicApi.update"
|
|
314
317
|
end
|
|
315
318
|
# resource path
|
|
316
|
-
local_var_path = '/crm/v3/objects/line_items/{lineItemId}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s)
|
|
319
|
+
local_var_path = '/crm/v3/objects/line_items/{lineItemId}'.sub('{' + 'lineItemId' + '}', CGI.escape(line_item_id.to_s))
|
|
317
320
|
|
|
318
321
|
# query parameters
|
|
319
322
|
query_params = opts[:query_params] || {}
|