hubspot-api-client 20.0.0.pre.beta.1 → 20.0.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 +33 -1
- data/Gemfile.lock +2 -2
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +91 -22
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +25 -17
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/companies/models/association_spec.rb +12 -0
- data/lib/hubspot/codegen/crm/companies/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/companies/models/public_associations_for_object.rb +10 -0
- data/lib/hubspot/codegen/crm/companies/models/public_merge_input.rb +2 -0
- data/lib/hubspot/codegen/crm/companies/models/public_object_id.rb +6 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +4 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input_upsert.rb +4 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +2 -10
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input_for_create.rb +2 -10
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +163 -26
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +27 -19
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/contacts/models/association_spec.rb +10 -0
- data/lib/hubspot/codegen/crm/contacts/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_associations_for_object.rb +10 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_gdpr_delete_input.rb +2 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_object_id.rb +5 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input_for_create.rb +1 -10
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_with_associations.rb +13 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +67 -0
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/deals/models/association_spec.rb +10 -0
- data/lib/hubspot/codegen/crm/deals/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/deals/models/public_associations_for_object.rb +10 -0
- data/lib/hubspot/codegen/crm/deals/models/public_object_id.rb +5 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input_for_create.rb +1 -10
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +3 -2
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/goals/api/basic_api.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/goals/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/objects/goals/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/goals/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input_for_create.rb +252 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_input_for_create.rb +1 -15
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/goals/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +5 -4
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +11 -9
- data/lib/hubspot/codegen/crm/products/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input_for_create.rb +6 -10
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +73 -4
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +17 -9
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +4 -0
- data/lib/hubspot/codegen/crm/tickets/models/association_spec.rb +10 -0
- data/lib/hubspot/codegen/crm/tickets/models/{batch_input_simple_public_object_input_for_create.rb → batch_input_simple_public_object_batch_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +1 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_associations_for_object.rb +10 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_object_id.rb +5 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +10 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +2 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input_for_create.rb +250 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input_upsert.rb +1 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +1 -10
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input_for_create.rb +1 -10
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_with_associations.rb +10 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_upsert_object.rb +10 -1
- data/lib/hubspot/codegen/files/api/files_api.rb +144 -104
- data/lib/hubspot/codegen/files/api/folders_api.rb +142 -57
- data/lib/hubspot/codegen/files/api_client.rb +1 -1
- data/lib/hubspot/codegen/files/api_error.rb +1 -1
- data/lib/hubspot/codegen/files/configuration.rb +1 -1
- data/lib/hubspot/codegen/files/models/collection_response_file.rb +2 -1
- data/lib/hubspot/codegen/files/models/collection_response_folder.rb +1 -1
- data/lib/hubspot/codegen/files/models/error.rb +1 -1
- data/lib/hubspot/codegen/files/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/files/models/file.rb +33 -14
- data/lib/hubspot/codegen/files/models/file_action_response.rb +1 -1
- data/lib/hubspot/codegen/files/models/file_stat.rb +1 -1
- data/lib/hubspot/codegen/files/models/file_update_input.rb +15 -5
- data/lib/hubspot/codegen/files/models/folder.rb +12 -12
- data/lib/hubspot/codegen/files/models/folder_action_response.rb +1 -1
- data/lib/hubspot/codegen/files/models/folder_input.rb +2 -1
- data/lib/hubspot/codegen/files/models/folder_update_input.rb +6 -20
- data/lib/hubspot/codegen/files/models/folder_update_input_with_id.rb +244 -0
- data/lib/hubspot/codegen/files/models/folder_update_task_locator.rb +2 -1
- data/lib/hubspot/codegen/files/models/import_from_url_input.rb +13 -4
- data/lib/hubspot/codegen/files/models/import_from_url_task_locator.rb +2 -1
- data/lib/hubspot/codegen/files/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/files/models/paging.rb +1 -1
- data/lib/hubspot/codegen/files/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/files/models/signed_url.rb +18 -17
- data/lib/hubspot/codegen/files/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +7 -3
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +13 -5
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +5 -1
- data/lib/hubspot/codegen/oauth/api_client.rb +2 -2
- data/lib/hubspot/codegen/oauth/api_error.rb +1 -1
- data/lib/hubspot/codegen/oauth/configuration.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +4 -4
- data/lib/hubspot/codegen/oauth/models/error.rb +4 -4
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +4 -4
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +4 -4
- data/lib/hubspot/codegen/oauth/models/token_response_if.rb +4 -4
- data/lib/hubspot/discovery/cms/client.rb +0 -1
- data/lib/hubspot/discovery/crm/companies/client.rb +0 -1
- data/lib/hubspot/discovery/crm/contacts/client.rb +0 -2
- data/lib/hubspot/discovery/crm/deals/client.rb +0 -1
- data/lib/hubspot/discovery/crm/tickets/client.rb +0 -1
- data/lib/hubspot/discovery/oauth/api/access_tokens_api.rb +1 -1
- data/lib/hubspot/discovery/oauth/api/refresh_tokens_api.rb +1 -1
- data/lib/hubspot/discovery/oauth/api/tokens_api.rb +1 -1
- data/lib/hubspot/discovery/oauth/client.rb +1 -1
- data/lib/hubspot/helpers/camel_case.rb +0 -4
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/cms/client_spec.rb +0 -1
- data/spec/discovery/crm/companies/basic_api_spec.rb +1 -0
- data/spec/discovery/crm/contacts/basic_api_spec.rb +1 -0
- data/spec/discovery/crm/deals/basic_api_spec.rb +1 -0
- data/spec/discovery/crm/tickets/basic_api_spec.rb +1 -0
- data/spec/discovery/files/files_api_spec.rb +2 -1
- data/spec/discovery/files/folders_api_spec.rb +1 -0
- 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
- metadata +17 -42
- data/lib/hubspot/codegen/cms/performance/api/public_performance_api.rb +0 -188
- data/lib/hubspot/codegen/cms/performance/api_client.rb +0 -410
- data/lib/hubspot/codegen/cms/performance/api_error.rb +0 -61
- data/lib/hubspot/codegen/cms/performance/configuration.rb +0 -287
- data/lib/hubspot/codegen/cms/performance/models/error.rb +0 -305
- data/lib/hubspot/codegen/cms/performance/models/error_detail.rb +0 -271
- data/lib/hubspot/codegen/cms/performance/models/performance_view.rb +0 -526
- data/lib/hubspot/codegen/cms/performance/models/public_performance_response.rb +0 -345
- data/lib/hubspot/codegen/crm/companies/api/merge_api.rb +0 -92
- data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +0 -94
- data/lib/hubspot/codegen/crm/contacts/api/merge_api.rb +0 -92
- data/lib/hubspot/codegen/crm/deals/api/merge_api.rb +0 -92
- data/lib/hubspot/codegen/crm/tickets/api/merge_api.rb +0 -92
- data/lib/hubspot/discovery/cms/performance/api/public_performance_api.rb +0 -13
- data/lib/hubspot/discovery/cms/performance/client.rb +0 -19
- data/lib/hubspot/discovery/crm/companies/api/merge_api.rb +0 -13
- data/lib/hubspot/discovery/crm/contacts/api/gdpr_api.rb +0 -13
- data/lib/hubspot/discovery/crm/contacts/api/merge_api.rb +0 -13
- data/lib/hubspot/discovery/crm/deals/api/merge_api.rb +0 -13
- data/lib/hubspot/discovery/crm/tickets/api/merge_api.rb +0 -13
- data/spec/discovery/cms/performance/public_performance_api_spec.rb +0 -8
- data/spec/discovery/crm/companies/merge_api_spec.rb +0 -7
- data/spec/discovery/crm/contacts/gdpr_api_spec.rb +0 -7
- data/spec/discovery/crm/contacts/merge_api_spec.rb +0 -7
- data/spec/discovery/crm/deals/merge_api_spec.rb +0 -7
- data/spec/discovery/crm/tickets/merge_api_spec.rb +0 -7
@@ -30,6 +30,8 @@ module Hubspot
|
|
30
30
|
|
31
31
|
attr_accessor :id
|
32
32
|
|
33
|
+
attr_accessor :object_write_trace_id
|
34
|
+
|
33
35
|
attr_accessor :properties
|
34
36
|
|
35
37
|
attr_accessor :updated_at
|
@@ -43,6 +45,7 @@ module Hubspot
|
|
43
45
|
:'archived_at' => :'archivedAt',
|
44
46
|
:'properties_with_history' => :'propertiesWithHistory',
|
45
47
|
:'id' => :'id',
|
48
|
+
:'object_write_trace_id' => :'objectWriteTraceId',
|
46
49
|
:'properties' => :'properties',
|
47
50
|
:'updated_at' => :'updatedAt'
|
48
51
|
}
|
@@ -62,6 +65,7 @@ module Hubspot
|
|
62
65
|
:'archived_at' => :'Time',
|
63
66
|
:'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>',
|
64
67
|
:'id' => :'String',
|
68
|
+
:'object_write_trace_id' => :'String',
|
65
69
|
:'properties' => :'Hash<String, String>',
|
66
70
|
:'updated_at' => :'Time'
|
67
71
|
}
|
@@ -116,6 +120,10 @@ module Hubspot
|
|
116
120
|
self.id = attributes[:'id']
|
117
121
|
end
|
118
122
|
|
123
|
+
if attributes.key?(:'object_write_trace_id')
|
124
|
+
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
125
|
+
end
|
126
|
+
|
119
127
|
if attributes.key?(:'properties')
|
120
128
|
if (value = attributes[:'properties']).is_a?(Hash)
|
121
129
|
self.properties = value
|
@@ -171,6 +179,7 @@ module Hubspot
|
|
171
179
|
archived_at == o.archived_at &&
|
172
180
|
properties_with_history == o.properties_with_history &&
|
173
181
|
id == o.id &&
|
182
|
+
object_write_trace_id == o.object_write_trace_id &&
|
174
183
|
properties == o.properties &&
|
175
184
|
updated_at == o.updated_at
|
176
185
|
end
|
@@ -184,7 +193,7 @@ module Hubspot
|
|
184
193
|
# Calculates hash code according to all attributes.
|
185
194
|
# @return [Integer] Hash code
|
186
195
|
def hash
|
187
|
-
[associations, created_at, archived, archived_at, properties_with_history, id, properties, updated_at].hash
|
196
|
+
[associations, created_at, archived, archived_at, properties_with_history, id, object_write_trace_id, properties, updated_at].hash
|
188
197
|
end
|
189
198
|
|
190
199
|
# Builds the object from hash
|
@@ -30,6 +30,8 @@ module Hubspot
|
|
30
30
|
|
31
31
|
attr_accessor :id
|
32
32
|
|
33
|
+
attr_accessor :object_write_trace_id
|
34
|
+
|
33
35
|
attr_accessor :properties
|
34
36
|
|
35
37
|
attr_accessor :updated_at
|
@@ -43,6 +45,7 @@ module Hubspot
|
|
43
45
|
:'new' => :'new',
|
44
46
|
:'properties_with_history' => :'propertiesWithHistory',
|
45
47
|
:'id' => :'id',
|
48
|
+
:'object_write_trace_id' => :'objectWriteTraceId',
|
46
49
|
:'properties' => :'properties',
|
47
50
|
:'updated_at' => :'updatedAt'
|
48
51
|
}
|
@@ -62,6 +65,7 @@ module Hubspot
|
|
62
65
|
:'new' => :'Boolean',
|
63
66
|
:'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>',
|
64
67
|
:'id' => :'String',
|
68
|
+
:'object_write_trace_id' => :'String',
|
65
69
|
:'properties' => :'Hash<String, String>',
|
66
70
|
:'updated_at' => :'Time'
|
67
71
|
}
|
@@ -114,6 +118,10 @@ module Hubspot
|
|
114
118
|
self.id = attributes[:'id']
|
115
119
|
end
|
116
120
|
|
121
|
+
if attributes.key?(:'object_write_trace_id')
|
122
|
+
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
123
|
+
end
|
124
|
+
|
117
125
|
if attributes.key?(:'properties')
|
118
126
|
if (value = attributes[:'properties']).is_a?(Hash)
|
119
127
|
self.properties = value
|
@@ -174,6 +182,7 @@ module Hubspot
|
|
174
182
|
new == o.new &&
|
175
183
|
properties_with_history == o.properties_with_history &&
|
176
184
|
id == o.id &&
|
185
|
+
object_write_trace_id == o.object_write_trace_id &&
|
177
186
|
properties == o.properties &&
|
178
187
|
updated_at == o.updated_at
|
179
188
|
end
|
@@ -187,7 +196,7 @@ module Hubspot
|
|
187
196
|
# Calculates hash code according to all attributes.
|
188
197
|
# @return [Integer] Hash code
|
189
198
|
def hash
|
190
|
-
[created_at, archived, archived_at, new, properties_with_history, id, properties, updated_at].hash
|
199
|
+
[created_at, archived, archived_at, new, properties_with_history, id, object_write_trace_id, properties, updated_at].hash
|
191
200
|
end
|
192
201
|
|
193
202
|
# Builds the object from hash
|
@@ -16,6 +16,7 @@ module Hubspot
|
|
16
16
|
module Crm
|
17
17
|
module Products
|
18
18
|
class BasicApi
|
19
|
+
require 'hubspot/helpers/get_all_helper'
|
19
20
|
include Hubspot::Helpers::GetAllHelper
|
20
21
|
|
21
22
|
attr_accessor :api_client
|
@@ -308,11 +309,11 @@ module Hubspot
|
|
308
309
|
end
|
309
310
|
|
310
311
|
# Update
|
311
|
-
# Perform a partial update of an Object identified by `{productId}
|
312
|
+
# Perform a partial update of an Object identified by `{productId}`or optionally a unique property value as specified by the `idProperty` query param. `{productId}` refers to the internal object ID by default, and the `idProperty` query param refers to a property whose values are unique for the object. Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string.
|
312
313
|
# @param product_id [String]
|
313
314
|
# @param simple_public_object_input [SimplePublicObjectInput]
|
314
315
|
# @param [Hash] opts the optional parameters
|
315
|
-
# @option opts [String] :id_property The name of a property whose values are unique for this object
|
316
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object
|
316
317
|
# @return [SimplePublicObject]
|
317
318
|
def update(product_id, simple_public_object_input, opts = {})
|
318
319
|
data, _status_code, _headers = update_with_http_info(product_id, simple_public_object_input, opts)
|
@@ -320,11 +321,11 @@ module Hubspot
|
|
320
321
|
end
|
321
322
|
|
322
323
|
# Update
|
323
|
-
# Perform a partial update of an Object identified by `{productId}`
|
324
|
+
# Perform a partial update of an Object identified by `{productId}`or optionally a unique property value as specified by the `idProperty` query param. `{productId}` refers to the internal object ID by default, and the `idProperty` query param refers to a property whose values are unique for the object. Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string.
|
324
325
|
# @param product_id [String]
|
325
326
|
# @param simple_public_object_input [SimplePublicObjectInput]
|
326
327
|
# @param [Hash] opts the optional parameters
|
327
|
-
# @option opts [String] :id_property The name of a property whose values are unique for this object
|
328
|
+
# @option opts [String] :id_property The name of a property whose values are unique for this object
|
328
329
|
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
329
330
|
def update_with_http_info(product_id, simple_public_object_input, opts = {})
|
330
331
|
if @api_client.config.debugging
|
@@ -88,25 +88,25 @@ module Hubspot
|
|
88
88
|
end
|
89
89
|
|
90
90
|
# Create a batch of products
|
91
|
-
# @param
|
91
|
+
# @param batch_input_simple_public_object_batch_input_for_create [BatchInputSimplePublicObjectBatchInputForCreate]
|
92
92
|
# @param [Hash] opts the optional parameters
|
93
93
|
# @return [BatchResponseSimplePublicObject]
|
94
|
-
def create(
|
95
|
-
data, _status_code, _headers = create_with_http_info(
|
94
|
+
def create(batch_input_simple_public_object_batch_input_for_create, opts = {})
|
95
|
+
data, _status_code, _headers = create_with_http_info(batch_input_simple_public_object_batch_input_for_create, opts)
|
96
96
|
data
|
97
97
|
end
|
98
98
|
|
99
99
|
# Create a batch of products
|
100
|
-
# @param
|
100
|
+
# @param batch_input_simple_public_object_batch_input_for_create [BatchInputSimplePublicObjectBatchInputForCreate]
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
|
103
|
-
def create_with_http_info(
|
103
|
+
def create_with_http_info(batch_input_simple_public_object_batch_input_for_create, opts = {})
|
104
104
|
if @api_client.config.debugging
|
105
105
|
@api_client.config.logger.debug 'Calling API: BatchApi.create ...'
|
106
106
|
end
|
107
|
-
# verify the required parameter '
|
108
|
-
if @api_client.config.client_side_validation &&
|
109
|
-
fail ArgumentError, "Missing the required parameter '
|
107
|
+
# verify the required parameter 'batch_input_simple_public_object_batch_input_for_create' is set
|
108
|
+
if @api_client.config.client_side_validation && batch_input_simple_public_object_batch_input_for_create.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_simple_public_object_batch_input_for_create' when calling BatchApi.create"
|
110
110
|
end
|
111
111
|
# resource path
|
112
112
|
local_var_path = '/crm/v3/objects/products/batch/create'
|
@@ -128,7 +128,7 @@ module Hubspot
|
|
128
128
|
form_params = opts[:form_params] || {}
|
129
129
|
|
130
130
|
# http body (model)
|
131
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
131
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_simple_public_object_batch_input_for_create)
|
132
132
|
|
133
133
|
# return_type
|
134
134
|
return_type = opts[:debug_return_type] || 'BatchResponseSimplePublicObject'
|
@@ -154,6 +154,7 @@ module Hubspot
|
|
154
154
|
end
|
155
155
|
|
156
156
|
# Read a batch of products by internal ID, or unique property values
|
157
|
+
# Retrieve records by record ID or include the `idProperty` parameter to retrieve records by a custom unique value property.
|
157
158
|
# @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
|
158
159
|
# @param [Hash] opts the optional parameters
|
159
160
|
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
@@ -164,6 +165,7 @@ module Hubspot
|
|
164
165
|
end
|
165
166
|
|
166
167
|
# Read a batch of products by internal ID, or unique property values
|
168
|
+
# Retrieve records by record ID or include the `idProperty` parameter to retrieve records by a custom unique value property.
|
167
169
|
# @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
|
168
170
|
# @param [Hash] opts the optional parameters
|
169
171
|
# @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module Hubspot
|
17
17
|
module Crm
|
18
18
|
module Products
|
19
|
-
class
|
19
|
+
class BatchInputSimplePublicObjectBatchInputForCreate
|
20
20
|
attr_accessor :inputs
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +34,7 @@ module Hubspot
|
|
34
34
|
# Attribute type mapping.
|
35
35
|
def self.openapi_types
|
36
36
|
{
|
37
|
-
:'inputs' => :'Array<
|
37
|
+
:'inputs' => :'Array<SimplePublicObjectBatchInputForCreate>'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -48,13 +48,13 @@ module Hubspot
|
|
48
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
49
|
def initialize(attributes = {})
|
50
50
|
if (!attributes.is_a?(Hash))
|
51
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Products::
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Products::BatchInputSimplePublicObjectBatchInputForCreate` initialize method"
|
52
52
|
end
|
53
53
|
|
54
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
55
55
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
56
|
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Products::
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Products::BatchInputSimplePublicObjectBatchInputForCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
58
|
end
|
59
59
|
h[k.to_sym] = v
|
60
60
|
}
|
@@ -19,7 +19,7 @@ module Hubspot
|
|
19
19
|
class BatchReadInputSimplePublicObjectId
|
20
20
|
attr_accessor :properties_with_history
|
21
21
|
|
22
|
-
#
|
22
|
+
# When using a custom unique value property to retrieve records, the name of the property. Do not include this parameter if retrieving by record ID.
|
23
23
|
attr_accessor :id_property
|
24
24
|
|
25
25
|
attr_accessor :inputs
|
@@ -27,6 +27,8 @@ module Hubspot
|
|
27
27
|
|
28
28
|
attr_accessor :id
|
29
29
|
|
30
|
+
attr_accessor :object_write_trace_id
|
31
|
+
|
30
32
|
attr_accessor :properties
|
31
33
|
|
32
34
|
attr_accessor :updated_at
|
@@ -39,6 +41,7 @@ module Hubspot
|
|
39
41
|
:'archived_at' => :'archivedAt',
|
40
42
|
:'properties_with_history' => :'propertiesWithHistory',
|
41
43
|
:'id' => :'id',
|
44
|
+
:'object_write_trace_id' => :'objectWriteTraceId',
|
42
45
|
:'properties' => :'properties',
|
43
46
|
:'updated_at' => :'updatedAt'
|
44
47
|
}
|
@@ -57,6 +60,7 @@ module Hubspot
|
|
57
60
|
:'archived_at' => :'Time',
|
58
61
|
:'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>',
|
59
62
|
:'id' => :'String',
|
63
|
+
:'object_write_trace_id' => :'String',
|
60
64
|
:'properties' => :'Hash<String, String>',
|
61
65
|
:'updated_at' => :'Time'
|
62
66
|
}
|
@@ -105,6 +109,10 @@ module Hubspot
|
|
105
109
|
self.id = attributes[:'id']
|
106
110
|
end
|
107
111
|
|
112
|
+
if attributes.key?(:'object_write_trace_id')
|
113
|
+
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
114
|
+
end
|
115
|
+
|
108
116
|
if attributes.key?(:'properties')
|
109
117
|
if (value = attributes[:'properties']).is_a?(Hash)
|
110
118
|
self.properties = value
|
@@ -159,6 +167,7 @@ module Hubspot
|
|
159
167
|
archived_at == o.archived_at &&
|
160
168
|
properties_with_history == o.properties_with_history &&
|
161
169
|
id == o.id &&
|
170
|
+
object_write_trace_id == o.object_write_trace_id &&
|
162
171
|
properties == o.properties &&
|
163
172
|
updated_at == o.updated_at
|
164
173
|
end
|
@@ -172,7 +181,7 @@ module Hubspot
|
|
172
181
|
# Calculates hash code according to all attributes.
|
173
182
|
# @return [Integer] Hash code
|
174
183
|
def hash
|
175
|
-
[created_at, archived, archived_at, properties_with_history, id, properties, updated_at].hash
|
184
|
+
[created_at, archived, archived_at, properties_with_history, id, object_write_trace_id, properties, updated_at].hash
|
176
185
|
end
|
177
186
|
|
178
187
|
# Builds the object from hash
|
@@ -0,0 +1,250 @@
|
|
1
|
+
=begin
|
2
|
+
#Products
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Hubspot
|
17
|
+
module Crm
|
18
|
+
module Products
|
19
|
+
class SimplePublicObjectBatchInputForCreate
|
20
|
+
attr_accessor :associations
|
21
|
+
|
22
|
+
attr_accessor :object_write_trace_id
|
23
|
+
|
24
|
+
attr_accessor :properties
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'associations' => :'associations',
|
30
|
+
:'object_write_trace_id' => :'objectWriteTraceId',
|
31
|
+
:'properties' => :'properties'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Returns all the JSON keys this model knows about
|
36
|
+
def self.acceptable_attributes
|
37
|
+
attribute_map.values
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'associations' => :'Array<PublicAssociationsForObject>',
|
44
|
+
:'object_write_trace_id' => :'String',
|
45
|
+
:'properties' => :'Hash<String, String>'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# List of attributes with nullable: true
|
50
|
+
def self.openapi_nullable
|
51
|
+
Set.new([
|
52
|
+
])
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
if (!attributes.is_a?(Hash))
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Products::SimplePublicObjectBatchInputForCreate` initialize method"
|
60
|
+
end
|
61
|
+
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Products::SimplePublicObjectBatchInputForCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
|
+
end
|
67
|
+
h[k.to_sym] = v
|
68
|
+
}
|
69
|
+
|
70
|
+
if attributes.key?(:'associations')
|
71
|
+
if (value = attributes[:'associations']).is_a?(Array)
|
72
|
+
self.associations = value
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'object_write_trace_id')
|
77
|
+
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'properties')
|
81
|
+
if (value = attributes[:'properties']).is_a?(Hash)
|
82
|
+
self.properties = value
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
88
|
+
# @return Array for valid properties with the reasons
|
89
|
+
def list_invalid_properties
|
90
|
+
invalid_properties = Array.new
|
91
|
+
if @properties.nil?
|
92
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
invalid_properties
|
96
|
+
end
|
97
|
+
|
98
|
+
# Check to see if the all the properties in the model are valid
|
99
|
+
# @return true if the model is valid
|
100
|
+
def valid?
|
101
|
+
return false if @properties.nil?
|
102
|
+
true
|
103
|
+
end
|
104
|
+
|
105
|
+
# Checks equality by comparing each attribute.
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def ==(o)
|
108
|
+
return true if self.equal?(o)
|
109
|
+
self.class == o.class &&
|
110
|
+
associations == o.associations &&
|
111
|
+
object_write_trace_id == o.object_write_trace_id &&
|
112
|
+
properties == o.properties
|
113
|
+
end
|
114
|
+
|
115
|
+
# @see the `==` method
|
116
|
+
# @param [Object] Object to be compared
|
117
|
+
def eql?(o)
|
118
|
+
self == o
|
119
|
+
end
|
120
|
+
|
121
|
+
# Calculates hash code according to all attributes.
|
122
|
+
# @return [Integer] Hash code
|
123
|
+
def hash
|
124
|
+
[associations, object_write_trace_id, properties].hash
|
125
|
+
end
|
126
|
+
|
127
|
+
# Builds the object from hash
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
+
# @return [Object] Returns the model itself
|
130
|
+
def self.build_from_hash(attributes)
|
131
|
+
new.build_from_hash(attributes)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def build_from_hash(attributes)
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
139
|
+
attributes = attributes.transform_keys(&:to_sym)
|
140
|
+
self.class.openapi_types.each_pair do |key, type|
|
141
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
142
|
+
self.send("#{key}=", nil)
|
143
|
+
elsif type =~ /\AArray<(.*)>/i
|
144
|
+
# check to ensure the input is an array given that the attribute
|
145
|
+
# is documented as an array but the input is not
|
146
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
147
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
148
|
+
end
|
149
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
150
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
self
|
155
|
+
end
|
156
|
+
|
157
|
+
# Deserializes the data based on type
|
158
|
+
# @param string type Data type
|
159
|
+
# @param string value Value to be deserialized
|
160
|
+
# @return [Object] Deserialized data
|
161
|
+
def _deserialize(type, value)
|
162
|
+
case type.to_sym
|
163
|
+
when :Time
|
164
|
+
Time.parse(value)
|
165
|
+
when :Date
|
166
|
+
Date.parse(value)
|
167
|
+
when :String
|
168
|
+
value.to_s
|
169
|
+
when :Integer
|
170
|
+
value.to_i
|
171
|
+
when :Float
|
172
|
+
value.to_f
|
173
|
+
when :Boolean
|
174
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
175
|
+
true
|
176
|
+
else
|
177
|
+
false
|
178
|
+
end
|
179
|
+
when :Object
|
180
|
+
# generic object (usually a Hash), return directly
|
181
|
+
value
|
182
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
183
|
+
inner_type = Regexp.last_match[:inner_type]
|
184
|
+
value.map { |v| _deserialize(inner_type, v) }
|
185
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
186
|
+
k_type = Regexp.last_match[:k_type]
|
187
|
+
v_type = Regexp.last_match[:v_type]
|
188
|
+
{}.tap do |hash|
|
189
|
+
value.each do |k, v|
|
190
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
else # model
|
194
|
+
# models (e.g. Pet) or oneOf
|
195
|
+
klass = Hubspot::Crm::Products.const_get(type)
|
196
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# Returns the string representation of the object
|
201
|
+
# @return [String] String presentation of the object
|
202
|
+
def to_s
|
203
|
+
to_hash.to_s
|
204
|
+
end
|
205
|
+
|
206
|
+
# to_body is an alias to to_hash (backward compatibility)
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
208
|
+
def to_body
|
209
|
+
to_hash
|
210
|
+
end
|
211
|
+
|
212
|
+
# Returns the object in the form of hash
|
213
|
+
# @return [Hash] Returns the object in the form of hash
|
214
|
+
def to_hash
|
215
|
+
hash = {}
|
216
|
+
self.class.attribute_map.each_pair do |attr, param|
|
217
|
+
value = self.send(attr)
|
218
|
+
if value.nil?
|
219
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
220
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
221
|
+
end
|
222
|
+
|
223
|
+
hash[param] = _to_hash(value)
|
224
|
+
end
|
225
|
+
hash
|
226
|
+
end
|
227
|
+
|
228
|
+
# Outputs non-array value in the form of hash
|
229
|
+
# For object, use to_hash. Otherwise, just return the value
|
230
|
+
# @param [Object] value Any valid value
|
231
|
+
# @return [Hash] Returns the value in the form of hash
|
232
|
+
def _to_hash(value)
|
233
|
+
if value.is_a?(Array)
|
234
|
+
value.compact.map { |v| _to_hash(v) }
|
235
|
+
elsif value.is_a?(Hash)
|
236
|
+
{}.tap do |hash|
|
237
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
238
|
+
end
|
239
|
+
elsif value.respond_to? :to_hash
|
240
|
+
value.to_hash
|
241
|
+
else
|
242
|
+
value
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
end
|
247
|
+
|
248
|
+
end
|
249
|
+
end
|
250
|
+
end
|
@@ -17,14 +17,11 @@ module Hubspot
|
|
17
17
|
module Crm
|
18
18
|
module Products
|
19
19
|
class SimplePublicObjectInput
|
20
|
-
attr_accessor :object_write_trace_id
|
21
|
-
|
22
20
|
attr_accessor :properties
|
23
21
|
|
24
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
23
|
def self.attribute_map
|
26
24
|
{
|
27
|
-
:'object_write_trace_id' => :'objectWriteTraceId',
|
28
25
|
:'properties' => :'properties'
|
29
26
|
}
|
30
27
|
end
|
@@ -37,7 +34,6 @@ module Hubspot
|
|
37
34
|
# Attribute type mapping.
|
38
35
|
def self.openapi_types
|
39
36
|
{
|
40
|
-
:'object_write_trace_id' => :'String',
|
41
37
|
:'properties' => :'Hash<String, String>'
|
42
38
|
}
|
43
39
|
end
|
@@ -63,10 +59,6 @@ module Hubspot
|
|
63
59
|
h[k.to_sym] = v
|
64
60
|
}
|
65
61
|
|
66
|
-
if attributes.key?(:'object_write_trace_id')
|
67
|
-
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
68
|
-
end
|
69
|
-
|
70
62
|
if attributes.key?(:'properties')
|
71
63
|
if (value = attributes[:'properties']).is_a?(Hash)
|
72
64
|
self.properties = value
|
@@ -97,7 +89,6 @@ module Hubspot
|
|
97
89
|
def ==(o)
|
98
90
|
return true if self.equal?(o)
|
99
91
|
self.class == o.class &&
|
100
|
-
object_write_trace_id == o.object_write_trace_id &&
|
101
92
|
properties == o.properties
|
102
93
|
end
|
103
94
|
|
@@ -110,7 +101,7 @@ module Hubspot
|
|
110
101
|
# Calculates hash code according to all attributes.
|
111
102
|
# @return [Integer] Hash code
|
112
103
|
def hash
|
113
|
-
[
|
104
|
+
[properties].hash
|
114
105
|
end
|
115
106
|
|
116
107
|
# Builds the object from hash
|
@@ -19,15 +19,12 @@ module Hubspot
|
|
19
19
|
class SimplePublicObjectInputForCreate
|
20
20
|
attr_accessor :associations
|
21
21
|
|
22
|
-
attr_accessor :object_write_trace_id
|
23
|
-
|
24
22
|
attr_accessor :properties
|
25
23
|
|
26
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
25
|
def self.attribute_map
|
28
26
|
{
|
29
27
|
:'associations' => :'associations',
|
30
|
-
:'object_write_trace_id' => :'objectWriteTraceId',
|
31
28
|
:'properties' => :'properties'
|
32
29
|
}
|
33
30
|
end
|
@@ -41,7 +38,6 @@ module Hubspot
|
|
41
38
|
def self.openapi_types
|
42
39
|
{
|
43
40
|
:'associations' => :'Array<PublicAssociationsForObject>',
|
44
|
-
:'object_write_trace_id' => :'String',
|
45
41
|
:'properties' => :'Hash<String, String>'
|
46
42
|
}
|
47
43
|
end
|
@@ -73,10 +69,6 @@ module Hubspot
|
|
73
69
|
end
|
74
70
|
end
|
75
71
|
|
76
|
-
if attributes.key?(:'object_write_trace_id')
|
77
|
-
self.object_write_trace_id = attributes[:'object_write_trace_id']
|
78
|
-
end
|
79
|
-
|
80
72
|
if attributes.key?(:'properties')
|
81
73
|
if (value = attributes[:'properties']).is_a?(Hash)
|
82
74
|
self.properties = value
|
@@ -88,12 +80,17 @@ module Hubspot
|
|
88
80
|
# @return Array for valid properties with the reasons
|
89
81
|
def list_invalid_properties
|
90
82
|
invalid_properties = Array.new
|
83
|
+
if @properties.nil?
|
84
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
85
|
+
end
|
86
|
+
|
91
87
|
invalid_properties
|
92
88
|
end
|
93
89
|
|
94
90
|
# Check to see if the all the properties in the model are valid
|
95
91
|
# @return true if the model is valid
|
96
92
|
def valid?
|
93
|
+
return false if @properties.nil?
|
97
94
|
true
|
98
95
|
end
|
99
96
|
|
@@ -103,7 +100,6 @@ module Hubspot
|
|
103
100
|
return true if self.equal?(o)
|
104
101
|
self.class == o.class &&
|
105
102
|
associations == o.associations &&
|
106
|
-
object_write_trace_id == o.object_write_trace_id &&
|
107
103
|
properties == o.properties
|
108
104
|
end
|
109
105
|
|
@@ -116,7 +112,7 @@ module Hubspot
|
|
116
112
|
# Calculates hash code according to all attributes.
|
117
113
|
# @return [Integer] Hash code
|
118
114
|
def hash
|
119
|
-
[associations,
|
115
|
+
[associations, properties].hash
|
120
116
|
end
|
121
117
|
|
122
118
|
# Builds the object from hash
|