ultracart_api 3.10.77 → 3.10.79
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -4
- data/docs/ConversationApi.md +202 -0
- data/docs/ConversationCannedMessage.md +11 -0
- data/docs/ConversationCannedMessageResponse.md +12 -0
- data/docs/ConversationCannedMessagesResponse.md +12 -0
- data/docs/ConversationCannedMessagesSearch.md +9 -0
- data/docs/ConversationMessage.md +2 -0
- data/docs/ConversationMessageTranslation.md +9 -0
- data/docs/ConversationParticipant.md +1 -0
- data/lib/ultracart_api/api/conversation_api.rb +220 -0
- data/lib/ultracart_api/models/conversation_canned_message.rb +213 -0
- data/lib/ultracart_api/models/conversation_canned_message_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_canned_messages_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_canned_messages_search.rb +193 -0
- data/lib/ultracart_api/models/conversation_message.rb +21 -1
- data/lib/ultracart_api/models/conversation_message_translation.rb +193 -0
- data/lib/ultracart_api/models/conversation_participant.rb +10 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +5 -0
- metadata +12 -2
@@ -0,0 +1,193 @@
|
|
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 ConversationCannedMessagesSearch
|
17
|
+
attr_accessor :max_results
|
18
|
+
|
19
|
+
attr_accessor :short_code
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'max_results' => :'max_results',
|
25
|
+
:'short_code' => :'short_code'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'max_results' => :'Integer',
|
33
|
+
:'short_code' => :'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?(:'max_results')
|
46
|
+
self.max_results = attributes[:'max_results']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'short_code')
|
50
|
+
self.short_code = attributes[:'short_code']
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
55
|
+
# @return Array for valid properties with the reasons
|
56
|
+
def list_invalid_properties
|
57
|
+
invalid_properties = Array.new
|
58
|
+
invalid_properties
|
59
|
+
end
|
60
|
+
|
61
|
+
# Check to see if the all the properties in the model are valid
|
62
|
+
# @return true if the model is valid
|
63
|
+
def valid?
|
64
|
+
true
|
65
|
+
end
|
66
|
+
|
67
|
+
# Checks equality by comparing each attribute.
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def ==(o)
|
70
|
+
return true if self.equal?(o)
|
71
|
+
self.class == o.class &&
|
72
|
+
max_results == o.max_results &&
|
73
|
+
short_code == o.short_code
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def eql?(o)
|
79
|
+
self == o
|
80
|
+
end
|
81
|
+
|
82
|
+
# Calculates hash code according to all attributes.
|
83
|
+
# @return [Fixnum] Hash code
|
84
|
+
def hash
|
85
|
+
[max_results, short_code].hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Builds the object from hash
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @return [Object] Returns the model itself
|
91
|
+
def build_from_hash(attributes)
|
92
|
+
return nil unless attributes.is_a?(Hash)
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
94
|
+
if type =~ /\AArray<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
99
|
+
end
|
100
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
+
end
|
104
|
+
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
# Deserializes the data based on type
|
109
|
+
# @param string type Data type
|
110
|
+
# @param string value Value to be deserialized
|
111
|
+
# @return [Object] Deserialized data
|
112
|
+
def _deserialize(type, value)
|
113
|
+
case type.to_sym
|
114
|
+
when :DateTime
|
115
|
+
DateTime.parse(value)
|
116
|
+
when :Date
|
117
|
+
Date.parse(value)
|
118
|
+
when :String
|
119
|
+
value.to_s
|
120
|
+
when :Integer
|
121
|
+
value.to_i
|
122
|
+
when :Float
|
123
|
+
value.to_f
|
124
|
+
when :BOOLEAN
|
125
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
+
true
|
127
|
+
else
|
128
|
+
false
|
129
|
+
end
|
130
|
+
when :Object
|
131
|
+
# generic object (usually a Hash), return directly
|
132
|
+
value
|
133
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
+
inner_type = Regexp.last_match[:inner_type]
|
135
|
+
value.map { |v| _deserialize(inner_type, v) }
|
136
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
+
k_type = Regexp.last_match[:k_type]
|
138
|
+
v_type = Regexp.last_match[:v_type]
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each do |k, v|
|
141
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
else # model
|
145
|
+
temp_model = UltracartClient.const_get(type).new
|
146
|
+
temp_model.build_from_hash(value)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Returns the string representation of the object
|
151
|
+
# @return [String] String presentation of the object
|
152
|
+
def to_s
|
153
|
+
to_hash.to_s
|
154
|
+
end
|
155
|
+
|
156
|
+
# to_body is an alias to to_hash (backward compatibility)
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_body
|
159
|
+
to_hash
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the object in the form of hash
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_hash
|
165
|
+
hash = {}
|
166
|
+
self.class.attribute_map.each_pair do |attr, param|
|
167
|
+
value = self.send(attr)
|
168
|
+
next if value.nil?
|
169
|
+
hash[param] = _to_hash(value)
|
170
|
+
end
|
171
|
+
hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Outputs non-array value in the form of hash
|
175
|
+
# For object, use to_hash. Otherwise, just return the value
|
176
|
+
# @param [Object] value Any valid value
|
177
|
+
# @return [Hash] Returns the value in the form of hash
|
178
|
+
def _to_hash(value)
|
179
|
+
if value.is_a?(Array)
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
181
|
+
elsif value.is_a?(Hash)
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
+
end
|
185
|
+
elsif value.respond_to? :to_hash
|
186
|
+
value.to_hash
|
187
|
+
else
|
188
|
+
value
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
end
|
@@ -27,6 +27,8 @@ module UltracartClient
|
|
27
27
|
# Delay message transmission until date/time
|
28
28
|
attr_accessor :delay_until_dts
|
29
29
|
|
30
|
+
attr_accessor :language_iso_code
|
31
|
+
|
30
32
|
attr_accessor :media_urls
|
31
33
|
|
32
34
|
attr_accessor :merchant_id
|
@@ -37,6 +39,8 @@ module UltracartClient
|
|
37
39
|
# Message epoch milliseconds
|
38
40
|
attr_accessor :message_epoch
|
39
41
|
|
42
|
+
attr_accessor :translations
|
43
|
+
|
40
44
|
attr_accessor :transport_statuses
|
41
45
|
|
42
46
|
# Message type
|
@@ -75,10 +79,12 @@ module UltracartClient
|
|
75
79
|
:'client_message_id' => :'client_message_id',
|
76
80
|
:'conversation_message_uuid' => :'conversation_message_uuid',
|
77
81
|
:'delay_until_dts' => :'delay_until_dts',
|
82
|
+
:'language_iso_code' => :'language_iso_code',
|
78
83
|
:'media_urls' => :'media_urls',
|
79
84
|
:'merchant_id' => :'merchant_id',
|
80
85
|
:'message_dts' => :'message_dts',
|
81
86
|
:'message_epoch' => :'message_epoch',
|
87
|
+
:'translations' => :'translations',
|
82
88
|
:'transport_statuses' => :'transport_statuses',
|
83
89
|
:'type' => :'type',
|
84
90
|
:'upload_keys' => :'upload_keys'
|
@@ -94,10 +100,12 @@ module UltracartClient
|
|
94
100
|
:'client_message_id' => :'String',
|
95
101
|
:'conversation_message_uuid' => :'String',
|
96
102
|
:'delay_until_dts' => :'String',
|
103
|
+
:'language_iso_code' => :'String',
|
97
104
|
:'media_urls' => :'Array<String>',
|
98
105
|
:'merchant_id' => :'String',
|
99
106
|
:'message_dts' => :'String',
|
100
107
|
:'message_epoch' => :'Integer',
|
108
|
+
:'translations' => :'Array<ConversationMessageTranslation>',
|
101
109
|
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
|
102
110
|
:'type' => :'String',
|
103
111
|
:'upload_keys' => :'Array<String>'
|
@@ -136,6 +144,10 @@ module UltracartClient
|
|
136
144
|
self.delay_until_dts = attributes[:'delay_until_dts']
|
137
145
|
end
|
138
146
|
|
147
|
+
if attributes.has_key?(:'language_iso_code')
|
148
|
+
self.language_iso_code = attributes[:'language_iso_code']
|
149
|
+
end
|
150
|
+
|
139
151
|
if attributes.has_key?(:'media_urls')
|
140
152
|
if (value = attributes[:'media_urls']).is_a?(Array)
|
141
153
|
self.media_urls = value
|
@@ -154,6 +166,12 @@ module UltracartClient
|
|
154
166
|
self.message_epoch = attributes[:'message_epoch']
|
155
167
|
end
|
156
168
|
|
169
|
+
if attributes.has_key?(:'translations')
|
170
|
+
if (value = attributes[:'translations']).is_a?(Array)
|
171
|
+
self.translations = value
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
157
175
|
if attributes.has_key?(:'transport_statuses')
|
158
176
|
if (value = attributes[:'transport_statuses']).is_a?(Array)
|
159
177
|
self.transport_statuses = value
|
@@ -207,10 +225,12 @@ module UltracartClient
|
|
207
225
|
client_message_id == o.client_message_id &&
|
208
226
|
conversation_message_uuid == o.conversation_message_uuid &&
|
209
227
|
delay_until_dts == o.delay_until_dts &&
|
228
|
+
language_iso_code == o.language_iso_code &&
|
210
229
|
media_urls == o.media_urls &&
|
211
230
|
merchant_id == o.merchant_id &&
|
212
231
|
message_dts == o.message_dts &&
|
213
232
|
message_epoch == o.message_epoch &&
|
233
|
+
translations == o.translations &&
|
214
234
|
transport_statuses == o.transport_statuses &&
|
215
235
|
type == o.type &&
|
216
236
|
upload_keys == o.upload_keys
|
@@ -225,7 +245,7 @@ module UltracartClient
|
|
225
245
|
# Calculates hash code according to all attributes.
|
226
246
|
# @return [Fixnum] Hash code
|
227
247
|
def hash
|
228
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, conversation_message_uuid, delay_until_dts, media_urls, merchant_id, message_dts, message_epoch, transport_statuses, type, upload_keys].hash
|
248
|
+
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, conversation_message_uuid, delay_until_dts, language_iso_code, media_urls, merchant_id, message_dts, message_epoch, translations, transport_statuses, type, upload_keys].hash
|
229
249
|
end
|
230
250
|
|
231
251
|
# Builds the object from hash
|
@@ -0,0 +1,193 @@
|
|
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 ConversationMessageTranslation
|
17
|
+
attr_accessor :body
|
18
|
+
|
19
|
+
attr_accessor :language_iso_code
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'body' => :'body',
|
25
|
+
:'language_iso_code' => :'language_iso_code'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'body' => :'String',
|
33
|
+
:'language_iso_code' => :'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?(:'body')
|
46
|
+
self.body = attributes[:'body']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'language_iso_code')
|
50
|
+
self.language_iso_code = attributes[:'language_iso_code']
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
55
|
+
# @return Array for valid properties with the reasons
|
56
|
+
def list_invalid_properties
|
57
|
+
invalid_properties = Array.new
|
58
|
+
invalid_properties
|
59
|
+
end
|
60
|
+
|
61
|
+
# Check to see if the all the properties in the model are valid
|
62
|
+
# @return true if the model is valid
|
63
|
+
def valid?
|
64
|
+
true
|
65
|
+
end
|
66
|
+
|
67
|
+
# Checks equality by comparing each attribute.
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def ==(o)
|
70
|
+
return true if self.equal?(o)
|
71
|
+
self.class == o.class &&
|
72
|
+
body == o.body &&
|
73
|
+
language_iso_code == o.language_iso_code
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def eql?(o)
|
79
|
+
self == o
|
80
|
+
end
|
81
|
+
|
82
|
+
# Calculates hash code according to all attributes.
|
83
|
+
# @return [Fixnum] Hash code
|
84
|
+
def hash
|
85
|
+
[body, language_iso_code].hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Builds the object from hash
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @return [Object] Returns the model itself
|
91
|
+
def build_from_hash(attributes)
|
92
|
+
return nil unless attributes.is_a?(Hash)
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
94
|
+
if type =~ /\AArray<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
99
|
+
end
|
100
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
+
end
|
104
|
+
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
# Deserializes the data based on type
|
109
|
+
# @param string type Data type
|
110
|
+
# @param string value Value to be deserialized
|
111
|
+
# @return [Object] Deserialized data
|
112
|
+
def _deserialize(type, value)
|
113
|
+
case type.to_sym
|
114
|
+
when :DateTime
|
115
|
+
DateTime.parse(value)
|
116
|
+
when :Date
|
117
|
+
Date.parse(value)
|
118
|
+
when :String
|
119
|
+
value.to_s
|
120
|
+
when :Integer
|
121
|
+
value.to_i
|
122
|
+
when :Float
|
123
|
+
value.to_f
|
124
|
+
when :BOOLEAN
|
125
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
+
true
|
127
|
+
else
|
128
|
+
false
|
129
|
+
end
|
130
|
+
when :Object
|
131
|
+
# generic object (usually a Hash), return directly
|
132
|
+
value
|
133
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
+
inner_type = Regexp.last_match[:inner_type]
|
135
|
+
value.map { |v| _deserialize(inner_type, v) }
|
136
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
+
k_type = Regexp.last_match[:k_type]
|
138
|
+
v_type = Regexp.last_match[:v_type]
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each do |k, v|
|
141
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
else # model
|
145
|
+
temp_model = UltracartClient.const_get(type).new
|
146
|
+
temp_model.build_from_hash(value)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Returns the string representation of the object
|
151
|
+
# @return [String] String presentation of the object
|
152
|
+
def to_s
|
153
|
+
to_hash.to_s
|
154
|
+
end
|
155
|
+
|
156
|
+
# to_body is an alias to to_hash (backward compatibility)
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_body
|
159
|
+
to_hash
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the object in the form of hash
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_hash
|
165
|
+
hash = {}
|
166
|
+
self.class.attribute_map.each_pair do |attr, param|
|
167
|
+
value = self.send(attr)
|
168
|
+
next if value.nil?
|
169
|
+
hash[param] = _to_hash(value)
|
170
|
+
end
|
171
|
+
hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Outputs non-array value in the form of hash
|
175
|
+
# For object, use to_hash. Otherwise, just return the value
|
176
|
+
# @param [Object] value Any valid value
|
177
|
+
# @return [Hash] Returns the value in the form of hash
|
178
|
+
def _to_hash(value)
|
179
|
+
if value.is_a?(Array)
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
181
|
+
elsif value.is_a?(Hash)
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
+
end
|
185
|
+
elsif value.respond_to? :to_hash
|
186
|
+
value.to_hash
|
187
|
+
else
|
188
|
+
value
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
end
|
@@ -23,6 +23,8 @@ module UltracartClient
|
|
23
23
|
# Joined conversation date/time
|
24
24
|
attr_accessor :joined_dts
|
25
25
|
|
26
|
+
attr_accessor :language_iso_code
|
27
|
+
|
26
28
|
# Last message date/time
|
27
29
|
attr_accessor :last_message_dts
|
28
30
|
|
@@ -44,6 +46,7 @@ module UltracartClient
|
|
44
46
|
:'conversation_participant_name' => :'conversation_participant_name',
|
45
47
|
:'conversation_participant_uuid' => :'conversation_participant_uuid',
|
46
48
|
:'joined_dts' => :'joined_dts',
|
49
|
+
:'language_iso_code' => :'language_iso_code',
|
47
50
|
:'last_message_dts' => :'last_message_dts',
|
48
51
|
:'left_dts' => :'left_dts',
|
49
52
|
:'profile_image_url' => :'profile_image_url',
|
@@ -60,6 +63,7 @@ module UltracartClient
|
|
60
63
|
:'conversation_participant_name' => :'String',
|
61
64
|
:'conversation_participant_uuid' => :'String',
|
62
65
|
:'joined_dts' => :'String',
|
66
|
+
:'language_iso_code' => :'String',
|
63
67
|
:'last_message_dts' => :'String',
|
64
68
|
:'left_dts' => :'String',
|
65
69
|
:'profile_image_url' => :'String',
|
@@ -93,6 +97,10 @@ module UltracartClient
|
|
93
97
|
self.joined_dts = attributes[:'joined_dts']
|
94
98
|
end
|
95
99
|
|
100
|
+
if attributes.has_key?(:'language_iso_code')
|
101
|
+
self.language_iso_code = attributes[:'language_iso_code']
|
102
|
+
end
|
103
|
+
|
96
104
|
if attributes.has_key?(:'last_message_dts')
|
97
105
|
self.last_message_dts = attributes[:'last_message_dts']
|
98
106
|
end
|
@@ -140,6 +148,7 @@ module UltracartClient
|
|
140
148
|
conversation_participant_name == o.conversation_participant_name &&
|
141
149
|
conversation_participant_uuid == o.conversation_participant_uuid &&
|
142
150
|
joined_dts == o.joined_dts &&
|
151
|
+
language_iso_code == o.language_iso_code &&
|
143
152
|
last_message_dts == o.last_message_dts &&
|
144
153
|
left_dts == o.left_dts &&
|
145
154
|
profile_image_url == o.profile_image_url &&
|
@@ -157,7 +166,7 @@ module UltracartClient
|
|
157
166
|
# Calculates hash code according to all attributes.
|
158
167
|
# @return [Fixnum] Hash code
|
159
168
|
def hash
|
160
|
-
[conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, last_message_dts, left_dts, profile_image_url, status, timezone, unread_messages].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
|
161
170
|
end
|
162
171
|
|
163
172
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -138,6 +138,10 @@ require 'ultracart_api/models/city_state_zip'
|
|
138
138
|
require 'ultracart_api/models/conversation'
|
139
139
|
require 'ultracart_api/models/conversation_agent_auth'
|
140
140
|
require 'ultracart_api/models/conversation_agent_auth_response'
|
141
|
+
require 'ultracart_api/models/conversation_canned_message'
|
142
|
+
require 'ultracart_api/models/conversation_canned_message_response'
|
143
|
+
require 'ultracart_api/models/conversation_canned_messages_response'
|
144
|
+
require 'ultracart_api/models/conversation_canned_messages_search'
|
141
145
|
require 'ultracart_api/models/conversation_event_add_coupon'
|
142
146
|
require 'ultracart_api/models/conversation_event_add_item'
|
143
147
|
require 'ultracart_api/models/conversation_event_queue_position'
|
@@ -146,6 +150,7 @@ require 'ultracart_api/models/conversation_event_read_message'
|
|
146
150
|
require 'ultracart_api/models/conversation_event_typing'
|
147
151
|
require 'ultracart_api/models/conversation_event_webchat_context'
|
148
152
|
require 'ultracart_api/models/conversation_message'
|
153
|
+
require 'ultracart_api/models/conversation_message_translation'
|
149
154
|
require 'ultracart_api/models/conversation_message_transport_status'
|
150
155
|
require 'ultracart_api/models/conversation_messages_response'
|
151
156
|
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.79
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -348,6 +348,10 @@ files:
|
|
348
348
|
- docs/ConversationAgentAuth.md
|
349
349
|
- docs/ConversationAgentAuthResponse.md
|
350
350
|
- docs/ConversationApi.md
|
351
|
+
- docs/ConversationCannedMessage.md
|
352
|
+
- docs/ConversationCannedMessageResponse.md
|
353
|
+
- docs/ConversationCannedMessagesResponse.md
|
354
|
+
- docs/ConversationCannedMessagesSearch.md
|
351
355
|
- docs/ConversationEventAddCoupon.md
|
352
356
|
- docs/ConversationEventAddItem.md
|
353
357
|
- docs/ConversationEventQueuePosition.md
|
@@ -356,6 +360,7 @@ files:
|
|
356
360
|
- docs/ConversationEventTyping.md
|
357
361
|
- docs/ConversationEventWebchatContext.md
|
358
362
|
- docs/ConversationMessage.md
|
363
|
+
- docs/ConversationMessageTranslation.md
|
359
364
|
- docs/ConversationMessageTransportStatus.md
|
360
365
|
- docs/ConversationMessagesResponse.md
|
361
366
|
- docs/ConversationMultimediaUploadUrl.md
|
@@ -1078,6 +1083,10 @@ files:
|
|
1078
1083
|
- lib/ultracart_api/models/conversation.rb
|
1079
1084
|
- lib/ultracart_api/models/conversation_agent_auth.rb
|
1080
1085
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
1086
|
+
- lib/ultracart_api/models/conversation_canned_message.rb
|
1087
|
+
- lib/ultracart_api/models/conversation_canned_message_response.rb
|
1088
|
+
- lib/ultracart_api/models/conversation_canned_messages_response.rb
|
1089
|
+
- lib/ultracart_api/models/conversation_canned_messages_search.rb
|
1081
1090
|
- lib/ultracart_api/models/conversation_event_add_coupon.rb
|
1082
1091
|
- lib/ultracart_api/models/conversation_event_add_item.rb
|
1083
1092
|
- lib/ultracart_api/models/conversation_event_queue_position.rb
|
@@ -1086,6 +1095,7 @@ files:
|
|
1086
1095
|
- lib/ultracart_api/models/conversation_event_typing.rb
|
1087
1096
|
- lib/ultracart_api/models/conversation_event_webchat_context.rb
|
1088
1097
|
- lib/ultracart_api/models/conversation_message.rb
|
1098
|
+
- lib/ultracart_api/models/conversation_message_translation.rb
|
1089
1099
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
1090
1100
|
- lib/ultracart_api/models/conversation_messages_response.rb
|
1091
1101
|
- lib/ultracart_api/models/conversation_multimedia_upload_url.rb
|