ultracart_api 3.10.46 → 3.10.48

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,54 @@ module UltracartClient
32
32
  UltracartClient::ConversationApi.new(api_client)
33
33
  end
34
34
 
35
+ # Agent keep alive
36
+ # Called periodically by the conversation API to keep the session alive.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [nil]
39
+ def get_agent_keep_alive(opts = {})
40
+ get_agent_keep_alive_with_http_info(opts)
41
+ nil
42
+ end
43
+
44
+ # Agent keep alive
45
+ # Called periodically by the conversation API to keep the session alive.
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
48
+ def get_agent_keep_alive_with_http_info(opts = {})
49
+ if @api_client.config.debugging
50
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_agent_keep_alive ...'
51
+ end
52
+ # resource path
53
+ local_var_path = '/conversation/agent/keepalive'
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(:GET, 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
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: ConversationApi#get_agent_keep_alive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
35
83
  # Get agent websocket authorization
36
84
  # Retrieve a JWT to authorize an agent to make a websocket connection.
37
85
  # @param [Hash] opts the optional parameters
@@ -85,6 +133,7 @@ module UltracartClient
85
133
  # Retrieve a conversation including the participants and messages
86
134
  # @param conversation_uuid
87
135
  # @param [Hash] opts the optional parameters
136
+ # @option opts [Integer] :limit
88
137
  # @return [ConversationResponse]
89
138
  def get_conversation(conversation_uuid, opts = {})
90
139
  data, _status_code, _headers = get_conversation_with_http_info(conversation_uuid, opts)
@@ -95,6 +144,7 @@ module UltracartClient
95
144
  # Retrieve a conversation including the participants and messages
96
145
  # @param conversation_uuid
97
146
  # @param [Hash] opts the optional parameters
147
+ # @option opts [Integer] :limit
98
148
  # @return [Array<(ConversationResponse, Fixnum, Hash)>] ConversationResponse data, response status code and response headers
99
149
  def get_conversation_with_http_info(conversation_uuid, opts = {})
100
150
  if @api_client.config.debugging
@@ -109,6 +159,7 @@ module UltracartClient
109
159
 
110
160
  # query parameters
111
161
  query_params = {}
162
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
112
163
 
113
164
  # header parameters
114
165
  header_params = {}
@@ -136,6 +187,70 @@ module UltracartClient
136
187
  end
137
188
  return data, status_code, headers
138
189
  end
190
+ # Retrieve conversation messages
191
+ # Retrieve conversation messages since a particular time
192
+ # @param conversation_uuid
193
+ # @param since
194
+ # @param [Hash] opts the optional parameters
195
+ # @option opts [Integer] :limit
196
+ # @return [ConversationMessagesResponse]
197
+ def get_conversation_messages(conversation_uuid, since, opts = {})
198
+ data, _status_code, _headers = get_conversation_messages_with_http_info(conversation_uuid, since, opts)
199
+ data
200
+ end
201
+
202
+ # Retrieve conversation messages
203
+ # Retrieve conversation messages since a particular time
204
+ # @param conversation_uuid
205
+ # @param since
206
+ # @param [Hash] opts the optional parameters
207
+ # @option opts [Integer] :limit
208
+ # @return [Array<(ConversationMessagesResponse, Fixnum, Hash)>] ConversationMessagesResponse data, response status code and response headers
209
+ def get_conversation_messages_with_http_info(conversation_uuid, since, opts = {})
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_messages ...'
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.get_conversation_messages"
216
+ end
217
+ # verify the required parameter 'since' is set
218
+ if @api_client.config.client_side_validation && since.nil?
219
+ fail ArgumentError, "Missing the required parameter 'since' when calling ConversationApi.get_conversation_messages"
220
+ end
221
+ # resource path
222
+ local_var_path = '/conversation/conversations/{conversation_uuid}/messages/{since}'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s).sub('{' + 'since' + '}', since.to_s)
223
+
224
+ # query parameters
225
+ query_params = {}
226
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
227
+
228
+ # header parameters
229
+ header_params = {}
230
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
231
+ # HTTP header 'Accept' (if needed)
232
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
233
+ # HTTP header 'Content-Type'
234
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
235
+
236
+ # form parameters
237
+ form_params = {}
238
+
239
+ # http body (model)
240
+ post_body = nil
241
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
242
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
243
+ :header_params => header_params,
244
+ :query_params => query_params,
245
+ :form_params => form_params,
246
+ :body => post_body,
247
+ :auth_names => auth_names,
248
+ :return_type => 'ConversationMessagesResponse')
249
+ if @api_client.config.debugging
250
+ @api_client.config.logger.debug "API called: ConversationApi#get_conversation_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
251
+ end
252
+ return data, status_code, headers
253
+ end
139
254
  # Get a presigned conersation multimedia upload URL
