ultracart_api 4.0.96.rc → 4.0.98.rc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -4
  3. data/docs/ConversationApi.md +583 -5
  4. data/docs/ConversationAutocompleteRequest.md +20 -0
  5. data/docs/ConversationAutocompleteResponse.md +30 -0
  6. data/docs/ConversationCannedMessage.md +1 -1
  7. data/docs/ConversationDepartment.md +26 -0
  8. data/docs/ConversationDepartmentResponse.md +26 -0
  9. data/docs/ConversationDepartmentsResponse.md +26 -0
  10. data/docs/ConversationEngagement.md +30 -0
  11. data/docs/ConversationEngagementResponse.md +26 -0
  12. data/docs/ConversationEngagementsResponse.md +26 -0
  13. data/docs/ConversationJoinRequest.md +18 -0
  14. data/docs/ConversationParticipant.md +4 -0
  15. data/docs/ConversationSearchRequest.md +36 -0
  16. data/docs/ConversationSearchResponse.md +22 -0
  17. data/docs/ConversationWebchatQueueStatusQueueEntry.md +2 -0
  18. data/lib/ultracart_api/api/conversation_api.rb +550 -1
  19. data/lib/ultracart_api/models/conversation_autocomplete_request.rb +228 -0
  20. data/lib/ultracart_api/models/conversation_autocomplete_response.rb +276 -0
  21. data/lib/ultracart_api/models/conversation_canned_message.rb +1 -1
  22. data/lib/ultracart_api/models/conversation_department.rb +255 -0
  23. data/lib/ultracart_api/models/conversation_department_response.rb +256 -0
  24. data/lib/ultracart_api/models/conversation_departments_response.rb +258 -0
  25. data/lib/ultracart_api/models/conversation_engagement.rb +275 -0
  26. data/lib/ultracart_api/models/conversation_engagement_response.rb +256 -0
  27. data/lib/ultracart_api/models/conversation_engagements_response.rb +258 -0
  28. data/lib/ultracart_api/models/conversation_join_request.rb +219 -0
  29. data/lib/ultracart_api/models/conversation_participant.rb +19 -1
  30. data/lib/ultracart_api/models/conversation_search_request.rb +300 -0
  31. data/lib/ultracart_api/models/conversation_search_response.rb +237 -0
  32. data/lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb +10 -1
  33. data/lib/ultracart_api/version.rb +1 -1
  34. data/lib/ultracart_api.rb +11 -0
  35. metadata +24 -2
@@ -337,6 +337,122 @@ module UltracartClient
337
337
  return data, status_code, headers
338
338
  end
339
339
 
