ultracart_api 3.10.20 → 3.10.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -4
- data/docs/AutoOrder.md +1 -0
- data/docs/AutoOrderManagement.md +8 -0
- data/docs/ConversationAgentAuth.md +13 -0
- data/docs/ConversationAgentAuthResponse.md +5 -3
- data/docs/ConversationApi.md +53 -2
- data/docs/ConversationEventQueuePosition.md +7 -0
- data/docs/ConversationMessage.md +1 -0
- data/docs/ConversationMessageTransportStatus.md +9 -0
- data/docs/ConversationMultimediaUploadUrl.md +9 -0
- data/docs/ConversationMultimediaUploadUrlResponse.md +12 -0
- data/docs/ConversationResponse.md +12 -0
- data/docs/ConversationStartRequest.md +1 -0
- data/docs/ConversationStartResponse.md +1 -2
- data/docs/ConversationWebsocketMessage.md +16 -0
- data/lib/ultracart_api/api/conversation_api.rb +58 -3
- data/lib/ultracart_api/models/auto_order.rb +10 -1
- data/lib/ultracart_api/models/auto_order_management.rb +185 -0
- data/lib/ultracart_api/models/conversation_agent_auth.rb +231 -0
- data/lib/ultracart_api/models/conversation_agent_auth_response.rb +38 -19
- data/lib/ultracart_api/models/conversation_event_queue_position.rb +175 -0
- data/lib/ultracart_api/models/conversation_message.rb +15 -4
- data/lib/ultracart_api/models/conversation_message_transport_status.rb +193 -0
- data/lib/ultracart_api/models/conversation_multimedia_upload_url.rb +193 -0
- data/lib/ultracart_api/models/conversation_multimedia_upload_url_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_start_request.rb +13 -4
- data/lib/ultracart_api/models/conversation_start_response.rb +7 -16
- data/lib/ultracart_api/models/conversation_websocket_message.rb +305 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +8 -0
- metadata +18 -2
@@ -0,0 +1,231 @@
|
|
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 ConversationAgentAuth
|
17
|
+
attr_accessor :conversation_participant_arn
|
18
|
+
|
19
|
+
attr_accessor :conversation_participant_name
|
20
|
+
|
21
|
+
attr_accessor :jwt
|
22
|
+
|
23
|
+
attr_accessor :merchant_id
|
24
|
+
|
25
|
+
attr_accessor :twilio_phone_numbers
|
26
|
+
|
27
|
+
attr_accessor :websocket_url
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'conversation_participant_arn' => :'conversation_participant_arn',
|
33
|
+
:'conversation_participant_name' => :'conversation_participant_name',
|
34
|
+
:'jwt' => :'jwt',
|
35
|
+
:'merchant_id' => :'merchant_id',
|
36
|
+
:'twilio_phone_numbers' => :'twilio_phone_numbers',
|
37
|
+
:'websocket_url' => :'websocket_url'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.swagger_types
|
43
|
+
{
|
44
|
+
:'conversation_participant_arn' => :'String',
|
45
|
+
:'conversation_participant_name' => :'String',
|
46
|
+
:'jwt' => :'String',
|
47
|
+
:'merchant_id' => :'String',
|
48
|
+
:'twilio_phone_numbers' => :'Array<String>',
|
49
|
+
:'websocket_url' => :'String'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
return unless attributes.is_a?(Hash)
|
57
|
+
|
58
|
+
# convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
60
|
+
|
61
|
+
if attributes.has_key?(:'conversation_participant_arn')
|
62
|
+
self.conversation_participant_arn = attributes[:'conversation_participant_arn']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'conversation_participant_name')
|
66
|
+
self.conversation_participant_name = attributes[:'conversation_participant_name']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'jwt')
|
70
|
+
self.jwt = attributes[:'jwt']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'merchant_id')
|
74
|
+
self.merchant_id = attributes[:'merchant_id']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'twilio_phone_numbers')
|
78
|
+
if (value = attributes[:'twilio_phone_numbers']).is_a?(Array)
|
79
|
+
self.twilio_phone_numbers = value
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'websocket_url')
|
84
|
+
self.websocket_url = attributes[:'websocket_url']
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
89
|
+
# @return Array for valid properties with the reasons
|
90
|
+
def list_invalid_properties
|
91
|
+
invalid_properties = Array.new
|
92
|
+
invalid_properties
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
def valid?
|
98
|
+
true
|
99
|
+
end
|
100
|
+
|
101
|
+
# Checks equality by comparing each attribute.
|
102
|
+
# @param [Object] Object to be compared
|
103
|
+
def ==(o)
|
104
|
+
return true if self.equal?(o)
|
105
|
+
self.class == o.class &&
|
106
|
+
conversation_participant_arn == o.conversation_participant_arn &&
|
107
|
+
conversation_participant_name == o.conversation_participant_name &&
|
108
|
+
jwt == o.jwt &&
|
109
|
+
merchant_id == o.merchant_id &&
|
110
|
+
twilio_phone_numbers == o.twilio_phone_numbers &&
|
111
|
+
websocket_url == o.websocket_url
|
112
|
+
end
|
113
|
+
|
114
|
+
# @see the `==` method
|
115
|
+
# @param [Object] Object to be compared
|
116
|
+
def eql?(o)
|
117
|
+
self == o
|
118
|
+
end
|
119
|
+
|
120
|
+
# Calculates hash code according to all attributes.
|
121
|
+
# @return [Fixnum] Hash code
|
122
|
+
def hash
|
123
|
+
[conversation_participant_arn, conversation_participant_name, jwt, merchant_id, twilio_phone_numbers, websocket_url].hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# Builds the object from hash
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
128
|
+
# @return [Object] Returns the model itself
|
129
|
+
def build_from_hash(attributes)
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
131
|
+
self.class.swagger_types.each_pair do |key, type|
|
132
|
+
if type =~ /\AArray<(.*)>/i
|
133
|
+
# check to ensure the input is an array given that the attribute
|
134
|
+
# is documented as an array but the input is not
|
135
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
136
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
137
|
+
end
|
138
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
139
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
140
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
141
|
+
end
|
142
|
+
|
143
|
+
self
|
144
|
+
end
|
145
|
+
|
146
|
+
# Deserializes the data based on type
|
147
|
+
# @param string type Data type
|
148
|
+
# @param string value Value to be deserialized
|
149
|
+
# @return [Object] Deserialized data
|
150
|
+
def _deserialize(type, value)
|
151
|
+
case type.to_sym
|
152
|
+
when :DateTime
|
153
|
+
DateTime.parse(value)
|
154
|
+
when :Date
|
155
|
+
Date.parse(value)
|
156
|
+
when :String
|
157
|
+
value.to_s
|
158
|
+
when :Integer
|
159
|
+
value.to_i
|
160
|
+
when :Float
|
161
|
+
value.to_f
|
162
|
+
when :BOOLEAN
|
163
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
164
|
+
true
|
165
|
+
else
|
166
|
+
false
|
167
|
+
end
|
168
|
+
when :Object
|
169
|
+
# generic object (usually a Hash), return directly
|
170
|
+
value
|
171
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
172
|
+
inner_type = Regexp.last_match[:inner_type]
|
173
|
+
value.map { |v| _deserialize(inner_type, v) }
|
174
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
175
|
+
k_type = Regexp.last_match[:k_type]
|
176
|
+
v_type = Regexp.last_match[:v_type]
|
177
|
+
{}.tap do |hash|
|
178
|
+
value.each do |k, v|
|
179
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
else # model
|
183
|
+
temp_model = UltracartClient.const_get(type).new
|
184
|
+
temp_model.build_from_hash(value)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
# Returns the string representation of the object
|
189
|
+
# @return [String] String presentation of the object
|
190
|
+
def to_s
|
191
|
+
to_hash.to_s
|
192
|
+
end
|
193
|
+
|
194
|
+
# to_body is an alias to to_hash (backward compatibility)
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
196
|
+
def to_body
|
197
|
+
to_hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# Returns the object in the form of hash
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
202
|
+
def to_hash
|
203
|
+
hash = {}
|
204
|
+
self.class.attribute_map.each_pair do |attr, param|
|
205
|
+
value = self.send(attr)
|
206
|
+
next if value.nil?
|
207
|
+
hash[param] = _to_hash(value)
|
208
|
+
end
|
209
|
+
hash
|
210
|
+
end
|
211
|
+
|
212
|
+
# Outputs non-array value in the form of hash
|
213
|
+
# For object, use to_hash. Otherwise, just return the value
|
214
|
+
# @param [Object] value Any valid value
|
215
|
+
# @return [Hash] Returns the value in the form of hash
|
216
|
+
def _to_hash(value)
|
217
|
+
if value.is_a?(Array)
|
218
|
+
value.compact.map { |v| _to_hash(v) }
|
219
|
+
elsif value.is_a?(Hash)
|
220
|
+
{}.tap do |hash|
|
221
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
222
|
+
end
|
223
|
+
elsif value.respond_to? :to_hash
|
224
|
+
value.to_hash
|
225
|
+
else
|
226
|
+
value
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
end
|
231
|
+
end
|
@@ -14,27 +14,36 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ConversationAgentAuthResponse
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :agent_auth
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :error
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :metadata
|
22
|
+
|
23
|
+
# Indicates if API call was successful
|
24
|
+
attr_accessor :success
|
25
|
+
|
26
|
+
attr_accessor :warning
|
22
27
|
|
23
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
29
|
def self.attribute_map
|
25
30
|
{
|
26
|
-
:'
|
27
|
-
:'
|
28
|
-
:'
|
31
|
+
:'agent_auth' => :'agent_auth',
|
32
|
+
:'error' => :'error',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'success' => :'success',
|
35
|
+
:'warning' => :'warning'
|
29
36
|
}
|
30
37
|
end
|
31
38
|
|
32
39
|
# Attribute type mapping.
|
33
40
|
def self.swagger_types
|
34
41
|
{
|
35
|
-
:'
|
36
|
-
:'
|
37
|
-
:'
|
42
|
+
:'agent_auth' => :'ConversationAgentAuth',
|
43
|
+
:'error' => :'Error',
|
44
|
+
:'metadata' => :'ResponseMetadata',
|
45
|
+
:'success' => :'BOOLEAN',
|
46
|
+
:'warning' => :'Warning'
|
38
47
|
}
|
39
48
|
end
|
40
49
|
|
@@ -46,16 +55,24 @@ module UltracartClient
|
|
46
55
|
# convert string to symbol for hash key
|
47
56
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
57
|
|
49
|
-
if attributes.has_key?(:'
|
50
|
-
self.
|
58
|
+
if attributes.has_key?(:'agent_auth')
|
59
|
+
self.agent_auth = attributes[:'agent_auth']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'error')
|
63
|
+
self.error = attributes[:'error']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'metadata')
|
67
|
+
self.metadata = attributes[:'metadata']
|
51
68
|
end
|
52
69
|
|
53
|
-
if attributes.has_key?(:'
|
54
|
-
self.
|
70
|
+
if attributes.has_key?(:'success')
|
71
|
+
self.success = attributes[:'success']
|
55
72
|
end
|
56
73
|
|
57
|
-
if attributes.has_key?(:'
|
58
|
-
self.
|
74
|
+
if attributes.has_key?(:'warning')
|
75
|
+
self.warning = attributes[:'warning']
|
59
76
|
end
|
60
77
|
end
|
61
78
|
|
@@ -77,9 +94,11 @@ module UltracartClient
|
|
77
94
|
def ==(o)
|
78
95
|
return true if self.equal?(o)
|
79
96
|
self.class == o.class &&
|
80
|
-
|
81
|
-
|
82
|
-
|
97
|
+
agent_auth == o.agent_auth &&
|
98
|
+
error == o.error &&
|
99
|
+
metadata == o.metadata &&
|
100
|
+
success == o.success &&
|
101
|
+
warning == o.warning
|
83
102
|
end
|
84
103
|
|
85
104
|
# @see the `==` method
|
@@ -91,7 +110,7 @@ module UltracartClient
|
|
91
110
|
# Calculates hash code according to all attributes.
|
92
111
|
# @return [Fixnum] Hash code
|
93
112
|
def hash
|
94
|
-
[
|
113
|
+
[agent_auth, error, metadata, success, warning].hash
|
95
114
|
end
|
96
115
|
|
97
116
|
# Builds the object from hash
|
@@ -0,0 +1,175 @@
|
|
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 ConversationEventQueuePosition
|
17
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
18
|
+
def self.attribute_map
|
19
|
+
{
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
# Attribute type mapping.
|
24
|
+
def self.swagger_types
|
25
|
+
{
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Initializes the object
|
30
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return unless attributes.is_a?(Hash)
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
36
|
+
end
|
37
|
+
|
38
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
39
|
+
# @return Array for valid properties with the reasons
|
40
|
+
def list_invalid_properties
|
41
|
+
invalid_properties = Array.new
|
42
|
+
invalid_properties
|
43
|
+
end
|
44
|
+
|
45
|
+
# Check to see if the all the properties in the model are valid
|
46
|
+
# @return true if the model is valid
|
47
|
+
def valid?
|
48
|
+
true
|
49
|
+
end
|
50
|
+
|
51
|
+
# Checks equality by comparing each attribute.
|
52
|
+
# @param [Object] Object to be compared
|
53
|
+
def ==(o)
|
54
|
+
return true if self.equal?(o)
|
55
|
+
self.class == o.class
|
56
|
+
end
|
57
|
+
|
58
|
+
# @see the `==` method
|
59
|
+
# @param [Object] Object to be compared
|
60
|
+
def eql?(o)
|
61
|
+
self == o
|
62
|
+
end
|
63
|
+
|
64
|
+
# Calculates hash code according to all attributes.
|
65
|
+
# @return [Fixnum] Hash code
|
66
|
+
def hash
|
67
|
+
[].hash
|
68
|
+
end
|
69
|
+
|
70
|
+
# Builds the object from hash
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
72
|
+
# @return [Object] Returns the model itself
|
73
|
+
def build_from_hash(attributes)
|
74
|
+
return nil unless attributes.is_a?(Hash)
|
75
|
+
self.class.swagger_types.each_pair do |key, type|
|
76
|
+
if type =~ /\AArray<(.*)>/i
|
77
|
+
# check to ensure the input is an array given that the attribute
|
78
|
+
# is documented as an array but the input is not
|
79
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
80
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
81
|
+
end
|
82
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
83
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
84
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
85
|
+
end
|
86
|
+
|
87
|
+
self
|
88
|
+
end
|
89
|
+
|
90
|
+
# Deserializes the data based on type
|
91
|
+
# @param string type Data type
|
92
|
+
# @param string value Value to be deserialized
|
93
|
+
# @return [Object] Deserialized data
|
94
|
+
def _deserialize(type, value)
|
95
|
+
case type.to_sym
|
96
|
+
when :DateTime
|
97
|
+
DateTime.parse(value)
|
98
|
+
when :Date
|
99
|
+
Date.parse(value)
|
100
|
+
when :String
|
101
|
+
value.to_s
|
102
|
+
when :Integer
|
103
|
+
value.to_i
|
104
|
+
when :Float
|
105
|
+
value.to_f
|
106
|
+
when :BOOLEAN
|
107
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
108
|
+
true
|
109
|
+
else
|
110
|
+
false
|
111
|
+
end
|
112
|
+
when :Object
|
113
|
+
# generic object (usually a Hash), return directly
|
114
|
+
value
|
115
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
116
|
+
inner_type = Regexp.last_match[:inner_type]
|
117
|
+
value.map { |v| _deserialize(inner_type, v) }
|
118
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
119
|
+
k_type = Regexp.last_match[:k_type]
|
120
|
+
v_type = Regexp.last_match[:v_type]
|
121
|
+
{}.tap do |hash|
|
122
|
+
value.each do |k, v|
|
123
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
else # model
|
127
|
+
temp_model = UltracartClient.const_get(type).new
|
128
|
+
temp_model.build_from_hash(value)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# Returns the string representation of the object
|
133
|
+
# @return [String] String presentation of the object
|
134
|
+
def to_s
|
135
|
+
to_hash.to_s
|
136
|
+
end
|
137
|
+
|
138
|
+
# to_body is an alias to to_hash (backward compatibility)
|
139
|
+
# @return [Hash] Returns the object in the form of hash
|
140
|
+
def to_body
|
141
|
+
to_hash
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns the object in the form of hash
|
145
|
+
# @return [Hash] Returns the object in the form of hash
|
146
|
+
def to_hash
|
147
|
+
hash = {}
|
148
|
+
self.class.attribute_map.each_pair do |attr, param|
|
149
|
+
value = self.send(attr)
|
150
|
+
next if value.nil?
|
151
|
+
hash[param] = _to_hash(value)
|
152
|
+
end
|
153
|
+
hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Outputs non-array value in the form of hash
|
157
|
+
# For object, use to_hash. Otherwise, just return the value
|
158
|
+
# @param [Object] value Any valid value
|
159
|
+
# @return [Hash] Returns the value in the form of hash
|
160
|
+
def _to_hash(value)
|
161
|
+
if value.is_a?(Array)
|
162
|
+
value.compact.map { |v| _to_hash(v) }
|
163
|
+
elsif value.is_a?(Hash)
|
164
|
+
{}.tap do |hash|
|
165
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
166
|
+
end
|
167
|
+
elsif value.respond_to? :to_hash
|
168
|
+
value.to_hash
|
169
|
+
else
|
170
|
+
value
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
end
|
175
|
+
end
|
@@ -25,6 +25,8 @@ module UltracartClient
|
|
25
25
|
# Message date/time
|
26
26
|
attr_accessor :message_dts
|
27
27
|
|
28
|
+
attr_accessor :transport_statuses
|
29
|
+
|
28
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
31
|
def self.attribute_map
|
30
32
|
{
|
@@ -32,7 +34,8 @@ module UltracartClient
|
|
32
34
|
:'author_conversation_participant_name' => :'author_conversation_participant_name',
|
33
35
|
:'body' => :'body',
|
34
36
|
:'media_urls' => :'media_urls',
|
35
|
-
:'message_dts' => :'message_dts'
|
37
|
+
:'message_dts' => :'message_dts',
|
38
|
+
:'transport_statuses' => :'transport_statuses'
|
36
39
|
}
|
37
40
|
end
|
38
41
|
|
@@ -43,7 +46,8 @@ module UltracartClient
|
|
43
46
|
:'author_conversation_participant_name' => :'String',
|
44
47
|
:'body' => :'String',
|
45
48
|
:'media_urls' => :'Array<String>',
|
46
|
-
:'message_dts' => :'String'
|
49
|
+
:'message_dts' => :'String',
|
50
|
+
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>'
|
47
51
|
}
|
48
52
|
end
|
49
53
|
|
@@ -76,6 +80,12 @@ module UltracartClient
|
|
76
80
|
if attributes.has_key?(:'message_dts')
|
77
81
|
self.message_dts = attributes[:'message_dts']
|
78
82
|
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'transport_statuses')
|
85
|
+
if (value = attributes[:'transport_statuses']).is_a?(Array)
|
86
|
+
self.transport_statuses = value
|
87
|
+
end
|
88
|
+
end
|
79
89
|
end
|
80
90
|
|
81
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -100,7 +110,8 @@ module UltracartClient
|
|
100
110
|
author_conversation_participant_name == o.author_conversation_participant_name &&
|
101
111
|
body == o.body &&
|
102
112
|
media_urls == o.media_urls &&
|
103
|
-
message_dts == o.message_dts
|
113
|
+
message_dts == o.message_dts &&
|
114
|
+
transport_statuses == o.transport_statuses
|
104
115
|
end
|
105
116
|
|
106
117
|
# @see the `==` method
|
@@ -112,7 +123,7 @@ module UltracartClient
|
|
112
123
|
# Calculates hash code according to all attributes.
|
113
124
|
# @return [Fixnum] Hash code
|
114
125
|
def hash
|
115
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts].hash
|
126
|
+
[author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts, transport_statuses].hash
|
116
127
|
end
|
117
128
|
|
118
129
|
# Builds the object from hash
|