140
255
  # Get a presigned conersation multimedia upload URL
141
256
  # @param extension
@@ -32,6 +32,60 @@ module UltracartClient
32
32
  UltracartClient::ItemApi.new(api_client)
33
33
  end
34
34
 
35
+ # Delete a digital item, which is a file within the digital library, not an actual merchant item
36
+ # Delete a digital item on the UltraCart account.
37
+ # @param digital_item_oid The digital item oid to delete.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [nil]
40
+ def delete_digital_item(digital_item_oid, opts = {})
41
+ delete_digital_item_with_http_info(digital_item_oid, opts)
42
+ nil
43
+ end
44
+
45
+ # Delete a digital item, which is a file within the digital library, not an actual merchant item
46
+ # Delete a digital item on the UltraCart account.
47
+ # @param digital_item_oid The digital item oid to delete.
48
+ # @param [Hash] opts the optional parameters
49
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
50
+ def delete_digital_item_with_http_info(digital_item_oid, opts = {})
51
+ if @api_client.config.debugging
52
+ @api_client.config.logger.debug 'Calling API: ItemApi.delete_digital_item ...'
53
+ end
54
+ # verify the required parameter 'digital_item_oid' is set
55
+ if @api_client.config.client_side_validation && digital_item_oid.nil?
56
+ fail ArgumentError, "Missing the required parameter 'digital_item_oid' when calling ItemApi.delete_digital_item"
57
+ end
58
+ # resource path
59
+ local_var_path = '/item/digital_library/{digital_item_oid}'.sub('{' + 'digital_item_oid' + '}', digital_item_oid.to_s)
60
+
61
+ # query parameters
62
+ query_params = {}
63
+
64
+ # header parameters
65
+ header_params = {}
66
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
67
+ # HTTP header 'Accept' (if needed)
68
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
69
+ # HTTP header 'Content-Type'
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
78
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: ItemApi#delete_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
35
89
  # Delete an item
36
90
  # Delete an item on the UltraCart account.
37
91
  # @param merchant_item_oid The item oid to delete.
@@ -86,6 +140,146 @@ module UltracartClient
86
140
  end
87
141
  return data, status_code, headers
88
142
  end
