ultracart_api 3.10.17 → 3.10.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -4
  3. data/docs/Activity.md +2 -0
  4. data/docs/ChargebackApi.md +1 -1
  5. data/docs/Conversation.md +12 -0
  6. data/docs/ConversationAgentAuthResponse.md +10 -0
  7. data/docs/ConversationApi.md +310 -0
  8. data/docs/ConversationMessage.md +12 -0
  9. data/docs/ConversationParticipant.md +14 -0
  10. data/docs/ConversationStartRequest.md +9 -0
  11. data/docs/ConversationStartResponse.md +9 -0
  12. data/docs/ConversationSummary.md +16 -0
  13. data/docs/ConversationsResponse.md +12 -0
  14. data/docs/CustomerActivity.md +4 -0
  15. data/docs/CustomerApi.md +58 -1
  16. data/docs/CustomerMergeRequest.md +9 -0
  17. data/docs/OrderApi.md +1 -1
  18. data/docs/SsoApi.md +2 -2
  19. data/docs/UserApi.md +2 -2
  20. data/docs/WebhookApi.md +1 -1
  21. data/lib/ultracart_api/api/chargeback_api.rb +1 -1
  22. data/lib/ultracart_api/api/conversation_api.rb +358 -0
  23. data/lib/ultracart_api/api/customer_api.rb +64 -1
  24. data/lib/ultracart_api/api/order_api.rb +1 -1
  25. data/lib/ultracart_api/api/sso_api.rb +2 -2
  26. data/lib/ultracart_api/api/user_api.rb +2 -2
  27. data/lib/ultracart_api/api/webhook_api.rb +1 -1
  28. data/lib/ultracart_api/models/activity.rb +19 -1
  29. data/lib/ultracart_api/models/conversation.rb +224 -0
  30. data/lib/ultracart_api/models/conversation_agent_auth_response.rb +202 -0
  31. data/lib/ultracart_api/models/conversation_message.rb +223 -0
  32. data/lib/ultracart_api/models/conversation_participant.rb +241 -0
  33. data/lib/ultracart_api/models/conversation_start_request.rb +195 -0
  34. data/lib/ultracart_api/models/conversation_start_response.rb +193 -0
  35. data/lib/ultracart_api/models/conversation_summary.rb +257 -0
  36. data/lib/ultracart_api/models/conversations_response.rb +223 -0
  37. data/lib/ultracart_api/models/customer_activity.rb +40 -4
  38. data/lib/ultracart_api/models/customer_merge_request.rb +195 -0
  39. data/lib/ultracart_api/version.rb +1 -1
  40. data/lib/ultracart_api.rb +10 -0
  41. metadata +22 -2
data/docs/UserApi.md CHANGED
@@ -61,7 +61,7 @@ nil (empty response body)
61
61
 
62
62
  ### HTTP request headers
63
63
 
64
- - **Content-Type**: application/json; charset=UTF-8
64
+ - **Content-Type**: application/json
65
65
  - **Accept**: application/json
66
66
 
67
67
 
@@ -110,7 +110,7 @@ nil (empty response body)
110
110
 
111
111
  ### HTTP request headers
112
112
 
113
- - **Content-Type**: application/json; charset=UTF-8
113
+ - **Content-Type**: application/json
114
114
  - **Accept**: application/json
115
115
 
116
116
 
data/docs/WebhookApi.md CHANGED
@@ -383,7 +383,7 @@ Name | Type | Description | Notes
383
383
 
384
384
  ### HTTP request headers
385
385
 
386
- - **Content-Type**: application/json; charset=UTF-8
386
+ - **Content-Type**: application/json
387
387
  - **Accept**: application/json
388
388
 
389
389
 
@@ -67,7 +67,7 @@ module UltracartClient
67
67
  # HTTP header 'Accept' (if needed)
68
68
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
69
69
  # HTTP header 'Content-Type'
70
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
71
71
 
72
72
  # form parameters
73
73
  form_params = {}
