ultracart_api 4.0.137 → 4.0.139
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/docs/Conversation.md +2 -0
- data/docs/ConversationSentiment.md +28 -0
- data/docs/ConversationSummary.md +2 -0
- data/docs/OrderApi.md +72 -0
- data/docs/OrderEdiDocument.md +44 -0
- data/docs/OrderEdiDocumentsResponse.md +26 -0
- data/lib/ultracart_api/api/order_api.rb +64 -0
- data/lib/ultracart_api/models/conversation.rb +10 -1
- data/lib/ultracart_api/models/conversation_sentiment.rb +304 -0
- data/lib/ultracart_api/models/conversation_summary.rb +10 -1
- data/lib/ultracart_api/models/order_edi_document.rb +372 -0
- data/lib/ultracart_api/models/order_edi_documents_response.rb +259 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce7f59685244a28188e13ed6c037ddddbaa28513b898206abb574056a8d9401
|
4
|
+
data.tar.gz: 843646f29e2e51b35e8b740d25046c195e9be1a59328ed76d6555efe0729ae1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e5d7f095772e2c5f0c0f786f0216c7746ee8479154eed2e6526767cceeaf4bfdda841b034d18a81b1c77db444845f94052c4ce008deab6446f03912425067f4
|
7
|
+
data.tar.gz: 744003a775fb34645b7ffe0fd0855b94dc6bbc0cbae4fcd93637db949ed63d11f869277ad94023f98269683fa5f221cf93192b26e4d857ac94e20821ec9c4b51
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 4.0.
|
10
|
+
- Package version: 4.0.139
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.139.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.139.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.139'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -260,6 +260,7 @@ Class | Method | HTTP request | Description
|
|
260
260
|
*UltracartClient::OrderApi* | [**get_accounts_receivable_retry_stats**](docs/OrderApi.md#get_accounts_receivable_retry_stats) | **GET** /order/accountsReceivableRetryConfig/stats | Retrieve A/R Retry Statistics
|
261
261
|
*UltracartClient::OrderApi* | [**get_order**](docs/OrderApi.md#get_order) | **GET** /order/orders/{order_id} | Retrieve an order
|
262
262
|
*UltracartClient::OrderApi* | [**get_order_by_token**](docs/OrderApi.md#get_order_by_token) | **POST** /order/orders/token | Retrieve an order using a token
|
263
|
+
*UltracartClient::OrderApi* | [**get_order_edi_documents**](docs/OrderApi.md#get_order_edi_documents) | **GET** /order/orders/{order_id}/edi | Retrieve EDI documents associated with this order.
|
263
264
|
*UltracartClient::OrderApi* | [**get_orders**](docs/OrderApi.md#get_orders) | **GET** /order/orders | Retrieve orders
|
264
265
|
*UltracartClient::OrderApi* | [**get_orders_batch**](docs/OrderApi.md#get_orders_batch) | **POST** /order/orders/batch | Retrieve order batch
|
265
266
|
*UltracartClient::OrderApi* | [**get_orders_by_query**](docs/OrderApi.md#get_orders_by_query) | **POST** /order/orders/query | Retrieve orders by query
|
@@ -668,6 +669,7 @@ Class | Method | HTTP request | Description
|
|
668
669
|
- [UltracartClient::ConversationResponse](docs/ConversationResponse.md)
|
669
670
|
- [UltracartClient::ConversationSearchRequest](docs/ConversationSearchRequest.md)
|
670
671
|
- [UltracartClient::ConversationSearchResponse](docs/ConversationSearchResponse.md)
|
672
|
+
- [UltracartClient::ConversationSentiment](docs/ConversationSentiment.md)
|
671
673
|
- [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
|
672
674
|
- [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
|
673
675
|
- [UltracartClient::ConversationSummary](docs/ConversationSummary.md)
|
@@ -1058,6 +1060,8 @@ Class | Method | HTTP request | Description
|
|
1058
1060
|
- [UltracartClient::OrderDigitalItem](docs/OrderDigitalItem.md)
|
1059
1061
|
- [UltracartClient::OrderDigitalOrder](docs/OrderDigitalOrder.md)
|
1060
1062
|
- [UltracartClient::OrderEdi](docs/OrderEdi.md)
|
1063
|
+
- [UltracartClient::OrderEdiDocument](docs/OrderEdiDocument.md)
|
1064
|
+
- [UltracartClient::OrderEdiDocumentsResponse](docs/OrderEdiDocumentsResponse.md)
|
1061
1065
|
- [UltracartClient::OrderFormat](docs/OrderFormat.md)
|
1062
1066
|
- [UltracartClient::OrderFormatResponse](docs/OrderFormatResponse.md)
|
1063
1067
|
- [UltracartClient::OrderFraudScore](docs/OrderFraudScore.md)
|
@@ -1311,6 +1315,8 @@ Not every change is committed to every SDK.
|
|
1311
1315
|
|
1312
1316
|
| Version | Date | Comments |
|
1313
1317
|
| --: | :-: | --- |
|
1318
|
+
| 4.0.139 | 03/14/2023 | order.getOrderEdiDocuments |
|
1319
|
+
| 4.0.138 | 03/01/2023 | convo - add sentiment record to conversation obj |
|
1314
1320
|
| 4.0.137 | 02/22/2023 | convo - customer initiated flag on engagement |
|
1315
1321
|
| 4.0.136 | 02/20/2023 | refund reasons |
|
1316
1322
|
| 4.0.135 | 02/17/2023 | convo api - smsUnsubscribeConversation method |
|
data/docs/Conversation.md
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
| **message_count** | **Integer** | | [optional] |
|
20
20
|
| **messages** | [**Array<ConversationMessage>**](ConversationMessage.md) | | [optional] |
|
21
21
|
| **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional] |
|
22
|
+
| **sentiment** | [**ConversationSentiment**](ConversationSentiment.md) | | [optional] |
|
22
23
|
| **start_dts** | **String** | Start of the conversation date/time | [optional] |
|
23
24
|
| **unread_messages** | **Boolean** | | [optional] |
|
24
25
|
| **visible** | **Boolean** | | [optional] |
|
@@ -44,6 +45,7 @@ instance = UltracartClient::Conversation.new(
|
|
44
45
|
message_count: null,
|
45
46
|
messages: null,
|
46
47
|
participants: null,
|
48
|
+
sentiment: null,
|
47
49
|
start_dts: null,
|
48
50
|
unread_messages: null,
|
49
51
|
visible: null
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# UltracartClient::ConversationSentiment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **last_detect_sentiment** | **String** | The last time the detect sentiment was run on this conversation | [optional] |
|
8
|
+
| **mixed** | **Float** | The mixed score | [optional] |
|
9
|
+
| **negative** | **Float** | The negative score | [optional] |
|
10
|
+
| **neutral** | **Float** | The neutral score | [optional] |
|
11
|
+
| **positive** | **Float** | The positive score | [optional] |
|
12
|
+
| **sentiment** | **String** | The overall sentiment | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ultracart_api'
|
18
|
+
|
19
|
+
instance = UltracartClient::ConversationSentiment.new(
|
20
|
+
last_detect_sentiment: null,
|
21
|
+
mixed: null,
|
22
|
+
negative: null,
|
23
|
+
neutral: null,
|
24
|
+
positive: null,
|
25
|
+
sentiment: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
data/docs/ConversationSummary.md
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
| **merchant_id** | **String** | | [optional] |
|
18
18
|
| **message_count** | **Integer** | | [optional] |
|
19
19
|
| **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional] |
|
20
|
+
| **sentiment** | [**ConversationSentiment**](ConversationSentiment.md) | | [optional] |
|
20
21
|
| **start_dts** | **String** | Start of the conversation date/time | [optional] |
|
21
22
|
| **unread_messages** | **Boolean** | | [optional] |
|
22
23
|
| **visible** | **Boolean** | | [optional] |
|
@@ -40,6 +41,7 @@ instance = UltracartClient::ConversationSummary.new(
|
|
40
41
|
merchant_id: null,
|
41
42
|
message_count: null,
|
42
43
|
participants: null,
|
44
|
+
sentiment: null,
|
43
45
|
start_dts: null,
|
44
46
|
unread_messages: null,
|
45
47
|
visible: null
|
data/docs/OrderApi.md
CHANGED
@@ -17,6 +17,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
17
17
|
| [**get_accounts_receivable_retry_stats**](OrderApi.md#get_accounts_receivable_retry_stats) | **GET** /order/accountsReceivableRetryConfig/stats | Retrieve A/R Retry Statistics |
|
18
18
|
| [**get_order**](OrderApi.md#get_order) | **GET** /order/orders/{order_id} | Retrieve an order |
|
19
19
|
| [**get_order_by_token**](OrderApi.md#get_order_by_token) | **POST** /order/orders/token | Retrieve an order using a token |
|
20
|
+
| [**get_order_edi_documents**](OrderApi.md#get_order_edi_documents) | **GET** /order/orders/{order_id}/edi | Retrieve EDI documents associated with this order. |
|
20
21
|
| [**get_orders**](OrderApi.md#get_orders) | **GET** /order/orders | Retrieve orders |
|
21
22
|
| [**get_orders_batch**](OrderApi.md#get_orders_batch) | **POST** /order/orders/batch | Retrieve order batch |
|
22
23
|
| [**get_orders_by_query**](OrderApi.md#get_orders_by_query) | **POST** /order/orders/query | Retrieve orders by query |
|
@@ -972,6 +973,77 @@ end
|
|
972
973
|
- **Accept**: application/json
|
973
974
|
|
974
975
|
|
976
|
+
## get_order_edi_documents
|
977
|
+
|
978
|
+
> <OrderEdiDocumentsResponse> get_order_edi_documents(order_id)
|
979
|
+
|
980
|
+
Retrieve EDI documents associated with this order.
|
981
|
+
|
982
|
+
Retrieve EDI documents associated with this order.
|
983
|
+
|
984
|
+
### Examples
|
985
|
+
|
986
|
+
```ruby
|
987
|
+
require 'time'
|
988
|
+
require 'ultracart_api'
|
989
|
+
require 'json'
|
990
|
+
require 'yaml'
|
991
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
992
|
+
|
993
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
994
|
+
# As such, this might not be the best way to use this object.
|
995
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
996
|
+
|
997
|
+
api = UltracartClient::OrderApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
998
|
+
order_id = 'order_id_example' # String | The order id to retrieve EDI documents for.
|
999
|
+
|
1000
|
+
begin
|
1001
|
+
# Retrieve EDI documents associated with this order.
|
1002
|
+
result = api_instance.get_order_edi_documents(order_id)
|
1003
|
+
p result
|
1004
|
+
rescue UltracartClient::ApiError => e
|
1005
|
+
puts "Error when calling OrderApi->get_order_edi_documents: #{e}"
|
1006
|
+
end
|
1007
|
+
```
|
1008
|
+
|
1009
|
+
#### Using the get_order_edi_documents_with_http_info variant
|
1010
|
+
|
1011
|
+
This returns an Array which contains the response data, status code and headers.
|
1012
|
+
|
1013
|
+
> <Array(<OrderEdiDocumentsResponse>, Integer, Hash)> get_order_edi_documents_with_http_info(order_id)
|
1014
|
+
|
1015
|
+
```ruby
|
1016
|
+
begin
|
1017
|
+
# Retrieve EDI documents associated with this order.
|
1018
|
+
data, status_code, headers = api_instance.get_order_edi_documents_with_http_info(order_id)
|
1019
|
+
p status_code # => 2xx
|
1020
|
+
p headers # => { ... }
|
1021
|
+
p data # => <OrderEdiDocumentsResponse>
|
1022
|
+
rescue UltracartClient::ApiError => e
|
1023
|
+
puts "Error when calling OrderApi->get_order_edi_documents_with_http_info: #{e}"
|
1024
|
+
end
|
1025
|
+
```
|
1026
|
+
|
1027
|
+
### Parameters
|
1028
|
+
|
1029
|
+
| Name | Type | Description | Notes |
|
1030
|
+
| ---- | ---- | ----------- | ----- |
|
1031
|
+
| **order_id** | **String** | The order id to retrieve EDI documents for. | |
|
1032
|
+
|
1033
|
+
### Return type
|
1034
|
+
|
1035
|
+
[**OrderEdiDocumentsResponse**](OrderEdiDocumentsResponse.md)
|
1036
|
+
|
1037
|
+
### Authorization
|
1038
|
+
|
1039
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
1040
|
+
|
1041
|
+
### HTTP request headers
|
1042
|
+
|
1043
|
+
- **Content-Type**: Not defined
|
1044
|
+
- **Accept**: application/json
|
1045
|
+
|
1046
|
+
|
975
1047
|
## get_orders
|
976
1048
|
|
977
1049
|
> <OrdersResponse> get_orders(opts)
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# UltracartClient::OrderEdiDocument
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **direction** | **String** | Direction the document flowed | [optional] |
|
8
|
+
| **doc_dts** | **String** | Date/time the document was created/received | [optional] |
|
9
|
+
| **document** | **String** | | [optional] |
|
10
|
+
| **document_type_description** | **String** | | [optional] |
|
11
|
+
| **document_type_number** | **Integer** | | [optional] |
|
12
|
+
| **external_id** | **String** | | [optional] |
|
13
|
+
| **functional_acknowledgement** | **String** | | [optional] |
|
14
|
+
| **functional_acknowledgement_dts** | **String** | | [optional] |
|
15
|
+
| **functional_acknowledgement_pending** | **Boolean** | | [optional] |
|
16
|
+
| **group_control_number** | **Integer** | | [optional] |
|
17
|
+
| **internal_id** | **String** | | [optional] |
|
18
|
+
| **merchant_id** | **String** | | [optional] |
|
19
|
+
| **order_id** | **String** | | [optional] |
|
20
|
+
| **test_mode** | **Boolean** | | [optional] |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'ultracart_api'
|
26
|
+
|
27
|
+
instance = UltracartClient::OrderEdiDocument.new(
|
28
|
+
direction: null,
|
29
|
+
doc_dts: null,
|
30
|
+
document: null,
|
31
|
+
document_type_description: null,
|
32
|
+
document_type_number: null,
|
33
|
+
external_id: null,
|
34
|
+
functional_acknowledgement: null,
|
35
|
+
functional_acknowledgement_dts: null,
|
36
|
+
functional_acknowledgement_pending: null,
|
37
|
+
group_control_number: null,
|
38
|
+
internal_id: null,
|
39
|
+
merchant_id: null,
|
40
|
+
order_id: null,
|
41
|
+
test_mode: null
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# UltracartClient::OrderEdiDocumentsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **edi_documents** | [**Array<OrderEdiDocument>**](OrderEdiDocument.md) | edi_documents | [optional] |
|
8
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
9
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'ultracart_api'
|
17
|
+
|
18
|
+
instance = UltracartClient::OrderEdiDocumentsResponse.new(
|
19
|
+
edi_documents: null,
|
20
|
+
error: null,
|
21
|
+
metadata: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -895,6 +895,70 @@ module UltracartClient
|
|
895
895
|
return data, status_code, headers
|
896
896
|
end
|
897
897
|
|
898
|
+
# Retrieve EDI documents associated with this order.
|
899
|
+
# Retrieve EDI documents associated with this order.
|
900
|
+
# @param order_id [String] The order id to retrieve EDI documents for.
|
901
|
+
# @param [Hash] opts the optional parameters
|
902
|
+
# @return [OrderEdiDocumentsResponse]
|
903
|
+
def get_order_edi_documents(order_id, opts = {})
|
904
|
+
data, _status_code, _headers = get_order_edi_documents_with_http_info(order_id, opts)
|
905
|
+
data
|
906
|
+
end
|
907
|
+
|
908
|
+
# Retrieve EDI documents associated with this order.
|
909
|
+
# Retrieve EDI documents associated with this order.
|
910
|
+
# @param order_id [String] The order id to retrieve EDI documents for.
|
911
|
+
# @param [Hash] opts the optional parameters
|
912
|
+
# @return [Array<(OrderEdiDocumentsResponse, Integer, Hash)>] OrderEdiDocumentsResponse data, response status code and response headers
|
913
|
+
def get_order_edi_documents_with_http_info(order_id, opts = {})
|
914
|
+
if @api_client.config.debugging
|
915
|
+
@api_client.config.logger.debug 'Calling API: OrderApi.get_order_edi_documents ...'
|
916
|
+
end
|
917
|
+
# verify the required parameter 'order_id' is set
|
918
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
919
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.get_order_edi_documents"
|
920
|
+
end
|
921
|
+
# resource path
|
922
|
+
local_var_path = '/order/orders/{order_id}/edi'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s))
|
923
|
+
|
924
|
+
# query parameters
|
925
|
+
query_params = opts[:query_params] || {}
|
926
|
+
|
927
|
+
# header parameters
|
928
|
+
header_params = opts[:header_params] || {}
|
929
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
930
|
+
# HTTP header 'Accept' (if needed)
|
931
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
932
|
+
|
933
|
+
# form parameters
|
934
|
+
form_params = opts[:form_params] || {}
|
935
|
+
|
936
|
+
# http body (model)
|
937
|
+
post_body = opts[:debug_body]
|
938
|
+
|
939
|
+
# return_type
|
940
|
+
return_type = opts[:debug_return_type] || 'OrderEdiDocumentsResponse'
|
941
|
+
|
942
|
+
# auth_names
|
943
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
944
|
+
|
945
|
+
new_options = opts.merge(
|
946
|
+
:operation => :"OrderApi.get_order_edi_documents",
|
947
|
+
:header_params => header_params,
|
948
|
+
:query_params => query_params,
|
949
|
+
:form_params => form_params,
|
950
|
+
:body => post_body,
|
951
|
+
:auth_names => auth_names,
|
952
|
+
:return_type => return_type
|
953
|
+
)
|
954
|
+
|
955
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
956
|
+
if @api_client.config.debugging
|
957
|
+
@api_client.config.logger.debug "API called: OrderApi#get_order_edi_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
958
|
+
end
|
959
|
+
return data, status_code, headers
|
960
|
+
end
|
961
|
+
|
898
962
|
# Retrieve orders
|
899
963
|
# Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
900
964
|
# @param [Hash] opts the optional parameters
|
@@ -50,6 +50,8 @@ module UltracartClient
|
|
50
50
|
|
51
51
|
attr_accessor :participants
|
52
52
|
|
53
|
+
attr_accessor :sentiment
|
54
|
+
|
53
55
|
# Start of the conversation date/time
|
54
56
|
attr_accessor :start_dts
|
55
57
|
|
@@ -97,6 +99,7 @@ module UltracartClient
|
|
97
99
|
:'message_count' => :'message_count',
|
98
100
|
:'messages' => :'messages',
|
99
101
|
:'participants' => :'participants',
|
102
|
+
:'sentiment' => :'sentiment',
|
100
103
|
:'start_dts' => :'start_dts',
|
101
104
|
:'unread_messages' => :'unread_messages',
|
102
105
|
:'visible' => :'visible'
|
@@ -126,6 +129,7 @@ module UltracartClient
|
|
126
129
|
:'message_count' => :'Integer',
|
127
130
|
:'messages' => :'Array<ConversationMessage>',
|
128
131
|
:'participants' => :'Array<ConversationParticipant>',
|
132
|
+
:'sentiment' => :'ConversationSentiment',
|
129
133
|
:'start_dts' => :'String',
|
130
134
|
:'unread_messages' => :'Boolean',
|
131
135
|
:'visible' => :'Boolean'
|
@@ -217,6 +221,10 @@ module UltracartClient
|
|
217
221
|
end
|
218
222
|
end
|
219
223
|
|
224
|
+
if attributes.key?(:'sentiment')
|
225
|
+
self.sentiment = attributes[:'sentiment']
|
226
|
+
end
|
227
|
+
|
220
228
|
if attributes.key?(:'start_dts')
|
221
229
|
self.start_dts = attributes[:'start_dts']
|
222
230
|
end
|
@@ -275,6 +283,7 @@ module UltracartClient
|
|
275
283
|
message_count == o.message_count &&
|
276
284
|
messages == o.messages &&
|
277
285
|
participants == o.participants &&
|
286
|
+
sentiment == o.sentiment &&
|
278
287
|
start_dts == o.start_dts &&
|
279
288
|
unread_messages == o.unread_messages &&
|
280
289
|
visible == o.visible
|
@@ -289,7 +298,7 @@ module UltracartClient
|
|
289
298
|
# Calculates hash code according to all attributes.
|
290
299
|
# @return [Integer] Hash code
|
291
300
|
def hash
|
292
|
-
[base_language_iso_code, closed, conversation_arn, conversation_uuid, customer_first_message_unresponded_to_dts, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_interactive_message_dts, last_message_dts, medium, merchant_id, message_count, messages, participants, start_dts, unread_messages, visible].hash
|
301
|
+
[base_language_iso_code, closed, conversation_arn, conversation_uuid, customer_first_message_unresponded_to_dts, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_interactive_message_dts, last_message_dts, medium, merchant_id, message_count, messages, participants, sentiment, start_dts, unread_messages, visible].hash
|
293
302
|
end
|
294
303
|
|
295
304
|
# Builds the object from hash
|