ultracart_api 3.10.27 → 3.10.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/docs/ConversationAgentAuth.md +1 -1
- data/docs/ConversationEventRRWeb.md +14 -0
- data/docs/ConversationMessage.md +2 -0
- data/docs/ConversationSummary.md +2 -0
- data/docs/ConversationTwilioAccount.md +9 -0
- data/docs/ConversationWebchatQueueStatus.md +1 -0
- data/docs/ConversationWebchatQueueStatusQueueEntry.md +1 -0
- data/docs/ConversationWebsocketMessage.md +1 -0
- data/lib/ultracart_api/models/conversation_agent_auth.rb +8 -8
- data/lib/ultracart_api/models/conversation_event_rr_web.rb +273 -0
- data/lib/ultracart_api/models/conversation_message.rb +54 -1
- data/lib/ultracart_api/models/conversation_summary.rb +23 -4
- data/lib/ultracart_api/models/conversation_twilio_account.rb +195 -0
- data/lib/ultracart_api/models/conversation_webchat_queue_status.rb +10 -1
- data/lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb +10 -1
- data/lib/ultracart_api/models/conversation_websocket_message.rb +14 -5
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc93521a0a056bf7a1d02b2ed41c94b855d229aaf1600f015e0457c129b615f
|
4
|
+
data.tar.gz: 18da6c0842fb94d6bcf4ee246f7d1189e0d0b33a517afd6db652e643a90d8528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3acca69d44ad1edcc5659323bd9bc76edb6b97cfa0d74f41a5ea7328e605b5c91ec6a33ee60529cc931e74c159442c6b0cae515b433965d80b96bde652d251cf
|
7
|
+
data.tar.gz: ccbf74dc34a2823b6add1637b171a4b33e1b4b38b4b00fabe83e11e9f0cfcfc1e622e2e74e214015d28391a6615bba307434aab3b4afef454326c622d0cba929
|
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.
|
10
|
+
- Package version: 3.10.30
|
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.
|
27
|
+
gem install ./ultracart_api-3.10.30.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.30.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.
|
35
|
+
gem 'ultracart_api', '~> 3.10.30'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -562,6 +562,7 @@ Class | Method | HTTP request | Description
|
|
562
562
|
- [UltracartClient::ConversationAgentAuth](docs/ConversationAgentAuth.md)
|
563
563
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
564
564
|
- [UltracartClient::ConversationEventQueuePosition](docs/ConversationEventQueuePosition.md)
|
565
|
+
- [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
|
565
566
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
566
567
|
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
567
568
|
- [UltracartClient::ConversationMultimediaUploadUrl](docs/ConversationMultimediaUploadUrl.md)
|
@@ -571,6 +572,7 @@ Class | Method | HTTP request | Description
|
|
571
572
|
- [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
|
572
573
|
- [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
|
573
574
|
- [UltracartClient::ConversationSummary](docs/ConversationSummary.md)
|
575
|
+
- [UltracartClient::ConversationTwilioAccount](docs/ConversationTwilioAccount.md)
|
574
576
|
- [UltracartClient::ConversationWebchatQueueStatus](docs/ConversationWebchatQueueStatus.md)
|
575
577
|
- [UltracartClient::ConversationWebchatQueueStatusAgent](docs/ConversationWebchatQueueStatusAgent.md)
|
576
578
|
- [UltracartClient::ConversationWebchatQueueStatusQueueEntry](docs/ConversationWebchatQueueStatusQueueEntry.md)
|
@@ -1166,6 +1168,9 @@ Not every change is committed to every SDK.
|
|
1166
1168
|
|
1167
1169
|
| Version | Date | Comments |
|
1168
1170
|
| --: | :-: | --- |
|
1171
|
+
| 3.10.30 | 08/01/2022 | conversation event refinement |
|
1172
|
+
| 3.10.29 | 07/29/2022 | conversation development |
|
1173
|
+
| 3.10.28 | 07/28/2022 | conversation bug fixes |
|
1169
1174
|
| 3.10.27 | 07/28/2022 | conversation message upload keys property |
|
1170
1175
|
| 3.10.26 | 07/26/2022 | conversations - queue statistics |
|
1171
1176
|
| 3.10.25 | 07/25/2022 | conversation development |
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**conversation_participant_name** | **String** | | [optional]
|
8
8
|
**jwt** | **String** | | [optional]
|
9
9
|
**merchant_id** | **String** | | [optional]
|
10
|
-
**
|
10
|
+
**twilio_accounts** | [**Array<ConversationTwilioAccount>**](ConversationTwilioAccount.md) | | [optional]
|
11
11
|
**websocket_url** | **String** | | [optional]
|
12
12
|
|
13
13
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# UltracartClient::ConversationEventRRWeb
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | **String** | | [optional]
|
7
|
+
**data_part** | **Integer** | | [optional]
|
8
|
+
**data_sha256** | **String** | | [optional]
|
9
|
+
**data_total_parts** | **Integer** | | [optional]
|
10
|
+
**data_total_sha256** | **String** | | [optional]
|
11
|
+
**event_index** | **Integer** | | [optional]
|
12
|
+
**type** | **String** | Type of event | [optional]
|
13
|
+
|
14
|
+
|
data/docs/ConversationMessage.md
CHANGED
@@ -6,9 +6,11 @@ Name | Type | Description | Notes
|
|
6
6
|
**author_conversation_participant_arn** | **String** | | [optional]
|
7
7
|
**author_conversation_participant_name** | **String** | | [optional]
|
8
8
|
**body** | **String** | | [optional]
|
9
|
+
**client_message_id** | **String** | | [optional]
|
9
10
|
**media_urls** | **Array<String>** | | [optional]
|
10
11
|
**message_dts** | **String** | Message date/time | [optional]
|
11
12
|
**transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional]
|
13
|
+
**type** | **String** | Message type | [optional]
|
12
14
|
**upload_keys** | **Array<String>** | | [optional]
|
13
15
|
|
14
16
|
|
data/docs/ConversationSummary.md
CHANGED
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
|
|
12
12
|
**last_message_dts** | **String** | Last message date/time | [optional]
|
13
13
|
**merchant_id** | **String** | | [optional]
|
14
14
|
**message_count** | **Integer** | | [optional]
|
15
|
+
**start_dts** | **String** | Start of the conversation date/time | [optional]
|
15
16
|
**unread_messages** | **BOOLEAN** | | [optional]
|
17
|
+
**visible** | **BOOLEAN** | | [optional]
|
16
18
|
|
17
19
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# UltracartClient::ConversationTwilioAccount
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**merchant_id** | **String** | | [optional]
|
7
|
+
**twilio_phone_numbers** | **Array<String>** | | [optional]
|
8
|
+
|
9
|
+
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
13
13
|
**customer_average_abandon_time_seconds** | **Integer** | | [optional]
|
14
14
|
**customer_average_chat_time_seconds** | **Integer** | | [optional]
|
15
15
|
**customer_average_hold_time_seconds** | **Integer** | | [optional]
|
16
|
+
**customer_chat_count** | **Integer** | | [optional]
|
16
17
|
**customer_waiting_count** | **Integer** | | [optional]
|
17
18
|
**customer_waiting_join_dts** | **String** | Date/time that the oldest person joined the queue | [optional]
|
18
19
|
**queue_entries** | [**Array<ConversationWebchatQueueStatusQueueEntry>**](ConversationWebchatQueueStatusQueueEntry.md) | | [optional]
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
**conversation_participant_arn** | **String** | | [optional]
|
7
7
|
**conversation_participant_name** | **String** | | [optional]
|
8
8
|
**conversation_webchat_queue_uuid** | **String** | | [optional]
|
9
|
+
**email** | **String** | | [optional]
|
9
10
|
**join_dts** | **String** | Date/time the customer joined the queue | [optional]
|
10
11
|
**question** | **String** | | [optional]
|
11
12
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**event_new_message** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
|
10
10
|
**event_queue_position** | [**ConversationEventQueuePosition**](ConversationEventQueuePosition.md) | | [optional]
|
11
11
|
**event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional]
|
12
|
+
**event_rrweb** | [**ConversationEventRRWeb**](ConversationEventRRWeb.md) | | [optional]
|
12
13
|
**event_type** | **String** | Type of event | [optional]
|
13
14
|
**event_updated_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
14
15
|
**message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
@@ -22,7 +22,7 @@ module UltracartClient
|
|
22
22
|
|
23
23
|
attr_accessor :merchant_id
|
24
24
|
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :twilio_accounts
|
26
26
|
|
27
27
|
attr_accessor :websocket_url
|
28
28
|
|
@@ -33,7 +33,7 @@ module UltracartClient
|
|
33
33
|
:'conversation_participant_name' => :'conversation_participant_name',
|
34
34
|
:'jwt' => :'jwt',
|
35
35
|
:'merchant_id' => :'merchant_id',
|
36
|
-
:'
|
36
|
+
:'twilio_accounts' => :'twilio_accounts',
|
37
37
|
:'websocket_url' => :'websocket_url'
|
38
38
|
}
|
39
39
|
end
|
@@ -45,7 +45,7 @@ module UltracartClient
|
|
45
45
|
:'conversation_participant_name' => :'String',
|
46
46
|
:'jwt' => :'String',
|
47
47
|
:'merchant_id' => :'String',
|
48
|
-
:'
|
48
|
+
:'twilio_accounts' => :'Array<ConversationTwilioAccount>',
|
49
49
|
:'websocket_url' => :'String'
|
50
50
|
}
|
51
51
|
end
|
@@ -74,9 +74,9 @@ module UltracartClient
|
|
74
74
|
self.merchant_id = attributes[:'merchant_id']
|
75
75
|
end
|
76
76
|
|
77
|
-
if attributes.has_key?(:'
|
78
|
-
if (value = attributes[:'
|
79
|
-
self.
|
77
|
+
if attributes.has_key?(:'twilio_accounts')
|
78
|
+
if (value = attributes[:'twilio_accounts']).is_a?(Array)
|
79
|
+
self.twilio_accounts = value
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
@@ -107,7 +107,7 @@ module UltracartClient
|
|
107
107
|
conversation_participant_name == o.conversation_participant_name &&
|
108
108
|
jwt == o.jwt &&
|
109
109
|
merchant_id == o.merchant_id &&
|
110
|
-
|
110
|
+
twilio_accounts == o.twilio_accounts &&
|
111
111
|
websocket_url == o.websocket_url
|
112
112
|
end
|
113
113
|
|
@@ -120,7 +120,7 @@ module UltracartClient
|
|
120
120
|
# Calculates hash code according to all attributes.
|
121
121
|
# @return [Fixnum] Hash code
|
122
122
|
def hash
|
123
|
-
[conversation_participant_arn, conversation_participant_name, jwt, merchant_id,
|
123
|
+
[conversation_participant_arn, conversation_participant_name, jwt, merchant_id, twilio_accounts, websocket_url].hash
|
124
124
|
end
|
125
125
|
|
126
126
|
# Builds the object from hash
|
@@ -0,0 +1,273 @@
|
|
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 ConversationEventRRWeb
|
17
|
+
attr_accessor :data
|
18
|
+
|
19
|
+
attr_accessor :data_part
|
20
|
+
|
21
|
+
attr_accessor :data_sha256
|
22
|
+
|
23
|
+
attr_accessor :data_total_parts
|
24
|
+
|
25
|
+
attr_accessor :data_total_sha256
|
26
|
+
|
27
|
+
attr_accessor :event_index
|
28
|
+
|
29
|
+
# Type of event
|
30
|
+
attr_accessor :type
|
31
|
+
|
32
|
+
class EnumAttributeValidator
|
33
|
+
attr_reader :datatype
|
34
|
+
attr_reader :allowable_values
|
35
|
+
|
36
|
+
def initialize(datatype, allowable_values)
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
38
|
+
case datatype.to_s
|
39
|
+
when /Integer/i
|
40
|
+
value.to_i
|
41
|
+
when /Float/i
|
42
|
+
value.to_f
|
43
|
+
else
|
44
|
+
value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def valid?(value)
|
50
|
+
!value || allowable_values.include?(value)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
55
|
+
def self.attribute_map
|
56
|
+
{
|
57
|
+
:'data' => :'data',
|
58
|
+
:'data_part' => :'data_part',
|
59
|
+
:'data_sha256' => :'data_sha256',
|
60
|
+
:'data_total_parts' => :'data_total_parts',
|
61
|
+
:'data_total_sha256' => :'data_total_sha256',
|
62
|
+
:'event_index' => :'event_index',
|
63
|
+
:'type' => :'type'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# Attribute type mapping.
|
68
|
+
def self.swagger_types
|
69
|
+
{
|
70
|
+
:'data' => :'String',
|
71
|
+
:'data_part' => :'Integer',
|
72
|
+
:'data_sha256' => :'String',
|
73
|
+
:'data_total_parts' => :'Integer',
|
74
|
+
:'data_total_sha256' => :'String',
|
75
|
+
:'event_index' => :'Integer',
|
76
|
+
:'type' => :'String'
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
# Initializes the object
|
81
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
82
|
+
def initialize(attributes = {})
|
83
|
+
return unless attributes.is_a?(Hash)
|
84
|
+
|
85
|
+
# convert string to symbol for hash key
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
87
|
+
|
88
|
+
if attributes.has_key?(:'data')
|
89
|
+
self.data = attributes[:'data']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.has_key?(:'data_part')
|
93
|
+
self.data_part = attributes[:'data_part']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'data_sha256')
|
97
|
+
self.data_sha256 = attributes[:'data_sha256']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.has_key?(:'data_total_parts')
|
101
|
+
self.data_total_parts = attributes[:'data_total_parts']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'data_total_sha256')
|
105
|
+
self.data_total_sha256 = attributes[:'data_total_sha256']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.has_key?(:'event_index')
|
109
|
+
self.event_index = attributes[:'event_index']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'type')
|
113
|
+
self.type = attributes[:'type']
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
118
|
+
# @return Array for valid properties with the reasons
|
119
|
+
def list_invalid_properties
|
120
|
+
invalid_properties = Array.new
|
121
|
+
invalid_properties
|
122
|
+
end
|
123
|
+
|
124
|
+
# Check to see if the all the properties in the model are valid
|
125
|
+
# @return true if the model is valid
|
126
|
+
def valid?
|
127
|
+
type_validator = EnumAttributeValidator.new('String', ['init', 'events'])
|
128
|
+
return false unless type_validator.valid?(@type)
|
129
|
+
true
|
130
|
+
end
|
131
|
+
|
132
|
+
# Custom attribute writer method checking allowed values (enum).
|
133
|
+
# @param [Object] type Object to be assigned
|
134
|
+
def type=(type)
|
135
|
+
validator = EnumAttributeValidator.new('String', ['init', 'events'])
|
136
|
+
unless validator.valid?(type)
|
137
|
+
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
138
|
+
end
|
139
|
+
@type = type
|
140
|
+
end
|
141
|
+
|
142
|
+
# Checks equality by comparing each attribute.
|
143
|
+
# @param [Object] Object to be compared
|
144
|
+
def ==(o)
|
145
|
+
return true if self.equal?(o)
|
146
|
+
self.class == o.class &&
|
147
|
+
data == o.data &&
|
148
|
+
data_part == o.data_part &&
|
149
|
+
data_sha256 == o.data_sha256 &&
|
150
|
+
data_total_parts == o.data_total_parts &&
|
151
|
+
data_total_sha256 == o.data_total_sha256 &&
|
152
|
+
event_index == o.event_index &&
|
153
|
+
type == o.type
|
154
|
+
end
|
155
|
+
|
156
|
+
# @see the `==` method
|
157
|
+
# @param [Object] Object to be compared
|
158
|
+
def eql?(o)
|
159
|
+
self == o
|
160
|
+
end
|
161
|
+
|
162
|
+
# Calculates hash code according to all attributes.
|
163
|
+
# @return [Fixnum] Hash code
|
164
|
+
def hash
|
165
|
+
[data, data_part, data_sha256, data_total_parts, data_total_sha256, event_index, type].hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Builds the object from hash
|
169
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
170
|
+
# @return [Object] Returns the model itself
|
171
|
+
def build_from_hash(attributes)
|
172
|
+
return nil unless attributes.is_a?(Hash)
|
173
|
+
self.class.swagger_types.each_pair do |key, type|
|
174
|
+
if type =~ /\AArray<(.*)>/i
|
175
|
+
# check to ensure the input is an array given that the attribute
|
176
|
+
# is documented as an array but the input is not
|
177
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
178
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
179
|
+
end
|
180
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
181
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
182
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
183
|
+
end
|
184
|
+
|
185
|
+
self
|
186
|
+
end
|
187
|
+
|
188
|
+
# Deserializes the data based on type
|
189
|
+
# @param string type Data type
|
190
|
+
# @param string value Value to be deserialized
|
191
|
+
# @return [Object] Deserialized data
|
192
|
+
def _deserialize(type, value)
|
193
|
+
case type.to_sym
|
194
|
+
when :DateTime
|
195
|
+
DateTime.parse(value)
|
196
|
+
when :Date
|
197
|
+
Date.parse(value)
|
198
|
+
when :String
|
199
|
+
value.to_s
|
200
|
+
when :Integer
|
201
|
+
value.to_i
|
202
|
+
when :Float
|
203
|
+
value.to_f
|
204
|
+
when :BOOLEAN
|
205
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
206
|
+
true
|
207
|
+
else
|
208
|
+
false
|
209
|
+
end
|
210
|
+
when :Object
|
211
|
+
# generic object (usually a Hash), return directly
|
212
|
+
value
|
213
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
214
|
+
inner_type = Regexp.last_match[:inner_type]
|
215
|
+
value.map { |v| _deserialize(inner_type, v) }
|
216
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
217
|
+
k_type = Regexp.last_match[:k_type]
|
218
|
+
v_type = Regexp.last_match[:v_type]
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each do |k, v|
|
221
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
else # model
|
225
|
+
temp_model = UltracartClient.const_get(type).new
|
226
|
+
temp_model.build_from_hash(value)
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
# Returns the string representation of the object
|
231
|
+
# @return [String] String presentation of the object
|
232
|
+
def to_s
|
233
|
+
to_hash.to_s
|
234
|
+
end
|
235
|
+
|
236
|
+
# to_body is an alias to to_hash (backward compatibility)
|
237
|
+
# @return [Hash] Returns the object in the form of hash
|
238
|
+
def to_body
|
239
|
+
to_hash
|
240
|
+
end
|
241
|
+
|
242
|
+
# Returns the object in the form of hash
|
243
|
+
# @return [Hash] Returns the object in the form of hash
|
244
|
+
def to_hash
|
245
|
+
hash = {}
|
246
|
+
self.class.attribute_map.each_pair do |attr, param|
|
247
|
+
value = self.send(attr)
|
248
|
+
next if value.nil?
|
249
|
+
hash[param] = _to_hash(value)
|
250
|
+
end
|
251
|
+
hash
|
252
|
+
end
|
253
|
+
|
254
|
+
# Outputs non-array value in the form of hash
|
255
|
+
# For object, use to_hash. Otherwise, just return the value
|
256
|
+
# @param [Object] value Any valid value
|
257
|
+
# @return [Hash] Returns the value in the form of hash
|
258
|
+
def _to_hash(value)
|
259
|
+
if value.is_a?(Array)
|
260
|
+
value.compact.map { |v| _to_hash(v) }
|
261
|
+
elsif value.is_a?(Hash)
|
262
|
+
{}.tap do |hash|
|
263
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
264
|
+
end
|
265
|
+
elsif value.respond_to? :to_hash
|
266
|
+
value.to_hash
|
267
|
+
else
|
268
|
+
value
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
end
|
273
|
+
end
|
@@ -20,6 +20,8 @@ module UltracartClient
|
|
20
20
|
|
21
21
|
attr_accessor :body
|
22
22
|
|
23
|
+
attr_accessor :client_message_id
|
24
|
+
|
23
25
|
attr_accessor :media_urls
|
24
26
|
|
25
27
|
# Message date/time
|
@@ -27,17 +29,44 @@ module UltracartClient
|
|
27
29
|
|
28
30
|
attr_accessor :transport_statuses
|
29
31
|
|
32
|
+
# Message type
|
33
|
+
attr_accessor :type
|
34
|
+
|
30
35
|
attr_accessor :upload_keys
|
31
36
|
|
37
|
+
class EnumAttributeValidator
|
38
|
+
attr_reader :datatype
|
39
|
+
attr_reader :allowable_values
|
40
|
+
|
41
|
+
def initialize(datatype, allowable_values)
|
42
|
+
@allowable_values = allowable_values.map do |value|
|
43
|
+
case datatype.to_s
|
44
|
+
when /Integer/i
|
45
|
+
value.to_i
|
46
|
+
when /Float/i
|
47
|
+
value.to_f
|
48
|
+
else
|
49
|
+
value
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def valid?(value)
|
55
|
+
!value || allowable_values.include?(value)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
32
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
60
|
def self.attribute_map
|
34
61
|
{
|
35
62
|
:'author_conversation_participant_arn' => :'author_conversation_participant_arn',
|
36
63
|
:'author_conversation_participant_name' => :'author_conversation_participant_name',
|
37
64
|
:'body' => :'body',
|
65
|
+
:'client_message_id' => :'client_message_id',
|
38
66
|
:'media_urls' => :'media_urls',
|
39
67
|
:'message_dts' => :'message_dts',
|
40
68
|
:'transport_statuses' => :'transport_statuses',
|
69
|
+
:'type' => :'type',
|
41
70
|
:'upload_keys' => :'upload_keys'
|
42
71
|
}
|
43
72
|
end
|
@@ -48,9 +77,11 @@ module UltracartClient
|
|
48
77
|
:'author_conversation_participant_arn' => :'String',
|
49
78
|
:'author_conversation_participant_name' => :'String',
|
50
79
|
:'body' => :'String',
|
80
|
+
:'client_message_id' => :'String',
|
51
81
|
:'media_urls' => :'Array<String>',
|
52
82
|
:'message_dts' => :'String',
|
53
83
|
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
|
84
|
+
:'type' => :'String',
|
54
85
|
:'upload_keys' => :'Array<String>'
|
55
86
|
}
|
56
87
|
end
|
@@ -75,6 +106,10 @@ module UltracartClient
|
|
75
106
|
self.body = attributes[:'body']
|
76
107
|
end
|
77
108
|
|
109
|
+
if attributes.has_key?(:'client_message_id')
|
110
|
+
self.client_message_id = attributes[:'client_message_id']
|
111
|
+
end
|
112
|
+
|
78
113
|
if attributes.has_key?(:'media_urls')
|
79
114
|
if (value = attributes[:'media_urls']).is_a?(Array)
|
80
115
|
self.media_urls = value
|
@@ -91,6 +126,10 @@ module UltracartClient
|
|
91
126
|
end
|
92
127
|
end
|
93
128
|
|
129
|
+
if attributes.has_key?(:'type')
|
130
|
+
self.type = attributes[:'type']
|
131
|
+
end
|
132
|
+
|
94
133
|
if attributes.has_key?(:'upload_keys')
|
95
134
|
if (value = attributes[:'upload_keys']).is_a?(Array)
|
96
135
|
self.upload_keys = value
|
@@ -108,9 +147,21 @@ module UltracartClient
|
|
108
147
|
# Check to see if the all the properties in the model are valid
|
109
148
|
# @return true if the model is valid
|
110
149
|
def valid?
|
150
|
+
type_validator = EnumAttributeValidator.new('String', ['message', 'notice'])
|
151
|
+
return false unless type_validator.valid?(@type)
|
111
152
|
true
|
112
153
|
end
|
113
154
|
|
155
|
+
# Custom attribute writer method checking allowed values (enum).
|
156
|
+
# @param [Object] type Object to be assigned
|
157
|
+
def type=(type)
|
158
|
+
validator = EnumAttributeValidator.new('String', ['message', 'notice'])
|
159
|
+
unless validator.valid?(type)
|
160
|
+
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
161
|
+
end
|
162
|
+
@type = type
|
163
|
+
end
|
164
|
+
|
114
165
|
# Checks equality by comparing each attribute.
|
115
166
|
# @param [Object] Object to be compared
|
116
167
|
def ==(o)
|
@@ -119,9 +170,11 @@ module UltracartClient
|
|
119
170
|
author_conversation_participant_arn == o.author_conversation_participant_arn &&
|
120
171
|
author_conversation_participant_name == o.author_conversation_participant_name &&
|
121
172
|
body == o.body &&
|
173
|
+
client_message_id == o.client_message_id &&
|
122
174
|
media_urls == o.media_urls &&
|
123
175
|
message_dts == o.message_dts &&
|
124
176
|
transport_statuses == o.transport_statuses &&
|
177
|
+
type == o.type &&
|
125
178
|
upload_keys == o.upload_keys
|
126
179
|
end
|
127
180
|
|
@@ -134,7 +187,7 @@ module UltracartClient
|
|
134
187
|
# Calculates hash code according to all attributes.
|
135
188
|
# @return [Fixnum] Hash code
|
136
189
|
def hash
|
137
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts, transport_statuses, upload_keys].hash
|
190
|
+
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, media_urls, message_dts, transport_statuses, type, upload_keys].hash
|
138
191
|
end
|
139
192
|
|
140
193
|
# Builds the object from hash
|
@@ -33,8 +33,13 @@ module UltracartClient
|
|
33
33
|
|
34
34
|
attr_accessor :message_count
|
35
35
|
|
36
|
+
# Start of the conversation date/time
|
37
|
+
attr_accessor :start_dts
|
38
|
+
|
36
39
|
attr_accessor :unread_messages
|
37
40
|
|
41
|
+
attr_accessor :visible
|
42
|
+
|
38
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
44
|
def self.attribute_map
|
40
45
|
{
|
@@ -47,7 +52,9 @@ module UltracartClient
|
|
47
52
|
:'last_message_dts' => :'last_message_dts',
|
48
53
|
:'merchant_id' => :'merchant_id',
|
49
54
|
:'message_count' => :'message_count',
|
50
|
-
:'
|
55
|
+
:'start_dts' => :'start_dts',
|
56
|
+
:'unread_messages' => :'unread_messages',
|
57
|
+
:'visible' => :'visible'
|
51
58
|
}
|
52
59
|
end
|
53
60
|
|
@@ -63,7 +70,9 @@ module UltracartClient
|
|
63
70
|
:'last_message_dts' => :'String',
|
64
71
|
:'merchant_id' => :'String',
|
65
72
|
:'message_count' => :'Integer',
|
66
|
-
:'
|
73
|
+
:'start_dts' => :'String',
|
74
|
+
:'unread_messages' => :'BOOLEAN',
|
75
|
+
:'visible' => :'BOOLEAN'
|
67
76
|
}
|
68
77
|
end
|
69
78
|
|
@@ -111,9 +120,17 @@ module UltracartClient
|
|
111
120
|
self.message_count = attributes[:'message_count']
|
112
121
|
end
|
113
122
|
|
123
|
+
if attributes.has_key?(:'start_dts')
|
124
|
+
self.start_dts = attributes[:'start_dts']
|
125
|
+
end
|
126
|
+
|
114
127
|
if attributes.has_key?(:'unread_messages')
|
115
128
|
self.unread_messages = attributes[:'unread_messages']
|
116
129
|
end
|
130
|
+
|
131
|
+
if attributes.has_key?(:'visible')
|
132
|
+
self.visible = attributes[:'visible']
|
133
|
+
end
|
117
134
|
end
|
118
135
|
|
119
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -143,7 +160,9 @@ module UltracartClient
|
|
143
160
|
last_message_dts == o.last_message_dts &&
|
144
161
|
merchant_id == o.merchant_id &&
|
145
162
|
message_count == o.message_count &&
|
146
|
-
|
163
|
+
start_dts == o.start_dts &&
|
164
|
+
unread_messages == o.unread_messages &&
|
165
|
+
visible == o.visible
|
147
166
|
end
|
148
167
|
|
149
168
|
# @see the `==` method
|
@@ -155,7 +174,7 @@ module UltracartClient
|
|
155
174
|
# Calculates hash code according to all attributes.
|
156
175
|
# @return [Fixnum] Hash code
|
157
176
|
def hash
|
158
|
-
[closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, unread_messages].hash
|
177
|
+
[closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, start_dts, unread_messages, visible].hash
|
159
178
|
end
|
160
179
|
|
161
180
|
# Builds the object from hash
|
@@ -0,0 +1,195 @@
|
|
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 ConversationTwilioAccount
|
17
|
+
attr_accessor :merchant_id
|
18
|
+
|
19
|
+
attr_accessor :twilio_phone_numbers
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'merchant_id' => :'merchant_id',
|
25
|
+
:'twilio_phone_numbers' => :'twilio_phone_numbers'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'merchant_id' => :'String',
|
33
|
+
:'twilio_phone_numbers' => :'Array<String>'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Initializes the object
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
if attributes.has_key?(:'merchant_id')
|
46
|
+
self.merchant_id = attributes[:'merchant_id']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'twilio_phone_numbers')
|
50
|
+
if (value = attributes[:'twilio_phone_numbers']).is_a?(Array)
|
51
|
+
self.twilio_phone_numbers = value
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
+
# @return Array for valid properties with the reasons
|
58
|
+
def list_invalid_properties
|
59
|
+
invalid_properties = Array.new
|
60
|
+
invalid_properties
|
61
|
+
end
|
62
|
+
|
63
|
+
# Check to see if the all the properties in the model are valid
|
64
|
+
# @return true if the model is valid
|
65
|
+
def valid?
|
66
|
+
true
|
67
|
+
end
|
68
|
+
|
69
|
+
# Checks equality by comparing each attribute.
|
70
|
+
# @param [Object] Object to be compared
|
71
|
+
def ==(o)
|
72
|
+
return true if self.equal?(o)
|
73
|
+
self.class == o.class &&
|
74
|
+
merchant_id == o.merchant_id &&
|
75
|
+
twilio_phone_numbers == o.twilio_phone_numbers
|
76
|
+
end
|
77
|
+
|
78
|
+
# @see the `==` method
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def eql?(o)
|
81
|
+
self == o
|
82
|
+
end
|
83
|
+
|
84
|
+
# Calculates hash code according to all attributes.
|
85
|
+
# @return [Fixnum] Hash code
|
86
|
+
def hash
|
87
|
+
[merchant_id, twilio_phone_numbers].hash
|
88
|
+
end
|
89
|
+
|
90
|
+
# Builds the object from hash
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
+
# @return [Object] Returns the model itself
|
93
|
+
def build_from_hash(attributes)
|
94
|
+
return nil unless attributes.is_a?(Hash)
|
95
|
+
self.class.swagger_types.each_pair do |key, type|
|
96
|
+
if type =~ /\AArray<(.*)>/i
|
97
|
+
# check to ensure the input is an array given that the attribute
|
98
|
+
# is documented as an array but the input is not
|
99
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
101
|
+
end
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
104
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
105
|
+
end
|
106
|
+
|
107
|
+
self
|
108
|
+
end
|
109
|
+
|
110
|
+
# Deserializes the data based on type
|
111
|
+
# @param string type Data type
|
112
|
+
# @param string value Value to be deserialized
|
113
|
+
# @return [Object] Deserialized data
|
114
|
+
def _deserialize(type, value)
|
115
|
+
case type.to_sym
|
116
|
+
when :DateTime
|
117
|
+
DateTime.parse(value)
|
118
|
+
when :Date
|
119
|
+
Date.parse(value)
|
120
|
+
when :String
|
121
|
+
value.to_s
|
122
|
+
when :Integer
|
123
|
+
value.to_i
|
124
|
+
when :Float
|
125
|
+
value.to_f
|
126
|
+
when :BOOLEAN
|
127
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
128
|
+
true
|
129
|
+
else
|
130
|
+
false
|
131
|
+
end
|
132
|
+
when :Object
|
133
|
+
# generic object (usually a Hash), return directly
|
134
|
+
value
|
135
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
136
|
+
inner_type = Regexp.last_match[:inner_type]
|
137
|
+
value.map { |v| _deserialize(inner_type, v) }
|
138
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
139
|
+
k_type = Regexp.last_match[:k_type]
|
140
|
+
v_type = Regexp.last_match[:v_type]
|
141
|
+
{}.tap do |hash|
|
142
|
+
value.each do |k, v|
|
143
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
else # model
|
147
|
+
temp_model = UltracartClient.const_get(type).new
|
148
|
+
temp_model.build_from_hash(value)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# Returns the string representation of the object
|
153
|
+
# @return [String] String presentation of the object
|
154
|
+
def to_s
|
155
|
+
to_hash.to_s
|
156
|
+
end
|
157
|
+
|
158
|
+
# to_body is an alias to to_hash (backward compatibility)
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
160
|
+
def to_body
|
161
|
+
to_hash
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the object in the form of hash
|
165
|
+
# @return [Hash] Returns the object in the form of hash
|
166
|
+
def to_hash
|
167
|
+
hash = {}
|
168
|
+
self.class.attribute_map.each_pair do |attr, param|
|
169
|
+
value = self.send(attr)
|
170
|
+
next if value.nil?
|
171
|
+
hash[param] = _to_hash(value)
|
172
|
+
end
|
173
|
+
hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Outputs non-array value in the form of hash
|
177
|
+
# For object, use to_hash. Otherwise, just return the value
|
178
|
+
# @param [Object] value Any valid value
|
179
|
+
# @return [Hash] Returns the value in the form of hash
|
180
|
+
def _to_hash(value)
|
181
|
+
if value.is_a?(Array)
|
182
|
+
value.compact.map { |v| _to_hash(v) }
|
183
|
+
elsif value.is_a?(Hash)
|
184
|
+
{}.tap do |hash|
|
185
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
186
|
+
end
|
187
|
+
elsif value.respond_to? :to_hash
|
188
|
+
value.to_hash
|
189
|
+
else
|
190
|
+
value
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
end
|
195
|
+
end
|
@@ -34,6 +34,8 @@ module UltracartClient
|
|
34
34
|
|
35
35
|
attr_accessor :customer_average_hold_time_seconds
|
36
36
|
|
37
|
+
attr_accessor :customer_chat_count
|
38
|
+
|
37
39
|
attr_accessor :customer_waiting_count
|
38
40
|
|
39
41
|
# Date/time that the oldest person joined the queue
|
@@ -56,6 +58,7 @@ module UltracartClient
|
|
56
58
|
:'customer_average_abandon_time_seconds' => :'customer_average_abandon_time_seconds',
|
57
59
|
:'customer_average_chat_time_seconds' => :'customer_average_chat_time_seconds',
|
58
60
|
:'customer_average_hold_time_seconds' => :'customer_average_hold_time_seconds',
|
61
|
+
:'customer_chat_count' => :'customer_chat_count',
|
59
62
|
:'customer_waiting_count' => :'customer_waiting_count',
|
60
63
|
:'customer_waiting_join_dts' => :'customer_waiting_join_dts',
|
61
64
|
:'queue_entries' => :'queue_entries',
|
@@ -76,6 +79,7 @@ module UltracartClient
|
|
76
79
|
:'customer_average_abandon_time_seconds' => :'Integer',
|
77
80
|
:'customer_average_chat_time_seconds' => :'Integer',
|
78
81
|
:'customer_average_hold_time_seconds' => :'Integer',
|
82
|
+
:'customer_chat_count' => :'Integer',
|
79
83
|
:'customer_waiting_count' => :'Integer',
|
80
84
|
:'customer_waiting_join_dts' => :'String',
|
81
85
|
:'queue_entries' => :'Array<ConversationWebchatQueueStatusQueueEntry>',
|
@@ -133,6 +137,10 @@ module UltracartClient
|
|
133
137
|
self.customer_average_hold_time_seconds = attributes[:'customer_average_hold_time_seconds']
|
134
138
|
end
|
135
139
|
|
140
|
+
if attributes.has_key?(:'customer_chat_count')
|
141
|
+
self.customer_chat_count = attributes[:'customer_chat_count']
|
142
|
+
end
|
143
|
+
|
136
144
|
if attributes.has_key?(:'customer_waiting_count')
|
137
145
|
self.customer_waiting_count = attributes[:'customer_waiting_count']
|
138
146
|
end
|
@@ -180,6 +188,7 @@ module UltracartClient
|
|
180
188
|
customer_average_abandon_time_seconds == o.customer_average_abandon_time_seconds &&
|
181
189
|
customer_average_chat_time_seconds == o.customer_average_chat_time_seconds &&
|
182
190
|
customer_average_hold_time_seconds == o.customer_average_hold_time_seconds &&
|
191
|
+
customer_chat_count == o.customer_chat_count &&
|
183
192
|
customer_waiting_count == o.customer_waiting_count &&
|
184
193
|
customer_waiting_join_dts == o.customer_waiting_join_dts &&
|
185
194
|
queue_entries == o.queue_entries &&
|
@@ -195,7 +204,7 @@ module UltracartClient
|
|
195
204
|
# Calculates hash code according to all attributes.
|
196
205
|
# @return [Fixnum] Hash code
|
197
206
|
def hash
|
198
|
-
[agent_available_count, agent_busy_count, agent_count, agent_unavailable_count, agents, customer_abandon_count, customer_active_count, customer_average_abandon_time_seconds, customer_average_chat_time_seconds, customer_average_hold_time_seconds, customer_waiting_count, customer_waiting_join_dts, queue_entries, queue_name].hash
|
207
|
+
[agent_available_count, agent_busy_count, agent_count, agent_unavailable_count, agents, customer_abandon_count, customer_active_count, customer_average_abandon_time_seconds, customer_average_chat_time_seconds, customer_average_hold_time_seconds, customer_chat_count, customer_waiting_count, customer_waiting_join_dts, queue_entries, queue_name].hash
|
199
208
|
end
|
200
209
|
|
201
210
|
# Builds the object from hash
|
@@ -20,6 +20,8 @@ module UltracartClient
|
|
20
20
|
|
21
21
|
attr_accessor :conversation_webchat_queue_uuid
|
22
22
|
|
23
|
+
attr_accessor :email
|
24
|
+
|
23
25
|
# Date/time the customer joined the queue
|
24
26
|
attr_accessor :join_dts
|
25
27
|
|
@@ -31,6 +33,7 @@ module UltracartClient
|
|
31
33
|
:'conversation_participant_arn' => :'conversation_participant_arn',
|
32
34
|
:'conversation_participant_name' => :'conversation_participant_name',
|
33
35
|
:'conversation_webchat_queue_uuid' => :'conversation_webchat_queue_uuid',
|
36
|
+
:'email' => :'email',
|
34
37
|
:'join_dts' => :'join_dts',
|
35
38
|
:'question' => :'question'
|
36
39
|
}
|
@@ -42,6 +45,7 @@ module UltracartClient
|
|
42
45
|
:'conversation_participant_arn' => :'String',
|
43
46
|
:'conversation_participant_name' => :'String',
|
44
47
|
:'conversation_webchat_queue_uuid' => :'String',
|
48
|
+
:'email' => :'String',
|
45
49
|
:'join_dts' => :'String',
|
46
50
|
:'question' => :'String'
|
47
51
|
}
|
@@ -67,6 +71,10 @@ module UltracartClient
|
|
67
71
|
self.conversation_webchat_queue_uuid = attributes[:'conversation_webchat_queue_uuid']
|
68
72
|
end
|
69
73
|
|
74
|
+
if attributes.has_key?(:'email')
|
75
|
+
self.email = attributes[:'email']
|
76
|
+
end
|
77
|
+
|
70
78
|
if attributes.has_key?(:'join_dts')
|
71
79
|
self.join_dts = attributes[:'join_dts']
|
72
80
|
end
|
@@ -97,6 +105,7 @@ module UltracartClient
|
|
97
105
|
conversation_participant_arn == o.conversation_participant_arn &&
|
98
106
|
conversation_participant_name == o.conversation_participant_name &&
|
99
107
|
conversation_webchat_queue_uuid == o.conversation_webchat_queue_uuid &&
|
108
|
+
email == o.email &&
|
100
109
|
join_dts == o.join_dts &&
|
101
110
|
question == o.question
|
102
111
|
end
|
@@ -110,7 +119,7 @@ module UltracartClient
|
|
110
119
|
# Calculates hash code according to all attributes.
|
111
120
|
# @return [Fixnum] Hash code
|
112
121
|
def hash
|
113
|
-
[conversation_participant_arn, conversation_participant_name, conversation_webchat_queue_uuid, join_dts, question].hash
|
122
|
+
[conversation_participant_arn, conversation_participant_name, conversation_webchat_queue_uuid, email, join_dts, question].hash
|
114
123
|
end
|
115
124
|
|
116
125
|
# Builds the object from hash
|
@@ -27,6 +27,8 @@ module UltracartClient
|
|
27
27
|
|
28
28
|
attr_accessor :event_queue_status_update
|
29
29
|
|
30
|
+
attr_accessor :event_rrweb
|
31
|
+
|
30
32
|
# Type of event
|
31
33
|
attr_accessor :event_type
|
32
34
|
|
@@ -68,6 +70,7 @@ module UltracartClient
|
|
68
70
|
:'event_new_message' => :'event_new_message',
|
69
71
|
:'event_queue_position' => :'event_queue_position',
|
70
72
|
:'event_queue_status_update' => :'event_queue_status_update',
|
73
|
+
:'event_rrweb' => :'event_rrweb',
|
71
74
|
:'event_type' => :'event_type',
|
72
75
|
:'event_updated_message' => :'event_updated_message',
|
73
76
|
:'message' => :'message',
|
@@ -84,6 +87,7 @@ module UltracartClient
|
|
84
87
|
:'event_new_message' => :'ConversationSummary',
|
85
88
|
:'event_queue_position' => :'ConversationEventQueuePosition',
|
86
89
|
:'event_queue_status_update' => :'ConversationWebchatQueueStatus',
|
90
|
+
:'event_rrweb' => :'ConversationEventRRWeb',
|
87
91
|
:'event_type' => :'String',
|
88
92
|
:'event_updated_message' => :'ConversationMessage',
|
89
93
|
:'message' => :'ConversationMessage',
|
@@ -123,6 +127,10 @@ module UltracartClient
|
|
123
127
|
self.event_queue_status_update = attributes[:'event_queue_status_update']
|
124
128
|
end
|
125
129
|
|
130
|
+
if attributes.has_key?(:'event_rrweb')
|
131
|
+
self.event_rrweb = attributes[:'event_rrweb']
|
132
|
+
end
|
133
|
+
|
126
134
|
if attributes.has_key?(:'event_type')
|
127
135
|
self.event_type = attributes[:'event_type']
|
128
136
|
end
|
@@ -150,9 +158,9 @@ module UltracartClient
|
|
150
158
|
# Check to see if the all the properties in the model are valid
|
151
159
|
# @return true if the model is valid
|
152
160
|
def valid?
|
153
|
-
event_type_validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update'])
|
161
|
+
event_type_validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb'])
|
154
162
|
return false unless event_type_validator.valid?(@event_type)
|
155
|
-
type_validator = EnumAttributeValidator.new('String', ['message', 'event', 'ping'])
|
163
|
+
type_validator = EnumAttributeValidator.new('String', ['message', 'event', 'ping', 'check queue position'])
|
156
164
|
return false unless type_validator.valid?(@type)
|
157
165
|
true
|
158
166
|
end
|
@@ -160,7 +168,7 @@ module UltracartClient
|
|
160
168
|
# Custom attribute writer method checking allowed values (enum).
|
161
169
|
# @param [Object] event_type Object to be assigned
|
162
170
|
def event_type=(event_type)
|
163
|
-
validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update'])
|
171
|
+
validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb'])
|
164
172
|
unless validator.valid?(event_type)
|
165
173
|
fail ArgumentError, 'invalid value for "event_type", must be one of #{validator.allowable_values}.'
|
166
174
|
end
|
@@ -170,7 +178,7 @@ module UltracartClient
|
|
170
178
|
# Custom attribute writer method checking allowed values (enum).
|
171
179
|
# @param [Object] type Object to be assigned
|
172
180
|
def type=(type)
|
173
|
-
validator = EnumAttributeValidator.new('String', ['message', 'event', 'ping'])
|
181
|
+
validator = EnumAttributeValidator.new('String', ['message', 'event', 'ping', 'check queue position'])
|
174
182
|
unless validator.valid?(type)
|
175
183
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
176
184
|
end
|
@@ -188,6 +196,7 @@ module UltracartClient
|
|
188
196
|
event_new_message == o.event_new_message &&
|
189
197
|
event_queue_position == o.event_queue_position &&
|
190
198
|
event_queue_status_update == o.event_queue_status_update &&
|
199
|
+
event_rrweb == o.event_rrweb &&
|
191
200
|
event_type == o.event_type &&
|
192
201
|
event_updated_message == o.event_updated_message &&
|
193
202
|
message == o.message &&
|
@@ -203,7 +212,7 @@ module UltracartClient
|
|
203
212
|
# Calculates hash code according to all attributes.
|
204
213
|
# @return [Fixnum] Hash code
|
205
214
|
def hash
|
206
|
-
[conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_queue_position, event_queue_status_update, event_type, event_updated_message, message, type].hash
|
215
|
+
[conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_queue_position, event_queue_status_update, event_rrweb, event_type, event_updated_message, message, type].hash
|
207
216
|
end
|
208
217
|
|
209
218
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -138,6 +138,7 @@ require 'ultracart_api/models/conversation'
|
|
138
138
|
require 'ultracart_api/models/conversation_agent_auth'
|
139
139
|
require 'ultracart_api/models/conversation_agent_auth_response'
|
140
140
|
require 'ultracart_api/models/conversation_event_queue_position'
|
141
|
+
require 'ultracart_api/models/conversation_event_rr_web'
|
141
142
|
require 'ultracart_api/models/conversation_message'
|
142
143
|
require 'ultracart_api/models/conversation_message_transport_status'
|
143
144
|
require 'ultracart_api/models/conversation_multimedia_upload_url'
|
@@ -147,6 +148,7 @@ require 'ultracart_api/models/conversation_response'
|
|
147
148
|
require 'ultracart_api/models/conversation_start_request'
|
148
149
|
require 'ultracart_api/models/conversation_start_response'
|
149
150
|
require 'ultracart_api/models/conversation_summary'
|
151
|
+
require 'ultracart_api/models/conversation_twilio_account'
|
150
152
|
require 'ultracart_api/models/conversation_webchat_queue_status'
|
151
153
|
require 'ultracart_api/models/conversation_webchat_queue_status_agent'
|
152
154
|
require 'ultracart_api/models/conversation_webchat_queue_status_queue_entry'
|
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.
|
4
|
+
version: 3.10.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -348,6 +348,7 @@ files:
|
|
348
348
|
- docs/ConversationAgentAuthResponse.md
|
349
349
|
- docs/ConversationApi.md
|
350
350
|
- docs/ConversationEventQueuePosition.md
|
351
|
+
- docs/ConversationEventRRWeb.md
|
351
352
|
- docs/ConversationMessage.md
|
352
353
|
- docs/ConversationMessageTransportStatus.md
|
353
354
|
- docs/ConversationMultimediaUploadUrl.md
|
@@ -357,6 +358,7 @@ files:
|
|
357
358
|
- docs/ConversationStartRequest.md
|
358
359
|
- docs/ConversationStartResponse.md
|
359
360
|
- docs/ConversationSummary.md
|
361
|
+
- docs/ConversationTwilioAccount.md
|
360
362
|
- docs/ConversationWebchatQueueStatus.md
|
361
363
|
- docs/ConversationWebchatQueueStatusAgent.md
|
362
364
|
- docs/ConversationWebchatQueueStatusQueueEntry.md
|
@@ -1040,6 +1042,7 @@ files:
|
|
1040
1042
|
- lib/ultracart_api/models/conversation_agent_auth.rb
|
1041
1043
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
1042
1044
|
- lib/ultracart_api/models/conversation_event_queue_position.rb
|
1045
|
+
- lib/ultracart_api/models/conversation_event_rr_web.rb
|
1043
1046
|
- lib/ultracart_api/models/conversation_message.rb
|
1044
1047
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
1045
1048
|
- lib/ultracart_api/models/conversation_multimedia_upload_url.rb
|
@@ -1049,6 +1052,7 @@ files:
|
|
1049
1052
|
- lib/ultracart_api/models/conversation_start_request.rb
|
1050
1053
|
- lib/ultracart_api/models/conversation_start_response.rb
|
1051
1054
|
- lib/ultracart_api/models/conversation_summary.rb
|
1055
|
+
- lib/ultracart_api/models/conversation_twilio_account.rb
|
1052
1056
|
- lib/ultracart_api/models/conversation_webchat_queue_status.rb
|
1053
1057
|
- lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb
|
1054
1058
|
- lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb
|