ultracart_api 3.1.45 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -201
  3. data/README.md +26 -7
  4. data/docs/CustomerApi.md +92 -92
  5. data/docs/Error.md +1 -0
  6. data/docs/IntegrationLog.md +22 -0
  7. data/docs/IntegrationLogApi.md +178 -0
  8. data/docs/IntegrationLogFile.md +11 -0
  9. data/docs/IntegrationLogLog.md +9 -0
  10. data/docs/IntegrationLogQueryFilterValues.md +16 -0
  11. data/docs/IntegrationLogQueryRequest.md +19 -0
  12. data/docs/IntegrationLogQueryResponse.md +13 -0
  13. data/docs/IntegrationLogResponse.md +12 -0
  14. data/docs/ItemChannelPartnerMapping.md +1 -0
  15. data/docs/ScreenRecordingHeatmap.md +12 -0
  16. data/docs/ScreenRecordingHeatmapIndexRequest.md +8 -0
  17. data/docs/ScreenRecordingHeatmapRequest.md +1 -0
  18. data/docs/ScreenRecordingHeatmapUrl.md +1 -0
  19. data/docs/StorefrontApi.md +65 -54
  20. data/lib/ultracart_api.rb +9 -0
  21. data/lib/ultracart_api/api/customer_api.rb +98 -98
  22. data/lib/ultracart_api/api/integration_log_api.rb +228 -0
  23. data/lib/ultracart_api/api/storefront_api.rb +71 -56
  24. data/lib/ultracart_api/models/error.rb +11 -1
  25. data/lib/ultracart_api/models/integration_log.rb +316 -0
  26. data/lib/ultracart_api/models/integration_log_file.rb +211 -0
  27. data/lib/ultracart_api/models/integration_log_log.rb +193 -0
  28. data/lib/ultracart_api/models/integration_log_query_filter_values.rb +274 -0
  29. data/lib/ultracart_api/models/integration_log_query_request.rb +289 -0
  30. data/lib/ultracart_api/models/integration_log_query_response.rb +232 -0
  31. data/lib/ultracart_api/models/integration_log_response.rb +221 -0
  32. data/lib/ultracart_api/models/item_channel_partner_mapping.rb +11 -1
  33. data/lib/ultracart_api/models/screen_recording_heatmap.rb +109 -1
  34. data/lib/ultracart_api/models/screen_recording_heatmap_index_request.rb +184 -0
  35. data/lib/ultracart_api/models/screen_recording_heatmap_request.rb +12 -1
  36. data/lib/ultracart_api/models/screen_recording_heatmap_url.rb +10 -1
  37. data/lib/ultracart_api/version.rb +1 -1
  38. metadata +20 -2
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module UltracartClient
16
+ class IntegrationLogApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ def self.new_using_api_key(simple_key, verify_ssl = true, debugging = false)
24
+ api_config = Configuration.new
25
+ api_config.api_key_prefix['x-ultracart-simple-key'] = simple_key
26
+ api_config.api_version = '2017-03-01'
27
+ api_config.verify_ssl = verify_ssl
28
+
29
+ api_client = ApiClient.new(api_config)
30
+ api_client.config.debugging = debugging
31
+
32
+ UltracartClient::IntegrationLogApi.new(api_client)
33
+ end
34
+
35
+ # Retrieve an integration log
36
+ # Retrieve an integration logs from the account based identifiers
37
+ # @param pk
38
+ # @param sk
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [IntegrationLogResponse]
41
+ def get_integration_log(pk, sk, opts = {})
42
+ data, _status_code, _headers = get_integration_log_with_http_info(pk, sk, opts)
43
+ data
44
+ end
45
+
46
+ # Retrieve an integration log
47
+ # Retrieve an integration logs from the account based identifiers
48
+ # @param pk
49
+ # @param sk
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [Array<(IntegrationLogResponse, Fixnum, Hash)>] IntegrationLogResponse data, response status code and response headers
52
+ def get_integration_log_with_http_info(pk, sk, opts = {})
53
+ if @api_client.config.debugging
54
+ @api_client.config.logger.debug 'Calling API: IntegrationLogApi.get_integration_log ...'
55
+ end
56
+ # verify the required parameter 'pk' is set
57
+ if @api_client.config.client_side_validation && pk.nil?
58
+ fail ArgumentError, "Missing the required parameter 'pk' when calling IntegrationLogApi.get_integration_log"
59
+ end
60
+ # verify the required parameter 'sk' is set
61
+ if @api_client.config.client_side_validation && sk.nil?
62
+ fail ArgumentError, "Missing the required parameter 'sk' when calling IntegrationLogApi.get_integration_log"
63
+ end
64
+ # resource path
65
+ local_var_path = '/integration_log/query/{pk}/{sk}'.sub('{' + 'pk' + '}', pk.to_s).sub('{' + 'sk' + '}', sk.to_s)
66
+
67
+ # query parameters
68
+ query_params = {}
69
+
70
+ # header parameters
71
+ header_params = {}
72
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
73
+ # HTTP header 'Accept' (if needed)
74
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
75
+ # HTTP header 'Content-Type'
76
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
77
+
78
+ # form parameters
79
+ form_params = {}
80
+
81
+ # http body (model)
82
+ post_body = nil
83
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
84
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
85
+ :header_params => header_params,
86
+ :query_params => query_params,
87
+ :form_params => form_params,
88
+ :body => post_body,
89
+ :auth_names => auth_names,
90
+ :return_type => 'IntegrationLogResponse')
91
+ if @api_client.config.debugging
92
+ @api_client.config.logger.debug "API called: IntegrationLogApi#get_integration_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
93
+ end
94
+ return data, status_code, headers
95
+ end
96
+ # Retrieve an integration log file
97
+ # Retrieve an integration log file from the account based identifiers
98
+ # @param pk
99
+ # @param sk
100
+ # @param uuid
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [File]
103
+ def get_integration_log_file(pk, sk, uuid, opts = {})
104
+ data, _status_code, _headers = get_integration_log_file_with_http_info(pk, sk, uuid, opts)
105
+ data
106
+ end
107
+
108
+ # Retrieve an integration log file
109
+ # Retrieve an integration log file from the account based identifiers
110
+ # @param pk
111
+ # @param sk
112
+ # @param uuid
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
115
+ def get_integration_log_file_with_http_info(pk, sk, uuid, opts = {})
116
+ if @api_client.config.debugging
117
+ @api_client.config.logger.debug 'Calling API: IntegrationLogApi.get_integration_log_file ...'
118
+ end
119
+ # verify the required parameter 'pk' is set
120
+ if @api_client.config.client_side_validation && pk.nil?
121
+ fail ArgumentError, "Missing the required parameter 'pk' when calling IntegrationLogApi.get_integration_log_file"
122
+ end
123
+ # verify the required parameter 'sk' is set
124
+ if @api_client.config.client_side_validation && sk.nil?
125
+ fail ArgumentError, "Missing the required parameter 'sk' when calling IntegrationLogApi.get_integration_log_file"
126
+ end
127
+ # verify the required parameter 'uuid' is set
128
+ if @api_client.config.client_side_validation && uuid.nil?
129
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling IntegrationLogApi.get_integration_log_file"
130
+ end
131
+ # resource path
132
+ local_var_path = '/integration_log/query/{pk}/{sk}/{uuid}'.sub('{' + 'pk' + '}', pk.to_s).sub('{' + 'sk' + '}', sk.to_s).sub('{' + 'uuid' + '}', uuid.to_s)
133
+
134
+ # query parameters
135
+ query_params = {}
136
+
137
+ # header parameters
138
+ header_params = {}
139
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
140
+ # HTTP header 'Accept' (if needed)
141
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
142
+ # HTTP header 'Content-Type'
143
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
144
+
145
+ # form parameters
146
+ form_params = {}
147
+
148
+ # http body (model)
149
+ post_body = nil
150
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
151
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
152
+ :header_params => header_params,
153
+ :query_params => query_params,
154
+ :form_params => form_params,
155
+ :body => post_body,
156
+ :auth_names => auth_names,
157
+ :return_type => 'File')
158
+ if @api_client.config.debugging
159
+ @api_client.config.logger.debug "API called: IntegrationLogApi#get_integration_log_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
160
+ end
161
+ return data, status_code, headers
162
+ end
163
+ # Retrieve integration logs
164
+ # Retrieves a set of integration logs from the account based on a query object.
165
+ # @param integration_log_query Integration log query
166
+ # @param [Hash] opts the optional parameters
167
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 500) (default to 100)
168
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
169
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
170
+ # @return [IntegrationLogQueryResponse]
171
+ def get_integration_logs_query(integration_log_query, opts = {})
172
+ data, _status_code, _headers = get_integration_logs_query_with_http_info(integration_log_query, opts)
173
+ data
174
+ end
175
+
176
+ # Retrieve integration logs
177
+ # Retrieves a set of integration logs from the account based on a query object.
178
+ # @param integration_log_query Integration log query
179
+ # @param [Hash] opts the optional parameters
180
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 500)
181
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
182
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
183
+ # @return [Array<(IntegrationLogQueryResponse, Fixnum, Hash)>] IntegrationLogQueryResponse data, response status code and response headers
184
+ def get_integration_logs_query_with_http_info(integration_log_query, opts = {})
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug 'Calling API: IntegrationLogApi.get_integration_logs_query ...'
187
+ end
188
+ # verify the required parameter 'integration_log_query' is set
189
+ if @api_client.config.client_side_validation && integration_log_query.nil?
190
+ fail ArgumentError, "Missing the required parameter 'integration_log_query' when calling IntegrationLogApi.get_integration_logs_query"
191
+ end
192
+ # resource path
193
+ local_var_path = '/integration_log/query'
194
+
195
+ # query parameters
196
+ query_params = {}
197
+ query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
198
+ query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
199
+ query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
200
+
201
+ # header parameters
202
+ header_params = {}
203
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
204
+ # HTTP header 'Accept' (if needed)
205
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
206
+ # HTTP header 'Content-Type'
207
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
208
+
209
+ # form parameters
210
+ form_params = {}
211
+
212
+ # http body (model)
213
+ post_body = @api_client.object_to_http_body(integration_log_query)
214
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
215
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
216
+ :header_params => header_params,
217
+ :query_params => query_params,
218
+ :form_params => form_params,
219
+ :body => post_body,
220
+ :auth_names => auth_names,
221
+ :return_type => 'IntegrationLogQueryResponse')
222
+ if @api_client.config.debugging
223
+ @api_client.config.logger.debug "API called: IntegrationLogApi#get_integration_logs_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ end
225
+ return data, status_code, headers
226
+ end
227
+ end
228
+ end
@@ -4562,19 +4562,27 @@ module UltracartClient
4562
4562
  # Get screen recording heatmap index
