ultracart_api 3.10.32 → 3.10.35

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: a2b344c52198212cfc7c83b6a1ac5f1520d6b6fcdaf5c549c30392549e728369
4
- data.tar.gz: fed93ea72177fb94617dcc445c60ffd8a331c9fd97f58caa5164d7940e973be1
3
+ metadata.gz: 3dbe4041903160621b31cc00f4eae0c5ae86caaae5b66eac840c8a8435307d20
4
+ data.tar.gz: 8d89bab88881558484445eace4bdabded0aadf438568a4b5d04e66fc594c07db
5
5
  SHA512:
6
- metadata.gz: 56ed6c0e1680ec1d66959a42217132045f54afa559b30416b8926816bac2c933249a33285d3e8c7533ac034674eb3fddbdec4fdb313fe9cc79a60a95c607b1fa
7
- data.tar.gz: 3316892e49d0f28626fa1cbda664c5980b9a01c250994529045a50489fb739eb9a4c12dedf07cd92a76adbea89a8ee27e1b2c5486ec154d36b6a70758be0a28a
6
+ metadata.gz: 755635be9b71b07b2f2a52c2137a864f75bbb22b92a53673f41a23d1e167e93ae6a041ab1971b8aeb3f9d9c9f833eb8d7bd9638db66058316111df8d84a621da
7
+ data.tar.gz: c00423e2c80c83046c3f053dbb6322c9f0ba12da7df5765bc5bb467081ee2a1b36927ff27815a8768734a126239150e6bf4a444591e1194704e1110a7a54abd0
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.32
10
+ - Package version: 3.10.35
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.32.gem
27
+ gem install ./ultracart_api-3.10.35.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.32.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.35.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.32'
35
+ gem 'ultracart_api', '~> 3.10.35'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1172,6 +1172,9 @@ Not every change is committed to every SDK.
1172
1172
 
1173
1173
  | Version | Date | Comments |
1174
1174
  | --: | :-: | --- |
1175
+ | 3.10.35 | 08/05/2022 | conversation adjustments for ES integration |
1176
+ | 3.10.34 | 08/05/2022 | conversations query by medium and stats fixes |
1177
+ | 3.10.33 | 08/03/2022 | conversation summary participants |
1175
1178
  | 3.10.32 | 08/03/2022 | more conversation events |
1176
1179
  | 3.10.31 | 08/02/2022 | storefront communication sequence test method |
1177
1180
  | 3.10.30 | 08/01/2022 | conversation event refinement |
data/docs/Conversation.md CHANGED
@@ -6,8 +6,17 @@ Name | Type | Description | Notes
6
6
  **closed** | **BOOLEAN** | | [optional]
7
7
  **conversation_arn** | **String** | | [optional]
8
8
  **conversation_uuid** | **String** | | [optional]
9
+ **last_conversation_message_body** | **String** | | [optional]
10
+ **last_conversation_participant_arn** | **String** | | [optional]
11
+ **last_conversation_participant_name** | **String** | | [optional]
12
+ **last_message_dts** | **String** | Last message date/time | [optional]
13
+ **medium** | **String** | The communication medium of the customer. | [optional]
9
14
  **merchant_id** | **String** | | [optional]
15
+ **message_count** | **Integer** | | [optional]
10
16
  **messages** | [**Array<ConversationMessage>**](ConversationMessage.md) | | [optional]
11
17
  **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional]
18
+ **start_dts** | **String** | Start of the conversation date/time | [optional]
19
+ **unread_messages** | **BOOLEAN** | | [optional]
20
+ **visible** | **BOOLEAN** | | [optional]
12
21
 
13
22
 
@@ -223,6 +223,7 @@ api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, fa
223
223
 
224
224
 
225
225
  opts = {
226
+ medium: 'medium_example', # String |
226
227
  _limit: 100, # Integer | The maximum number of records to return on this one API call. (Max 200)
227
228
  _offset: 0 # Integer | Pagination of the record set. Offset is a zero based index.
228
229
  }