340
+ # Retrieve a list of departments ordered by name
341
+ # Retrieve a list of departments ordered by name
342
+ # @param [Hash] opts the optional parameters
343
+ # @return [ConversationDepartmentsResponse]
344
+ def get_conversation_departments(opts = {})
345
+ data, _status_code, _headers = get_conversation_departments_with_http_info(opts)
346
+ data
347
+ end
348
+
349
+ # Retrieve a list of departments ordered by name
350
+ # Retrieve a list of departments ordered by name
351
+ # @param [Hash] opts the optional parameters
352
+ # @return [Array<(ConversationDepartmentsResponse, Integer, Hash)>] ConversationDepartmentsResponse data, response status code and response headers
353
+ def get_conversation_departments_with_http_info(opts = {})
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_departments ...'
356
+ end
357
+ # resource path
358
+ local_var_path = '/conversation/departments'
359
+
360
+ # query parameters
361
+ query_params = opts[:query_params] || {}
362
+
363
+ # header parameters
364
+ header_params = opts[:header_params] || {}
365
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
366
+ # HTTP header 'Accept' (if needed)
367
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
368
+
369
+ # form parameters
370
+ form_params = opts[:form_params] || {}
371
+
372
+ # http body (model)
373
+ post_body = opts[:debug_body]
374
+
375
+ # return_type
376
+ return_type = opts[:debug_return_type] || 'ConversationDepartmentsResponse'
377
+
378
+ # auth_names
379
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
380
+
381
+ new_options = opts.merge(
382
+ :operation => :"ConversationApi.get_conversation_departments",
383
+ :header_params => header_params,
384
+ :query_params => query_params,
385
+ :form_params => form_params,
386
+ :body => post_body,
387
+ :auth_names => auth_names,
388
+ :return_type => return_type
389
+ )
390
+
391
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
392
+ if @api_client.config.debugging
393
+ @api_client.config.logger.debug "API called: ConversationApi#get_conversation_departments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
394
+ end
395
+ return data, status_code, headers
396
+ end
397
+
398
+ # Retrieve a list of engagements ordered by name
399
+ # Retrieve a list of engagements ordered by name
400
+ # @param [Hash] opts the optional parameters
401
+ # @return [ConversationEngagementsResponse]
402
+ def get_conversation_engagements(opts = {})
403
+ data, _status_code, _headers = get_conversation_engagements_with_http_info(opts)
404
+ data
405
+ end
406
+
407
+ # Retrieve a list of engagements ordered by name
408
+ # Retrieve a list of engagements ordered by name
409
+ # @param [Hash] opts the optional parameters
410
+ # @return [Array<(ConversationEngagementsResponse, Integer, Hash)>] ConversationEngagementsResponse data, response status code and response headers
411
+ def get_conversation_engagements_with_http_info(opts = {})
412
+ if @api_client.config.debugging
413
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_engagements ...'
414
+ end
415
+ # resource path
416
+ local_var_path = '/conversation/engagements'
417
+
418
+ # query parameters
419
+ query_params = opts[:query_params] || {}
420
+
421
+ # header parameters
422
+ header_params = opts[:header_params] || {}
423
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
424
+ # HTTP header 'Accept' (if needed)
425
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
426
+
427
+ # form parameters
428
+ form_params = opts[:form_params] || {}
429
+
430
+ # http body (model)
431
+ post_body = opts[:debug_body]
432
+
433
+ # return_type
434
+ return_type = opts[:debug_return_type] || 'ConversationEngagementsResponse'
435
+
436
+ # auth_names
437
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
438
+
439
+ new_options = opts.merge(
440
+ :operation => :"ConversationApi.get_conversation_engagements",
441
+ :header_params => header_params,
442
+ :query_params => query_params,
443
+ :form_params => form_params,
444
+ :body => post_body,
445
+ :auth_names => auth_names,
446
+ :return_type => return_type
447
+ )
448
+
449
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
450
+ if @api_client.config.debugging
451
+ @api_client.config.logger.debug "API called: ConversationApi#get_conversation_engagements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
452
+ end
453
+ return data, status_code, headers
454
+ end
455
+
340
456
  # Retrieve conversation messages
341
457
  # Retrieve conversation messages since a particular time
342
458
  # @param conversation_uuid [String]
@@ -602,6 +718,144 @@ module UltracartClient
602
718
  return data, status_code, headers
603
719
  end
604
720
 
