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
@@ -9,17 +9,25 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
9
9
  | [**get_conversation**](ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation |
10
10
  | [**get_conversation_canned_messages**](ConversationApi.md#get_conversation_canned_messages) | **GET** /conversation/canned_messages | Retrieve a list of canned messages ordered by short_code |
11
11
  | [**get_conversation_context**](ConversationApi.md#get_conversation_context) | **PUT** /conversation/conversations/{conversation_uuid}/context | Get a webchat conversation context |
12
+ | [**get_conversation_departments**](ConversationApi.md#get_conversation_departments) | **GET** /conversation/departments | Retrieve a list of departments ordered by name |
13
+ | [**get_conversation_engagements**](ConversationApi.md#get_conversation_engagements) | **GET** /conversation/engagements | Retrieve a list of engagements ordered by name |
12
14
  | [**get_conversation_messages**](ConversationApi.md#get_conversation_messages) | **GET** /conversation/conversations/{conversation_uuid}/messages/{since} | Retrieve conversation messages |
13
15
  | [**get_conversation_multimedia_upload_url**](ConversationApi.md#get_conversation_multimedia_upload_url) | **GET** /conversation/upload_url/{extension} | Get a presigned conersation multimedia upload URL |
14
16
  | [**get_conversation_webchat_queue_statuses**](ConversationApi.md#get_conversation_webchat_queue_statuses) | **GET** /conversation/conversations/queues/statuses | Retrieve a conversation webchat queue statuses |
15
17
  | [**get_conversations**](ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest |
18
+ | [**get_conversations_autocomplete**](ConversationApi.md#get_conversations_autocomplete) | **POST** /conversation/conversations/autocomplete | Retrieve a list of matching terms for a search field |
19
+ | [**get_conversations_search**](ConversationApi.md#get_conversations_search) | **POST** /conversation/conversations/search | Search conversations |
16
20
  | [**insert_conversation_canned_message**](ConversationApi.md#insert_conversation_canned_message) | **POST** /conversation/canned_messages | Insert a canned message |
21
+ | [**insert_conversation_department**](ConversationApi.md#insert_conversation_department) | **POST** /conversation/departments | Insert a department |
22
+ | [**insert_conversation_engagement**](ConversationApi.md#insert_conversation_engagement) | **POST** /conversation/engagements | Insert a engagement |
17
23
  | [**join_conversation**](ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation |
18
24
  | [**leave_conversation**](ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation |
19
25
  | [**mark_read_conversation**](ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read |
20
26
  | [**search_conversation_canned_messages**](ConversationApi.md#search_conversation_canned_messages) | **POST** /conversation/canned_messages/search | Search for canned messages by short_code |
21
27
  | [**start_conversation**](ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation |
22
28
  | [**update_conversation_canned_message**](ConversationApi.md#update_conversation_canned_message) | **PUT** /conversation/canned_messages/{conversation_canned_message_oid} | Update a canned message |
29
+ | [**update_conversation_department**](ConversationApi.md#update_conversation_department) | **PUT** /conversation/departments/{conversation_department_oid} | Update a department |
30
+ | [**update_conversation_engagement**](ConversationApi.md#update_conversation_engagement) | **PUT** /conversation/engagements/{conversation_engagement_oid} | Update a engagement |
23
31
  | [**update_conversation_webchat_queue_status**](ConversationApi.md#update_conversation_webchat_queue_status) | **PUT** /conversation/conversations/queues/{queue_name}/status | Update status within the queue |
24
32
 
25
33
 
@@ -372,6 +380,142 @@ end
372
380
  - **Accept**: application/json
373
381
 
374
382
 
383
+ ## get_conversation_departments
384
+
385
+ > <ConversationDepartmentsResponse> get_conversation_departments
386
+
387
+ Retrieve a list of departments ordered by name
388
+
389
+ Retrieve a list of departments ordered by name
390
+
391
+ ### Examples
392
+
393
+ ```ruby
394
+ require 'time'
395
+ require 'ultracart_api'
396
+ require 'json'
397
+ require 'yaml'
398
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
399
+
400
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
401
+ # As such, this might not be the best way to use this object.
402
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
403
+
404
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
405
+
406
+ begin
407
+ # Retrieve a list of departments ordered by name
408
+ result = api_instance.get_conversation_departments
409
+ p result
410
+ rescue UltracartClient::ApiError => e
411
+ puts "Error when calling ConversationApi->get_conversation_departments: #{e}"
412
+ end
413
+ ```
414
+
415
+ #### Using the get_conversation_departments_with_http_info variant
416
+
417
+ This returns an Array which contains the response data, status code and headers.
418
+
419
+ > <Array(<ConversationDepartmentsResponse>, Integer, Hash)> get_conversation_departments_with_http_info
420
+
421
+ ```ruby
422
+ begin
423
+ # Retrieve a list of departments ordered by name
424
+ data, status_code, headers = api_instance.get_conversation_departments_with_http_info
425
+ p status_code # => 2xx
426
+ p headers # => { ... }
427
+ p data # => <ConversationDepartmentsResponse>
428
+ rescue UltracartClient::ApiError => e
429
+ puts "Error when calling ConversationApi->get_conversation_departments_with_http_info: #{e}"
430
+ end
431
+ ```
432
+
433
+ ### Parameters
434
+
435
+ This endpoint does not need any parameter.
436
+
437
+ ### Return type
438
+
439
+ [**ConversationDepartmentsResponse**](ConversationDepartmentsResponse.md)
440
+
441
+ ### Authorization
442
+
443
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
444
+
445
+ ### HTTP request headers
446
+
447
+ - **Content-Type**: Not defined
448
+ - **Accept**: application/json
449
+
450
+
451
+ ## get_conversation_engagements
452
+
453
+ > <ConversationEngagementsResponse> get_conversation_engagements
454
+
455
+ Retrieve a list of engagements ordered by name
456
+
457
+ Retrieve a list of engagements ordered by name
458
+
459
+ ### Examples
460
+
461
+ ```ruby
462
+ require 'time'
463
+ require 'ultracart_api'
464
+ require 'json'
465
+ require 'yaml'
466
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
467
+
468
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
469
+ # As such, this might not be the best way to use this object.
470
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
471
+
472
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
473
+
474
+ begin
475
+ # Retrieve a list of engagements ordered by name
476
+ result = api_instance.get_conversation_engagements
477
+ p result
478
+ rescue UltracartClient::ApiError => e
479
+ puts "Error when calling ConversationApi->get_conversation_engagements: #{e}"
480
+ end
481
+ ```
482
+
483
+ #### Using the get_conversation_engagements_with_http_info variant
484
+
485
+ This returns an Array which contains the response data, status code and headers.
486
+
487
+ > <Array(<ConversationEngagementsResponse>, Integer, Hash)> get_conversation_engagements_with_http_info
488
+
489
+ ```ruby
490
+ begin
491
+ # Retrieve a list of engagements ordered by name
492
+ data, status_code, headers = api_instance.get_conversation_engagements_with_http_info
493
+ p status_code # => 2xx
494
+ p headers # => { ... }
495
+ p data # => <ConversationEngagementsResponse>
496
+ rescue UltracartClient::ApiError => e
497
+ puts "Error when calling ConversationApi->get_conversation_engagements_with_http_info: #{e}"
498
+ end
499
+ ```
500
+
501
+ ### Parameters
502
+
503
+ This endpoint does not need any parameter.
504
+
505
+ ### Return type
506
+
507
+ [**ConversationEngagementsResponse**](ConversationEngagementsResponse.md)
508
+
509
+ ### Authorization
510
+
511
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
512
+
513
+ ### HTTP request headers
514
+
515
+ - **Content-Type**: Not defined
516
+ - **Accept**: application/json
517
+
518
+
375
519
  ## get_conversation_messages
376
520
 
377
521
  > <ConversationMessagesResponse> get_conversation_messages(conversation_uuid, since, opts)
@@ -667,6 +811,148 @@ end
667
811
  - **Accept**: application/json
668
812
 
669
813
 
814
+ ## get_conversations_autocomplete
815
+
816
+ > <ConversationAutocompleteResponse> get_conversations_autocomplete(autocomplete_request)
817
+
818
+ Retrieve a list of matching terms for a search field
819
+
820
+ Retrieve a list of matching terms for a search field
821
+
822
+ ### Examples
823
+
824
+ ```ruby
825
+ require 'time'
826
+ require 'ultracart_api'
827
+ require 'json'
828
+ require 'yaml'
829
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
830
+
831
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
832
+ # As such, this might not be the best way to use this object.
833
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
834
+
835
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
836
+ autocomplete_request = UltracartClient::ConversationAutocompleteRequest.new # ConversationAutocompleteRequest | Autocomplete Request
837
+
838
+ begin
839
+ # Retrieve a list of matching terms for a search field
840
+ result = api_instance.get_conversations_autocomplete(autocomplete_request)
841
+ p result
842
+ rescue UltracartClient::ApiError => e
843
+ puts "Error when calling ConversationApi->get_conversations_autocomplete: #{e}"
844
+ end
845
+ ```
846
+
847
+ #### Using the get_conversations_autocomplete_with_http_info variant
848
+
849
+ This returns an Array which contains the response data, status code and headers.
850
+
851
+ > <Array(<ConversationAutocompleteResponse>, Integer, Hash)> get_conversations_autocomplete_with_http_info(autocomplete_request)
852
+
853
+ ```ruby
854
+ begin
855
+ # Retrieve a list of matching terms for a search field
856
+ data, status_code, headers = api_instance.get_conversations_autocomplete_with_http_info(autocomplete_request)
857
+ p status_code # => 2xx
858
+ p headers # => { ... }
859
+ p data # => <ConversationAutocompleteResponse>
860
+ rescue UltracartClient::ApiError => e
861
+ puts "Error when calling ConversationApi->get_conversations_autocomplete_with_http_info: #{e}"
862
+ end
863
+ ```
864
+
865
+ ### Parameters
866
+
867
+ | Name | Type | Description | Notes |
868
+ | ---- | ---- | ----------- | ----- |
869
+ | **autocomplete_request** | [**ConversationAutocompleteRequest**](ConversationAutocompleteRequest.md) | Autocomplete Request | |
870
+
871
+ ### Return type
872
+
873
+ [**ConversationAutocompleteResponse**](ConversationAutocompleteResponse.md)
874
+
875
+ ### Authorization
876
+
877
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
878
+
879
+ ### HTTP request headers
880
+
881
+ - **Content-Type**: application/json
882
+ - **Accept**: application/json
883
+
884
+
885
+ ## get_conversations_search
886
+
887
+ > <ConversationSearchResponse> get_conversations_search(search_request)
888
+
889
+ Search conversations
890
+
891
+ Search conversations
892
+
893
+ ### Examples
894
+
895
+ ```ruby
896
+ require 'time'
897
+ require 'ultracart_api'
898
+ require 'json'
899
+ require 'yaml'
900
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
901
+
902
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
903
+ # As such, this might not be the best way to use this object.
904
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
905
+
906
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
907
+ search_request = UltracartClient::ConversationSearchRequest.new # ConversationSearchRequest | Search Request
908
+
909
+ begin
910
+ # Search conversations
911
+ result = api_instance.get_conversations_search(search_request)
912
+ p result
913
+ rescue UltracartClient::ApiError => e
914
+ puts "Error when calling ConversationApi->get_conversations_search: #{e}"
915
+ end
916
+ ```
917
+
918
+ #### Using the get_conversations_search_with_http_info variant
919
+
920
+ This returns an Array which contains the response data, status code and headers.
921
+
922
+ > <Array(<ConversationSearchResponse>, Integer, Hash)> get_conversations_search_with_http_info(search_request)
923
+
924
+ ```ruby
925
+ begin
926
+ # Search conversations
927
+ data, status_code, headers = api_instance.get_conversations_search_with_http_info(search_request)
928
+ p status_code # => 2xx
929
+ p headers # => { ... }
930
+ p data # => <ConversationSearchResponse>
931
+ rescue UltracartClient::ApiError => e
932
+ puts "Error when calling ConversationApi->get_conversations_search_with_http_info: #{e}"
933
+ end
934
+ ```
935
+
936
+ ### Parameters
937
+
938
+ | Name | Type | Description | Notes |
939
+ | ---- | ---- | ----------- | ----- |
940
+ | **search_request** | [**ConversationSearchRequest**](ConversationSearchRequest.md) | Search Request | |
941
+
942
+ ### Return type
943
+
944
+ [**ConversationSearchResponse**](ConversationSearchResponse.md)
945
+
946
+ ### Authorization
947
+
948
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
949
+
950
+ ### HTTP request headers
951
+
952
+ - **Content-Type**: application/json
953
+ - **Accept**: application/json
954
+
955
+
670
956
  ## insert_conversation_canned_message
671
957
 
672
958
  > <ConversationCannedMessageResponse> insert_conversation_canned_message(canned_message)
@@ -738,9 +1024,151 @@ end
738
1024
  - **Accept**: application/json
739
1025
 
740
1026
 
1027
+ ## insert_conversation_department
1028
+
1029
+ > <ConversationDepartmentResponse> insert_conversation_department(department)
1030
+
1031
+ Insert a department
1032
+
1033
+ Insert a department
1034
+
1035
+ ### Examples
1036
+
1037
+ ```ruby
1038
+ require 'time'
1039
+ require 'ultracart_api'
1040
+ require 'json'
1041
+ require 'yaml'
1042
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
1043
+
1044
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
1045
+ # As such, this might not be the best way to use this object.
1046
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
1047
+
1048
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
1049
+ department = UltracartClient::ConversationDepartment.new # ConversationDepartment | Department
1050
+
1051
+ begin
1052
+ # Insert a department
1053
+ result = api_instance.insert_conversation_department(department)
1054
+ p result
1055
+ rescue UltracartClient::ApiError => e
1056
+ puts "Error when calling ConversationApi->insert_conversation_department: #{e}"
1057
+ end
1058
+ ```
1059
+
1060
+ #### Using the insert_conversation_department_with_http_info variant
1061
+
1062
+ This returns an Array which contains the response data, status code and headers.
1063
+
1064
+ > <Array(<ConversationDepartmentResponse>, Integer, Hash)> insert_conversation_department_with_http_info(department)
1065
+
1066
+ ```ruby
1067
+ begin
1068
+ # Insert a department
1069
+ data, status_code, headers = api_instance.insert_conversation_department_with_http_info(department)
1070
+ p status_code # => 2xx
1071
+ p headers # => { ... }
1072
+ p data # => <ConversationDepartmentResponse>
1073
+ rescue UltracartClient::ApiError => e
1074
+ puts "Error when calling ConversationApi->insert_conversation_department_with_http_info: #{e}"
1075
+ end
1076
+ ```
1077
+
1078
+ ### Parameters
1079
+
1080
+ | Name | Type | Description | Notes |
1081
+ | ---- | ---- | ----------- | ----- |
1082
+ | **department** | [**ConversationDepartment**](ConversationDepartment.md) | Department | |
1083
+
1084
+ ### Return type
1085
+
1086
+ [**ConversationDepartmentResponse**](ConversationDepartmentResponse.md)
1087
+
1088
+ ### Authorization
1089
+
1090
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1091
+
1092
+ ### HTTP request headers
1093
+
1094
+ - **Content-Type**: application/json
1095
+ - **Accept**: application/json
1096
+
1097
+
1098
+ ## insert_conversation_engagement
1099
+
1100
+ > <ConversationEngagementResponse> insert_conversation_engagement(engagement)
1101
+
1102
+ Insert a engagement
1103
+
1104
+ Insert a engagement
1105
+
1106
+ ### Examples
1107
+
1108
+ ```ruby
1109
+ require 'time'
1110
+ require 'ultracart_api'
1111
+ require 'json'
1112
+ require 'yaml'
1113
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
1114
+
1115
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
1116
+ # As such, this might not be the best way to use this object.
1117
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
1118
+
1119
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
1120
+ engagement = UltracartClient::ConversationEngagement.new # ConversationEngagement | Engagement
1121
+
1122
+ begin
1123
+ # Insert a engagement
1124
+ result = api_instance.insert_conversation_engagement(engagement)
1125
+ p result
1126
+ rescue UltracartClient::ApiError => e
1127
+ puts "Error when calling ConversationApi->insert_conversation_engagement: #{e}"
1128
+ end
1129
+ ```
1130
+
1131
+ #### Using the insert_conversation_engagement_with_http_info variant
1132
+
1133
+ This returns an Array which contains the response data, status code and headers.
1134
+
1135
+ > <Array(<ConversationEngagementResponse>, Integer, Hash)> insert_conversation_engagement_with_http_info(engagement)
1136
+
1137
+ ```ruby
1138
+ begin
1139
+ # Insert a engagement
1140
+ data, status_code, headers = api_instance.insert_conversation_engagement_with_http_info(engagement)
1141
+ p status_code # => 2xx
1142
+ p headers # => { ... }
1143
+ p data # => <ConversationEngagementResponse>
1144
+ rescue UltracartClient::ApiError => e
1145
+ puts "Error when calling ConversationApi->insert_conversation_engagement_with_http_info: #{e}"
1146
+ end
1147
+ ```
1148
+
1149
+ ### Parameters
1150
+
1151
+ | Name | Type | Description | Notes |
1152
+ | ---- | ---- | ----------- | ----- |
1153
+ | **engagement** | [**ConversationEngagement**](ConversationEngagement.md) | Engagement | |
1154
+
1155
+ ### Return type
1156
+
1157
+ [**ConversationEngagementResponse**](ConversationEngagementResponse.md)
1158
+
1159
+ ### Authorization
1160
+
1161
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1162
+
1163
+ ### HTTP request headers
1164
+
1165
+ - **Content-Type**: application/json
1166
+ - **Accept**: application/json
1167
+
1168
+
741
1169
  ## join_conversation
742
1170
 
743
- > join_conversation(conversation_uuid)
1171
+ > join_conversation(conversation_uuid, opts)
744
1172
 
745
1173
  Join a conversation
746
1174
 
@@ -761,10 +1189,13 @@ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/
761
1189
 
762
1190
  api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
763
1191
  conversation_uuid = 'conversation_uuid_example' # String |
1192
+ opts = {
1193
+ join_request: UltracartClient::ConversationJoinRequest.new # ConversationJoinRequest | Join request
1194
+ }
764
1195
 
765
1196
  begin
766
1197
  # Join a conversation
767
- api_instance.join_conversation(conversation_uuid)
1198
+ api_instance.join_conversation(conversation_uuid, opts)
768
1199
  rescue UltracartClient::ApiError => e
769
1200
  puts "Error when calling ConversationApi->join_conversation: #{e}"
770
1201
  end
@@ -774,12 +1205,12 @@ end
774
1205
 
775
1206
  This returns an Array which contains the response data (`nil` in this case), status code and headers.
776
1207
 
777
- > <Array(nil, Integer, Hash)> join_conversation_with_http_info(conversation_uuid)
1208
+ > <Array(nil, Integer, Hash)> join_conversation_with_http_info(conversation_uuid, opts)
778
1209
 
779
1210
  ```ruby
780
1211
  begin
781
1212
  # Join a conversation
782
- data, status_code, headers = api_instance.join_conversation_with_http_info(conversation_uuid)
1213
+ data, status_code, headers = api_instance.join_conversation_with_http_info(conversation_uuid, opts)
783
1214
  p status_code # => 2xx
784
1215
  p headers # => { ... }
785
1216
  p data # => nil
@@ -793,6 +1224,7 @@ end
793
1224
  | Name | Type | Description | Notes |
794
1225
  | ---- | ---- | ----------- | ----- |
795
1226
  | **conversation_uuid** | **String** | | |
1227
+ | **join_request** | [**ConversationJoinRequest**](ConversationJoinRequest.md) | Join request | [optional] |
796
1228
 
797
1229
  ### Return type
798
1230
 
@@ -804,7 +1236,7 @@ nil (empty response body)
804
1236
 
805
1237
  ### HTTP request headers
806
1238
 
807
- - **Content-Type**: Not defined
1239
+ - **Content-Type**: application/json
808
1240
  - **Accept**: application/json
809
1241
 
810
1242
 
@@ -1163,6 +1595,152 @@ end
1163
1595
  - **Accept**: application/json
1164
1596
 
1165
1597
 
1598
+ ## update_conversation_department
1599
+
1600
+ > <ConversationDepartmentResponse> update_conversation_department(conversation_department_oid, department)
1601
+
1602
+ Update a department
1603
+
1604
+ Update a department
1605
+
1606
+ ### Examples
1607
+
1608
+ ```ruby
1609
+ require 'time'
1610
+ require 'ultracart_api'
1611
+ require 'json'
1612
+ require 'yaml'
1613
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
1614
+
1615
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
1616
+ # As such, this might not be the best way to use this object.
1617
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
1618
+
1619
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
1620
+ conversation_department_oid = 56 # Integer |
1621
+ department = UltracartClient::ConversationDepartment.new # ConversationDepartment | Department
1622
+
1623
+ begin
1624
+ # Update a department
1625
+ result = api_instance.update_conversation_department(conversation_department_oid, department)
1626
+ p result
1627
+ rescue UltracartClient::ApiError => e
1628
+ puts "Error when calling ConversationApi->update_conversation_department: #{e}"
1629
+ end
1630
+ ```
1631
+
1632
+ #### Using the update_conversation_department_with_http_info variant
1633
+
1634
+ This returns an Array which contains the response data, status code and headers.
1635
+
1636
+ > <Array(<ConversationDepartmentResponse>, Integer, Hash)> update_conversation_department_with_http_info(conversation_department_oid, department)
1637
+
1638
+ ```ruby
1639
+ begin
1640
+ # Update a department
1641
+ data, status_code, headers = api_instance.update_conversation_department_with_http_info(conversation_department_oid, department)
1642
+ p status_code # => 2xx
1643
+ p headers # => { ... }
1644
+ p data # => <ConversationDepartmentResponse>
1645
+ rescue UltracartClient::ApiError => e
1646
+ puts "Error when calling ConversationApi->update_conversation_department_with_http_info: #{e}"
1647
+ end
1648
+ ```
1649
+
1650
+ ### Parameters
1651
+
1652
+ | Name | Type | Description | Notes |
1653
+ | ---- | ---- | ----------- | ----- |
1654
+ | **conversation_department_oid** | **Integer** | | |
1655
+ | **department** | [**ConversationDepartment**](ConversationDepartment.md) | Department | |
1656
+
1657
+ ### Return type
1658
+
1659
+ [**ConversationDepartmentResponse**](ConversationDepartmentResponse.md)
1660
+
1661
+ ### Authorization
1662
+
1663
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1664
+
1665
+ ### HTTP request headers
1666
+
1667
+ - **Content-Type**: application/json
1668
+ - **Accept**: application/json
1669
+
1670
+
1671
+ ## update_conversation_engagement
1672
+
1673
+ > <ConversationEngagementResponse> update_conversation_engagement(conversation_engagement_oid, engagement)
1674
+
1675
+ Update a engagement
1676
+
1677
+ Update a engagement
1678
+
1679
+ ### Examples
1680
+
1681
+ ```ruby
1682
+ require 'time'
1683
+ require 'ultracart_api'
1684
+ require 'json'
1685
+ require 'yaml'
1686
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
1687
+
1688
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
1689
+ # As such, this might not be the best way to use this object.
1690
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
1691
+
1692
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
1693
+ conversation_engagement_oid = 56 # Integer |
1694
+ engagement = UltracartClient::ConversationEngagement.new # ConversationEngagement | Engagement
1695
+
1696
+ begin
1697
+ # Update a engagement
1698
+ result = api_instance.update_conversation_engagement(conversation_engagement_oid, engagement)
1699
+ p result
1700
+ rescue UltracartClient::ApiError => e
1701
+ puts "Error when calling ConversationApi->update_conversation_engagement: #{e}"
1702
+ end
1703
+ ```
1704
+
1705
+ #### Using the update_conversation_engagement_with_http_info variant
1706
+
1707
+ This returns an Array which contains the response data, status code and headers.
1708
+
1709
+ > <Array(<ConversationEngagementResponse>, Integer, Hash)> update_conversation_engagement_with_http_info(conversation_engagement_oid, engagement)
1710
+
1711
+ ```ruby
1712
+ begin
1713
+ # Update a engagement
1714
+ data, status_code, headers = api_instance.update_conversation_engagement_with_http_info(conversation_engagement_oid, engagement)
1715
+ p status_code # => 2xx
1716
+ p headers # => { ... }
1717
+ p data # => <ConversationEngagementResponse>
1718
+ rescue UltracartClient::ApiError => e
1719
+ puts "Error when calling ConversationApi->update_conversation_engagement_with_http_info: #{e}"
1720
+ end
1721
+ ```
1722
+
1723
+ ### Parameters
1724
+
1725
+ | Name | Type | Description | Notes |
1726
+ | ---- | ---- | ----------- | ----- |
1727
+ | **conversation_engagement_oid** | **Integer** | | |
1728
+ | **engagement** | [**ConversationEngagement**](ConversationEngagement.md) | Engagement | |
1729
+
1730
+ ### Return type
1731
+
1732
+ [**ConversationEngagementResponse**](ConversationEngagementResponse.md)
1733
+
1734
+ ### Authorization
1735
+
1736
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1737
+
1738
+ ### HTTP request headers
1739
+
1740
+ - **Content-Type**: application/json
1741
+ - **Accept**: application/json
1742
+
1743
+
1166
1744
  ## update_conversation_webchat_queue_status
1167
1745
 
1168
1746
  > update_conversation_webchat_queue_status(queue_name, status_request)
@@ -0,0 +1,20 @@
1
+ # UltracartClient::ConversationAutocompleteRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **field** | **String** | | [optional] |
8
+ | **term** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::ConversationAutocompleteRequest.new(
16
+ field: null,
17
+ term: null
18
+ )
19
+ ```
20
+