@@ -0,0 +1,358 @@
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 'addressable/uri'
14
+
15
+ module UltracartClient
16
+ class ConversationApi
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::ConversationApi.new(api_client)
33
+ end
34
+
35
+ # Get agent websocket authorization
36
+ # Retrieve a JWT to authorize an agent to make a websocket connection.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [ConversationAgentAuthResponse]
39
+ def get_agent_websocket_authorization(opts = {})
40
+ data, _status_code, _headers = get_agent_websocket_authorization_with_http_info(opts)
41
+ data
42
+ end
43
+
44
+ # Get agent websocket authorization
45
+ # Retrieve a JWT to authorize an agent to make a websocket connection.
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [Array<(ConversationAgentAuthResponse, Fixnum, Hash)>] ConversationAgentAuthResponse data, response status code and response headers
48
+ def get_agent_websocket_authorization_with_http_info(opts = {})
49
+ if @api_client.config.debugging
50
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_agent_websocket_authorization ...'
51
+ end
52
+ # resource path
53
+ local_var_path = '/conversation/agent/auth'
54
+
55
+ # query parameters
56
+ query_params = {}
57
+
58
+ # header parameters
59
+ header_params = {}
60
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
63
+ # HTTP header 'Content-Type'
64
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
65
+
66
+ # form parameters
67
+ form_params = {}
68
+
69
+ # http body (model)
70
+ post_body = nil
71
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
72
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => 'ConversationAgentAuthResponse')
79
+ if @api_client.config.debugging
80
+ @api_client.config.logger.debug "API called: ConversationApi#get_agent_websocket_authorization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ end
82
+ return data, status_code, headers
83
+ end
84
+ # Retrieve a conversation
85
+ # Retrieve a conversation including the participants and messages
86
+ # @param conversation_uuid
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [Conversation]
89
+ def get_conversation(conversation_uuid, opts = {})
90
+ data, _status_code, _headers = get_conversation_with_http_info(conversation_uuid, opts)
91
+ data
92
+ end
93
+
94
+ # Retrieve a conversation
95
+ # Retrieve a conversation including the participants and messages
96
+ # @param conversation_uuid
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
99
+ def get_conversation_with_http_info(conversation_uuid, opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation ...'
102
+ end
103
+ # verify the required parameter 'conversation_uuid' is set
104
+ if @api_client.config.client_side_validation && conversation_uuid.nil?
105
+ fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.get_conversation"
106
+ end
107
+ # resource path
108
+ local_var_path = '/conversation/conversations/{conversation_uuid}'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
109
+
110
+ # query parameters
111
+ query_params = {}
112
+
113
+ # header parameters
114
+ header_params = {}
115
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
116
+ # HTTP header 'Accept' (if needed)
117
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
118
+ # HTTP header 'Content-Type'
119
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
120
+
121
+ # form parameters
122
+ form_params = {}
123
+
124
+ # http body (model)
125
+ post_body = nil
126
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
127
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :form_params => form_params,
131
+ :body => post_body,
132
+ :auth_names => auth_names,
133
+ :return_type => 'Conversation')
134
+ if @api_client.config.debugging
135
+ @api_client.config.logger.debug "API called: ConversationApi#get_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
136
+ end
137
+ return data, status_code, headers
138
+ end
139
+ # Retrieve a list of conversation summaries newest to oldest
140
+ # Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
141
+ # @param [Hash] opts the optional parameters
142
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
143
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
144
+ # @return [ConversationsResponse]
145
+ def get_conversations(opts = {})
146
+ data, _status_code, _headers = get_conversations_with_http_info(opts)
147
+ data
148
+ end
149
+
150
+ # Retrieve a list of conversation summaries newest to oldest
151
+ # Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200)
154
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
155
+ # @return [Array<(ConversationsResponse, Fixnum, Hash)>] ConversationsResponse data, response status code and response headers
156
+ def get_conversations_with_http_info(opts = {})
157
+ if @api_client.config.debugging
158
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_conversations ...'
159
+ end
160
+ # resource path
161
+ local_var_path = '/conversation/conversations'
162
+
163
+ # query parameters
164
+ query_params = {}
165
+ query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
166
+ query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
167
+
168
+ # header parameters
169
+ header_params = {}
170
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
171
+ # HTTP header 'Accept' (if needed)
172
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
173
+ # HTTP header 'Content-Type'
174
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
175
+
176
+ # form parameters
177
+ form_params = {}
178
+
179
+ # http body (model)
180
+ post_body = nil
181
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
182
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
183
+ :header_params => header_params,
184
+ :query_params => query_params,
185
+ :form_params => form_params,
186
+ :body => post_body,
187
+ :auth_names => auth_names,
188
+ :return_type => 'ConversationsResponse')
189
+ if @api_client.config.debugging
190
+ @api_client.config.logger.debug "API called: ConversationApi#get_conversations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
191
+ end
192
+ return data, status_code, headers
193
+ end
194
+ # Join a conversation
195
+ # Join a conversation
196
+ # @param conversation_uuid
197
+ # @param [Hash] opts the optional parameters
198
+ # @return [nil]
199
+ def join_conversation(conversation_uuid, opts = {})
200
+ join_conversation_with_http_info(conversation_uuid, opts)
201
+ nil
202
+ end
203
+
204
+ # Join a conversation
205
+ # Join a conversation
206
+ # @param conversation_uuid
207
+ # @param [Hash] opts the optional parameters
208
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
209
+ def join_conversation_with_http_info(conversation_uuid, opts = {})
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug 'Calling API: ConversationApi.join_conversation ...'
212
+ end
213
+ # verify the required parameter 'conversation_uuid' is set
214
+ if @api_client.config.client_side_validation && conversation_uuid.nil?
215
+ fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.join_conversation"
216
+ end
217
+ # resource path
218
+ local_var_path = '/conversation/conversations/{conversation_uuid}/join'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
219
+
220
+ # query parameters
221
+ query_params = {}
222
+
223
+ # header parameters
224
+ header_params = {}
225
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
226
+ # HTTP header 'Accept' (if needed)
227
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
228
+ # HTTP header 'Content-Type'
229
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
230
+
231
+ # form parameters
232
+ form_params = {}
233
+
234
+ # http body (model)
235
+ post_body = nil
236
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
237
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
238
+ :header_params => header_params,
239
+ :query_params => query_params,
240
+ :form_params => form_params,
241
+ :body => post_body,
242
+ :auth_names => auth_names)
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug "API called: ConversationApi#join_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
245
+ end
246
+ return data, status_code, headers
247
+ end
248
+ # Leave a conversation
249
+ # Leave a conversation
250
+ # @param conversation_uuid
251
+ # @param [Hash] opts the optional parameters
252
+ # @return [nil]
253
+ def leave_conversation(conversation_uuid, opts = {})
254
+ leave_conversation_with_http_info(conversation_uuid, opts)
255
+ nil
256
+ end
257
+
258
+ # Leave a conversation
259
+ # Leave a conversation
260
+ # @param conversation_uuid
261
+ # @param [Hash] opts the optional parameters
262
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
263
+ def leave_conversation_with_http_info(conversation_uuid, opts = {})
264
+ if @api_client.config.debugging
265
+ @api_client.config.logger.debug 'Calling API: ConversationApi.leave_conversation ...'
266
+ end
267
+ # verify the required parameter 'conversation_uuid' is set
268
+ if @api_client.config.client_side_validation && conversation_uuid.nil?
269
+ fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.leave_conversation"
270
+ end
271
+ # resource path
272
+ local_var_path = '/conversation/conversations/{conversation_uuid}/leave'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
273
+
274
+ # query parameters
275
+ query_params = {}
276
+
277
+ # header parameters
278
+ header_params = {}
279
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
280
+ # HTTP header 'Accept' (if needed)
281
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
282
+ # HTTP header 'Content-Type'
283
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
284
+
285
+ # form parameters
286
+ form_params = {}
287
+
288
+ # http body (model)
289
+ post_body = nil
290
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
291
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
292
+ :header_params => header_params,
293
+ :query_params => query_params,
294
+ :form_params => form_params,
295
+ :body => post_body,
296
+ :auth_names => auth_names)
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug "API called: ConversationApi#leave_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
299
+ end
300
+ return data, status_code, headers
301
+ end
302
+ # Start a conversation
303
+ # Start a new conversation
304
+ # @param start_request Start request
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [ConversationStartResponse]
307
+ def start_conversation(start_request, opts = {})
308
+ data, _status_code, _headers = start_conversation_with_http_info(start_request, opts)
309
+ data
310
+ end
311
+
312
+ # Start a conversation
313
+ # Start a new conversation
314
+ # @param start_request Start request
315
+ # @param [Hash] opts the optional parameters
316
+ # @return [Array<(ConversationStartResponse, Fixnum, Hash)>] ConversationStartResponse data, response status code and response headers
317
+ def start_conversation_with_http_info(start_request, opts = {})
318
+ if @api_client.config.debugging
319
+ @api_client.config.logger.debug 'Calling API: ConversationApi.start_conversation ...'
320
+ end
321
+ # verify the required parameter 'start_request' is set
322
+ if @api_client.config.client_side_validation && start_request.nil?
323
+ fail ArgumentError, "Missing the required parameter 'start_request' when calling ConversationApi.start_conversation"
324
+ end
325
+ # resource path
326
+ local_var_path = '/conversation/conversations'
327
+
328
+ # query parameters
329
+ query_params = {}
330
+
331
+ # header parameters
332
+ header_params = {}
333
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
334
+ # HTTP header 'Accept' (if needed)
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
336
+ # HTTP header 'Content-Type'
337
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
338
+
339
+ # form parameters
340
+ form_params = {}
341
+
342
+ # http body (model)
343
+ post_body = @api_client.object_to_http_body(start_request)
344
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
345
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
346
+ :header_params => header_params,
347
+ :query_params => query_params,
348
+ :form_params => form_params,
349
+ :body => post_body,
350
+ :auth_names => auth_names,
351
+ :return_type => 'ConversationStartResponse')
352
+ if @api_client.config.debugging
353
+ @api_client.config.logger.debug "API called: ConversationApi#start_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
354
+ end
355
+ return data, status_code, headers
356
+ end
357
+ end
358
+ end
@@ -189,7 +189,7 @@ module UltracartClient
189
189
  # HTTP header 'Accept' (if needed)
