ultracart_api 3.10.29 → 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 +6 -4
- data/docs/ConversationEventRRWeb.md +14 -0
- data/docs/ConversationMessage.md +1 -0
- data/docs/ConversationWebsocketMessage.md +1 -0
- data/lib/ultracart_api/models/conversation_event_rr_web.rb +273 -0
- data/lib/ultracart_api/models/conversation_message.rb +45 -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 +1 -0
- metadata +4 -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)
|
@@ -1167,6 +1168,7 @@ Not every change is committed to every SDK.
|
|
1167
1168
|
|
1168
1169
|
| Version | Date | Comments |
|
1169
1170
|
| --: | :-: | --- |
|
1171
|
+
| 3.10.30 | 08/01/2022 | conversation event refinement |
|
1170
1172
|
| 3.10.29 | 07/29/2022 | conversation development |
|
1171
1173
|
| 3.10.28 | 07/28/2022 | conversation bug fixes |
|
1172
1174
|
| 3.10.27 | 07/28/2022 | conversation message upload keys property |
|
@@ -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
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**media_urls** | **Array<String>** | | [optional]
|
11
11
|
**message_dts** | **String** | Message date/time | [optional]
|
12
12
|
**transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional]
|
13
|
+
**type** | **String** | Message type | [optional]
|
13
14
|
**upload_keys** | **Array<String>** | | [optional]
|
14
15
|
|
15
16
|
|
@@ -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]
|
@@ -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
|
@@ -29,8 +29,33 @@ module UltracartClient
|
|
29
29
|
|
30
30
|
attr_accessor :transport_statuses
|
31
31
|
|
32
|
+
# Message type
|
33
|
+
attr_accessor :type
|
34
|
+
|
32
35
|
attr_accessor :upload_keys
|
33
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
|
+
|
34
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
60
|
def self.attribute_map
|
36
61
|
{
|
@@ -41,6 +66,7 @@ module UltracartClient
|
|
41
66
|
:'media_urls' => :'media_urls',
|
42
67
|
:'message_dts' => :'message_dts',
|
43
68
|
:'transport_statuses' => :'transport_statuses',
|
69
|
+
:'type' => :'type',
|
44
70
|
:'upload_keys' => :'upload_keys'
|
45
71
|
}
|
46
72
|
end
|
@@ -55,6 +81,7 @@ module UltracartClient
|
|
55
81
|
:'media_urls' => :'Array<String>',
|
56
82
|
:'message_dts' => :'String',
|
57
83
|
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
|
84
|
+
:'type' => :'String',
|
58
85
|
:'upload_keys' => :'Array<String>'
|
59
86
|
}
|
60
87
|
end
|
@@ -99,6 +126,10 @@ module UltracartClient
|
|
99
126
|
end
|
100
127
|
end
|
101
128
|
|
129
|
+
if attributes.has_key?(:'type')
|
130
|
+
self.type = attributes[:'type']
|
131
|
+
end
|
132
|
+
|
102
133
|
if attributes.has_key?(:'upload_keys')
|
103
134
|
if (value = attributes[:'upload_keys']).is_a?(Array)
|
104
135
|
self.upload_keys = value
|
@@ -116,9 +147,21 @@ module UltracartClient
|
|
116
147
|
# Check to see if the all the properties in the model are valid
|
117
148
|
# @return true if the model is valid
|
118
149
|
def valid?
|
150
|
+
type_validator = EnumAttributeValidator.new('String', ['message', 'notice'])
|
151
|
+
return false unless type_validator.valid?(@type)
|
119
152
|
true
|
120
153
|
end
|
121
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
|
+
|
122
165
|
# Checks equality by comparing each attribute.
|
123
166
|
# @param [Object] Object to be compared
|
124
167
|
def ==(o)
|
@@ -131,6 +174,7 @@ module UltracartClient
|
|
131
174
|
media_urls == o.media_urls &&
|
132
175
|
message_dts == o.message_dts &&
|
133
176
|
transport_statuses == o.transport_statuses &&
|
177
|
+
type == o.type &&
|
134
178
|
upload_keys == o.upload_keys
|
135
179
|
end
|
136
180
|
|
@@ -143,7 +187,7 @@ module UltracartClient
|
|
143
187
|
# Calculates hash code according to all attributes.
|
144
188
|
# @return [Fixnum] Hash code
|
145
189
|
def hash
|
146
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, 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
|
147
191
|
end
|
148
192
|
|
149
193
|
# 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'
|
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
|
@@ -1041,6 +1042,7 @@ files:
|
|
1041
1042
|
- lib/ultracart_api/models/conversation_agent_auth.rb
|
1042
1043
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
1043
1044
|
- lib/ultracart_api/models/conversation_event_queue_position.rb
|
1045
|
+
- lib/ultracart_api/models/conversation_event_rr_web.rb
|
1044
1046
|
- lib/ultracart_api/models/conversation_message.rb
|
1045
1047
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
1046
1048
|
- lib/ultracart_api/models/conversation_multimedia_upload_url.rb
|