4563
4563
  # Get screen recording heatmap index
4564
4564
  # @param storefront_oid
4565
+ # @param query Query
4565
4566
  # @param [Hash] opts the optional parameters
4567
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 500) (default to 100)
4568
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
4569
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
4566
4570
  # @return [ScreenRecordingHeatmapIndexResponse]
4567
- def get_heatmap_index(storefront_oid, opts = {})
4568
- data, _status_code, _headers = get_heatmap_index_with_http_info(storefront_oid, opts)
4571
+ def get_heatmap_index(storefront_oid, query, opts = {})
4572
+ data, _status_code, _headers = get_heatmap_index_with_http_info(storefront_oid, query, opts)
4569
4573
  data
4570
4574
  end
4571
4575
 
4572
4576
  # Get screen recording heatmap index
4573
4577
  # Get screen recording heatmap index
4574
4578
  # @param storefront_oid
4579
+ # @param query Query
4575
4580
  # @param [Hash] opts the optional parameters
4581
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 500)
4582
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
4583
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
4576
4584
  # @return [Array<(ScreenRecordingHeatmapIndexResponse, Fixnum, Hash)>] ScreenRecordingHeatmapIndexResponse data, response status code and response headers
4577
- def get_heatmap_index_with_http_info(storefront_oid, opts = {})
4585
+ def get_heatmap_index_with_http_info(storefront_oid, query, opts = {})
4578
4586
  if @api_client.config.debugging