143
+ # Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
144
+ # Retrieves a digital item (file information) from the account. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items.
145
+ # @param digital_item_oid The digital item oid to retrieve.
146
+ # @param [Hash] opts the optional parameters
147
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000) (default to 100)
148
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
149
+ # @option opts [String] :_since Fetch items that have been created/modified since this date/time.
150
+ # @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.
151
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
152
+ # @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
153
+ # @return [ItemDigitalItemResponse]
154
+ def get_digital_item(digital_item_oid, opts = {})
155
+ data, _status_code, _headers = get_digital_item_with_http_info(digital_item_oid, opts)
156
+ data
157
+ end
158
+
159
+ # Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
160
+ # Retrieves a digital item (file information) from the account. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items.
161
+ # @param digital_item_oid The digital item oid to retrieve.
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000)
164
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
165
+ # @option opts [String] :_since Fetch items that have been created/modified since this date/time.
166
+ # @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.
167
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
168
+ # @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
169
+ # @return [Array<(ItemDigitalItemResponse, Fixnum, Hash)>] ItemDigitalItemResponse data, response status code and response headers
170
+ def get_digital_item_with_http_info(digital_item_oid, opts = {})
171
+ if @api_client.config.debugging
172
+ @api_client.config.logger.debug 'Calling API: ItemApi.get_digital_item ...'
173
+ end
174
+ # verify the required parameter 'digital_item_oid' is set
175
+ if @api_client.config.client_side_validation && digital_item_oid.nil?
176
+ fail ArgumentError, "Missing the required parameter 'digital_item_oid' when calling ItemApi.get_digital_item"
177
+ end
178
+ # resource path
179
+ local_var_path = '/item/digital_library/{digital_item_oid}'.sub('{' + 'digital_item_oid' + '}', digital_item_oid.to_s)
180
+
181
+ # query parameters
182
+ query_params = {}
183
+ query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
184
+ query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
185
+ query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
186
+ query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
187
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
188
+ query_params[:'_placeholders'] = opts[:'_placeholders'] if !opts[:'_placeholders'].nil?
189
+
190
+ # header parameters
191
+ header_params = {}
192
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
193
+ # HTTP header 'Accept' (if needed)
194
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
195
+ # HTTP header 'Content-Type'
196
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
197
+
198
+ # form parameters
199
+ form_params = {}
200
+
201
+ # http body (model)
202
+ post_body = nil
203
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
204
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
205
+ :header_params => header_params,
206
+ :query_params => query_params,
207
+ :form_params => form_params,
208
+ :body => post_body,
209
+ :auth_names => auth_names,
210
+ :return_type => 'ItemDigitalItemResponse')
211
+ if @api_client.config.debugging
212
+ @api_client.config.logger.debug "API called: ItemApi#get_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
+ end
214
+ return data, status_code, headers
215
+ end
216
+ # Retrieve digital items from the digital library which are digital files that may be attached to normal items
217
+ # Retrieves a group of digital items (file information) from the account. If no parameters are specified, all digital items will be returned. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
218
+ # @param [Hash] opts the optional parameters
219
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000) (default to 100)
220
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
221
+ # @option opts [String] :_since Fetch items that have been created/modified since this date/time.
222
+ # @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.
223
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
224
+ # @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
225
+ # @return [ItemDigitalItemsResponse]
226
+ def get_digital_items(opts = {})
227
+ data, _status_code, _headers = get_digital_items_with_http_info(opts)
228
+ data
229
+ end
230
+
231
+ # Retrieve digital items from the digital library which are digital files that may be attached to normal items
232
+ # Retrieves a group of digital items (file information) from the account. If no parameters are specified, all digital items will be returned. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
233
+ # @param [Hash] opts the optional parameters
234
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000)
235
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
236
+ # @option opts [String] :_since Fetch items that have been created/modified since this date/time.
237
+ # @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.
238
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
239
+ # @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
240
+ # @return [Array<(ItemDigitalItemsResponse, Fixnum, Hash)>] ItemDigitalItemsResponse data, response status code and response headers
241
+ def get_digital_items_with_http_info(opts = {})
242
+ if @api_client.config.debugging
243
+ @api_client.config.logger.debug 'Calling API: ItemApi.get_digital_items ...'
244
+ end
245
+ # resource path
246
+ local_var_path = '/item/digital_library'
247
+
248
+ # query parameters
249
+ query_params = {}
250
+ query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
251
+ query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
252
+ query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
253
+ query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
254
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
255
+ query_params[:'_placeholders'] = opts[:'_placeholders'] if !opts[:'_placeholders'].nil?
256
+
257
+ # header parameters
258
+ header_params = {}
259
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
260
+ # HTTP header 'Accept' (if needed)
261
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
262
+ # HTTP header 'Content-Type'
263
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
264
+
265
+ # form parameters
266
+ form_params = {}
267
+
268
+ # http body (model)
269
+ post_body = nil
270
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
271
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
272
+ :header_params => header_params,
273
+ :query_params => query_params,
274
+ :form_params => form_params,
275
+ :body => post_body,
276
+ :auth_names => auth_names,
277
+ :return_type => 'ItemDigitalItemsResponse')
278
+ if @api_client.config.debugging
279
+ @api_client.config.logger.debug "API called: ItemApi#get_digital_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
280
+ end
281
+ return data, status_code, headers
282
+ end
89
283
  # Retrieve an item
90
284
  # Retrieves a single item using the specified item oid.
91
285
  # @param merchant_item_oid The item oid to retrieve.
@@ -333,6 +527,61 @@ module UltracartClient
333
527
  end
334
528
  return data, status_code, headers
335
529
  end
