ultracart_api 3.10.35 → 3.10.36

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3dbe4041903160621b31cc00f4eae0c5ae86caaae5b66eac840c8a8435307d20
4
- data.tar.gz: 8d89bab88881558484445eace4bdabded0aadf438568a4b5d04e66fc594c07db
3
+ metadata.gz: 3b75380953d4d7da5c137cbca4a1f313dd2cb9703d63432ccfdfb5227e429fc6
4
+ data.tar.gz: 705fcd4bfad77c3e54b26542f0f2046778bfd91322f351a04200d0ecd80fbee3
5
5
  SHA512:
6
- metadata.gz: 755635be9b71b07b2f2a52c2137a864f75bbb22b92a53673f41a23d1e167e93ae6a041ab1971b8aeb3f9d9c9f833eb8d7bd9638db66058316111df8d84a621da
7
- data.tar.gz: c00423e2c80c83046c3f053dbb6322c9f0ba12da7df5765bc5bb467081ee2a1b36927ff27815a8768734a126239150e6bf4a444591e1194704e1110a7a54abd0
6
+ metadata.gz: 7d3120c26795f78dba3e7b13c495ef20282275a24843e99bc85427126b6dd00d6b05f1b1736418d5cd57cfde5e46c8d51946337748346eeeaaef2401ba60e442
7
+ data.tar.gz: 3f6be0b362628677a4143ad6cc0582d0ce496023f3da353d84e87927132ae15cc0d765202ac910e3b20bd375c5effabfbfa98abd80797df6282298821c55f830
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.35
10
+ - Package version: 3.10.36
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.35.gem
27
+ gem install ./ultracart_api-3.10.36.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.35.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.36.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'
35
+ gem 'ultracart_api', '~> 3.10.36'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -564,6 +564,7 @@ Class | Method | HTTP request | Description
564
564
  - [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
565
565
  - [UltracartClient::ConversationEventQueuePosition](docs/ConversationEventQueuePosition.md)
566
566
  - [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
567
+ - [UltracartClient::ConversationEventReadMessage](docs/ConversationEventReadMessage.md)
567
568
  - [UltracartClient::ConversationEventTyping](docs/ConversationEventTyping.md)
568
569
  - [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
569
570
  - [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
@@ -1172,6 +1173,7 @@ Not every change is committed to every SDK.
1172
1173
 
1173
1174
  | Version | Date | Comments |
1174
1175
  | --: | :-: | --- |
1176
+ | 3.10.36 | 08/10/2022 | conversation event refactoring |
1175
1177
  | 3.10.35 | 08/05/2022 | conversation adjustments for ES integration |
1176
1178
  | 3.10.34 | 08/05/2022 | conversations query by medium and stats fixes |
1177
1179
  | 3.10.33 | 08/03/2022 | conversation summary participants |
@@ -0,0 +1,10 @@
1
+ # UltracartClient::ConversationEventReadMessage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **conversation_message_uuid** | **String** | | [optional]
7
+ **message_dts** | **String** | Message date/time | [optional]
8
+ **message_epoch** | **Integer** | | [optional]
9
+
10
+
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **media_urls** | **Array<String>** | | [optional]
12
12
  **merchant_id** | **String** | | [optional]
13
13
  **message_dts** | **String** | Message date/time | [optional]
14
+ **message_epoch** | **Integer** | Message epoch milliseconds | [optional]
14
15
  **transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional]
15
16
  **type** | **String** | Message type | [optional]
16
17
  **upload_keys** | **Array<String>** | | [optional]
@@ -4,6 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **conversation_participant_arn** | **String** | | [optional]
7
- **status** | **String** | | [optional]
7
+ **status** | **String** | The status of the message transport | [optional]
8
8
 
9
9
 
@@ -10,5 +10,6 @@ Name | Type | Description | Notes
10
10
  **last_message_dts** | **String** | Last message date/time | [optional]
11
11
  **left_dts** | **String** | Left conversation date/time | [optional]
12
12
  **status** | **String** | | [optional]
13
+ **unread_messages** | **Integer** | | [optional]
13
14
 
14
15
 
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **event_participant_update** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
11
11
  **event_queue_position** | [**ConversationEventQueuePosition**](ConversationEventQueuePosition.md) | | [optional]
12
12
  **event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional]
13
+ **event_read_message** | [**ConversationEventReadMessage**](ConversationEventReadMessage.md) | | [optional]
13
14
  **event_rrweb** | [**ConversationEventRRWeb**](ConversationEventRRWeb.md) | | [optional]
14
15
  **event_type** | **String** | Type of event | [optional]
15
16
  **event_typing** | [**ConversationEventTyping**](ConversationEventTyping.md) | | [optional]
@@ -3,5 +3,6 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **ignore_this_property** | **BOOLEAN** | This property does nothing but is included in this object to ensure the object is generated by our sdk builders. | [optional]
6
7
 
7
8
 
@@ -0,0 +1,203 @@
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 ConversationEventReadMessage
17
+ attr_accessor :conversation_message_uuid
18
+
19
+ # Message date/time
20
+ attr_accessor :message_dts
21
+
22
+ attr_accessor :message_epoch
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'conversation_message_uuid' => :'conversation_message_uuid',
28
+ :'message_dts' => :'message_dts',
29
+ :'message_epoch' => :'message_epoch'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+ :'conversation_message_uuid' => :'String',
37
+ :'message_dts' => :'String',
38
+ :'message_epoch' => :'Integer'
39
+ }
40
+ end
41
+
42
+ # Initializes the object
43
+ # @param [Hash] attributes Model attributes in the form of hash
44
+ def initialize(attributes = {})
45
+ return unless attributes.is_a?(Hash)
46
+
47
+ # convert string to symbol for hash key
48
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
49
+
50
+ if attributes.has_key?(:'conversation_message_uuid')
51
+ self.conversation_message_uuid = attributes[:'conversation_message_uuid']
52
+ end
53
+
54
+ if attributes.has_key?(:'message_dts')
55
+ self.message_dts = attributes[:'message_dts']
56
+ end
57
+
58
+ if attributes.has_key?(:'message_epoch')
59
+ self.message_epoch = attributes[:'message_epoch']
60
+ end
61
+ end
62
+
63
+ # Show invalid properties with the reasons. Usually used together with valid?
64
+ # @return Array for valid properties with the reasons
65
+ def list_invalid_properties
66
+ invalid_properties = Array.new
67
+ invalid_properties
68
+ end
69
+
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ def valid?
73
+ true
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ conversation_message_uuid == o.conversation_message_uuid &&
82
+ message_dts == o.message_dts &&
83
+ message_epoch == o.message_epoch
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Fixnum] Hash code
94
+ def hash
95
+ [conversation_message_uuid, message_dts, message_epoch].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def build_from_hash(attributes)
102
+ return nil unless attributes.is_a?(Hash)
103
+ self.class.swagger_types.each_pair do |key, type|
104
+ if type =~ /\AArray<(.*)>/i
105
+ # check to ensure the input is an array given that the attribute
106
+ # is documented as an array but the input is not
107
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
108
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
109
+ end
110
+ elsif !attributes[self.class.attribute_map[key]].nil?
111
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
112
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
113
+ end
114
+
115
+ self
116
+ end
117
+
118
+ # Deserializes the data based on type
119
+ # @param string type Data type
120
+ # @param string value Value to be deserialized
121
+ # @return [Object] Deserialized data
122
+ def _deserialize(type, value)
123
+ case type.to_sym
124
+ when :DateTime
125
+ DateTime.parse(value)
126
+ when :Date
127
+ Date.parse(value)
128
+ when :String
129
+ value.to_s
130
+ when :Integer
131
+ value.to_i
132
+ when :Float
133
+ value.to_f
134
+ when :BOOLEAN
135
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
136
+ true
137
+ else
138
+ false
139
+ end
140
+ when :Object
141
+ # generic object (usually a Hash), return directly
142
+ value
143
+ when /\AArray<(?<inner_type>.+)>\z/
144
+ inner_type = Regexp.last_match[:inner_type]
145
+ value.map { |v| _deserialize(inner_type, v) }
146
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
147
+ k_type = Regexp.last_match[:k_type]
148
+ v_type = Regexp.last_match[:v_type]
149
+ {}.tap do |hash|
150
+ value.each do |k, v|
151
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
152
+ end
153
+ end
154
+ else # model
155
+ temp_model = UltracartClient.const_get(type).new
156
+ temp_model.build_from_hash(value)
157
+ end
158
+ end
159
+
160
+ # Returns the string representation of the object
161
+ # @return [String] String presentation of the object
162
+ def to_s
163
+ to_hash.to_s
164
+ end
165
+
166
+ # to_body is an alias to to_hash (backward compatibility)
167
+ # @return [Hash] Returns the object in the form of hash
168
+ def to_body
169
+ to_hash
170
+ end
171
+
172
+ # Returns the object in the form of hash
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_hash
175
+ hash = {}
176
+ self.class.attribute_map.each_pair do |attr, param|
177
+ value = self.send(attr)
178
+ next if value.nil?
179
+ hash[param] = _to_hash(value)
180
+ end
181
+ hash
182
+ end
183
+
184
+ # Outputs non-array value in the form of hash
185
+ # For object, use to_hash. Otherwise, just return the value
186
+ # @param [Object] value Any valid value
187
+ # @return [Hash] Returns the value in the form of hash
188
+ def _to_hash(value)
189
+ if value.is_a?(Array)
190
+ value.compact.map { |v| _to_hash(v) }
191
+ elsif value.is_a?(Hash)
192
+ {}.tap do |hash|
193
+ value.each { |k, v| hash[k] = _to_hash(v) }
194
+ end
195
+ elsif value.respond_to? :to_hash
196
+ value.to_hash
197
+ else
198
+ value
199
+ end
200
+ end
201
+
202
+ end
203
+ end
@@ -31,6 +31,9 @@ module UltracartClient
31
31
  # Message date/time