4579
4587
  @api_client.config.logger.debug 'Calling API: StorefrontApi.get_heatmap_index ...'
4580
4588
  end
@@ -4582,11 +4590,18 @@ module UltracartClient
4582
4590
  if @api_client.config.client_side_validation && storefront_oid.nil?
4583
4591
  fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.get_heatmap_index"
4584
4592
  end
4593
+ # verify the required parameter 'query' is set
4594
+ if @api_client.config.client_side_validation && query.nil?
4595
+ fail ArgumentError, "Missing the required parameter 'query' when calling StorefrontApi.get_heatmap_index"
4596
+ end
4585
4597
  # resource path
4586
4598
  local_var_path = '/storefront/{storefront_oid}/screen_recordings/heatmap/index'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s)
4587
4599
 
4588
4600
  # query parameters
4589
4601
  query_params = {}
4602
+ query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
4603
+ query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
4604
+ query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
4590
4605
 
4591
4606
  # header parameters
4592
4607
  header_params = {}
@@ -4600,7 +4615,7 @@ module UltracartClient
4600
4615
  form_params = {}
4601
4616
 
4602
4617
  # http body (model)
4603
- post_body = nil
4618
+ post_body = @api_client.object_to_http_body(query)
4604
4619
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
4605
4620
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4606
4621
  :header_params => header_params,