@@ -240,6 +241,7 @@ end
240
241
 
241
242
  Name | Type | Description | Notes
242
243
  ------------- | ------------- | ------------- | -------------
244
+ **medium** | **String**| | [optional]
243
245
  **_limit** | **Integer**| The maximum number of records to return on this one API call. (Max 200) | [optional] [default to 100]
244
246
  **_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
245
247
 
@@ -7,7 +7,9 @@ Name | Type | Description | Notes
7
7
  **author_conversation_participant_name** | **String** | | [optional]
8
8
  **body** | **String** | | [optional]
9
9
  **client_message_id** | **String** | | [optional]
10
+ **conversation_message_uuid** | **String** | | [optional]
10
11
  **media_urls** | **Array<String>** | | [optional]
12
+ **merchant_id** | **String** | | [optional]
11
13
  **message_dts** | **String** | Message date/time | [optional]
12
14
  **transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional]
13
15
  **type** | **String** | Message type | [optional]
@@ -10,8 +10,10 @@ Name | Type | Description | Notes
10
10
  **last_conversation_participant_arn** | **String** | | [optional]
11
11
  **last_conversation_participant_name** | **String** | | [optional]
12
12
  **last_message_dts** | **String** | Last message date/time | [optional]
13
+ **medium** | **String** | The communication medium of the customer. | [optional]
13
14
  **merchant_id** | **String** | | [optional]
14
15
  **message_count** | **Integer** | | [optional]
16
+ **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional]
15
17
  **start_dts** | **String** | Start of the conversation date/time | [optional]
16
18
  **unread_messages** | **BOOLEAN** | | [optional]
17
19
  **visible** | **BOOLEAN** | | [optional]
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **event_conversation_closed** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
8
8
  **event_new_conversation** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
9
9
  **event_new_message** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
10
+ **event_participant_update** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
10
11
  **event_queue_position** | [**ConversationEventQueuePosition**](ConversationEventQueuePosition.md) | | [optional]
11
12
  **event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional]
12
13
  **event_rrweb** | [**ConversationEventRRWeb**](ConversationEventRRWeb.md) | | [optional]
@@ -243,6 +243,7 @@ module UltracartClient
243
243
  # Retrieve a list of conversation summaries newest to oldest
244
244
  # Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
245
245
  # @param [Hash] opts the optional parameters
246
+ # @option opts [String] :medium
246
247
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
247
248
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
248
249
  # @return [ConversationsResponse]
@@ -254,6 +255,7 @@ module UltracartClient
254
255
  # Retrieve a list of conversation summaries newest to oldest
255
256
  # Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
256
257
  # @param [Hash] opts the optional parameters
258
+ # @option opts [String] :medium
257
259
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200)
258
260
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
259
261
  # @return [Array<(ConversationsResponse, Fixnum, Hash)>] ConversationsResponse data, response status code and response headers
@@ -266,6 +268,7 @@ module UltracartClient
266
268
 
267
269
  # query parameters
268
270
  query_params = {}
271
+ query_params[:'medium'] = opts[:'medium'] if !opts[:'medium'].nil?
269
272
  query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
270
273
  query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
271
274
 
@@ -20,21 +20,73 @@ module UltracartClient
20
20
 
21
21
  attr_accessor :conversation_uuid
22
22
 
23
+ attr_accessor :last_conversation_message_body
24
+
25
+ attr_accessor :last_conversation_participant_arn
26
+
27
+ attr_accessor :last_conversation_participant_name
28
+
29
+ # Last message date/time
30
+ attr_accessor :last_message_dts
31
+
32
+ # The communication medium of the customer.
33
+ attr_accessor :medium
34
+
23
35
  attr_accessor :merchant_id
24
36
 
37
+ attr_accessor :message_count
38
+
25
39
  attr_accessor :messages
26
40
 
27
41
  attr_accessor :participants
