ultracart_api 3.10.110 → 3.10.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5db5747b55451d230c39fbaf8d39e27ae438f6de418dee65fbd289199cc45df5
4
- data.tar.gz: 0f905b2afdbdd8c4e1018e6597726381c00e4d3a0ec409523d1b404562717bf1
3
+ metadata.gz: 9d478126dcf8d78557310703d92f65e13e1ef35f7b9ee413ff5b585001a6be78
4
+ data.tar.gz: 75fd2e621b8abd3778cb21a0eb24781350cadd545d8ceb52fd66637e2f4b52ee
5
5
  SHA512:
6
- metadata.gz: 84fef32a36c7344e961f359ce2b9db75b1d08bb068c777cb5bb52fd635d7f89f0f4a31c0158661ea8667e15c93f194480200db15829c384212a7c1df43d196a2
7
- data.tar.gz: 050d75c0cd10fc190f45656df35cda65280c7598caa90e28f3d1ee5ea64183b07e5dff7edf697e48d4d970330c1014bade3fba72bdecadf580f289b4890ac29e
6
+ metadata.gz: 04aeceb86cf35d50d76e274496353871ad08587b34331828dcd4e25d0ac31f078f28475ad75338b4d0a1928ee6627e918fba385feeab5ffcb6119c22c405b9dd
7
+ data.tar.gz: 12ec7862c79f823ea8c49a4244bd0407ed6fd1d7e07bc22faa8c5c1102c67dc333af9d90d15d5d620f94b0c05dcbd94fa29288b6d2d4bb1491158eb4551b40cb
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 3.10.110
10
+ - Package version: 3.10.112
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-3.10.110.gem
27
+ gem install ./ultracart_api-3.10.112.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.110.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.112.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ultracart_api', '~> 3.10.110'
35
+ gem 'ultracart_api', '~> 3.10.112'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -135,6 +135,7 @@ Class | Method | HTTP request | Description
135
135
  *UltracartClient::ConversationApi* | [**delete_department**](docs/ConversationApi.md#delete_department) | **DELETE** /conversation/departments/{conversation_department_oid} | Delete a conversation department
136
136
  *UltracartClient::ConversationApi* | [**delete_engagement**](docs/ConversationApi.md#delete_engagement) | **DELETE** /conversation/engagements/{conversation_engagement_oid} | Delete a conversation engagement
137
137
  *UltracartClient::ConversationApi* | [**get_agent_keep_alive**](docs/ConversationApi.md#get_agent_keep_alive) | **GET** /conversation/agent/keepalive | Agent keep alive
138
+ *UltracartClient::ConversationApi* | [**get_agent_profile**](docs/ConversationApi.md#get_agent_profile) | **GET** /conversation/agent/profile | Get agent profile
138
139
  *UltracartClient::ConversationApi* | [**get_agent_websocket_authorization**](docs/ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization
139
140
  *UltracartClient::ConversationApi* | [**get_conversation**](docs/ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation
140
141
  *UltracartClient::ConversationApi* | [**get_conversation_canned_messages**](docs/ConversationApi.md#get_conversation_canned_messages) | **GET** /conversation/canned_messages | Retrieve a list of canned messages ordered by short_code
@@ -159,6 +160,7 @@ Class | Method | HTTP request | Description
159
160
  *UltracartClient::ConversationApi* | [**mark_read_conversation**](docs/ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read
160
161
  *UltracartClient::ConversationApi* | [**search_conversation_canned_messages**](docs/ConversationApi.md#search_conversation_canned_messages) | **POST** /conversation/canned_messages/search | Search for canned messages by short_code
161
162
  *UltracartClient::ConversationApi* | [**start_conversation**](docs/ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
163
+ *UltracartClient::ConversationApi* | [**update_agent_profile**](docs/ConversationApi.md#update_agent_profile) | **PUT** /conversation/agent/profile | Update agent profile
162
164
  *UltracartClient::ConversationApi* | [**update_conversation_canned_message**](docs/ConversationApi.md#update_conversation_canned_message) | **PUT** /conversation/canned_messages/{conversation_canned_message_oid} | Update a canned message
163
165
  *UltracartClient::ConversationApi* | [**update_conversation_department**](docs/ConversationApi.md#update_conversation_department) | **PUT** /conversation/departments/{conversation_department_oid} | Update a department
164
166
  *UltracartClient::ConversationApi* | [**update_conversation_engagement**](docs/ConversationApi.md#update_conversation_engagement) | **PUT** /conversation/engagements/{conversation_engagement_oid} | Update a engagement
@@ -616,6 +618,8 @@ Class | Method | HTTP request | Description
616
618
  - [UltracartClient::Conversation](docs/Conversation.md)
617
619
  - [UltracartClient::ConversationAgentAuth](docs/ConversationAgentAuth.md)
618
620
  - [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
621
+ - [UltracartClient::ConversationAgentProfile](docs/ConversationAgentProfile.md)
622
+ - [UltracartClient::ConversationAgentProfileResponse](docs/ConversationAgentProfileResponse.md)
619
623
  - [UltracartClient::ConversationAutocompleteRequest](docs/ConversationAutocompleteRequest.md)
620
624
  - [UltracartClient::ConversationAutocompleteResponse](docs/ConversationAutocompleteResponse.md)
621
625
  - [UltracartClient::ConversationAutocompleteValue](docs/ConversationAutocompleteValue.md)
@@ -1296,6 +1300,8 @@ Not every change is committed to every SDK.
1296
1300
 
1297
1301
  | Version | Date | Comments |
1298
1302
  | --: | :-: | --- |
1303
+ | 3.10.112 | 02/01/2023 | convo - agent profile get/update methods |
1304
+ | 3.10.111 | 01/27/2023 | convo - added event_engage_customer property to message |
1299
1305
  | 3.10.110 | 01/27/2023 | conversations - getLocationsForEngagement method |
1300
1306
  | 3.10.109 | 01/26/2023 | typo in ConversationWebsocketMessage |
1301
1307
  | 3.10.108 | 01/25/2023 | conversation - added message type of engagement prompt |
@@ -0,0 +1,14 @@
1
+ # UltracartClient::ConversationAgentProfile
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **chat_limit** | **Integer** | The number of engagement chats that can be pushed on them at any given time. | [optional]
7
+ **default_language_iso_code** | **String** | The default language the agent is chatting in | [optional]
8
+ **default_status** | **String** | Default status when the agent loads conversations app. | [optional]
9
+ **display_name** | **String** | An alternate name that the agent wants to use in chat. | [optional]
10
+ **name** | **String** | Their actual user name for profile settings display as placeholder test | [optional]
11
+ **profile_image_upload_key** | **String** | An upload key used to update the profile image. | [optional]
12
+ **profile_image_url** | **String** | Their current profile image URL | [optional]
13
+
14
+
@@ -0,0 +1,12 @@
1
+ # UltracartClient::ConversationAgentProfileResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **agent_profile** | [**ConversationAgentProfile**](ConversationAgentProfile.md) | | [optional]
7
+ **error** | [**Error**](Error.md) | | [optional]
8
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -8,6 +8,7 @@ Method | HTTP request | Description
8
8
  [**delete_department**](ConversationApi.md#delete_department) | **DELETE** /conversation/departments/{conversation_department_oid} | Delete a conversation department
9
9
  [**delete_engagement**](ConversationApi.md#delete_engagement) | **DELETE** /conversation/engagements/{conversation_engagement_oid} | Delete a conversation engagement
10
10
  [**get_agent_keep_alive**](ConversationApi.md#get_agent_keep_alive) | **GET** /conversation/agent/keepalive | Agent keep alive
11
+ [**get_agent_profile**](ConversationApi.md#get_agent_profile) | **GET** /conversation/agent/profile | Get agent profile
11
12
  [**get_agent_websocket_authorization**](ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization
12
13
  [**get_conversation**](ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation
13
14
  [**get_conversation_canned_messages**](ConversationApi.md#get_conversation_canned_messages) | **GET** /conversation/canned_messages | Retrieve a list of canned messages ordered by short_code
@@ -32,6 +33,7 @@ Method | HTTP request | Description
32
33
  [**mark_read_conversation**](ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read
33
34
  [**search_conversation_canned_messages**](ConversationApi.md#search_conversation_canned_messages) | **POST** /conversation/canned_messages/search | Search for canned messages by short_code
34
35
  [**start_conversation**](ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
36
+ [**update_agent_profile**](ConversationApi.md#update_agent_profile) | **PUT** /conversation/agent/profile | Update agent profile
35
37
  [**update_conversation_canned_message**](ConversationApi.md#update_conversation_canned_message) | **PUT** /conversation/canned_messages/{conversation_canned_message_oid} | Update a canned message
36
38
  [**update_conversation_department**](ConversationApi.md#update_conversation_department) | **PUT** /conversation/departments/{conversation_department_oid} | Update a department
37
39
  [**update_conversation_engagement**](ConversationApi.md#update_conversation_engagement) | **PUT** /conversation/engagements/{conversation_engagement_oid} | Update a engagement
@@ -229,6 +231,51 @@ nil (empty response body)
229
231
 
230
232
 
231
233
 
234
+ # **get_agent_profile**
235
+ > ConversationAgentProfileResponse get_agent_profile
236
+
237
+ Get agent profile
238
+
239
+ Retrieve the agents profile
240
+
241
+ ### Example
242
+ ```ruby
243
+ # load the gem
244
+ require 'ultracart_api'
245
+
246
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
247
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
248
+ api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
249
+
250
+
251
+
252
+ begin
253
+ #Get agent profile
254
+ result = api_instance.get_agent_profile
255
+ p result
256
+ rescue UltracartClient::ApiError => e
257
+ puts "Exception when calling ConversationApi->get_agent_profile: #{e}"
258
+ end
259
+ ```
260
+
261
+ ### Parameters
262
+ This endpoint does not need any parameter.
263
+
264
+ ### Return type
265
+
266
+ [**ConversationAgentProfileResponse**](ConversationAgentProfileResponse.md)
267
+
268
+ ### Authorization
269
+
270
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
271
+
272
+ ### HTTP request headers
273
+
274
+ - **Content-Type**: application/json
275
+ - **Accept**: application/json
276
+
277
+
278
+
232
279
  # **get_agent_websocket_authorization**
233
280
  > ConversationAgentAuthResponse get_agent_websocket_authorization
234
281
 
@@ -1408,6 +1455,56 @@ Name | Type | Description | Notes
1408
1455
 
1409
1456
 
1410
1457
 
1458
+ # **update_agent_profile**
1459
+ > ConversationAgentProfileResponse update_agent_profile(profile_request)
1460
+
1461
+ Update agent profile
1462
+
1463
+ Update agent profile
1464
+
1465
+ ### Example
1466
+ ```ruby
1467
+ # load the gem
1468
+ require 'ultracart_api'
1469
+
1470
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
1471
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
1472
+ api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
1473
+
1474
+
1475
+ profile_request = UltracartClient::ConversationAgentProfile.new # ConversationAgentProfile | Profile request
1476
+
1477
+
1478
+ begin
1479
+ #Update agent profile
1480
+ result = api_instance.update_agent_profile(profile_request)
1481
+ p result
1482
+ rescue UltracartClient::ApiError => e
1483
+ puts "Exception when calling ConversationApi->update_agent_profile: #{e}"
1484
+ end
1485
+ ```
1486
+
1487
+ ### Parameters
1488
+
1489
+ Name | Type | Description | Notes
1490
+ ------------- | ------------- | ------------- | -------------
1491
+ **profile_request** | [**ConversationAgentProfile**](ConversationAgentProfile.md)| Profile request |
1492
+
1493
+ ### Return type
1494
+
1495
+ [**ConversationAgentProfileResponse**](ConversationAgentProfileResponse.md)
1496
+
1497
+ ### Authorization
1498
+
1499
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1500
+
1501
+ ### HTTP request headers
1502
+
1503
+ - **Content-Type**: application/json
1504
+ - **Accept**: application/json
1505
+
1506
+
1507
+
1411
1508
  # **update_conversation_canned_message**
1412
1509
  > ConversationCannedMessageResponse update_conversation_canned_message(conversation_canned_message_oid, canned_message)
1413
1510
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **event_add_coupon** | [**ConversationEventAddCoupon**](ConversationEventAddCoupon.md) | | [optional]
8
8
  **event_add_item** | [**ConversationEventAddItem**](ConversationEventAddItem.md) | | [optional]
9
9
  **event_conversation_closed** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
10
+ **event_engage_customer** | [**ConversationWebchatQueueStatusQueueEntry**](ConversationWebchatQueueStatusQueueEntry.md) | | [optional]
10
11
  **event_new_conversation** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
11
12
  **event_new_message** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
12
13
  **event_participant_join** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
@@ -242,6 +242,55 @@ module UltracartClient
242
242
  end
243
243
  return data, status_code, headers
244
244
  end
245
+ # Get agent profile
246
+ # Retrieve the agents profile
247
+ # @param [Hash] opts the optional parameters
248
+ # @return [ConversationAgentProfileResponse]
249
+ def get_agent_profile(opts = {})
250
+ data, _status_code, _headers = get_agent_profile_with_http_info(opts)
251
+ data
252
+ end
253
+
254
+ # Get agent profile
255
+ # Retrieve the agents profile
256
+ # @param [Hash] opts the optional parameters
257
+ # @return [Array<(ConversationAgentProfileResponse, Fixnum, Hash)>] ConversationAgentProfileResponse data, response status code and response headers
258
+ def get_agent_profile_with_http_info(opts = {})
259
+ if @api_client.config.debugging
260
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_agent_profile ...'
261
+ end
262
+ # resource path
263
+ local_var_path = '/conversation/agent/profile'
264
+
265
+ # query parameters
266
+ query_params = {}
267
+
268
+ # header parameters
269
+ header_params = {}
270
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
271
+ # HTTP header 'Accept' (if needed)
272
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
273
+ # HTTP header 'Content-Type'
274
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
275
+
276
+ # form parameters
277
+ form_params = {}
278
+
279
+ # http body (model)
280
+ post_body = nil
281
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
282
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
283
+ :header_params => header_params,
284
+ :query_params => query_params,
285
+ :form_params => form_params,
286
+ :body => post_body,
287
+ :auth_names => auth_names,
288
+ :return_type => 'ConversationAgentProfileResponse')
289
+ if @api_client.config.debugging
290
+ @api_client.config.logger.debug "API called: ConversationApi#get_agent_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
291
+ end
292
+ return data, status_code, headers
293
+ end
245
294
  # Get agent websocket authorization
246
295
  # Retrieve a JWT to authorize an agent to make a websocket connection.
247
296
  # @param [Hash] opts the optional parameters
@@ -1531,6 +1580,61 @@ module UltracartClient
1531
1580
  end
1532
1581
  return data, status_code, headers
1533
1582
  end
1583
+ # Update agent profile
1584
+ # Update agent profile
1585
+ # @param profile_request Profile request
1586
+ # @param [Hash] opts the optional parameters
1587
+ # @return [ConversationAgentProfileResponse]
1588
+ def update_agent_profile(profile_request, opts = {})
1589
+ data, _status_code, _headers = update_agent_profile_with_http_info(profile_request, opts)
1590
+ data
1591
+ end
1592
+
1593
+ # Update agent profile
1594
+ # Update agent profile
1595
+ # @param profile_request Profile request
1596
+ # @param [Hash] opts the optional parameters
1597
+ # @return [Array<(ConversationAgentProfileResponse, Fixnum, Hash)>] ConversationAgentProfileResponse data, response status code and response headers
1598
+ def update_agent_profile_with_http_info(profile_request, opts = {})
1599
+ if @api_client.config.debugging
1600
+ @api_client.config.logger.debug 'Calling API: ConversationApi.update_agent_profile ...'
1601
+ end
1602
+ # verify the required parameter 'profile_request' is set
1603
+ if @api_client.config.client_side_validation && profile_request.nil?
1604
+ fail ArgumentError, "Missing the required parameter 'profile_request' when calling ConversationApi.update_agent_profile"
1605
+ end
1606
+ # resource path
1607
+ local_var_path = '/conversation/agent/profile'
1608
+
1609
+ # query parameters
1610
+ query_params = {}
1611
+
1612
+ # header parameters
1613
+ header_params = {}
1614
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
1615
+ # HTTP header 'Accept' (if needed)
1616
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1617
+ # HTTP header 'Content-Type'
1618
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1619
+
1620
+ # form parameters
1621
+ form_params = {}
1622
+
1623
+ # http body (model)
1624
+ post_body = @api_client.object_to_http_body(profile_request)
1625
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
1626
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1627
+ :header_params => header_params,
1628
+ :query_params => query_params,
1629
+ :form_params => form_params,
1630
+ :body => post_body,
1631
+ :auth_names => auth_names,
1632
+ :return_type => 'ConversationAgentProfileResponse')
1633
+ if @api_client.config.debugging
1634
+ @api_client.config.logger.debug "API called: ConversationApi#update_agent_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1635
+ end
1636
+ return data, status_code, headers
1637
+ end
1534
1638
  # Update a canned message
1535
1639
  # Update a canned message
1536
1640
  # @param conversation_canned_message_oid
@@ -0,0 +1,279 @@
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 'date'
14
+
15
+ module UltracartClient
16
+ class ConversationAgentProfile
17
+ # The number of engagement chats that can be pushed on them at any given time.
18
+ attr_accessor :chat_limit
19
+
20
+ # The default language the agent is chatting in
21
+ attr_accessor :default_language_iso_code
22
+
23
+ # Default status when the agent loads conversations app.
24
+ attr_accessor :default_status
25
+
26
+ # An alternate name that the agent wants to use in chat.
27
+ attr_accessor :display_name
28
+
29
+ # Their actual user name for profile settings display as placeholder test
30
+ attr_accessor :name
31
+
32
+ # An upload key used to update the profile image.
33
+ attr_accessor :profile_image_upload_key
34
+
35
+ # Their current profile image URL
36
+ attr_accessor :profile_image_url
37
+
38
+ class EnumAttributeValidator
39
+ attr_reader :datatype
40
+ attr_reader :allowable_values
41
+
42
+ def initialize(datatype, allowable_values)
43
+ @allowable_values = allowable_values.map do |value|
44
+ case datatype.to_s
45
+ when /Integer/i
46
+ value.to_i
47
+ when /Float/i
48
+ value.to_f
49
+ else
50
+ value
51
+ end
52
+ end
53
+ end
54
+
55
+ def valid?(value)
56
+ !value || allowable_values.include?(value)
57
+ end
58
+ end
59
+
60
+ # Attribute mapping from ruby-style variable name to JSON key.
61
+ def self.attribute_map
62
+ {
63
+ :'chat_limit' => :'chat_limit',
64
+ :'default_language_iso_code' => :'default_language_iso_code',
65
+ :'default_status' => :'default_status',
66
+ :'display_name' => :'display_name',
67
+ :'name' => :'name',
68
+ :'profile_image_upload_key' => :'profile_image_upload_key',
69
+ :'profile_image_url' => :'profile_image_url'
70
+ }
71
+ end
72
+
73
+ # Attribute type mapping.
74
+ def self.swagger_types
75
+ {
76
+ :'chat_limit' => :'Integer',
77
+ :'default_language_iso_code' => :'String',
78
+ :'default_status' => :'String',
79
+ :'display_name' => :'String',
80
+ :'name' => :'String',
81
+ :'profile_image_upload_key' => :'String',
82
+ :'profile_image_url' => :'String'
83
+ }
84
+ end
85
+
86
+ # Initializes the object
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ def initialize(attributes = {})
89
+ return unless attributes.is_a?(Hash)
90
+
91
+ # convert string to symbol for hash key
92
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
93
+
94
+ if attributes.has_key?(:'chat_limit')
95
+ self.chat_limit = attributes[:'chat_limit']
96
+ end
97
+
98
+ if attributes.has_key?(:'default_language_iso_code')
99
+ self.default_language_iso_code = attributes[:'default_language_iso_code']
100
+ end
101
+
102
+ if attributes.has_key?(:'default_status')
103
+ self.default_status = attributes[:'default_status']
104
+ end
105
+
106
+ if attributes.has_key?(:'display_name')
107
+ self.display_name = attributes[:'display_name']
108
+ end
109
+
110
+ if attributes.has_key?(:'name')
111
+ self.name = attributes[:'name']
112
+ end
113
+
114
+ if attributes.has_key?(:'profile_image_upload_key')
115
+ self.profile_image_upload_key = attributes[:'profile_image_upload_key']
116
+ end
117
+
118
+ if attributes.has_key?(:'profile_image_url')
119
+ self.profile_image_url = attributes[:'profile_image_url']
120
+ end
121
+ end
122
+
123
+ # Show invalid properties with the reasons. Usually used together with valid?
124
+ # @return Array for valid properties with the reasons
125
+ def list_invalid_properties
126
+ invalid_properties = Array.new
127
+ invalid_properties
128
+ end
129
+
130
+ # Check to see if the all the properties in the model are valid
131
+ # @return true if the model is valid
132
+ def valid?
133
+ default_status_validator = EnumAttributeValidator.new('String', ['available', 'busy', 'unavailable'])
134
+ return false unless default_status_validator.valid?(@default_status)
135
+ true
136
+ end
137
+
138
+ # Custom attribute writer method checking allowed values (enum).
139
+ # @param [Object] default_status Object to be assigned
140
+ def default_status=(default_status)
141
+ validator = EnumAttributeValidator.new('String', ['available', 'busy', 'unavailable'])
142
+ unless validator.valid?(default_status)
143
+ fail ArgumentError, 'invalid value for "default_status", must be one of #{validator.allowable_values}.'
144
+ end
145
+ @default_status = default_status
146
+ end
147
+
148
+ # Checks equality by comparing each attribute.
149
+ # @param [Object] Object to be compared
150
+ def ==(o)
151
+ return true if self.equal?(o)
152
+ self.class == o.class &&
153
+ chat_limit == o.chat_limit &&
154
+ default_language_iso_code == o.default_language_iso_code &&
155
+ default_status == o.default_status &&
156
+ display_name == o.display_name &&
157
+ name == o.name &&
158
+ profile_image_upload_key == o.profile_image_upload_key &&
159
+ profile_image_url == o.profile_image_url
160
+ end
161
+
162
+ # @see the `==` method
163
+ # @param [Object] Object to be compared
164
+ def eql?(o)
165
+ self == o
166
+ end
167
+
168
+ # Calculates hash code according to all attributes.
169
+ # @return [Fixnum] Hash code
170
+ def hash
171
+ [chat_limit, default_language_iso_code, default_status, display_name, name, profile_image_upload_key, profile_image_url].hash
172
+ end
173
+
174
+ # Builds the object from hash
175
+ # @param [Hash] attributes Model attributes in the form of hash
176
+ # @return [Object] Returns the model itself
177
+ def build_from_hash(attributes)
178
+ return nil unless attributes.is_a?(Hash)
179
+ self.class.swagger_types.each_pair do |key, type|
180
+ if type =~ /\AArray<(.*)>/i
181
+ # check to ensure the input is an array given that the attribute
182
+ # is documented as an array but the input is not
183
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
184
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
185
+ end
186
+ elsif !attributes[self.class.attribute_map[key]].nil?
187
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
188
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
189
+ end
190
+
191
+ self
192
+ end
193
+
194
+ # Deserializes the data based on type
195
+ # @param string type Data type
196
+ # @param string value Value to be deserialized
197
+ # @return [Object] Deserialized data
198
+ def _deserialize(type, value)
199
+ case type.to_sym
200
+ when :DateTime
201
+ DateTime.parse(value)
202
+ when :Date
203
+ Date.parse(value)
204
+ when :String
205
+ value.to_s
206
+ when :Integer
207
+ value.to_i
208
+ when :Float
209
+ value.to_f
210
+ when :BOOLEAN
211
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
212
+ true
213
+ else
214
+ false
215
+ end
216
+ when :Object
217
+ # generic object (usually a Hash), return directly
218
+ value
219
+ when /\AArray<(?<inner_type>.+)>\z/
220
+ inner_type = Regexp.last_match[:inner_type]
221
+ value.map { |v| _deserialize(inner_type, v) }
222
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
223
+ k_type = Regexp.last_match[:k_type]
224
+ v_type = Regexp.last_match[:v_type]
225
+ {}.tap do |hash|
226
+ value.each do |k, v|
227
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
228
+ end
229
+ end
230
+ else # model
231
+ temp_model = UltracartClient.const_get(type).new
232
+ temp_model.build_from_hash(value)
233
+ end
234
+ end
235
+
236
+ # Returns the string representation of the object
237
+ # @return [String] String presentation of the object
238
+ def to_s
239
+ to_hash.to_s
240
+ end
241
+
242
+ # to_body is an alias to to_hash (backward compatibility)
243
+ # @return [Hash] Returns the object in the form of hash
244
+ def to_body
245
+ to_hash
246
+ end
247
+
248
+ # Returns the object in the form of hash
249
+ # @return [Hash] Returns the object in the form of hash
250
+ def to_hash
251
+ hash = {}
252
+ self.class.attribute_map.each_pair do |attr, param|
253
+ value = self.send(attr)
254
+ next if value.nil?
255
+ hash[param] = _to_hash(value)
256
+ end
257
+ hash
258
+ end
259
+
260
+ # Outputs non-array value in the form of hash
261
+ # For object, use to_hash. Otherwise, just return the value
262
+ # @param [Object] value Any valid value
263
+ # @return [Hash] Returns the value in the form of hash
264
+ def _to_hash(value)
265
+ if value.is_a?(Array)
266
+ value.compact.map { |v| _to_hash(v) }
267
+ elsif value.is_a?(Hash)
268
+ {}.tap do |hash|
269
+ value.each { |k, v| hash[k] = _to_hash(v) }
270
+ end
271
+ elsif value.respond_to? :to_hash
272
+ value.to_hash
273
+ else
274
+ value
275
+ end
276
+ end
277
+
278
+ end
279
+ end
@@ -0,0 +1,221 @@
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 'date'
14
+
15
+ module UltracartClient
16
+ class ConversationAgentProfileResponse
17
+ attr_accessor :agent_profile
18
+
19
+ attr_accessor :error
20
+
21
+ attr_accessor :metadata
22
+
23
+ # Indicates if API call was successful
24
+ attr_accessor :success
25
+
26
+ attr_accessor :warning
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'agent_profile' => :'agent_profile',
32
+ :'error' => :'error',
33
+ :'metadata' => :'metadata',
34
+ :'success' => :'success',
35
+ :'warning' => :'warning'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'agent_profile' => :'ConversationAgentProfile',
43
+ :'error' => :'Error',
44
+ :'metadata' => :'ResponseMetadata',
45
+ :'success' => :'BOOLEAN',
46
+ :'warning' => :'Warning'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ return unless attributes.is_a?(Hash)
54
+
55
+ # convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
+
58
+ if attributes.has_key?(:'agent_profile')
59
+ self.agent_profile = attributes[:'agent_profile']
60
+ end
61
+
62
+ if attributes.has_key?(:'error')
63
+ self.error = attributes[:'error']
64
+ end
65
+
66
+ if attributes.has_key?(:'metadata')
67
+ self.metadata = attributes[:'metadata']
68
+ end
69
+
70
+ if attributes.has_key?(:'success')
71
+ self.success = attributes[:'success']
72
+ end
73
+
74
+ if attributes.has_key?(:'warning')
75
+ self.warning = attributes[:'warning']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ agent_profile == o.agent_profile &&
98
+ error == o.error &&
99
+ metadata == o.metadata &&
100
+ success == o.success &&
101
+ warning == o.warning
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Fixnum] Hash code
112
+ def hash
113
+ [agent_profile, error, metadata, success, warning].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.swagger_types.each_pair do |key, type|
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :DateTime
143
+ DateTime.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :BOOLEAN
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ temp_model = UltracartClient.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+ end
@@ -23,6 +23,8 @@ module UltracartClient
23
23
 
24
24
  attr_accessor :event_conversation_closed
25
25
 
26
+ attr_accessor :event_engage_customer
27
+
26
28
  attr_accessor :event_new_conversation
27
29
 
28
30
  attr_accessor :event_new_message
@@ -88,6 +90,7 @@ module UltracartClient
88
90
  :'event_add_coupon' => :'event_add_coupon',
89
91
  :'event_add_item' => :'event_add_item',
90
92
  :'event_conversation_closed' => :'event_conversation_closed',
93
+ :'event_engage_customer' => :'event_engage_customer',
91
94
  :'event_new_conversation' => :'event_new_conversation',
92
95
  :'event_new_message' => :'event_new_message',
93
96
  :'event_participant_join' => :'event_participant_join',
@@ -115,6 +118,7 @@ module UltracartClient
115
118
  :'event_add_coupon' => :'ConversationEventAddCoupon',
116
119
  :'event_add_item' => :'ConversationEventAddItem',
117
120
  :'event_conversation_closed' => :'ConversationSummary',
121
+ :'event_engage_customer' => :'ConversationWebchatQueueStatusQueueEntry',
118
122
  :'event_new_conversation' => :'ConversationSummary',
119
123
  :'event_new_message' => :'ConversationSummary',
120
124
  :'event_participant_join' => :'ConversationSummary',
@@ -159,6 +163,10 @@ module UltracartClient
159
163
  self.event_conversation_closed = attributes[:'event_conversation_closed']
160
164
  end
161
165
 
166
+ if attributes.has_key?(:'event_engage_customer')
167
+ self.event_engage_customer = attributes[:'event_engage_customer']
168
+ end
169
+
162
170
  if attributes.has_key?(:'event_new_conversation')
163
171
  self.event_new_conversation = attributes[:'event_new_conversation']
164
172
  end
@@ -274,6 +282,7 @@ module UltracartClient
274
282
  event_add_coupon == o.event_add_coupon &&
275
283
  event_add_item == o.event_add_item &&
276
284
  event_conversation_closed == o.event_conversation_closed &&
285
+ event_engage_customer == o.event_engage_customer &&
277
286
  event_new_conversation == o.event_new_conversation &&
278
287
  event_new_message == o.event_new_message &&
279
288
  event_participant_join == o.event_participant_join &&
@@ -302,7 +311,7 @@ module UltracartClient
302
311
  # Calculates hash code according to all attributes.
303
312
  # @return [Fixnum] Hash code
304
313
  def hash
305
- [conversation_uuid, event_add_coupon, event_add_item, event_conversation_closed, event_new_conversation, event_new_message, event_participant_join, event_participant_join_participant, event_participant_left, event_participant_left_participant, event_participant_update, event_queue_position, event_queue_status_update, event_read_message, event_rrweb, event_type, event_typing, event_updated_message, event_webchat_context, message, type].hash
314
+ [conversation_uuid, event_add_coupon, event_add_item, event_conversation_closed, event_engage_customer, event_new_conversation, event_new_message, event_participant_join, event_participant_join_participant, event_participant_left, event_participant_left_participant, event_participant_update, event_queue_position, event_queue_status_update, event_read_message, event_rrweb, event_type, event_typing, event_updated_message, event_webchat_context, message, type].hash
306
315
  end
307
316
 
308
317
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.110'
14
+ VERSION = '3.10.112'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -143,6 +143,8 @@ require 'ultracart_api/models/city_state_zip'
143
143
  require 'ultracart_api/models/conversation'
144
144
  require 'ultracart_api/models/conversation_agent_auth'
145
145
  require 'ultracart_api/models/conversation_agent_auth_response'
146
+ require 'ultracart_api/models/conversation_agent_profile'
147
+ require 'ultracart_api/models/conversation_agent_profile_response'
146
148
  require 'ultracart_api/models/conversation_autocomplete_request'
147
149
  require 'ultracart_api/models/conversation_autocomplete_response'
148
150
  require 'ultracart_api/models/conversation_autocomplete_value'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.110
4
+ version: 3.10.112
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-27 00:00:00.000000000 Z
11
+ date: 2023-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -352,6 +352,8 @@ files:
352
352
  - docs/Conversation.md
353
353
  - docs/ConversationAgentAuth.md
354
354
  - docs/ConversationAgentAuthResponse.md
355
+ - docs/ConversationAgentProfile.md
356
+ - docs/ConversationAgentProfileResponse.md
355
357
  - docs/ConversationApi.md
356
358
  - docs/ConversationAutocompleteRequest.md
357
359
  - docs/ConversationAutocompleteResponse.md
@@ -1126,6 +1128,8 @@ files:
1126
1128
  - lib/ultracart_api/models/conversation.rb
1127
1129
  - lib/ultracart_api/models/conversation_agent_auth.rb
1128
1130
  - lib/ultracart_api/models/conversation_agent_auth_response.rb
1131
+ - lib/ultracart_api/models/conversation_agent_profile.rb
1132
+ - lib/ultracart_api/models/conversation_agent_profile_response.rb
1129
1133
  - lib/ultracart_api/models/conversation_autocomplete_request.rb
1130
1134
  - lib/ultracart_api/models/conversation_autocomplete_response.rb
1131
1135
  - lib/ultracart_api/models/conversation_autocomplete_value.rb