721
+ # Retrieve a list of matching terms for a search field
722
+ # Retrieve a list of matching terms for a search field
723
+ # @param autocomplete_request [ConversationAutocompleteRequest] Autocomplete Request
724
+ # @param [Hash] opts the optional parameters
725
+ # @return [ConversationAutocompleteResponse]
726
+ def get_conversations_autocomplete(autocomplete_request, opts = {})
727
+ data, _status_code, _headers = get_conversations_autocomplete_with_http_info(autocomplete_request, opts)
728
+ data
729
+ end
730
+
731
+ # Retrieve a list of matching terms for a search field
732
+ # Retrieve a list of matching terms for a search field
733
+ # @param autocomplete_request [ConversationAutocompleteRequest] Autocomplete Request
734
+ # @param [Hash] opts the optional parameters
735
+ # @return [Array<(ConversationAutocompleteResponse, Integer, Hash)>] ConversationAutocompleteResponse data, response status code and response headers
736
+ def get_conversations_autocomplete_with_http_info(autocomplete_request, opts = {})
737
+ if @api_client.config.debugging
738
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_conversations_autocomplete ...'
739
+ end
740
+ # verify the required parameter 'autocomplete_request' is set
741
+ if @api_client.config.client_side_validation && autocomplete_request.nil?
742
+ fail ArgumentError, "Missing the required parameter 'autocomplete_request' when calling ConversationApi.get_conversations_autocomplete"
743
+ end
744
+ # resource path
745
+ local_var_path = '/conversation/conversations/autocomplete'
746
+
747
+ # query parameters
748
+ query_params = opts[:query_params] || {}
749
+
750
+ # header parameters
751
+ header_params = opts[:header_params] || {}
752
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
753
+ # HTTP header 'Accept' (if needed)
754
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
755
+ # HTTP header 'Content-Type'
756
+ content_type = @api_client.select_header_content_type(['application/json'])
757
+ if !content_type.nil?
758
+ header_params['Content-Type'] = content_type
759
+ end
760
+
761
+ # form parameters
762
+ form_params = opts[:form_params] || {}
763
+
764
+ # http body (model)
765
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(autocomplete_request)
766
+
767
+ # return_type
768
+ return_type = opts[:debug_return_type] || 'ConversationAutocompleteResponse'
769
+
770
+ # auth_names
771
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
772
+
773
+ new_options = opts.merge(
774
+ :operation => :"ConversationApi.get_conversations_autocomplete",
775
+ :header_params => header_params,
776
+ :query_params => query_params,
777
+ :form_params => form_params,
778
+ :body => post_body,
779
+ :auth_names => auth_names,
780
+ :return_type => return_type
781
+ )
782
+
783
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
784
+ if @api_client.config.debugging
785
+ @api_client.config.logger.debug "API called: ConversationApi#get_conversations_autocomplete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
786
+ end
787
+ return data, status_code, headers
788
+ end
789
+
790
+ # Search conversations
791
+ # Search conversations
792
+ # @param search_request [ConversationSearchRequest] Search Request
793
+ # @param [Hash] opts the optional parameters
794
+ # @return [ConversationSearchResponse]
795
+ def get_conversations_search(search_request, opts = {})
796
+ data, _status_code, _headers = get_conversations_search_with_http_info(search_request, opts)
797
+ data
798
+ end
799
+
800
+ # Search conversations
801
+ # Search conversations
802
+ # @param search_request [ConversationSearchRequest] Search Request
803
+ # @param [Hash] opts the optional parameters
804
+ # @return [Array<(ConversationSearchResponse, Integer, Hash)>] ConversationSearchResponse data, response status code and response headers
805
+ def get_conversations_search_with_http_info(search_request, opts = {})
806
+ if @api_client.config.debugging
807
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_conversations_search ...'
808
+ end
809
+ # verify the required parameter 'search_request' is set
810
+ if @api_client.config.client_side_validation && search_request.nil?
811
+ fail ArgumentError, "Missing the required parameter 'search_request' when calling ConversationApi.get_conversations_search"
812
+ end
813
+ # resource path
814
+ local_var_path = '/conversation/conversations/search'
815
+
816
+ # query parameters
817
+ query_params = opts[:query_params] || {}
818
+
819
+ # header parameters
820
+ header_params = opts[:header_params] || {}
821
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
822
+ # HTTP header 'Accept' (if needed)
823
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
824
+ # HTTP header 'Content-Type'
825
+ content_type = @api_client.select_header_content_type(['application/json'])
826
+ if !content_type.nil?
827
+ header_params['Content-Type'] = content_type
828
+ end
829
+
830
+ # form parameters
831
+ form_params = opts[:form_params] || {}
832
+
833
+ # http body (model)
834
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(search_request)
835
+
836
+ # return_type
837
+ return_type = opts[:debug_return_type] || 'ConversationSearchResponse'
838
+
839
+ # auth_names
840
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
841
+
842
+ new_options = opts.merge(
843
+ :operation => :"ConversationApi.get_conversations_search",
844
+ :header_params => header_params,
845
+ :query_params => query_params,
846
+ :form_params => form_params,
847
+ :body => post_body,
848
+ :auth_names => auth_names,
849
+ :return_type => return_type
850
+ )
851
+
852
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
853
+ if @api_client.config.debugging
854
+ @api_client.config.logger.debug "API called: ConversationApi#get_conversations_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
855
+ end
856
+ return data, status_code, headers
857
+ end
858
+
605
859
  # Insert a canned message
606
860
  # Insert a canned message
607
861
  # @param canned_message [ConversationCannedMessage] Canned message
@@ -671,10 +925,149 @@ module UltracartClient
671
925
  return data, status_code, headers
672
926
  end
673
927
 