28
42
 
43
+ # Start of the conversation date/time
44
+ attr_accessor :start_dts
45
+
46
+ attr_accessor :unread_messages
47
+
48
+ attr_accessor :visible
49
+
50
+ class EnumAttributeValidator
51
+ attr_reader :datatype
52
+ attr_reader :allowable_values
53
+
54
+ def initialize(datatype, allowable_values)
55
+ @allowable_values = allowable_values.map do |value|
56
+ case datatype.to_s
57
+ when /Integer/i
58
+ value.to_i
59
+ when /Float/i
60
+ value.to_f
61
+ else
62
+ value
63
+ end
64
+ end
65
+ end
66
+
67
+ def valid?(value)
68
+ !value || allowable_values.include?(value)
69
+ end
70
+ end
71
+
29
72
  # Attribute mapping from ruby-style variable name to JSON key.
30
73
  def self.attribute_map
31
74
  {
32
75
  :'closed' => :'closed',
33
76
  :'conversation_arn' => :'conversation_arn',
34
77
  :'conversation_uuid' => :'conversation_uuid',
78
+ :'last_conversation_message_body' => :'last_conversation_message_body',
79
+ :'last_conversation_participant_arn' => :'last_conversation_participant_arn',
80
+ :'last_conversation_participant_name' => :'last_conversation_participant_name',
81
+ :'last_message_dts' => :'last_message_dts',
82
+ :'medium' => :'medium',
35
83
  :'merchant_id' => :'merchant_id',
84
+ :'message_count' => :'message_count',
36
85
  :'messages' => :'messages',
37
- :'participants' => :'participants'
86
+ :'participants' => :'participants',
87
+ :'start_dts' => :'start_dts',
88
+ :'unread_messages' => :'unread_messages',
89
+ :'visible' => :'visible'
38
90
  }
39
91
  end
40
92
 
@@ -44,9 +96,18 @@ module UltracartClient
44
96
  :'closed' => :'BOOLEAN',
45
97
  :'conversation_arn' => :'String',
46
98
  :'conversation_uuid' => :'String',
99
+ :'last_conversation_message_body' => :'String',
100
+ :'last_conversation_participant_arn' => :'String',
101
+ :'last_conversation_participant_name' => :'String',
102
+ :'last_message_dts' => :'String',
103
+ :'medium' => :'String',
47
104
  :'merchant_id' => :'String',
105
+ :'message_count' => :'Integer',
48
106
  :'messages' => :'Array<ConversationMessage>',
49
- :'participants' => :'Array<ConversationParticipant>'
107
+ :'participants' => :'Array<ConversationParticipant>',
108
+ :'start_dts' => :'String',
109
+ :'unread_messages' => :'BOOLEAN',
110
+ :'visible' => :'BOOLEAN'
50
111
  }
51
112
  end
52
113
 
@@ -70,10 +131,34 @@ module UltracartClient
70
131
  self.conversation_uuid = attributes[:'conversation_uuid']
71
132
  end
72
133
 
134
+ if attributes.has_key?(:'last_conversation_message_body')
135
+ self.last_conversation_message_body = attributes[:'last_conversation_message_body']
136
+ end
137
+
138
+ if attributes.has_key?(:'last_conversation_participant_arn')
139
+ self.last_conversation_participant_arn = attributes[:'last_conversation_participant_arn']
140
+ end
141
+
142
+ if attributes.has_key?(:'last_conversation_participant_name')
143
+ self.last_conversation_participant_name = attributes[:'last_conversation_participant_name']
144
+ end
145
+
146
+ if attributes.has_key?(:'last_message_dts')
147
+ self.last_message_dts = attributes[:'last_message_dts']
148
+ end
149
+
150
+ if attributes.has_key?(:'medium')
151
+ self.medium = attributes[:'medium']
152
+ end
153
+
73
154
  if attributes.has_key?(:'merchant_id')
74
155
  self.merchant_id = attributes[:'merchant_id']