32
32
  attr_accessor :message_dts
33
33
 
34
+ # Message epoch milliseconds
35
+ attr_accessor :message_epoch
36
+
34
37
  attr_accessor :transport_statuses
35
38
 
36
39
  # Message type
@@ -71,6 +74,7 @@ module UltracartClient
71
74
  :'media_urls' => :'media_urls',
72
75
  :'merchant_id' => :'merchant_id',
73
76
  :'message_dts' => :'message_dts',
77
+ :'message_epoch' => :'message_epoch',
74
78
  :'transport_statuses' => :'transport_statuses',
75
79
  :'type' => :'type',
76
80
  :'upload_keys' => :'upload_keys'
@@ -88,6 +92,7 @@ module UltracartClient
88
92
  :'media_urls' => :'Array<String>',
89
93
  :'merchant_id' => :'String',
90
94
  :'message_dts' => :'String',
95
+ :'message_epoch' => :'Integer',
91
96
  :'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
92
97
  :'type' => :'String',
93
98
  :'upload_keys' => :'Array<String>'
@@ -136,6 +141,10 @@ module UltracartClient
136
141
  self.message_dts = attributes[:'message_dts']
137
142
  end
138
143
 
144
+ if attributes.has_key?(:'message_epoch')
145
+ self.message_epoch = attributes[:'message_epoch']
146
+ end
147
+
139
148
  if attributes.has_key?(:'transport_statuses')