190
190
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
191
191
  # HTTP header 'Content-Type'
192
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
192
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
193
193
 
194
194
  # form parameters
195
195
  form_params = {}
@@ -857,6 +857,69 @@ module UltracartClient
857
857
  end
858
858
  return data, status_code, headers
859
859
  end
860
+ # Merge customer into this customer
861
+ # Merge customer into this customer.
862
+ # @param customer Customer to merge into this profile.
863
+ # @param customer_profile_oid The customer_profile_oid to update.
864
+ # @param [Hash] opts the optional parameters
865
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
866
+ # @return [nil]
867
+ def merge_customer(customer, customer_profile_oid, opts = {})
868
+ merge_customer_with_http_info(customer, customer_profile_oid, opts)
869
+ nil
870
+ end
871
+
872
+ # Merge customer into this customer
873
+ # Merge customer into this customer.
874
+ # @param customer Customer to merge into this profile.
875
+ # @param customer_profile_oid The customer_profile_oid to update.
876
+ # @param [Hash] opts the optional parameters
877
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
878
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
879
+ def merge_customer_with_http_info(customer, customer_profile_oid, opts = {})
880
+ if @api_client.config.debugging
881
+ @api_client.config.logger.debug 'Calling API: CustomerApi.merge_customer ...'
882
+ end
883
+ # verify the required parameter 'customer' is set
884
+ if @api_client.config.client_side_validation && customer.nil?
885
+ fail ArgumentError, "Missing the required parameter 'customer' when calling CustomerApi.merge_customer"
886
+ end
887
+ # verify the required parameter 'customer_profile_oid' is set
888
+ if @api_client.config.client_side_validation && customer_profile_oid.nil?
889
+ fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.merge_customer"
890
+ end
891
+ # resource path
892
+ local_var_path = '/customer/customers/{customer_profile_oid}/merge'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s)
893
+
894
+ # query parameters
895
+ query_params = {}
896
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
897
+
898
+ # header parameters
899
+ header_params = {}
900
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
901
+ # HTTP header 'Accept' (if needed)
902
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
903
+ # HTTP header 'Content-Type'
904
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
905
+
906
+ # form parameters
907
+ form_params = {}
908
+
909
+ # http body (model)
910
+ post_body = @api_client.object_to_http_body(customer)
911
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
912
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
913
+ :header_params => header_params,
914
+ :query_params => query_params,
915
+ :form_params => form_params,
916
+ :body => post_body,
917
+ :auth_names => auth_names)
918
+ if @api_client.config.debugging
919
+ @api_client.config.logger.debug "API called: CustomerApi#merge_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
920
+ end
921
+ return data, status_code, headers
922
+ end
860
923
  # Searches for all matching values (using POST)