75
156
  end
76
157
 
158
+ if attributes.has_key?(:'message_count')
159
+ self.message_count = attributes[:'message_count']
160
+ end
161
+
77
162
  if attributes.has_key?(:'messages')
78
163
  if (value = attributes[:'messages']).is_a?(Array)
79
164
  self.messages = value
@@ -85,6 +170,18 @@ module UltracartClient
85
170
  self.participants = value
86
171
  end
87
172
  end
173
+
174
+ if attributes.has_key?(:'start_dts')
175
+ self.start_dts = attributes[:'start_dts']
176
+ end
177
+
178
+ if attributes.has_key?(:'unread_messages')
179
+ self.unread_messages = attributes[:'unread_messages']
180
+ end
181
+
182
+ if attributes.has_key?(:'visible')
183
+ self.visible = attributes[:'visible']
184
+ end
88
185
  end
89
186
 
90
187
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -97,9 +194,21 @@ module UltracartClient
97
194
  # Check to see if the all the properties in the model are valid
98
195
  # @return true if the model is valid
99
196
  def valid?
197
+ medium_validator = EnumAttributeValidator.new('String', ['sms', 'websocket'])
198
+ return false unless medium_validator.valid?(@medium)
100
199
  true
101
200
  end
102
201
 
202
+ # Custom attribute writer method checking allowed values (enum).
203
+ # @param [Object] medium Object to be assigned
204
+ def medium=(medium)
205
+ validator = EnumAttributeValidator.new('String', ['sms', 'websocket'])
206
+ unless validator.valid?(medium)
207
+ fail ArgumentError, 'invalid value for "medium", must be one of #{validator.allowable_values}.'
208
+ end
209
+ @medium = medium
210
+ end
211
+
103
212
  # Checks equality by comparing each attribute.
104
213
  # @param [Object] Object to be compared
105
214
  def ==(o)
@@ -108,9 +217,18 @@ module UltracartClient
108
217
  closed == o.closed &&
109
218
  conversation_arn == o.conversation_arn &&
110
219
  conversation_uuid == o.conversation_uuid &&
220
+ last_conversation_message_body == o.last_conversation_message_body &&
221
+ last_conversation_participant_arn == o.last_conversation_participant_arn &&
222
+ last_conversation_participant_name == o.last_conversation_participant_name &&
223
+ last_message_dts == o.last_message_dts &&
224
+ medium == o.medium &&
111
225
  merchant_id == o.merchant_id &&
226
+ message_count == o.message_count &&
112
227
  messages == o.messages &&
113
- participants == o.participants
228
+ participants == o.participants &&
229
+ start_dts == o.start_dts &&
230
+ unread_messages == o.unread_messages &&
231
+ visible == o.visible
114
232
  end
115
233
 
116
234
  # @see the `==` method
@@ -122,7 +240,7 @@ module UltracartClient
122
240
  # Calculates hash code according to all attributes.
123
241
  # @return [Fixnum] Hash code
124
242
  def hash
125
- [closed, conversation_arn, conversation_uuid, merchant_id, messages, participants].hash
243
+ [closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, medium, merchant_id, message_count, messages, participants, start_dts, unread_messages, visible].hash
126
244
  end
127
245
 
128
246
  # Builds the object from hash
@@ -22,8 +22,12 @@ module UltracartClient
22
22
 
23
23
  attr_accessor :client_message_id
24
24
 
25
+ attr_accessor :conversation_message_uuid
26
+
25
27
  attr_accessor :media_urls
26
28
 
29
+ attr_accessor :merchant_id
30
+
27
31
  # Message date/time
28
32
  attr_accessor :message_dts
29
33
 
@@ -63,7 +67,9 @@ module UltracartClient
63
67
  :'author_conversation_participant_name' => :'author_conversation_participant_name',
64
68
  :'body' => :'body',
65
69
  :'client_message_id' => :'client_message_id',