928
+ # Insert a department
929
+ # Insert a department
930
+ # @param department [ConversationDepartment] Department
931
+ # @param [Hash] opts the optional parameters
932
+ # @return [ConversationDepartmentResponse]
933
+ def insert_conversation_department(department, opts = {})
934
+ data, _status_code, _headers = insert_conversation_department_with_http_info(department, opts)
935
+ data
936
+ end
937
+
938
+ # Insert a department
939
+ # Insert a department
940
+ # @param department [ConversationDepartment] Department
941
+ # @param [Hash] opts the optional parameters
942
+ # @return [Array<(ConversationDepartmentResponse, Integer, Hash)>] ConversationDepartmentResponse data, response status code and response headers
943
+ def insert_conversation_department_with_http_info(department, opts = {})
944
+ if @api_client.config.debugging
945
+ @api_client.config.logger.debug 'Calling API: ConversationApi.insert_conversation_department ...'
946
+ end
947
+ # verify the required parameter 'department' is set
948
+ if @api_client.config.client_side_validation && department.nil?
949
+ fail ArgumentError, "Missing the required parameter 'department' when calling ConversationApi.insert_conversation_department"
950
+ end
951
+ # resource path
952
+ local_var_path = '/conversation/departments'
953
+
954
+ # query parameters
955
+ query_params = opts[:query_params] || {}
956
+
957
+ # header parameters
958
+ header_params = opts[:header_params] || {}
959
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
960
+ # HTTP header 'Accept' (if needed)
961
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
962
+ # HTTP header 'Content-Type'
963
+ content_type = @api_client.select_header_content_type(['application/json'])
964
+ if !content_type.nil?
965
+ header_params['Content-Type'] = content_type
966
+ end
967
+
968
+ # form parameters
969
+ form_params = opts[:form_params] || {}
970
+
971
+ # http body (model)
972
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(department)
973
+
974
+ # return_type
975
+ return_type = opts[:debug_return_type] || 'ConversationDepartmentResponse'
976
+
977
+ # auth_names
978
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
979
+
980
+ new_options = opts.merge(
981
+ :operation => :"ConversationApi.insert_conversation_department",
982
+ :header_params => header_params,
983
+ :query_params => query_params,
984
+ :form_params => form_params,
985
+ :body => post_body,
986
+ :auth_names => auth_names,
987
+ :return_type => return_type
988
+ )
989
+
990
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
991
+ if @api_client.config.debugging
992
+ @api_client.config.logger.debug "API called: ConversationApi#insert_conversation_department\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
993
+ end
994
+ return data, status_code, headers
995
+ end
996
+
997
+ # Insert a engagement
998
+ # Insert a engagement
999
+ # @param engagement [ConversationEngagement] Engagement
1000
+ # @param [Hash] opts the optional parameters
1001
+ # @return [ConversationEngagementResponse]
1002
+ def insert_conversation_engagement(engagement, opts = {})
1003
+ data, _status_code, _headers = insert_conversation_engagement_with_http_info(engagement, opts)
1004
+ data
1005
+ end
1006
+
1007
+ # Insert a engagement
1008
+ # Insert a engagement
1009
+ # @param engagement [ConversationEngagement] Engagement
1010
+ # @param [Hash] opts the optional parameters
1011
+ # @return [Array<(ConversationEngagementResponse, Integer, Hash)>] ConversationEngagementResponse data, response status code and response headers
1012
+ def insert_conversation_engagement_with_http_info(engagement, opts = {})
1013
+ if @api_client.config.debugging
1014
+ @api_client.config.logger.debug 'Calling API: ConversationApi.insert_conversation_engagement ...'
1015
+ end
1016
+ # verify the required parameter 'engagement' is set
1017
+ if @api_client.config.client_side_validation && engagement.nil?
1018
+ fail ArgumentError, "Missing the required parameter 'engagement' when calling ConversationApi.insert_conversation_engagement"
1019
+ end
1020
+ # resource path
1021
+ local_var_path = '/conversation/engagements'
1022
+
1023
+ # query parameters
1024
+ query_params = opts[:query_params] || {}
1025
+
1026
+ # header parameters
1027
+ header_params = opts[:header_params] || {}
1028
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
1029
+ # HTTP header 'Accept' (if needed)
1030
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1031
+ # HTTP header 'Content-Type'
1032
+ content_type = @api_client.select_header_content_type(['application/json'])
1033
+ if !content_type.nil?
1034
+ header_params['Content-Type'] = content_type
1035
+ end
1036
+
1037
+ # form parameters
1038
+ form_params = opts[:form_params] || {}
1039
+
1040
+ # http body (model)
1041
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(engagement)
1042
+
1043
+ # return_type
1044
+ return_type = opts[:debug_return_type] || 'ConversationEngagementResponse'
1045
+
1046
+ # auth_names
1047
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
1048
+
1049
+ new_options = opts.merge(
1050
+ :operation => :"ConversationApi.insert_conversation_engagement",
1051
+ :header_params => header_params,
1052
+ :query_params => query_params,
1053
+ :form_params => form_params,
1054
+ :body => post_body,
1055
+ :auth_names => auth_names,
1056
+ :return_type => return_type
1057
+ )
1058
+
1059
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1060
+ if @api_client.config.debugging
1061
+ @api_client.config.logger.debug "API called: ConversationApi#insert_conversation_engagement\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1062
+ end
1063
+ return data, status_code, headers
1064
+ end
1065
+
674
1066
  # Join a conversation