140
149
  if (value = attributes[:'transport_statuses']).is_a?(Array)
141
150
  self.transport_statuses = value
@@ -191,6 +200,7 @@ module UltracartClient
191
200
  media_urls == o.media_urls &&
192
201
  merchant_id == o.merchant_id &&
193
202
  message_dts == o.message_dts &&
203
+ message_epoch == o.message_epoch &&
194
204
  transport_statuses == o.transport_statuses &&
195
205
  type == o.type &&
196
206
  upload_keys == o.upload_keys
@@ -205,7 +215,7 @@ module UltracartClient
205
215
  # Calculates hash code according to all attributes.
206
216
  # @return [Fixnum] Hash code
207
217
  def hash
208
- [author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, conversation_message_uuid, media_urls, merchant_id, message_dts, transport_statuses, type, upload_keys].hash
218
+ [author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, conversation_message_uuid, media_urls, merchant_id, message_dts, message_epoch, transport_statuses, type, upload_keys].hash
209
219
  end
210
220
 
211
221
  # Builds the object from hash
@@ -16,8 +16,31 @@ module UltracartClient
16
16
  class ConversationMessageTransportStatus
17
17
  attr_accessor :conversation_participant_arn
18
18
 
19
+ # The status of the message transport
19
20
  attr_accessor :status