70
+ :'conversation_message_uuid' => :'conversation_message_uuid',
66
71
  :'media_urls' => :'media_urls',
72
+ :'merchant_id' => :'merchant_id',
67
73
  :'message_dts' => :'message_dts',
68
74
  :'transport_statuses' => :'transport_statuses',
69
75
  :'type' => :'type',
@@ -78,7 +84,9 @@ module UltracartClient
78
84
  :'author_conversation_participant_name' => :'String',
79
85
  :'body' => :'String',
80
86
  :'client_message_id' => :'String',
87
+ :'conversation_message_uuid' => :'String',
81
88
  :'media_urls' => :'Array<String>',
89
+ :'merchant_id' => :'String',
82
90
  :'message_dts' => :'String',
83
91
  :'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
84
92
  :'type' => :'String',
@@ -110,12 +118,20 @@ module UltracartClient
110
118
  self.client_message_id = attributes[:'client_message_id']
111
119
  end
112
120
 
121
+ if attributes.has_key?(:'conversation_message_uuid')
122
+ self.conversation_message_uuid = attributes[:'conversation_message_uuid']
123
+ end
124
+
113
125
  if attributes.has_key?(:'media_urls')
114
126
  if (value = attributes[:'media_urls']).is_a?(Array)
115
127
  self.media_urls = value
116
128
  end
117
129
  end
118
130
 
131
+ if attributes.has_key?(:'merchant_id')
132
+ self.merchant_id = attributes[:'merchant_id']
133
+ end
134
+
119
135
  if attributes.has_key?(:'message_dts')
120
136
  self.message_dts = attributes[:'message_dts']
121
137
  end
@@ -171,7 +187,9 @@ module UltracartClient
171
187
  author_conversation_participant_name == o.author_conversation_participant_name &&
172
188
  body == o.body &&
173
189
  client_message_id == o.client_message_id &&
190
+ conversation_message_uuid == o.conversation_message_uuid &&
174
191
  media_urls == o.media_urls &&
192
+ merchant_id == o.merchant_id &&
175
193
  message_dts == o.message_dts &&
176
194
  transport_statuses == o.transport_statuses &&
177
195
  type == o.type &&
@@ -187,7 +205,7 @@ module UltracartClient
187
205
  # Calculates hash code according to all attributes.
188
206
  # @return [Fixnum] Hash code
189
207
  def hash
190
- [author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, media_urls, message_dts, transport_statuses, type, upload_keys].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
191
209
  end
192
210
 
193
211
  # Builds the object from hash
@@ -29,10 +29,15 @@ module UltracartClient
29
29
  # Last message date/time
30
30
  attr_accessor :last_message_dts
31
31
 
32
+ # The communication medium of the customer.
33
+ attr_accessor :medium
34
+
32
35
  attr_accessor :merchant_id
33
36
 
34
37
  attr_accessor :message_count
35
38
 
39
+ attr_accessor :participants
40
+
36
41
  # Start of the conversation date/time
37
42
  attr_accessor :start_dts
38
43
 
@@ -40,6 +45,28 @@ module UltracartClient
40
45
 
41
46
  attr_accessor :visible
42
47
 
48
+ class EnumAttributeValidator
49
+ attr_reader :datatype
50
+ attr_reader :allowable_values
51
+
52
+ def initialize(datatype, allowable_values)
53
+ @allowable_values = allowable_values.map do |value|
54
+ case datatype.to_s
55
+ when /Integer/i
56
+ value.to_i
57
+ when /Float/i
58
+ value.to_f
59
+ else
60
+ value
61
+ end
62
+ end
63
+ end
64
+
65
+ def valid?(value)
66
+ !value || allowable_values.include?(value)
67
+ end
68
+ end
69
+
43
70
  # Attribute mapping from ruby-style variable name to JSON key.
44
71
  def self.attribute_map