861
924
  # @param lookup_request LookupRequest
862
925
  # @param [Hash] opts the optional parameters
@@ -240,7 +240,7 @@ module UltracartClient
240
240
  # HTTP header 'Accept' (if needed)
241
241
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
242
242
  # HTTP header 'Content-Type'
243
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
243
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
244
244
 
245
245
  # form parameters
246
246
  form_params = {}
@@ -61,7 +61,7 @@ module UltracartClient
61
61
  # HTTP header 'Accept' (if needed)
62
62
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
63
63
  # HTTP header 'Content-Type'
64
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
64
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
65
65
 
66
66
  # form parameters
67
67
  form_params = {}
@@ -165,7 +165,7 @@ module UltracartClient
165
165
  # HTTP header 'Accept' (if needed)
166
166
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
167
167
  # HTTP header 'Content-Type'
168
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
168
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
169
169
 
170
170
  # form parameters
171
171
  form_params = {}
@@ -67,7 +67,7 @@ module UltracartClient
67
67
  # HTTP header 'Accept' (if needed)
68
68
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
69
69
  # HTTP header 'Content-Type'
70
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
71
71
 
72
72
  # form parameters
73
73
  form_params = {}
@@ -121,7 +121,7 @@ module UltracartClient
121
121
  # HTTP header 'Accept' (if needed)