530
+ # Create a file within the digital library
531
+ # Create a file within the digital library. This does not create an item, but makes this digital file available and selectable as part (or all) of an item.
532
+ # @param digital_item Digital item to create
533
+ # @param [Hash] opts the optional parameters
534
+ # @return [ItemDigitalItemResponse]
535
+ def insert_digital_item(digital_item, opts = {})
536
+ data, _status_code, _headers = insert_digital_item_with_http_info(digital_item, opts)
537
+ data
538
+ end
539
+
540
+ # Create a file within the digital library
541
+ # Create a file within the digital library. This does not create an item, but makes this digital file available and selectable as part (or all) of an item.
542
+ # @param digital_item Digital item to create
543
+ # @param [Hash] opts the optional parameters
544
+ # @return [Array<(ItemDigitalItemResponse, Fixnum, Hash)>] ItemDigitalItemResponse data, response status code and response headers
545
+ def insert_digital_item_with_http_info(digital_item, opts = {})
546
+ if @api_client.config.debugging
547
+ @api_client.config.logger.debug 'Calling API: ItemApi.insert_digital_item ...'
548
+ end
549
+ # verify the required parameter 'digital_item' is set
550
+ if @api_client.config.client_side_validation && digital_item.nil?
551
+ fail ArgumentError, "Missing the required parameter 'digital_item' when calling ItemApi.insert_digital_item"
552
+ end
553
+ # resource path
554
+ local_var_path = '/item/digital_library'
555
+
556
+ # query parameters
557
+ query_params = {}
558
+
559
+ # header parameters
560
+ header_params = {}
561
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
562
+ # HTTP header 'Accept' (if needed)
563
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
564
+ # HTTP header 'Content-Type'
565
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
566
+
567
+ # form parameters
568
+ form_params = {}
569
+
570
+ # http body (model)
571
+ post_body = @api_client.object_to_http_body(digital_item)
572
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
573
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
574
+ :header_params => header_params,
575
+ :query_params => query_params,
576
+ :form_params => form_params,
577
+ :body => post_body,
578
+ :auth_names => auth_names,
579
+ :return_type => 'ItemDigitalItemResponse')
580
+ if @api_client.config.debugging
581
+ @api_client.config.logger.debug "API called: ItemApi#insert_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
582
+ end
583
+ return data, status_code, headers
584
+ end
336
585
  # Create an item
337
586
  # Create a new item on the UltraCart account.
338
587
  # @param item Item to create
@@ -394,6 +643,67 @@ module UltracartClient
394
643
  end
395
644
  return data, status_code, headers
396
645
  end
646
+ # Updates a file within the digital library
647
+ # Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
648
+ # @param digital_item_oid The digital item oid to update.
649
+ # @param digital_item Digital item to update
650
+ # @param [Hash] opts the optional parameters
651
+ # @return [ItemDigitalItemResponse]
652
+ def update_digital_item(digital_item_oid, digital_item, opts = {})
653
+ data, _status_code, _headers = update_digital_item_with_http_info(digital_item_oid, digital_item, opts)
654
+ data
655
+ end
656
+
657
+ # Updates a file within the digital library
658
+ # Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
659
+ # @param digital_item_oid The digital item oid to update.
660
+ # @param digital_item Digital item to update
661
+ # @param [Hash] opts the optional parameters
662
+ # @return [Array<(ItemDigitalItemResponse, Fixnum, Hash)>] ItemDigitalItemResponse data, response status code and response headers
663
+ def update_digital_item_with_http_info(digital_item_oid, digital_item, opts = {})
664
+ if @api_client.config.debugging
665
+ @api_client.config.logger.debug 'Calling API: ItemApi.update_digital_item ...'
666
+ end
667
+ # verify the required parameter 'digital_item_oid' is set
668
+ if @api_client.config.client_side_validation && digital_item_oid.nil?
669
+ fail ArgumentError, "Missing the required parameter 'digital_item_oid' when calling ItemApi.update_digital_item"
670
+ end
671
+ # verify the required parameter 'digital_item' is set
672
+ if @api_client.config.client_side_validation && digital_item.nil?
673
+ fail ArgumentError, "Missing the required parameter 'digital_item' when calling ItemApi.update_digital_item"
674
+ end
675
+ # resource path
676
+ local_var_path = '/item/digital_library/{digital_item_oid}'.sub('{' + 'digital_item_oid' + '}', digital_item_oid.to_s)
677
+
678
+ # query parameters
679
+ query_params = {}
680
+
681
+ # header parameters
682
+ header_params = {}
683
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
684
+ # HTTP header 'Accept' (if needed)
685
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
686
+ # HTTP header 'Content-Type'
687
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
688
+
689
+ # form parameters
690
+ form_params = {}
691
+
692
+ # http body (model)
693
+ post_body = @api_client.object_to_http_body(digital_item)
694
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
695
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
696
+ :header_params => header_params,
697
+ :query_params => query_params,
698
+ :form_params => form_params,
699
+ :body => post_body,
700
+ :auth_names => auth_names,
701
+ :return_type => 'ItemDigitalItemResponse')
702
+ if @api_client.config.debugging
703
+ @api_client.config.logger.debug "API called: ItemApi#update_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
704
+ end
705
+ return data, status_code, headers
706
+ end
397
707
  # Update an item
398
708
  # Update a new item on the UltraCart account.
399
709
  # @param item Item to update