675
1067
  # Join a conversation
676
1068
  # @param conversation_uuid [String]
677
1069
  # @param [Hash] opts the optional parameters
1070
+ # @option opts [ConversationJoinRequest] :join_request Join request
678
1071
  # @return [nil]
679
1072
  def join_conversation(conversation_uuid, opts = {})
680
1073
  join_conversation_with_http_info(conversation_uuid, opts)
@@ -685,6 +1078,7 @@ module UltracartClient
685
1078
  # Join a conversation
686
1079
  # @param conversation_uuid [String]
687
1080
  # @param [Hash] opts the optional parameters
1081
+ # @option opts [ConversationJoinRequest] :join_request Join request
688
1082
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
689
1083
  def join_conversation_with_http_info(conversation_uuid, opts = {})
690
1084
  if @api_client.config.debugging
@@ -705,12 +1099,17 @@ module UltracartClient
705
1099
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
706
1100
  # HTTP header 'Accept' (if needed)
707
1101
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1102
+ # HTTP header 'Content-Type'
1103
+ content_type = @api_client.select_header_content_type(['application/json'])
1104
+ if !content_type.nil?
1105
+ header_params['Content-Type'] = content_type
1106
+ end
708
1107
 
709
1108
  # form parameters
710
1109
  form_params = opts[:form_params] || {}
711
1110
 
712
1111
  # http body (model)
713
- post_body = opts[:debug_body]
1112
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'join_request'])
714
1113
 
715
1114
  # return_type
716
1115
  return_type = opts[:debug_return_type]
@@ -1076,6 +1475,156 @@ module UltracartClient
1076
1475
  return data, status_code, headers
1077
1476
  end
1078
1477
 
