hubspot-api-client 17.0.0.pre.beta.4 → 17.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/CHANGELOG.md +48 -1
- data/Gemfile.lock +1 -1
- data/lib/hubspot/client.rb +1 -1
- data/lib/hubspot/codegen/automation/actions/api/callbacks_api.rb +2 -2
- data/lib/hubspot/codegen/automation/actions/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/blogs/authors/api/blog_authors_api.rb +14 -14
- data/lib/hubspot/codegen/cms/blogs/authors/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/blogs/tags/api/blog_tags_api.rb +14 -14
- data/lib/hubspot/codegen/cms/blogs/tags/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
- data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +9 -9
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +17 -17
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +14 -14
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +19 -19
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/api/public_performance_api.rb +2 -2
- data/lib/hubspot/codegen/cms/performance/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +5 -5
- data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +41 -41
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +52 -52
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +41 -41
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +52 -52
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +52 -52
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object.rb +41 -41
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object_with_errors.rb +52 -52
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_associated_id.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +50 -50
- data/lib/hubspot/codegen/crm/associations/v4/models/error_category.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +28 -28
- data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +19 -19
- data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_create_request.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_update_request.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +20 -20
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/public_associations_for_object.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/public_gdpr_delete_input.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object.rb +44 -44
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_input_for_create.rb +20 -20
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_with_associations.rb +49 -49
- data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +46 -46
- data/lib/hubspot/codegen/crm/associations/v4/models/standard_error1.rb +324 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/value_with_timestamp.rb +33 -33
- data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +4 -4
- data/lib/hubspot/codegen/crm/associations/v4/schema/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/companies/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/companies/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/contacts/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/deals/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/deals/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +10 -10
- data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +3 -3
- data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/accounting/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/api/settings_api.rb +3 -3
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +0 -1
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
- data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/line_items/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/line_items/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +3 -3
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/calls/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/calls/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/calls/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/calls/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/communications/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/communications/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/communications/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/emails/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/emails/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/emails/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/emails/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/meetings/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/meetings/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/meetings/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/meetings/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/notes/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/notes/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/notes/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/notes/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/tasks/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/tasks/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/tasks/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/tasks/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/api/owners_api.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_audits_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stage_audits_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +6 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +6 -6
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/products/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/products/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +5 -5
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +5 -5
- data/lib/hubspot/codegen/crm/properties/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/properties/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/quotes/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/quotes/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +7 -7
- data/lib/hubspot/codegen/crm/schemas/api/public_object_schemas_api.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/tickets/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/tickets/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/events/api/events_api.rb +1 -1
- data/lib/hubspot/codegen/events/configuration.rb +0 -7
- data/lib/hubspot/codegen/files/files/api/files_api.rb +10 -10
- data/lib/hubspot/codegen/files/files/api/folders_api.rb +8 -8
- data/lib/hubspot/codegen/files/files/configuration.rb +0 -7
- data/lib/hubspot/codegen/marketing/forms/api/forms_api.rb +6 -6
- data/lib/hubspot/codegen/marketing/forms/configuration.rb +0 -7
- data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/configuration.rb +0 -7
- data/lib/hubspot/codegen/webhooks/models/standard_error.rb +1 -1
- data/lib/hubspot/discovery/oauth/client.rb +0 -4
- data/lib/hubspot/helpers/camel_case.rb +5 -1
- data/lib/hubspot/helpers/path.rb +1 -8
- data/lib/hubspot/helpers/snake_case.rb +2 -1
- data/lib/hubspot/oauth_helper.rb +12 -8
- data/lib/hubspot/version.rb +1 -1
- data/pkg/hubspot-api-client-17.0.0.gem +0 -0
- data/spec/discovery/client_spec.rb +1 -1
- data/spec/discovery/oauth/access_tokens_api_spec.rb +1 -1
- data/spec/discovery/oauth/refresh_tokens_api_spec.rb +1 -1
- data/spec/discovery/oauth/tokens_api_spec.rb +1 -1
- data/spec/helpers/authorize_url_spec.rb +75 -0
- metadata +8 -4
|
@@ -65,7 +65,7 @@ module Hubspot
|
|
|
65
65
|
return_type = opts[:debug_return_type]
|
|
66
66
|
|
|
67
67
|
# auth_names
|
|
68
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
68
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
69
69
|
|
|
70
70
|
new_options = opts.merge(
|
|
71
71
|
:operation => :"TablesApi.archive_table",
|
|
@@ -139,7 +139,7 @@ module Hubspot
|
|
|
139
139
|
return_type = opts[:debug_return_type] || 'HubDbTableV3'
|
|
140
140
|
|
|
141
141
|
# auth_names
|
|
142
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
142
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
143
143
|
|
|
144
144
|
new_options = opts.merge(
|
|
145
145
|
:operation => :"TablesApi.clone_draft_table",
|
|
@@ -207,7 +207,7 @@ module Hubspot
|
|
|
207
207
|
return_type = opts[:debug_return_type] || 'HubDbTableV3'
|
|
208
208
|
|
|
209
209
|
# auth_names
|
|
210
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
210
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
211
211
|
|
|
212
212
|
new_options = opts.merge(
|
|
213
213
|
:operation => :"TablesApi.create_table",
|
|
@@ -273,7 +273,7 @@ module Hubspot
|
|
|
273
273
|
return_type = opts[:debug_return_type] || 'File'
|
|
274
274
|
|
|
275
275
|
# auth_names
|
|
276
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
276
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
277
277
|
|
|
278
278
|
new_options = opts.merge(
|
|
279
279
|
:operation => :"TablesApi.export_draft_table",
|
|
@@ -339,7 +339,7 @@ module Hubspot
|
|
|
339
339
|
return_type = opts[:debug_return_type] || 'File'
|
|
340
340
|
|
|
341
341
|
# auth_names
|
|
342
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
342
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
343
343
|
|
|
344
344
|
new_options = opts.merge(
|
|
345
345
|
:operation => :"TablesApi.export_table",
|
|
@@ -426,7 +426,7 @@ module Hubspot
|
|
|
426
426
|
return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalHubDbTableV3ForwardPaging'
|
|
427
427
|
|
|
428
428
|
# auth_names
|
|
429
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
429
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
430
430
|
|
|
431
431
|
new_options = opts.merge(
|
|
432
432
|
:operation => :"TablesApi.get_all_draft_tables",
|
|
@@ -513,7 +513,7 @@ module Hubspot
|
|
|
513
513
|
return_type = opts[:debug_return_type] || 'CollectionResponseWithTotalHubDbTableV3ForwardPaging'
|
|
514
514
|
|
|
515
515
|
# auth_names
|
|
516
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
516
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
517
517
|
|
|
518
518
|
new_options = opts.merge(
|
|
519
519
|
:operation => :"TablesApi.get_all_tables",
|
|
@@ -582,7 +582,7 @@ module Hubspot
|
|
|
582
582
|
return_type = opts[:debug_return_type] || 'HubDbTableV3'
|
|
583
583
|
|
|
584
584
|
# auth_names
|
|
585
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
585
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
586
586
|
|
|
587
587
|
new_options = opts.merge(
|
|
588
588
|
:operation => :"TablesApi.get_draft_table_details_by_id",
|
|
@@ -651,7 +651,7 @@ module Hubspot
|
|
|
651
651
|
return_type = opts[:debug_return_type] || 'HubDbTableV3'
|
|
652
652
|
|
|
653
653
|
# auth_names
|
|
654
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
654
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
655
655
|
|
|
656
656
|
new_options = opts.merge(
|
|
657
657
|
:operation => :"TablesApi.get_table_details",
|
|
@@ -725,7 +725,7 @@ module Hubspot
|
|
|
725
725
|
return_type = opts[:debug_return_type] || 'ImportResult'
|
|
726
726
|
|
|
727
727
|
# auth_names
|
|
728
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
728
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
729
729
|
|
|
730
730
|
new_options = opts.merge(
|
|
731
731
|
:operation => :"TablesApi.import_draft_table",
|
|
@@ -791,7 +791,7 @@ module Hubspot
|
|
|
791
791
|
return_type = opts[:debug_return_type] || 'HubDbTableV3'
|
|
792
792
|
|
|
793
793
|
# auth_names
|
|
794
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
794
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
795
795
|
|
|
796
796
|
new_options = opts.merge(
|
|
797
797
|
:operation => :"TablesApi.publish_draft_table",
|
|
@@ -857,7 +857,7 @@ module Hubspot
|
|
|
857
857
|
return_type = opts[:debug_return_type] || 'HubDbTableV3'
|
|
858
858
|
|
|
859
859
|
# auth_names
|
|
860
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
860
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
861
861
|
|
|
862
862
|
new_options = opts.merge(
|
|
863
863
|
:operation => :"TablesApi.reset_draft_table",
|
|
@@ -923,7 +923,7 @@ module Hubspot
|
|
|
923
923
|
return_type = opts[:debug_return_type] || 'HubDbTableV3'
|
|
924
924
|
|
|
925
925
|
# auth_names
|
|
926
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
926
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
927
927
|
|
|
928
928
|
new_options = opts.merge(
|
|
929
929
|
:operation => :"TablesApi.unpublish_table",
|
|
@@ -1003,7 +1003,7 @@ module Hubspot
|
|
|
1003
1003
|
return_type = opts[:debug_return_type] || 'HubDbTableV3'
|
|
1004
1004
|
|
|
1005
1005
|
# auth_names
|
|
1006
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
1006
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
1007
1007
|
|
|
1008
1008
|
new_options = opts.merge(
|
|
1009
1009
|
:operation => :"TablesApi.update_draft_table",
|
|
@@ -222,13 +222,6 @@ module Hubspot
|
|
|
222
222
|
# Returns Auth Settings hash for api client.
|
|
223
223
|
def auth_settings
|
|
224
224
|
{
|
|
225
|
-
'hapikey' =>
|
|
226
|
-
{
|
|
227
|
-
type: 'api_key',
|
|
228
|
-
in: 'query',
|
|
229
|
-
key: 'hapikey',
|
|
230
|
-
value: api_key_with_prefix('hapikey')
|
|
231
|
-
},
|
|
232
225
|
'oauth2' =>
|
|
233
226
|
{
|
|
234
227
|
type: 'oauth2',
|
|
@@ -20,22 +20,22 @@ module Hubspot
|
|
|
20
20
|
# List of errors during import
|
|
21
21
|
attr_accessor :errors
|
|
22
22
|
|
|
23
|
-
# Specifies number of rows imported
|
|
24
|
-
attr_accessor :rows_imported
|
|
25
|
-
|
|
26
23
|
# Specifies number of duplicate rows
|
|
27
24
|
attr_accessor :duplicate_rows
|
|
28
25
|
|
|
29
26
|
# Specifies whether row limit exceeded during import
|
|
30
27
|
attr_accessor :row_limit_exceeded
|
|
31
28
|
|
|
29
|
+
# Specifies number of rows imported
|
|
30
|
+
attr_accessor :rows_imported
|
|
31
|
+
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
35
|
:'errors' => :'errors',
|
|
36
|
-
:'rows_imported' => :'rowsImported',
|
|
37
36
|
:'duplicate_rows' => :'duplicateRows',
|
|
38
|
-
:'row_limit_exceeded' => :'rowLimitExceeded'
|
|
37
|
+
:'row_limit_exceeded' => :'rowLimitExceeded',
|
|
38
|
+
:'rows_imported' => :'rowsImported'
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -48,9 +48,9 @@ module Hubspot
|
|
|
48
48
|
def self.openapi_types
|
|
49
49
|
{
|
|
50
50
|
:'errors' => :'Array<Error>',
|
|
51
|
-
:'rows_imported' => :'Integer',
|
|
52
51
|
:'duplicate_rows' => :'Integer',
|
|
53
|
-
:'row_limit_exceeded' => :'Boolean'
|
|
52
|
+
:'row_limit_exceeded' => :'Boolean',
|
|
53
|
+
:'rows_imported' => :'Integer'
|
|
54
54
|
}
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -81,10 +81,6 @@ module Hubspot
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'rows_imported')
|
|
85
|
-
self.rows_imported = attributes[:'rows_imported']
|
|
86
|
-
end
|
|
87
|
-
|
|
88
84
|
if attributes.key?(:'duplicate_rows')
|
|
89
85
|
self.duplicate_rows = attributes[:'duplicate_rows']
|
|
90
86
|
end
|
|
@@ -92,6 +88,10 @@ module Hubspot
|
|
|
92
88
|
if attributes.key?(:'row_limit_exceeded')
|
|
93
89
|
self.row_limit_exceeded = attributes[:'row_limit_exceeded']
|
|
94
90
|
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'rows_imported')
|
|
93
|
+
self.rows_imported = attributes[:'rows_imported']
|
|
94
|
+
end
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -102,10 +102,6 @@ module Hubspot
|
|
|
102
102
|
invalid_properties.push('invalid value for "errors", errors cannot be nil.')
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
if @rows_imported.nil?
|
|
106
|
-
invalid_properties.push('invalid value for "rows_imported", rows_imported cannot be nil.')
|
|
107
|
-
end
|
|
108
|
-
|
|
109
105
|
if @duplicate_rows.nil?
|
|
110
106
|
invalid_properties.push('invalid value for "duplicate_rows", duplicate_rows cannot be nil.')
|
|
111
107
|
end
|
|
@@ -114,6 +110,10 @@ module Hubspot
|
|
|
114
110
|
invalid_properties.push('invalid value for "row_limit_exceeded", row_limit_exceeded cannot be nil.')
|
|
115
111
|
end
|
|
116
112
|
|
|
113
|
+
if @rows_imported.nil?
|
|
114
|
+
invalid_properties.push('invalid value for "rows_imported", rows_imported cannot be nil.')
|
|
115
|
+
end
|
|
116
|
+
|
|
117
117
|
invalid_properties
|
|
118
118
|
end
|
|
119
119
|
|
|
@@ -121,9 +121,9 @@ module Hubspot
|
|
|
121
121
|
# @return true if the model is valid
|
|
122
122
|
def valid?
|
|
123
123
|
return false if @errors.nil?
|
|
124
|
-
return false if @rows_imported.nil?
|
|
125
124
|
return false if @duplicate_rows.nil?
|
|
126
125
|
return false if @row_limit_exceeded.nil?
|
|
126
|
+
return false if @rows_imported.nil?
|
|
127
127
|
true
|
|
128
128
|
end
|
|
129
129
|
|
|
@@ -133,9 +133,9 @@ module Hubspot
|
|
|
133
133
|
return true if self.equal?(o)
|
|
134
134
|
self.class == o.class &&
|
|
135
135
|
errors == o.errors &&
|
|
136
|
-
rows_imported == o.rows_imported &&
|
|
137
136
|
duplicate_rows == o.duplicate_rows &&
|
|
138
|
-
row_limit_exceeded == o.row_limit_exceeded
|
|
137
|
+
row_limit_exceeded == o.row_limit_exceeded &&
|
|
138
|
+
rows_imported == o.rows_imported
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
# @see the `==` method
|
|
@@ -147,7 +147,7 @@ module Hubspot
|
|
|
147
147
|
# Calculates hash code according to all attributes.
|
|
148
148
|
# @return [Integer] Hash code
|
|
149
149
|
def hash
|
|
150
|
-
[errors,
|
|
150
|
+
[errors, duplicate_rows, row_limit_exceeded, rows_imported].hash
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
# Builds the object from hash
|
|
@@ -83,7 +83,7 @@ module Hubspot
|
|
|
83
83
|
return_type = opts[:debug_return_type] || 'PublicPerformanceResponse'
|
|
84
84
|
|
|
85
85
|
# auth_names
|
|
86
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
86
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
87
87
|
|
|
88
88
|
new_options = opts.merge(
|
|
89
89
|
:operation => :"PublicPerformanceApi.get_page",
|
|
@@ -164,7 +164,7 @@ module Hubspot
|
|
|
164
164
|
return_type = opts[:debug_return_type] || 'PublicPerformanceResponse'
|
|
165
165
|
|
|
166
166
|
# auth_names
|
|
167
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
167
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
168
168
|
|
|
169
169
|
new_options = opts.merge(
|
|
170
170
|
:operation => :"PublicPerformanceApi.get_uptime",
|
|
@@ -222,13 +222,6 @@ module Hubspot
|
|
|
222
222
|
# Returns Auth Settings hash for api client.
|
|
223
223
|
def auth_settings
|
|
224
224
|
{
|
|
225
|
-
'hapikey' =>
|
|
226
|
-
{
|
|
227
|
-
type: 'api_key',
|
|
228
|
-
in: 'query',
|
|
229
|
-
key: 'hapikey',
|
|
230
|
-
value: api_key_with_prefix('hapikey')
|
|
231
|
-
},
|
|
232
225
|
'oauth2' =>
|
|
233
226
|
{
|
|
234
227
|
type: 'oauth2',
|
|
@@ -82,7 +82,7 @@ module Hubspot
|
|
|
82
82
|
return_type = opts[:debug_return_type]
|
|
83
83
|
|
|
84
84
|
# auth_names
|
|
85
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
85
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
86
86
|
|
|
87
87
|
new_options = opts.merge(
|
|
88
88
|
:operation => :"BatchApi.archive",
|
|
@@ -162,7 +162,7 @@ module Hubspot
|
|
|
162
162
|
return_type = opts[:debug_return_type] || 'BatchResponsePublicAssociation'
|
|
163
163
|
|
|
164
164
|
# auth_names
|
|
165
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
165
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
166
166
|
|
|
167
167
|
new_options = opts.merge(
|
|
168
168
|
:operation => :"BatchApi.create",
|
|
@@ -242,7 +242,7 @@ module Hubspot
|
|
|
242
242
|
return_type = opts[:debug_return_type] || 'BatchResponsePublicAssociationMulti'
|
|
243
243
|
|
|
244
244
|
# auth_names
|
|
245
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
245
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
246
246
|
|
|
247
247
|
new_options = opts.merge(
|
|
248
248
|
:operation => :"BatchApi.read",
|
|
@@ -222,13 +222,6 @@ module Hubspot
|
|
|
222
222
|
# Returns Auth Settings hash for api client.
|
|
223
223
|
def auth_settings
|
|
224
224
|
{
|
|
225
|
-
'hapikey' =>
|
|
226
|
-
{
|
|
227
|
-
type: 'api_key',
|
|
228
|
-
in: 'query',
|
|
229
|
-
key: 'hapikey',
|
|
230
|
-
value: api_key_with_prefix('hapikey')
|
|
231
|
-
},
|
|
232
225
|
'oauth2' =>
|
|
233
226
|
{
|
|
234
227
|
type: 'oauth2',
|
|
@@ -72,7 +72,7 @@ module Hubspot
|
|
|
72
72
|
return_type = opts[:debug_return_type] || 'CollectionResponsePublicAssociationDefinitionNoPaging'
|
|
73
73
|
|
|
74
74
|
# auth_names
|
|
75
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
75
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
76
76
|
|
|
77
77
|
new_options = opts.merge(
|
|
78
78
|
:operation => :"TypesApi.get_all",
|
|
@@ -223,13 +223,6 @@ module Hubspot
|
|
|
223
223
|
# Returns Auth Settings hash for api client.
|
|
224
224
|
def auth_settings
|
|
225
225
|
{
|
|
226
|
-
'hapikey' =>
|
|
227
|
-
{
|
|
228
|
-
type: 'api_key',
|
|
229
|
-
in: 'query',
|
|
230
|
-
key: 'hapikey',
|
|
231
|
-
value: api_key_with_prefix('hapikey')
|
|
232
|
-
},
|
|
233
226
|
'oauth2' =>
|
|
234
227
|
{
|
|
235
228
|
type: 'oauth2',
|
|
@@ -86,7 +86,7 @@ module Hubspot
|
|
|
86
86
|
return_type = opts[:debug_return_type]
|
|
87
87
|
|
|
88
88
|
# auth_names
|
|
89
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
89
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
90
90
|
|
|
91
91
|
new_options = opts.merge(
|
|
92
92
|
:operation => :"BasicApi.archive",
|
|
@@ -178,7 +178,7 @@ module Hubspot
|
|
|
178
178
|
return_type = opts[:debug_return_type] || 'LabelsBetweenObjectPair'
|
|
179
179
|
|
|
180
180
|
# auth_names
|
|
181
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
181
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
182
182
|
|
|
183
183
|
new_options = opts.merge(
|
|
184
184
|
:operation => :"BasicApi.create",
|
|
@@ -259,7 +259,7 @@ module Hubspot
|
|
|
259
259
|
return_type = opts[:debug_return_type] || 'BatchResponsePublicDefaultAssociation'
|
|
260
260
|
|
|
261
261
|
# auth_names
|
|
262
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
262
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
263
263
|
|
|
264
264
|
new_options = opts.merge(
|
|
265
265
|
:operation => :"BasicApi.create_default",
|
|
@@ -279,7 +279,7 @@ module Hubspot
|
|
|
279
279
|
end
|
|
280
280
|
|
|
281
281
|
# List
|
|
282
|
-
# List all associations of an object by object type. Limit
|
|
282
|
+
# List all associations of an object by object type. Limit 500 per call.
|
|
283
283
|
# @param object_type [String]
|
|
284
284
|
# @param object_id [Integer]
|
|
285
285
|
# @param to_object_type [String]
|
|
@@ -293,7 +293,7 @@ module Hubspot
|
|
|
293
293
|
end
|
|
294
294
|
|
|
295
295
|
# List
|
|
296
|
-
# List all associations of an object by object type. Limit
|
|
296
|
+
# List all associations of an object by object type. Limit 500 per call.
|
|
297
297
|
# @param object_type [String]
|
|
298
298
|
# @param object_id [Integer]
|
|
299
299
|
# @param to_object_type [String]
|
|
@@ -340,7 +340,7 @@ module Hubspot
|
|
|
340
340
|
return_type = opts[:debug_return_type] || 'CollectionResponseMultiAssociatedObjectWithLabelForwardPaging'
|
|
341
341
|
|
|
342
342
|
# auth_names
|
|
343
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
343
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
344
344
|
|
|
345
345
|
new_options = opts.merge(
|
|
346
346
|
:operation => :"BasicApi.get_page",
|
|
@@ -83,7 +83,7 @@ module Hubspot
|
|
|
83
83
|
return_type = opts[:debug_return_type]
|
|
84
84
|
|
|
85
85
|
# auth_names
|
|
86
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
86
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
87
87
|
|
|
88
88
|
new_options = opts.merge(
|
|
89
89
|
:operation => :"BatchApi.archive",
|
|
@@ -163,7 +163,7 @@ module Hubspot
|
|
|
163
163
|
return_type = opts[:debug_return_type]
|
|
164
164
|
|
|
165
165
|
# auth_names
|
|
166
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
166
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
167
167
|
|
|
168
168
|
new_options = opts.merge(
|
|
169
169
|
:operation => :"BatchApi.archive_labels",
|
|
@@ -243,7 +243,7 @@ module Hubspot
|
|
|
243
243
|
return_type = opts[:debug_return_type] || 'BatchResponseLabelsBetweenObjectPair'
|
|
244
244
|
|
|
245
245
|
# auth_names
|
|
246
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
246
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
247
247
|
|
|
248
248
|
new_options = opts.merge(
|
|
249
249
|
:operation => :"BatchApi.create",
|
|
@@ -323,7 +323,7 @@ module Hubspot
|
|
|
323
323
|
return_type = opts[:debug_return_type] || 'BatchResponsePublicDefaultAssociation'
|
|
324
324
|
|
|
325
325
|
# auth_names
|
|
326
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
326
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
327
327
|
|
|
328
328
|
new_options = opts.merge(
|
|
329
329
|
:operation => :"BatchApi.create_default",
|
|
@@ -403,7 +403,7 @@ module Hubspot
|
|
|
403
403
|
return_type = opts[:debug_return_type] || 'BatchResponsePublicAssociationMultiWithLabel'
|
|
404
404
|
|
|
405
405
|
# auth_names
|
|
406
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
406
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
407
407
|
|
|
408
408
|
new_options = opts.merge(
|
|
409
409
|
:operation => :"BatchApi.get_page",
|
|
@@ -223,13 +223,6 @@ module Hubspot
|
|
|
223
223
|
# Returns Auth Settings hash for api client.
|
|
224
224
|
def auth_settings
|
|
225
225
|
{
|
|
226
|
-
'hapikey' =>
|
|
227
|
-
{
|
|
228
|
-
type: 'api_key',
|
|
229
|
-
in: 'query',
|
|
230
|
-
key: 'hapikey',
|
|
231
|
-
value: api_key_with_prefix('hapikey')
|
|
232
|
-
},
|
|
233
226
|
'oauth2' =>
|
|
234
227
|
{
|
|
235
228
|
type: 'oauth2',
|
|
@@ -18,12 +18,12 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class AssociationSpecWithLabel
|
|
21
|
-
attr_accessor :category
|
|
22
|
-
|
|
23
21
|
attr_accessor :type_id
|
|
24
22
|
|
|
25
23
|
attr_accessor :label
|
|
26
24
|
|
|
25
|
+
attr_accessor :category
|
|
26
|
+
|
|
27
27
|
class EnumAttributeValidator
|
|
28
28
|
attr_reader :datatype
|
|
29
29
|
attr_reader :allowable_values
|
|
@@ -49,9 +49,9 @@ module Hubspot
|
|
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
50
|
def self.attribute_map
|
|
51
51
|
{
|
|
52
|
-
:'category' => :'category',
|
|
53
52
|
:'type_id' => :'typeId',
|
|
54
|
-
:'label' => :'label'
|
|
53
|
+
:'label' => :'label',
|
|
54
|
+
:'category' => :'category'
|
|
55
55
|
}
|
|
56
56
|
end
|
|
57
57
|
|
|
@@ -63,9 +63,9 @@ module Hubspot
|
|
|
63
63
|
# Attribute type mapping.
|
|
64
64
|
def self.openapi_types
|
|
65
65
|
{
|
|
66
|
-
:'category' => :'String',
|
|
67
66
|
:'type_id' => :'Integer',
|
|
68
|
-
:'label' => :'String'
|
|
67
|
+
:'label' => :'String',
|
|
68
|
+
:'category' => :'String'
|
|
69
69
|
}
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -90,10 +90,6 @@ module Hubspot
|
|
|
90
90
|
h[k.to_sym] = v
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
if attributes.key?(:'category')
|
|
94
|
-
self.category = attributes[:'category']
|
|
95
|
-
end
|
|
96
|
-
|
|
97
93
|
if attributes.key?(:'type_id')
|
|
98
94
|
self.type_id = attributes[:'type_id']
|
|
99
95
|
end
|
|
@@ -101,30 +97,34 @@ module Hubspot
|
|
|
101
97
|
if attributes.key?(:'label')
|
|
102
98
|
self.label = attributes[:'label']
|
|
103
99
|
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'category')
|
|
102
|
+
self.category = attributes[:'category']
|
|
103
|
+
end
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
107
107
|
# @return Array for valid properties with the reasons
|
|
108
108
|
def list_invalid_properties
|
|
109
109
|
invalid_properties = Array.new
|
|
110
|
-
if @category.nil?
|
|
111
|
-
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
|
112
|
-
end
|
|
113
|
-
|
|
114
110
|
if @type_id.nil?
|
|
115
111
|
invalid_properties.push('invalid value for "type_id", type_id cannot be nil.')
|
|
116
112
|
end
|
|
117
113
|
|
|
114
|
+
if @category.nil?
|
|
115
|
+
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
|
116
|
+
end
|
|
117
|
+
|
|
118
118
|
invalid_properties
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
# Check to see if the all the properties in the model are valid
|
|
122
122
|
# @return true if the model is valid
|
|
123
123
|
def valid?
|
|
124
|
+
return false if @type_id.nil?
|
|
124
125
|
return false if @category.nil?
|
|
125
126
|
category_validator = EnumAttributeValidator.new('String', ["HUBSPOT_DEFINED", "USER_DEFINED", "INTEGRATOR_DEFINED"])
|
|
126
127
|
return false unless category_validator.valid?(@category)
|
|
127
|
-
return false if @type_id.nil?
|
|
128
128
|
true
|
|
129
129
|
end
|
|
130
130
|
|
|
@@ -143,9 +143,9 @@ module Hubspot
|
|
|
143
143
|
def ==(o)
|
|
144
144
|
return true if self.equal?(o)
|
|
145
145
|
self.class == o.class &&
|
|
146
|
-
category == o.category &&
|
|
147
146
|
type_id == o.type_id &&
|
|
148
|
-
label == o.label
|
|
147
|
+
label == o.label &&
|
|
148
|
+
category == o.category
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
# @see the `==` method
|
|
@@ -157,7 +157,7 @@ module Hubspot
|
|
|
157
157
|
# Calculates hash code according to all attributes.
|
|
158
158
|
# @return [Integer] Hash code
|
|
159
159
|
def hash
|
|
160
|
-
[
|
|
160
|
+
[type_id, label, category].hash
|
|
161
161
|
end
|
|
162
162
|
|
|
163
163
|
# Builds the object from hash
|