@@ -4889,58 +4904,6 @@ module UltracartClient
4889
4904
  end
4890
4905
  return data, status_code, headers
4891
4906
  end
4892
- # Retrieve pricing tiers
4893
- # Retrieves the pricing tiers
4894
- # @param [Hash] opts the optional parameters
4895
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
4896
- # @return [PricingTiersResponse]
4897
- def get_pricing_tiers(opts = {})
4898
- data, _status_code, _headers = get_pricing_tiers_with_http_info(opts)
4899
- data
4900
- end
4901
-
4902
- # Retrieve pricing tiers
4903
- # Retrieves the pricing tiers
4904
- # @param [Hash] opts the optional parameters
4905
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
4906
- # @return [Array<(PricingTiersResponse, Fixnum, Hash)>] PricingTiersResponse data, response status code and response headers
4907
- def get_pricing_tiers_with_http_info(opts = {})
4908
- if @api_client.config.debugging
4909
- @api_client.config.logger.debug 'Calling API: StorefrontApi.get_pricing_tiers ...'
4910
- end
4911
- # resource path
4912
- local_var_path = '/storefront/pricing_tiers'
4913
-
4914
- # query parameters
4915
- query_params = {}
4916
- query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
4917
-
4918
- # header parameters
4919
- header_params = {}
4920
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
4921
- # HTTP header 'Accept' (if needed)
4922
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4923
- # HTTP header 'Content-Type'
4924
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4925
-
4926
- # form parameters
4927
- form_params = {}
4928
-
4929
- # http body (model)
4930
- post_body = nil
4931
- auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
4932
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4933
- :header_params => header_params,
4934
- :query_params => query_params,
4935
- :form_params => form_params,
4936
- :body => post_body,
4937
- :auth_names => auth_names,
4938
- :return_type => 'PricingTiersResponse')
4939
- if @api_client.config.debugging
4940
- @api_client.config.logger.debug "API called: StorefrontApi#get_pricing_tiers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4941
- end
4942
- return data, status_code, headers
4943
- end
4944
4907
  # Get screen recording
4945
4908
  # Get screen recording
4946
4909
  # @param storefront_oid
@@ -5429,6 +5392,58 @@ module UltracartClient
5429
5392
  end
5430
5393
  return data, status_code, headers
5431
5394
  end