1478
+ # Update a department
1479
+ # Update a department
1480
+ # @param conversation_department_oid [Integer]
1481
+ # @param department [ConversationDepartment] Department
1482
+ # @param [Hash] opts the optional parameters
1483
+ # @return [ConversationDepartmentResponse]
1484
+ def update_conversation_department(conversation_department_oid, department, opts = {})
1485
+ data, _status_code, _headers = update_conversation_department_with_http_info(conversation_department_oid, department, opts)
1486
+ data
1487
+ end
1488
+
1489
+ # Update a department
1490
+ # Update a department
1491
+ # @param conversation_department_oid [Integer]
1492
+ # @param department [ConversationDepartment] Department
1493
+ # @param [Hash] opts the optional parameters
1494
+ # @return [Array<(ConversationDepartmentResponse, Integer, Hash)>] ConversationDepartmentResponse data, response status code and response headers
1495
+ def update_conversation_department_with_http_info(conversation_department_oid, department, opts = {})
1496
+ if @api_client.config.debugging
1497
+ @api_client.config.logger.debug 'Calling API: ConversationApi.update_conversation_department ...'
1498
+ end
1499
+ # verify the required parameter 'conversation_department_oid' is set
1500
+ if @api_client.config.client_side_validation && conversation_department_oid.nil?
1501
+ fail ArgumentError, "Missing the required parameter 'conversation_department_oid' when calling ConversationApi.update_conversation_department"
1502
+ end
1503
+ # verify the required parameter 'department' is set
1504
+ if @api_client.config.client_side_validation && department.nil?
1505
+ fail ArgumentError, "Missing the required parameter 'department' when calling ConversationApi.update_conversation_department"
1506
+ end
1507
+ # resource path
1508
+ local_var_path = '/conversation/departments/{conversation_department_oid}'.sub('{' + 'conversation_department_oid' + '}', CGI.escape(conversation_department_oid.to_s))
1509
+
1510
+ # query parameters
1511
+ query_params = opts[:query_params] || {}
1512
+
1513
+ # header parameters
1514
+ header_params = opts[:header_params] || {}
1515
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
1516
+ # HTTP header 'Accept' (if needed)
1517
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1518
+ # HTTP header 'Content-Type'
1519
+ content_type = @api_client.select_header_content_type(['application/json'])
1520
+ if !content_type.nil?
1521
+ header_params['Content-Type'] = content_type
1522
+ end
1523
+
1524
+ # form parameters
1525
+ form_params = opts[:form_params] || {}
1526
+
1527
+ # http body (model)
1528
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(department)
1529
+
1530
+ # return_type
1531
+ return_type = opts[:debug_return_type] || 'ConversationDepartmentResponse'
1532
+
1533
+ # auth_names
1534
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
1535
+
1536
+ new_options = opts.merge(
1537
+ :operation => :"ConversationApi.update_conversation_department",
1538
+ :header_params => header_params,
1539
+ :query_params => query_params,
1540
+ :form_params => form_params,
1541
+ :body => post_body,
1542
+ :auth_names => auth_names,
1543
+ :return_type => return_type
1544
+ )
1545
+
1546
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1547
+ if @api_client.config.debugging
1548
+ @api_client.config.logger.debug "API called: ConversationApi#update_conversation_department\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1549
+ end
1550
+ return data, status_code, headers
1551
+ end
1552
+
1553
+ # Update a engagement
1554
+ # Update a engagement
1555
+ # @param conversation_engagement_oid [Integer]
1556
+ # @param engagement [ConversationEngagement] Engagement
1557
+ # @param [Hash] opts the optional parameters
1558
+ # @return [ConversationEngagementResponse]
1559
+ def update_conversation_engagement(conversation_engagement_oid, engagement, opts = {})
1560
+ data, _status_code, _headers = update_conversation_engagement_with_http_info(conversation_engagement_oid, engagement, opts)
1561
+ data
1562
+ end
1563
+
1564
+ # Update a engagement
1565
+ # Update a engagement
1566
+ # @param conversation_engagement_oid [Integer]
1567
+ # @param engagement [ConversationEngagement] Engagement
1568
+ # @param [Hash] opts the optional parameters
1569
+ # @return [Array<(ConversationEngagementResponse, Integer, Hash)>] ConversationEngagementResponse data, response status code and response headers
1570
+ def update_conversation_engagement_with_http_info(conversation_engagement_oid, engagement, opts = {})
1571
+ if @api_client.config.debugging
1572
+ @api_client.config.logger.debug 'Calling API: ConversationApi.update_conversation_engagement ...'
1573
+ end
1574
+ # verify the required parameter 'conversation_engagement_oid' is set
1575
+ if @api_client.config.client_side_validation && conversation_engagement_oid.nil?
1576
+ fail ArgumentError, "Missing the required parameter 'conversation_engagement_oid' when calling ConversationApi.update_conversation_engagement"
1577
+ end
1578
+ # verify the required parameter 'engagement' is set
1579
+ if @api_client.config.client_side_validation && engagement.nil?
1580
+ fail ArgumentError, "Missing the required parameter 'engagement' when calling ConversationApi.update_conversation_engagement"
1581
+ end
1582
+ # resource path
1583
+ local_var_path = '/conversation/engagements/{conversation_engagement_oid}'.sub('{' + 'conversation_engagement_oid' + '}', CGI.escape(conversation_engagement_oid.to_s))
1584
+
1585
+ # query parameters
1586
+ query_params = opts[:query_params] || {}
1587
+
1588
+ # header parameters
1589
+ header_params = opts[:header_params] || {}
1590
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
1591
+ # HTTP header 'Accept' (if needed)
1592
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1593
+ # HTTP header 'Content-Type'
1594
+ content_type = @api_client.select_header_content_type(['application/json'])
1595
+ if !content_type.nil?
1596
+ header_params['Content-Type'] = content_type
1597
+ end
1598
+
1599
+ # form parameters
1600
+ form_params = opts[:form_params] || {}
1601
+
1602
+ # http body (model)
1603
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(engagement)
1604
+
1605
+ # return_type
1606
+ return_type = opts[:debug_return_type] || 'ConversationEngagementResponse'
1607
+
1608
+ # auth_names
1609
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
1610
+
1611
+ new_options = opts.merge(
1612
+ :operation => :"ConversationApi.update_conversation_engagement",
1613
+ :header_params => header_params,
1614
+ :query_params => query_params,
1615
+ :form_params => form_params,
1616
+ :body => post_body,
1617
+ :auth_names => auth_names,
1618
+ :return_type => return_type
1619
+ )
1620
+
1621
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1622
+ if @api_client.config.debugging
1623
+ @api_client.config.logger.debug "API called: ConversationApi#update_conversation_engagement\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1624
+ end
1625
+ return data, status_code, headers
1626
+ end
1627
+
1079
1628
  # Update status within the queue
1080
1629
  # Update status within the queue
1081
1630
  # @param queue_name [String]