20
21
 
22
+ class EnumAttributeValidator
23
+ attr_reader :datatype
24
+ attr_reader :allowable_values
25
+
26
+ def initialize(datatype, allowable_values)
27
+ @allowable_values = allowable_values.map do |value|
28
+ case datatype.to_s
29
+ when /Integer/i
30
+ value.to_i
31
+ when /Float/i
32
+ value.to_f
33
+ else
34
+ value
35
+ end
36
+ end
37
+ end
38
+
39
+ def valid?(value)
40
+ !value || allowable_values.include?(value)
41
+ end
42
+ end
43
+
21
44
  # Attribute mapping from ruby-style variable name to JSON key.
22
45
  def self.attribute_map
23
46
  {
@@ -61,9 +84,21 @@ module UltracartClient
61
84
  # Check to see if the all the properties in the model are valid
62
85
  # @return true if the model is valid
63
86
  def valid?
87
+ status_validator = EnumAttributeValidator.new('String', ['accepted', 'scheduled', 'queued', 'sending', 'sent', 'read', 'TWILIO_CREDENTIALS_MISSING', 'SENT_TO_TWILIO', 'TWILIO_ERROR', 'SENT_TO_PINPOINT', 'PINPOINT_ERROR'])
88
+ return false unless status_validator.valid?(@status)
64
89
  true
65
90
  end
66
91
 
92
+ # Custom attribute writer method checking allowed values (enum).
93
+ # @param [Object] status Object to be assigned
94
+ def status=(status)
95
+ validator = EnumAttributeValidator.new('String', ['accepted', 'scheduled', 'queued', 'sending', 'sent', 'read', 'TWILIO_CREDENTIALS_MISSING', 'SENT_TO_TWILIO', 'TWILIO_ERROR', 'SENT_TO_PINPOINT', 'PINPOINT_ERROR'])
96
+ unless validator.valid?(status)
97
+ fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
98
+ end
99
+ @status = status
100
+ end
101
+
67
102
  # Checks equality by comparing each attribute.
68
103
  # @param [Object] Object to be compared
69
104
  def ==(o)
@@ -31,6 +31,8 @@ module UltracartClient
31
31
 
32
32
  attr_accessor :status
33
33
 
34
+ attr_accessor :unread_messages
35
+
34
36
  # Attribute mapping from ruby-style variable name to JSON key.
35
37
  def self.attribute_map
36
38
  {
@@ -40,7 +42,8 @@ module UltracartClient
40
42
  :'joined_dts' => :'joined_dts',
41
43
  :'last_message_dts' => :'last_message_dts',
42
44
  :'left_dts' => :'left_dts',
43
- :'status' => :'status'
45
+ :'status' => :'status',
46
+ :'unread_messages' => :'unread_messages'
44
47
  }
45
48
  end
46
49
 
@@ -53,7 +56,8 @@ module UltracartClient
53
56
  :'joined_dts' => :'String',
54
57
  :'last_message_dts' => :'String',
55
58
  :'left_dts' => :'String',
56
- :'status' => :'String'
59
+ :'status' => :'String',
60
+ :'unread_messages' => :'Integer'
57
61
  }
58
62
  end
59
63
 
@@ -92,6 +96,10 @@ module UltracartClient
92
96
  if attributes.has_key?(:'status')
93
97
  self.status = attributes[:'status']
94
98
  end