5395
+ # Retrieve pricing tiers
5396
+ # Retrieves the pricing tiers
5397
+ # @param [Hash] opts the optional parameters
5398
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
5399
+ # @return [PricingTiersResponse]
5400
+ def get_store_front_pricing_tiers(opts = {})
5401
+ data, _status_code, _headers = get_store_front_pricing_tiers_with_http_info(opts)
5402
+ data
5403
+ end
5404
+
5405
+ # Retrieve pricing tiers
5406
+ # Retrieves the pricing tiers
5407
+ # @param [Hash] opts the optional parameters
5408
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
5409
+ # @return [Array<(PricingTiersResponse, Fixnum, Hash)>] PricingTiersResponse data, response status code and response headers
5410
+ def get_store_front_pricing_tiers_with_http_info(opts = {})
5411
+ if @api_client.config.debugging
5412
+ @api_client.config.logger.debug 'Calling API: StorefrontApi.get_store_front_pricing_tiers ...'
5413
+ end
5414
+ # resource path
5415
+ local_var_path = '/storefront/pricing_tiers'
5416
+
5417
+ # query parameters
5418
+ query_params = {}
5419
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
5420
+
5421
+ # header parameters
5422
+ header_params = {}
5423
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
5424
+ # HTTP header 'Accept' (if needed)
5425
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5426
+ # HTTP header 'Content-Type'
5427
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5428
+
5429
+ # form parameters
5430
+ form_params = {}
5431
+
5432
+ # http body (model)
5433
+ post_body = nil
5434
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
5435
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
5436
+ :header_params => header_params,
5437
+ :query_params => query_params,
5438
+ :form_params => form_params,
5439
+ :body => post_body,
5440
+ :auth_names => auth_names,
5441
+ :return_type => 'PricingTiersResponse')
5442
+ if @api_client.config.debugging
5443
+ @api_client.config.logger.debug "API called: StorefrontApi#get_store_front_pricing_tiers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5444
+ end
5445
+ return data, status_code, headers
5446
+ end
5432
5447
  # Get thumbnail parameters
5433
5448
  # @param thumbnail_parameters Thumbnail Parameters
5434
5449
  # @param [Hash] opts the optional parameters
@@ -23,6 +23,9 @@ module UltracartClient
23
23
  # Additional information often a link to additional documentation
24
24
  attr_accessor :more_info
25
25
 
26
+ # Object id that the error is associated with
27
+ attr_accessor :object_id
28
+
26
29
  # An end-user friendly message suitable for display to the customer
27
30
  attr_accessor :user_message
28
31
 
@@ -32,6 +35,7 @@ module UltracartClient
32
35
  :'developer_message' => :'developer_message',
33
36
  :'error_code' => :'error_code',
34
37
  :'more_info' => :'more_info',
38
+ :'object_id' => :'object_id',
35
39
  :'user_message' => :'user_message'
36
40
  }
37
41
  end
@@ -42,6 +46,7 @@ module UltracartClient
42
46
  :'developer_message' => :'String',
43
47
  :'error_code' => :'String',
44
48
  :'more_info' => :'String',
49
+ :'object_id' => :'String',
45
50
  :'user_message' => :'String'
46
51
  }
47
52
  end
@@ -66,6 +71,10 @@ module UltracartClient
66
71
  self.more_info = attributes[:'more_info']
67
72
  end
68
73
 
74
+ if attributes.has_key?(:'object_id')
75
+ self.object_id = attributes[:'object_id']
76
+ end
77
+
69
78
  if attributes.has_key?(:'user_message')
70
79
  self.user_message = attributes[:'user_message']
71
80
  end
@@ -92,6 +101,7 @@ module UltracartClient
92
101
  developer_message == o.developer_message &&
93
102
  error_code == o.error_code &&
94
103
  more_info == o.more_info &&
104
+ object_id == o.object_id &&
95
105
  user_message == o.user_message
96
106
  end
97
107
 
@@ -104,7 +114,7 @@ module UltracartClient
104
114
  # Calculates hash code according to all attributes.
105
115
  # @return [Fixnum] Hash code
106
116
  def hash
107
- [developer_message, error_code, more_info, user_message].hash
117
+ [developer_message, error_code, more_info, object_id, user_message].hash
108
118
  end
109
119
 
110
120
  # Builds the object from hash