ultracart_api 3.10.78 → 3.10.79
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 +6 -4
- data/docs/ConversationCannedMessage.md +1 -1
- data/docs/ConversationMessage.md +2 -0
- data/docs/ConversationMessageTranslation.md +9 -0
- data/docs/ConversationParticipant.md +1 -0
- data/lib/ultracart_api/models/conversation_canned_message.rb +8 -8
- 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 +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: 4f1b06246610265119d5f2c024c15f2ed7990269ba30d41c48a21b1501b3e712
|
|
4
|
+
data.tar.gz: 6982b8c9c64cf0229e7bf41b4601e3901f32af9cb8c87d8ff851807d32a55913
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f54d96485071188f8169164e15419e2d46b615ef074c0c5247439c8877b2fe70ac651ec83d9e8f467bf3069a03b5247b93f93a04f3c68501b841e438042611c6
|
|
7
|
+
data.tar.gz: c8520b58a27a96d3e2a8b747492e43ebaecbcfe3f89f2707680f3428535999632f8e4bf0e0da0ba3e976551721ee1225a4acfe06cc286ae5a9f04ea23e2808a6
|
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.79
|
|
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.79.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.79.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.79'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -601,6 +601,7 @@ Class | Method | HTTP request | Description
|
|
|
601
601
|
- [UltracartClient::ConversationEventTyping](docs/ConversationEventTyping.md)
|
|
602
602
|
- [UltracartClient::ConversationEventWebchatContext](docs/ConversationEventWebchatContext.md)
|
|
603
603
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
|
604
|
+
- [UltracartClient::ConversationMessageTranslation](docs/ConversationMessageTranslation.md)
|
|
604
605
|
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
|
605
606
|
- [UltracartClient::ConversationMessagesResponse](docs/ConversationMessagesResponse.md)
|
|
606
607
|
- [UltracartClient::ConversationMultimediaUploadUrl](docs/ConversationMultimediaUploadUrl.md)
|
|
@@ -1235,6 +1236,7 @@ Not every change is committed to every SDK.
|
|
|
1235
1236
|
|
|
1236
1237
|
| Version | Date | Comments |
|
|
1237
1238
|
| --: | :-: | --- |
|
|
1239
|
+
| 3.10.79 | 12/09/2022 | conversations - message translation |
|
|
1238
1240
|
| 3.10.78 | 12/08/2022 | conversation canned messages |
|
|
1239
1241
|
| 3.10.77 | 12/08/2022 | communications - expose the rebuild percentage |
|
|
1240
1242
|
| 3.10.76 | 12/06/2022 | convo - add session_start_dts to webchat context, cart - add customer_profile.signup_dts |
|
|
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
|
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
6
|
**canned_message** | **String** | | [optional]
|
|
7
7
|
**conversation_canned_message_oid** | **Integer** | | [optional]
|
|
8
|
-
**
|
|
8
|
+
**conversation_department_oids** | **Array<String>** | | [optional]
|
|
9
9
|
**short_code** | **String** | | [optional]
|
|
10
10
|
|
|
11
11
|
|
data/docs/ConversationMessage.md
CHANGED
|
@@ -9,10 +9,12 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**client_message_id** | **String** | | [optional]
|
|
10
10
|
**conversation_message_uuid** | **String** | | [optional]
|
|
11
11
|
**delay_until_dts** | **String** | Delay message transmission until date/time | [optional]
|
|
12
|
+
**language_iso_code** | **String** | | [optional]
|
|
12
13
|
**media_urls** | **Array<String>** | | [optional]
|
|
13
14
|
**merchant_id** | **String** | | [optional]
|
|
14
15
|
**message_dts** | **String** | Message date/time | [optional]
|
|
15
16
|
**message_epoch** | **Integer** | Message epoch milliseconds | [optional]
|
|
17
|
+
**translations** | [**Array<ConversationMessageTranslation>**](ConversationMessageTranslation.md) | | [optional]
|
|
16
18
|
**transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional]
|
|
17
19
|
**type** | **String** | Message type | [optional]
|
|
18
20
|
**upload_keys** | **Array<String>** | | [optional]
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**conversation_participant_name** | **String** | | [optional]
|
|
8
8
|
**conversation_participant_uuid** | **String** | | [optional]
|
|
9
9
|
**joined_dts** | **String** | Joined conversation date/time | [optional]
|
|
10
|
+
**language_iso_code** | **String** | | [optional]
|
|
10
11
|
**last_message_dts** | **String** | Last message date/time | [optional]
|
|
11
12
|
**left_dts** | **String** | Left conversation date/time | [optional]
|
|
12
13
|
**profile_image_url** | **String** | | [optional]
|
|
@@ -18,7 +18,7 @@ module UltracartClient
|
|
|
18
18
|
|
|
19
19
|
attr_accessor :conversation_canned_message_oid
|
|
20
20
|
|
|
21
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :conversation_department_oids
|
|
22
22
|
|
|
23
23
|
attr_accessor :short_code
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ module UltracartClient
|
|
|
27
27
|
{
|
|
28
28
|
:'canned_message' => :'canned_message',
|
|
29
29
|
:'conversation_canned_message_oid' => :'conversation_canned_message_oid',
|
|
30
|
-
:'
|
|
30
|
+
:'conversation_department_oids' => :'conversation_department_oids',
|
|
31
31
|
:'short_code' => :'short_code'
|
|
32
32
|
}
|
|
33
33
|
end
|
|
@@ -37,7 +37,7 @@ module UltracartClient
|
|
|
37
37
|
{
|
|
38
38
|
:'canned_message' => :'String',
|
|
39
39
|
:'conversation_canned_message_oid' => :'Integer',
|
|
40
|
-
:'
|
|
40
|
+
:'conversation_department_oids' => :'Array<String>',
|
|
41
41
|
:'short_code' => :'String'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
@@ -58,9 +58,9 @@ module UltracartClient
|
|
|
58
58
|
self.conversation_canned_message_oid = attributes[:'conversation_canned_message_oid']
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
if attributes.has_key?(:'
|
|
62
|
-
if (value = attributes[:'
|
|
63
|
-
self.
|
|
61
|
+
if attributes.has_key?(:'conversation_department_oids')
|
|
62
|
+
if (value = attributes[:'conversation_department_oids']).is_a?(Array)
|
|
63
|
+
self.conversation_department_oids = value
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -89,7 +89,7 @@ module UltracartClient
|
|
|
89
89
|
self.class == o.class &&
|
|
90
90
|
canned_message == o.canned_message &&
|
|
91
91
|
conversation_canned_message_oid == o.conversation_canned_message_oid &&
|
|
92
|
-
|
|
92
|
+
conversation_department_oids == o.conversation_department_oids &&
|
|
93
93
|
short_code == o.short_code
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -102,7 +102,7 @@ module UltracartClient
|
|
|
102
102
|
# Calculates hash code according to all attributes.
|
|
103
103
|
# @return [Fixnum] Hash code
|
|
104
104
|
def hash
|
|
105
|
-
[canned_message, conversation_canned_message_oid,
|
|
105
|
+
[canned_message, conversation_canned_message_oid, conversation_department_oids, short_code].hash
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
# Builds the object from hash
|
|
@@ -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
|
@@ -150,6 +150,7 @@ require 'ultracart_api/models/conversation_event_read_message'
|
|
|
150
150
|
require 'ultracart_api/models/conversation_event_typing'
|
|
151
151
|
require 'ultracart_api/models/conversation_event_webchat_context'
|
|
152
152
|
require 'ultracart_api/models/conversation_message'
|
|
153
|
+
require 'ultracart_api/models/conversation_message_translation'
|
|
153
154
|
require 'ultracart_api/models/conversation_message_transport_status'
|
|
154
155
|
require 'ultracart_api/models/conversation_messages_response'
|
|
155
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
|
|
@@ -360,6 +360,7 @@ files:
|
|
|
360
360
|
- docs/ConversationEventTyping.md
|
|
361
361
|
- docs/ConversationEventWebchatContext.md
|
|
362
362
|
- docs/ConversationMessage.md
|
|
363
|
+
- docs/ConversationMessageTranslation.md
|
|
363
364
|
- docs/ConversationMessageTransportStatus.md
|
|
364
365
|
- docs/ConversationMessagesResponse.md
|
|
365
366
|
- docs/ConversationMultimediaUploadUrl.md
|
|
@@ -1094,6 +1095,7 @@ files:
|
|
|
1094
1095
|
- lib/ultracart_api/models/conversation_event_typing.rb
|
|
1095
1096
|
- lib/ultracart_api/models/conversation_event_webchat_context.rb
|
|
1096
1097
|
- lib/ultracart_api/models/conversation_message.rb
|
|
1098
|
+
- lib/ultracart_api/models/conversation_message_translation.rb
|
|
1097
1099
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
|
1098
1100
|
- lib/ultracart_api/models/conversation_messages_response.rb
|
|
1099
1101
|
- lib/ultracart_api/models/conversation_multimedia_upload_url.rb
|