99
+
100
+ if attributes.has_key?(:'unread_messages')
101
+ self.unread_messages = attributes[:'unread_messages']
102
+ end
95
103
  end
96
104
 
97
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -118,7 +126,8 @@ module UltracartClient
118
126
  joined_dts == o.joined_dts &&
119
127
  last_message_dts == o.last_message_dts &&
120
128
  left_dts == o.left_dts &&
121
- status == o.status
129
+ status == o.status &&
130
+ unread_messages == o.unread_messages
122
131
  end
123
132
 
124
133
  # @see the `==` method
@@ -130,7 +139,7 @@ module UltracartClient
130
139
  # Calculates hash code according to all attributes.
131
140
  # @return [Fixnum] Hash code
132
141
  def hash
133
- [conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, last_message_dts, left_dts, status].hash
142
+ [conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, last_message_dts, left_dts, status, unread_messages].hash
134
143
  end
135
144
 
136
145
  # Builds the object from hash
@@ -29,6 +29,8 @@ module UltracartClient
29
29
 
30
30
  attr_accessor :event_queue_status_update
31
31
 
32
+ attr_accessor :event_read_message
33
+
32
34
  attr_accessor :event_rrweb
33
35
 
34
36
  # Type of event
@@ -75,6 +77,7 @@ module UltracartClient
75
77
  :'event_participant_update' => :'event_participant_update',
76
78
  :'event_queue_position' => :'event_queue_position',
77
79
  :'event_queue_status_update' => :'event_queue_status_update',
80
+ :'event_read_message' => :'event_read_message',
78
81
  :'event_rrweb' => :'event_rrweb',
79
82
  :'event_type' => :'event_type',
80
83
  :'event_typing' => :'event_typing',
@@ -94,6 +97,7 @@ module UltracartClient
94
97
  :'event_participant_update' => :'ConversationSummary',
95
98
  :'event_queue_position' => :'ConversationEventQueuePosition',
96
99
  :'event_queue_status_update' => :'ConversationWebchatQueueStatus',
100
+ :'event_read_message' => :'ConversationEventReadMessage',
97
101
  :'event_rrweb' => :'ConversationEventRRWeb',
98
102
  :'event_type' => :'String',
99
103
  :'event_typing' => :'ConversationEventTyping',
@@ -139,6 +143,10 @@ module UltracartClient
139
143
  self.event_queue_status_update = attributes[:'event_queue_status_update']
140
144
  end
141
145
 
146
+ if attributes.has_key?(:'event_read_message')
147
+ self.event_read_message = attributes[:'event_read_message']
148
+ end
149
+
142
150
  if attributes.has_key?(:'event_rrweb')
143
151
  self.event_rrweb = attributes[:'event_rrweb']
144
152
  end
@@ -174,7 +182,7 @@ module UltracartClient
174
182
  # Check to see if the all the properties in the model are valid
175
183
  # @return true if the model is valid
176
184
  def valid?
177
- event_type_validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb', 'participant update'])
185
+ event_type_validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb', 'participant update', 'read message'])
178
186
  return false unless event_type_validator.valid?(@event_type)
179
187
  type_validator = EnumAttributeValidator.new('String', ['message', 'event', 'ping', 'check queue position'])
180
188
  return false unless type_validator.valid?(@type)
@@ -184,7 +192,7 @@ module UltracartClient
184
192
  # Custom attribute writer method checking allowed values (enum).
185
193
  # @param [Object] event_type Object to be assigned
186
194
  def event_type=(event_type)
187
- validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb', 'participant update'])
195
+ validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb', 'participant update', 'read message'])
188
196
  unless validator.valid?(event_type)
189
197
  fail ArgumentError, 'invalid value for "event_type", must be one of #{validator.allowable_values}.'
190
198
  end
@@ -213,6 +221,7 @@ module UltracartClient
213
221
  event_participant_update == o.event_participant_update &&
214
222
  event_queue_position == o.event_queue_position &&
215
223
  event_queue_status_update == o.event_queue_status_update &&
