ultracart_api 3.10.79 → 3.10.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +20 -4
- data/docs/ConversationApi.md +308 -2
- data/docs/ConversationCannedMessage.md +1 -1
- data/docs/ConversationDepartment.md +12 -0
- data/docs/ConversationDepartmentResponse.md +12 -0
- data/docs/ConversationDepartmentSettings.md +7 -0
- data/docs/ConversationDepartmentsResponse.md +12 -0
- data/docs/ConversationEngagement.md +14 -0
- data/docs/ConversationEngagementEquation.md +7 -0
- data/docs/ConversationEngagementResponse.md +12 -0
- data/docs/ConversationEngagementsResponse.md +12 -0
- data/docs/ConversationJoinRequest.md +8 -0
- data/docs/ConversationParticipant.md +2 -0
- data/docs/ConversationWebchatQueueStatusQueueEntry.md +1 -0
- data/lib/ultracart_api/api/conversation_api.rb +333 -1
- data/lib/ultracart_api/models/conversation_canned_message.rb +1 -1
- data/lib/ultracart_api/models/conversation_department.rb +220 -0
- data/lib/ultracart_api/models/conversation_department_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_department_settings.rb +175 -0
- data/lib/ultracart_api/models/conversation_departments_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_engagement.rb +240 -0
- data/lib/ultracart_api/models/conversation_engagement_equation.rb +175 -0
- data/lib/ultracart_api/models/conversation_engagement_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_engagements_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_join_request.rb +184 -0
- data/lib/ultracart_api/models/conversation_participant.rb +19 -1
- data/lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb +10 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +9 -0
- metadata +20 -2
@@ -0,0 +1,223 @@
|
|
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 ConversationEngagementsResponse
|
17
|
+
attr_accessor :conversation_engagements
|
18
|
+
|
19
|
+
attr_accessor :error
|
20
|
+
|
21
|
+
attr_accessor :metadata
|
22
|
+
|
23
|
+
# Indicates if API call was successful
|
24
|
+
attr_accessor :success
|
25
|
+
|
26
|
+
attr_accessor :warning
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'conversation_engagements' => :'conversation_engagements',
|
32
|
+
:'error' => :'error',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'success' => :'success',
|
35
|
+
:'warning' => :'warning'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'conversation_engagements' => :'Array<ConversationEngagement>',
|
43
|
+
:'error' => :'Error',
|
44
|
+
:'metadata' => :'ResponseMetadata',
|
45
|
+
:'success' => :'BOOLEAN',
|
46
|
+
:'warning' => :'Warning'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.has_key?(:'conversation_engagements')
|
59
|
+
if (value = attributes[:'conversation_engagements']).is_a?(Array)
|
60
|
+
self.conversation_engagements = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.has_key?(:'error')
|
65
|
+
self.error = attributes[:'error']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'metadata')
|
69
|
+
self.metadata = attributes[:'metadata']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'success')
|
73
|
+
self.success = attributes[:'success']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'warning')
|
77
|
+
self.warning = attributes[:'warning']
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
invalid_properties
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
def valid?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
conversation_engagements == o.conversation_engagements &&
|
100
|
+
error == o.error &&
|
101
|
+
metadata == o.metadata &&
|
102
|
+
success == o.success &&
|
103
|
+
warning == o.warning
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(o)
|
109
|
+
self == o
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Fixnum] Hash code
|
114
|
+
def hash
|
115
|
+
[conversation_engagements, error, metadata, success, warning].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Builds the object from hash
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
# @return [Object] Returns the model itself
|
121
|
+
def build_from_hash(attributes)
|
122
|
+
return nil unless attributes.is_a?(Hash)
|
123
|
+
self.class.swagger_types.each_pair do |key, type|
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
133
|
+
end
|
134
|
+
|
135
|
+
self
|
136
|
+
end
|
137
|
+
|
138
|
+
# Deserializes the data based on type
|
139
|
+
# @param string type Data type
|
140
|
+
# @param string value Value to be deserialized
|
141
|
+
# @return [Object] Deserialized data
|
142
|
+
def _deserialize(type, value)
|
143
|
+
case type.to_sym
|
144
|
+
when :DateTime
|
145
|
+
DateTime.parse(value)
|
146
|
+
when :Date
|
147
|
+
Date.parse(value)
|
148
|
+
when :String
|
149
|
+
value.to_s
|
150
|
+
when :Integer
|
151
|
+
value.to_i
|
152
|
+
when :Float
|
153
|
+
value.to_f
|
154
|
+
when :BOOLEAN
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
+
true
|
157
|
+
else
|
158
|
+
false
|
159
|
+
end
|
160
|
+
when :Object
|
161
|
+
# generic object (usually a Hash), return directly
|
162
|
+
value
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
169
|
+
{}.tap do |hash|
|
170
|
+
value.each do |k, v|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
else # model
|
175
|
+
temp_model = UltracartClient.const_get(type).new
|
176
|
+
temp_model.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
next if value.nil?
|
199
|
+
hash[param] = _to_hash(value)
|
200
|
+
end
|
201
|
+
hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Outputs non-array value in the form of hash
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
206
|
+
# @param [Object] value Any valid value
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
208
|
+
def _to_hash(value)
|
209
|
+
if value.is_a?(Array)
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
211
|
+
elsif value.is_a?(Hash)
|
212
|
+
{}.tap do |hash|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
214
|
+
end
|
215
|
+
elsif value.respond_to? :to_hash
|
216
|
+
value.to_hash
|
217
|
+
else
|
218
|
+
value
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
end
|
223
|
+
end
|
@@ -0,0 +1,184 @@
|
|
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 ConversationJoinRequest
|
17
|
+
attr_accessor :participant_language_iso_code
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'participant_language_iso_code' => :'participant_language_iso_code'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.swagger_types
|
28
|
+
{
|
29
|
+
:'participant_language_iso_code' => :'String'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initializes the object
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return unless attributes.is_a?(Hash)
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
|
+
|
41
|
+
if attributes.has_key?(:'participant_language_iso_code')
|
42
|
+
self.participant_language_iso_code = attributes[:'participant_language_iso_code']
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
47
|
+
# @return Array for valid properties with the reasons
|
48
|
+
def list_invalid_properties
|
49
|
+
invalid_properties = Array.new
|
50
|
+
invalid_properties
|
51
|
+
end
|
52
|
+
|
53
|
+
# Check to see if the all the properties in the model are valid
|
54
|
+
# @return true if the model is valid
|
55
|
+
def valid?
|
56
|
+
true
|
57
|
+
end
|
58
|
+
|
59
|
+
# Checks equality by comparing each attribute.
|
60
|
+
# @param [Object] Object to be compared
|
61
|
+
def ==(o)
|
62
|
+
return true if self.equal?(o)
|
63
|
+
self.class == o.class &&
|
64
|
+
participant_language_iso_code == o.participant_language_iso_code
|
65
|
+
end
|
66
|
+
|
67
|
+
# @see the `==` method
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def eql?(o)
|
70
|
+
self == o
|
71
|
+
end
|
72
|
+
|
73
|
+
# Calculates hash code according to all attributes.
|
74
|
+
# @return [Fixnum] Hash code
|
75
|
+
def hash
|
76
|
+
[participant_language_iso_code].hash
|
77
|
+
end
|
78
|
+
|
79
|
+
# Builds the object from hash
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
81
|
+
# @return [Object] Returns the model itself
|
82
|
+
def build_from_hash(attributes)
|
83
|
+
return nil unless attributes.is_a?(Hash)
|
84
|
+
self.class.swagger_types.each_pair do |key, type|
|
85
|
+
if type =~ /\AArray<(.*)>/i
|
86
|
+
# check to ensure the input is an array given that the attribute
|
87
|
+
# is documented as an array but the input is not
|
88
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
89
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
90
|
+
end
|
91
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
92
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
93
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
94
|
+
end
|
95
|
+
|
96
|
+
self
|
97
|
+
end
|
98
|
+
|
99
|
+
# Deserializes the data based on type
|
100
|
+
# @param string type Data type
|
101
|
+
# @param string value Value to be deserialized
|
102
|
+
# @return [Object] Deserialized data
|
103
|
+
def _deserialize(type, value)
|
104
|
+
case type.to_sym
|
105
|
+
when :DateTime
|
106
|
+
DateTime.parse(value)
|
107
|
+
when :Date
|
108
|
+
Date.parse(value)
|
109
|
+
when :String
|
110
|
+
value.to_s
|
111
|
+
when :Integer
|
112
|
+
value.to_i
|
113
|
+
when :Float
|
114
|
+
value.to_f
|
115
|
+
when :BOOLEAN
|
116
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
117
|
+
true
|
118
|
+
else
|
119
|
+
false
|
120
|
+
end
|
121
|
+
when :Object
|
122
|
+
# generic object (usually a Hash), return directly
|
123
|
+
value
|
124
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
125
|
+
inner_type = Regexp.last_match[:inner_type]
|
126
|
+
value.map { |v| _deserialize(inner_type, v) }
|
127
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
128
|
+
k_type = Regexp.last_match[:k_type]
|
129
|
+
v_type = Regexp.last_match[:v_type]
|
130
|
+
{}.tap do |hash|
|
131
|
+
value.each do |k, v|
|
132
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
else # model
|
136
|
+
temp_model = UltracartClient.const_get(type).new
|
137
|
+
temp_model.build_from_hash(value)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
# Returns the string representation of the object
|
142
|
+
# @return [String] String presentation of the object
|
143
|
+
def to_s
|
144
|
+
to_hash.to_s
|
145
|
+
end
|
146
|
+
|
147
|
+
# to_body is an alias to to_hash (backward compatibility)
|
148
|
+
# @return [Hash] Returns the object in the form of hash
|
149
|
+
def to_body
|
150
|
+
to_hash
|
151
|
+
end
|
152
|
+
|
153
|
+
# Returns the object in the form of hash
|
154
|
+
# @return [Hash] Returns the object in the form of hash
|
155
|
+
def to_hash
|
156
|
+
hash = {}
|
157
|
+
self.class.attribute_map.each_pair do |attr, param|
|
158
|
+
value = self.send(attr)
|
159
|
+
next if value.nil?
|
160
|
+
hash[param] = _to_hash(value)
|
161
|
+
end
|
162
|
+
hash
|
163
|
+
end
|
164
|
+
|
165
|
+
# Outputs non-array value in the form of hash
|
166
|
+
# For object, use to_hash. Otherwise, just return the value
|
167
|
+
# @param [Object] value Any valid value
|
168
|
+
# @return [Hash] Returns the value in the form of hash
|
169
|
+
def _to_hash(value)
|
170
|
+
if value.is_a?(Array)
|
171
|
+
value.compact.map { |v| _to_hash(v) }
|
172
|
+
elsif value.is_a?(Hash)
|
173
|
+
{}.tap do |hash|
|
174
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
175
|
+
end
|
176
|
+
elsif value.respond_to? :to_hash
|
177
|
+
value.to_hash
|
178
|
+
else
|
179
|
+
value
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
end
|
184
|
+
end
|
@@ -20,6 +20,8 @@ module UltracartClient
|
|
20
20
|
|
21
21
|
attr_accessor :conversation_participant_uuid
|
22
22
|
|
23
|
+
attr_accessor :email
|
24
|
+
|
23
25
|
# Joined conversation date/time
|
24
26
|
attr_accessor :joined_dts
|
25
27
|
|
@@ -33,6 +35,8 @@ module UltracartClient
|
|
33
35
|
|
34
36
|
attr_accessor :profile_image_url
|
35
37
|
|
38
|
+
attr_accessor :sms_phone_number
|
39
|
+
|
36
40
|
attr_accessor :status
|
37
41
|
|
38
42
|
attr_accessor :timezone
|
@@ -45,11 +49,13 @@ module UltracartClient
|
|
45
49
|
:'conversation_participant_arn' => :'conversation_participant_arn',
|
46
50
|
:'conversation_participant_name' => :'conversation_participant_name',
|
47
51
|
:'conversation_participant_uuid' => :'conversation_participant_uuid',
|
52
|
+
:'email' => :'email',
|
48
53
|
:'joined_dts' => :'joined_dts',
|
49
54
|
:'language_iso_code' => :'language_iso_code',
|
50
55
|
:'last_message_dts' => :'last_message_dts',
|
51
56
|
:'left_dts' => :'left_dts',
|
52
57
|
:'profile_image_url' => :'profile_image_url',
|
58
|
+
:'sms_phone_number' => :'sms_phone_number',
|
53
59
|
:'status' => :'status',
|
54
60
|
:'timezone' => :'timezone',
|
55
61
|
:'unread_messages' => :'unread_messages'
|
@@ -62,11 +68,13 @@ module UltracartClient
|
|
62
68
|
:'conversation_participant_arn' => :'String',
|
63
69
|
:'conversation_participant_name' => :'String',
|
64
70
|
:'conversation_participant_uuid' => :'String',
|
71
|
+
:'email' => :'String',
|
65
72
|
:'joined_dts' => :'String',
|
66
73
|
:'language_iso_code' => :'String',
|
67
74
|
:'last_message_dts' => :'String',
|
68
75
|
:'left_dts' => :'String',
|
69
76
|
:'profile_image_url' => :'String',
|
77
|
+
:'sms_phone_number' => :'String',
|
70
78
|
:'status' => :'String',
|
71
79
|
:'timezone' => :'String',
|
72
80
|
:'unread_messages' => :'Integer'
|
@@ -93,6 +101,10 @@ module UltracartClient
|
|
93
101
|
self.conversation_participant_uuid = attributes[:'conversation_participant_uuid']
|
94
102
|
end
|
95
103
|
|
104
|
+
if attributes.has_key?(:'email')
|
105
|
+
self.email = attributes[:'email']
|
106
|
+
end
|
107
|
+
|
96
108
|
if attributes.has_key?(:'joined_dts')
|
97
109
|
self.joined_dts = attributes[:'joined_dts']
|
98
110
|
end
|
@@ -113,6 +125,10 @@ module UltracartClient
|
|
113
125
|
self.profile_image_url = attributes[:'profile_image_url']
|
114
126
|
end
|
115
127
|
|
128
|
+
if attributes.has_key?(:'sms_phone_number')
|
129
|
+
self.sms_phone_number = attributes[:'sms_phone_number']
|
130
|
+
end
|
131
|
+
|
116
132
|
if attributes.has_key?(:'status')
|
117
133
|
self.status = attributes[:'status']
|
118
134
|
end
|
@@ -147,11 +163,13 @@ module UltracartClient
|
|
147
163
|
conversation_participant_arn == o.conversation_participant_arn &&
|
148
164
|
conversation_participant_name == o.conversation_participant_name &&
|
149
165
|
conversation_participant_uuid == o.conversation_participant_uuid &&
|
166
|
+
email == o.email &&
|
150
167
|
joined_dts == o.joined_dts &&
|
151
168
|
language_iso_code == o.language_iso_code &&
|
152
169
|
last_message_dts == o.last_message_dts &&
|
153
170
|
left_dts == o.left_dts &&
|
154
171
|
profile_image_url == o.profile_image_url &&
|
172
|
+
sms_phone_number == o.sms_phone_number &&
|
155
173
|
status == o.status &&
|
156
174
|
timezone == o.timezone &&
|
157
175
|
unread_messages == o.unread_messages
|
@@ -166,7 +184,7 @@ module UltracartClient
|
|
166
184
|
# Calculates hash code according to all attributes.
|
167
185
|
# @return [Fixnum] Hash code
|
168
186
|
def hash
|
169
|
-
[conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, language_iso_code, last_message_dts, left_dts, profile_image_url, status, timezone, unread_messages].hash
|
187
|
+
[conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, email, joined_dts, language_iso_code, last_message_dts, left_dts, profile_image_url, sms_phone_number, status, timezone, unread_messages].hash
|
170
188
|
end
|
171
189
|
|
172
190
|
# Builds the object from hash
|
@@ -25,6 +25,8 @@ module UltracartClient
|
|
25
25
|
# Date/time the customer joined the queue
|
26
26
|
attr_accessor :join_dts
|
27
27
|
|
28
|
+
attr_accessor :participant_language_iso_code
|
29
|
+
|
28
30
|
attr_accessor :question
|
29
31
|
|
30
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -35,6 +37,7 @@ module UltracartClient
|
|
35
37
|
:'conversation_webchat_queue_uuid' => :'conversation_webchat_queue_uuid',
|
36
38
|
:'email' => :'email',
|
37
39
|
:'join_dts' => :'join_dts',
|
40
|
+
:'participant_language_iso_code' => :'participant_language_iso_code',
|
38
41
|
:'question' => :'question'
|
39
42
|
}
|
40
43
|
end
|
@@ -47,6 +50,7 @@ module UltracartClient
|
|
47
50
|
:'conversation_webchat_queue_uuid' => :'String',
|
48
51
|
:'email' => :'String',
|
49
52
|
:'join_dts' => :'String',
|
53
|
+
:'participant_language_iso_code' => :'String',
|
50
54
|
:'question' => :'String'
|
51
55
|
}
|
52
56
|
end
|
@@ -79,6 +83,10 @@ module UltracartClient
|
|
79
83
|
self.join_dts = attributes[:'join_dts']
|
80
84
|
end
|
81
85
|
|
86
|
+
if attributes.has_key?(:'participant_language_iso_code')
|
87
|
+
self.participant_language_iso_code = attributes[:'participant_language_iso_code']
|
88
|
+
end
|
89
|
+
|
82
90
|
if attributes.has_key?(:'question')
|
83
91
|
self.question = attributes[:'question']
|
84
92
|
end
|
@@ -107,6 +115,7 @@ module UltracartClient
|
|
107
115
|
conversation_webchat_queue_uuid == o.conversation_webchat_queue_uuid &&
|
108
116
|
email == o.email &&
|
109
117
|
join_dts == o.join_dts &&
|
118
|
+
participant_language_iso_code == o.participant_language_iso_code &&
|
110
119
|
question == o.question
|
111
120
|
end
|
112
121
|
|
@@ -119,7 +128,7 @@ module UltracartClient
|
|
119
128
|
# Calculates hash code according to all attributes.
|
120
129
|
# @return [Fixnum] Hash code
|
121
130
|
def hash
|
122
|
-
[conversation_participant_arn, conversation_participant_name, conversation_webchat_queue_uuid, email, join_dts, question].hash
|
131
|
+
[conversation_participant_arn, conversation_participant_name, conversation_webchat_queue_uuid, email, join_dts, participant_language_iso_code, question].hash
|
123
132
|
end
|
124
133
|
|
125
134
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -142,6 +142,14 @@ require 'ultracart_api/models/conversation_canned_message'
|
|
142
142
|
require 'ultracart_api/models/conversation_canned_message_response'
|
143
143
|
require 'ultracart_api/models/conversation_canned_messages_response'
|
144
144
|
require 'ultracart_api/models/conversation_canned_messages_search'
|
145
|
+
require 'ultracart_api/models/conversation_department'
|
146
|
+
require 'ultracart_api/models/conversation_department_response'
|
147
|
+
require 'ultracart_api/models/conversation_department_settings'
|
148
|
+
require 'ultracart_api/models/conversation_departments_response'
|
149
|
+
require 'ultracart_api/models/conversation_engagement'
|
150
|
+
require 'ultracart_api/models/conversation_engagement_equation'
|
151
|
+
require 'ultracart_api/models/conversation_engagement_response'
|
152
|
+
require 'ultracart_api/models/conversation_engagements_response'
|
145
153
|
require 'ultracart_api/models/conversation_event_add_coupon'
|
146
154
|
require 'ultracart_api/models/conversation_event_add_item'
|
147
155
|
require 'ultracart_api/models/conversation_event_queue_position'
|
@@ -149,6 +157,7 @@ require 'ultracart_api/models/conversation_event_rr_web'
|
|
149
157
|
require 'ultracart_api/models/conversation_event_read_message'
|
150
158
|
require 'ultracart_api/models/conversation_event_typing'
|
151
159
|
require 'ultracart_api/models/conversation_event_webchat_context'
|
160
|
+
require 'ultracart_api/models/conversation_join_request'
|
152
161
|
require 'ultracart_api/models/conversation_message'
|
153
162
|
require 'ultracart_api/models/conversation_message_translation'
|
154
163
|
require 'ultracart_api/models/conversation_message_transport_status'
|
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.80
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -352,6 +352,14 @@ files:
|
|
352
352
|
- docs/ConversationCannedMessageResponse.md
|
353
353
|
- docs/ConversationCannedMessagesResponse.md
|
354
354
|
- docs/ConversationCannedMessagesSearch.md
|
355
|
+
- docs/ConversationDepartment.md
|
356
|
+
- docs/ConversationDepartmentResponse.md
|
357
|
+
- docs/ConversationDepartmentSettings.md
|
358
|
+
- docs/ConversationDepartmentsResponse.md
|
359
|
+
- docs/ConversationEngagement.md
|
360
|
+
- docs/ConversationEngagementEquation.md
|
361
|
+
- docs/ConversationEngagementResponse.md
|
362
|
+
- docs/ConversationEngagementsResponse.md
|
355
363
|
- docs/ConversationEventAddCoupon.md
|
356
364
|
- docs/ConversationEventAddItem.md
|
357
365
|
- docs/ConversationEventQueuePosition.md
|
@@ -359,6 +367,7 @@ files:
|
|
359
367
|
- docs/ConversationEventReadMessage.md
|
360
368
|
- docs/ConversationEventTyping.md
|
361
369
|
- docs/ConversationEventWebchatContext.md
|
370
|
+
- docs/ConversationJoinRequest.md
|
362
371
|
- docs/ConversationMessage.md
|
363
372
|
- docs/ConversationMessageTranslation.md
|
364
373
|
- docs/ConversationMessageTransportStatus.md
|
@@ -1087,6 +1096,14 @@ files:
|
|
1087
1096
|
- lib/ultracart_api/models/conversation_canned_message_response.rb
|
1088
1097
|
- lib/ultracart_api/models/conversation_canned_messages_response.rb
|
1089
1098
|
- lib/ultracart_api/models/conversation_canned_messages_search.rb
|
1099
|
+
- lib/ultracart_api/models/conversation_department.rb
|
1100
|
+
- lib/ultracart_api/models/conversation_department_response.rb
|
1101
|
+
- lib/ultracart_api/models/conversation_department_settings.rb
|
1102
|
+
- lib/ultracart_api/models/conversation_departments_response.rb
|
1103
|
+
- lib/ultracart_api/models/conversation_engagement.rb
|
1104
|
+
- lib/ultracart_api/models/conversation_engagement_equation.rb
|
1105
|
+
- lib/ultracart_api/models/conversation_engagement_response.rb
|
1106
|
+
- lib/ultracart_api/models/conversation_engagements_response.rb
|
1090
1107
|
- lib/ultracart_api/models/conversation_event_add_coupon.rb
|
1091
1108
|
- lib/ultracart_api/models/conversation_event_add_item.rb
|
1092
1109
|
- lib/ultracart_api/models/conversation_event_queue_position.rb
|
@@ -1094,6 +1111,7 @@ files:
|
|
1094
1111
|
- lib/ultracart_api/models/conversation_event_rr_web.rb
|
1095
1112
|
- lib/ultracart_api/models/conversation_event_typing.rb
|
1096
1113
|
- lib/ultracart_api/models/conversation_event_webchat_context.rb
|
1114
|
+
- lib/ultracart_api/models/conversation_join_request.rb
|
1097
1115
|
- lib/ultracart_api/models/conversation_message.rb
|
1098
1116
|
- lib/ultracart_api/models/conversation_message_translation.rb
|
1099
1117
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|