122
122
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
123
123
  # HTTP header 'Content-Type'
124
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
124
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
125
125
 
126
126
  # form parameters
127
127
  form_params = {}
@@ -426,7 +426,7 @@ module UltracartClient
426
426
  # HTTP header 'Accept' (if needed)
427
427
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
428
428
  # HTTP header 'Content-Type'
429
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
429
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
430
430
 
431
431
  # form parameters
432
432
  form_params = {}
@@ -16,8 +16,12 @@ module UltracartClient
16
16
  class Activity
17
17
  attr_accessor :action
18
18
 
19
+ attr_accessor :channel
20
+
19
21
  attr_accessor :metric
20
22
 
23
+ attr_accessor :storefront_oid
24
+
21
25
  attr_accessor :subject
22
26
 
23
27
  attr_accessor :ts
@@ -30,7 +34,9 @@ module UltracartClient
30
34
  def self.attribute_map
31
35
  {
32
36
  :'action' => :'action',
37
+ :'channel' => :'channel',
33
38
  :'metric' => :'metric',
39
+ :'storefront_oid' => :'storefront_oid',
34
40
  :'subject' => :'subject',
35
41
  :'ts' => :'ts',
36
42
  :'type' => :'type',
@@ -42,7 +48,9 @@ module UltracartClient
42
48
  def self.swagger_types
43
49
  {
44
50
  :'action' => :'String',
51
+ :'channel' => :'String',
45
52
  :'metric' => :'String',
53
+ :'storefront_oid' => :'Integer',
46
54
  :'subject' => :'String',
47
55
  :'ts' => :'Integer',
48
56
  :'type' => :'String',
@@ -62,10 +70,18 @@ module UltracartClient
62
70
  self.action = attributes[:'action']
63
71
  end
64
72
 
73
+ if attributes.has_key?(:'channel')
74
+ self.channel = attributes[:'channel']
75
+ end
76
+
65
77
  if attributes.has_key?(:'metric')
66
78
  self.metric = attributes[:'metric']
67
79
  end
68
80
 
81
+ if attributes.has_key?(:'storefront_oid')
82
+ self.storefront_oid = attributes[:'storefront_oid']
83
+ end
84
+
69
85
  if attributes.has_key?(:'subject')
70
86
  self.subject = attributes[:'subject']
71
87
  end
@@ -102,7 +118,9 @@ module UltracartClient
102
118
  return true if self.equal?(o)
103
119
  self.class == o.class &&
104
120
  action == o.action &&
121
+ channel == o.channel &&
105
122
  metric == o.metric &&
123
+ storefront_oid == o.storefront_oid &&
106
124
  subject == o.subject &&
107
125
  ts == o.ts &&
108
126
  type == o.type &&
@@ -118,7 +136,7 @@ module UltracartClient
118
136
  # Calculates hash code according to all attributes.
119
137
  # @return [Fixnum] Hash code
120
138
  def hash
121
- [action, metric, subject, ts, type, uuid].hash
139
+ [action, channel, metric, storefront_oid, subject, ts, type, uuid].hash
122
140
  end
123
141
 
124
142
  # Builds the object from hash