224
+ event_read_message == o.event_read_message &&
216
225
  event_rrweb == o.event_rrweb &&
217
226
  event_type == o.event_type &&
218
227
  event_typing == o.event_typing &&
@@ -230,7 +239,7 @@ module UltracartClient
230
239
  # Calculates hash code according to all attributes.
231
240
  # @return [Fixnum] Hash code
232
241
  def hash
233
- [conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_participant_update, event_queue_position, event_queue_status_update, event_rrweb, event_type, event_typing, event_updated_message, message, type].hash
242
+ [conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_participant_update, event_queue_position, event_queue_status_update, event_read_message, event_rrweb, event_type, event_typing, event_updated_message, message, type].hash
234
243
  end
235
244
 
236
245
  # Builds the object from hash
@@ -14,15 +14,20 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class CouponNoDiscount
17
+ # This property does nothing but is included in this object to ensure the object is generated by our sdk builders.
18
+ attr_accessor :ignore_this_property
19
+
17
20
  # Attribute mapping from ruby-style variable name to JSON key.
18
21
  def self.attribute_map
19
22
  {
23
+ :'ignore_this_property' => :'ignore_this_property'
20
24
  }
21
25
  end
22
26
 
23
27
  # Attribute type mapping.
24
28
  def self.swagger_types
25
29
  {
30
+ :'ignore_this_property' => :'BOOLEAN'
26
31
  }
27
32
  end
28
33
 
@@ -33,6 +38,10 @@ module UltracartClient
33
38
 
34
39
  # convert string to symbol for hash key
35
40
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
+
42
+ if attributes.has_key?(:'ignore_this_property')
43
+ self.ignore_this_property = attributes[:'ignore_this_property']
44
+ end
36
45
  end
37
46
 
38
47
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -52,7 +61,8 @@ module UltracartClient
52
61
  # @param [Object] Object to be compared
53
62
  def ==(o)
54
63
  return true if self.equal?(o)
55
- self.class == o.class
64
+ self.class == o.class &&
65
+ ignore_this_property == o.ignore_this_property
56
66
  end
57
67
 
58
68
  # @see the `==` method
@@ -64,7 +74,7 @@ module UltracartClient
64
74
  # Calculates hash code according to all attributes.
65
75
  # @return [Fixnum] Hash code
66
76
  def hash
67
- [].hash
77
+ [ignore_this_property].hash
68
78
  end
69
79
 
70
80
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.35'
14
+ VERSION = '3.10.36'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -139,6 +139,7 @@ require 'ultracart_api/models/conversation_agent_auth'
139
139
  require 'ultracart_api/models/conversation_agent_auth_response'
140
140
  require 'ultracart_api/models/conversation_event_queue_position'
141
141
  require 'ultracart_api/models/conversation_event_rr_web'
142
+ require 'ultracart_api/models/conversation_event_read_message'
142
143
  require 'ultracart_api/models/conversation_event_typing'
143
144
  require 'ultracart_api/models/conversation_message'
144
145
  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.35
4
+ version: 3.10.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -349,6 +349,7 @@ files:
349
349
  - docs/ConversationApi.md
350
350
  - docs/ConversationEventQueuePosition.md
351
351
  - docs/ConversationEventRRWeb.md
352
+ - docs/ConversationEventReadMessage.md
352
353
  - docs/ConversationEventTyping.md
353
354
  - docs/ConversationMessage.md
354
355
  - docs/ConversationMessageTransportStatus.md
@@ -1045,6 +1046,7 @@ files:
1045
1046
  - lib/ultracart_api/models/conversation_agent_auth.rb
1046
1047
  - lib/ultracart_api/models/conversation_agent_auth_response.rb
1047
1048
  - lib/ultracart_api/models/conversation_event_queue_position.rb
1049
+ - lib/ultracart_api/models/conversation_event_read_message.rb
1048
1050
  - lib/ultracart_api/models/conversation_event_rr_web.rb
1049
1051
  - lib/ultracart_api/models/conversation_event_typing.rb
1050
1052
  - lib/ultracart_api/models/conversation_message.rb