45
72
  {
@@ -50,8 +77,10 @@ module UltracartClient
50
77
  :'last_conversation_participant_arn' => :'last_conversation_participant_arn',
51
78
  :'last_conversation_participant_name' => :'last_conversation_participant_name',
52
79
  :'last_message_dts' => :'last_message_dts',
80
+ :'medium' => :'medium',
53
81
  :'merchant_id' => :'merchant_id',
54
82
  :'message_count' => :'message_count',
83
+ :'participants' => :'participants',
55
84
  :'start_dts' => :'start_dts',
56
85
  :'unread_messages' => :'unread_messages',
57
86
  :'visible' => :'visible'
@@ -68,8 +97,10 @@ module UltracartClient
68
97
  :'last_conversation_participant_arn' => :'String',
69
98
  :'last_conversation_participant_name' => :'String',
70
99
  :'last_message_dts' => :'String',
100
+ :'medium' => :'String',
71
101
  :'merchant_id' => :'String',
72
102
  :'message_count' => :'Integer',
103
+ :'participants' => :'Array<ConversationParticipant>',
73
104
  :'start_dts' => :'String',
74
105
  :'unread_messages' => :'BOOLEAN',
75
106
  :'visible' => :'BOOLEAN'
@@ -112,6 +143,10 @@ module UltracartClient
112
143
  self.last_message_dts = attributes[:'last_message_dts']
113
144
  end
114
145
 
146
+ if attributes.has_key?(:'medium')
147
+ self.medium = attributes[:'medium']
148
+ end
149
+
115
150
  if attributes.has_key?(:'merchant_id')
116
151
  self.merchant_id = attributes[:'merchant_id']
117
152
  end
@@ -120,6 +155,12 @@ module UltracartClient
120
155
  self.message_count = attributes[:'message_count']
121
156
  end
122
157
 
158
+ if attributes.has_key?(:'participants')
159
+ if (value = attributes[:'participants']).is_a?(Array)
160
+ self.participants = value
161
+ end
162
+ end
163
+
123
164
  if attributes.has_key?(:'start_dts')
124
165
  self.start_dts = attributes[:'start_dts']
125
166
  end
@@ -143,9 +184,21 @@ module UltracartClient
143
184
  # Check to see if the all the properties in the model are valid
144
185
  # @return true if the model is valid
145
186
  def valid?
187
+ medium_validator = EnumAttributeValidator.new('String', ['sms', 'websocket'])
188
+ return false unless medium_validator.valid?(@medium)
146
189
  true
147
190
  end
148
191
 
192
+ # Custom attribute writer method checking allowed values (enum).
193
+ # @param [Object] medium Object to be assigned
194
+ def medium=(medium)
195
+ validator = EnumAttributeValidator.new('String', ['sms', 'websocket'])
196
+ unless validator.valid?(medium)
197
+ fail ArgumentError, 'invalid value for "medium", must be one of #{validator.allowable_values}.'
198
+ end
199
+ @medium = medium
200
+ end
201
+
149
202
  # Checks equality by comparing each attribute.
150
203
  # @param [Object] Object to be compared
151
204
  def ==(o)
@@ -158,8 +211,10 @@ module UltracartClient
158
211
  last_conversation_participant_arn == o.last_conversation_participant_arn &&
159
212
  last_conversation_participant_name == o.last_conversation_participant_name &&
160
213
  last_message_dts == o.last_message_dts &&
214
+ medium == o.medium &&
161
215
  merchant_id == o.merchant_id &&
162
216
  message_count == o.message_count &&
217
+ participants == o.participants &&
163
218
  start_dts == o.start_dts &&
164
219
  unread_messages == o.unread_messages &&
165
220
  visible == o.visible
@@ -174,7 +229,7 @@ module UltracartClient
174
229
  # Calculates hash code according to all attributes.
175
230
  # @return [Fixnum] Hash code
176
231
  def hash
177
- [closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, start_dts, unread_messages, visible].hash
232
+ [closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, medium, merchant_id, message_count, participants, start_dts, unread_messages, visible].hash
178
233
  end
179
234
 
180
235
  # Builds the object from hash
@@ -23,6 +23,8 @@ module UltracartClient
23
23
 
24
24
  attr_accessor :event_new_message
25
25
 
26
+ attr_accessor :event_participant_update
27
+
26
28
  attr_accessor :event_queue_position
27
29
 
28
30
  attr_accessor :event_queue_status_update
@@ -70,6 +72,7 @@ module UltracartClient
70
72
  :'event_conversation_closed' => :'event_conversation_closed',
71
73
  :'event_new_conversation' => :'event_new_conversation',
72
74
  :'event_new_message' => :'event_new_message',
75
+ :'event_participant_update' => :'event_participant_update',
73
76
  :'event_queue_position' => :'event_queue_position',
74
77
  :'event_queue_status_update' => :'event_queue_status_update',
75
78
  :'event_rrweb' => :'event_rrweb',
@@ -88,6 +91,7 @@ module UltracartClient
88
91
  :'event_conversation_closed' => :'ConversationSummary',
89
92
  :'event_new_conversation' => :'ConversationSummary',
90
93
  :'event_new_message' => :'ConversationSummary',
94
+ :'event_participant_update' => :'ConversationSummary',
91
95
  :'event_queue_position' => :'ConversationEventQueuePosition',
92
96
  :'event_queue_status_update' => :'ConversationWebchatQueueStatus',
93
97
  :'event_rrweb' => :'ConversationEventRRWeb',
@@ -123,6 +127,10 @@ module UltracartClient
123
127
  self.event_new_message = attributes[:'event_new_message']
124
128
  end
125
129
 
130
+ if attributes.has_key?(:'event_participant_update')
131
+ self.event_participant_update = attributes[:'event_participant_update']
132
+ end
133
+
126
134
  if attributes.has_key?(:'event_queue_position')
127
135
  self.event_queue_position = attributes[:'event_queue_position']
128
136
  end
@@ -166,7 +174,7 @@ module UltracartClient
166
174
  # Check to see if the all the properties in the model are valid
167
175
  # @return true if the model is valid
168
176
  def valid?
169
- event_type_validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb'])
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'])
170
178
  return false unless event_type_validator.valid?(@event_type)
171
179
  type_validator = EnumAttributeValidator.new('String', ['message', 'event', 'ping', 'check queue position'])
172
180
  return false unless type_validator.valid?(@type)
@@ -176,7 +184,7 @@ module UltracartClient
176
184
  # Custom attribute writer method checking allowed values (enum).
177
185
  # @param [Object] event_type Object to be assigned
178
186
  def event_type=(event_type)
179
- validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb'])
187
+ validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb', 'participant update'])
180
188
  unless validator.valid?(event_type)
181
189
  fail ArgumentError, 'invalid value for "event_type", must be one of #{validator.allowable_values}.'
182
190
  end
@@ -202,6 +210,7 @@ module UltracartClient
202
210
  event_conversation_closed == o.event_conversation_closed &&
203
211
  event_new_conversation == o.event_new_conversation &&
204
212
  event_new_message == o.event_new_message &&
213
+ event_participant_update == o.event_participant_update &&
205
214
  event_queue_position == o.event_queue_position &&
206
215
  event_queue_status_update == o.event_queue_status_update &&
207
216
  event_rrweb == o.event_rrweb &&
@@ -221,7 +230,7 @@ module UltracartClient
221
230
  # Calculates hash code according to all attributes.
222
231
  # @return [Fixnum] Hash code
223
232
  def hash
224
- [conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_queue_position, event_queue_status_update, event_rrweb, event_type, event_typing, event_updated_message, message, type].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
225
234
  end
226
235
 
227
236
  # 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.32'
14
+ VERSION = '3.10.35'
15
15
  end
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.32
4
+ version: 3.10.35
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-03 00:00:00.000000000 Z
11
+ date: 2022-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus