ultracart_api 4.0.44.rc → 4.0.47.rc

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: 63e7545456de2236bd0b8b7bd6319397c02875e84596e5454abe22e303d45c75
4
- data.tar.gz: 63101ba62b0944fe71a98294ae6cccaf97c7dee48ba53dc85d096d8176460866
3
+ metadata.gz: 5b56e3862e653530133f53316374bfe568b508be1397bd342bcb3868d5bd1e2a
4
+ data.tar.gz: a1b80bad1c0808acd92f862d5a76d85ce3447ecd56dfb0bbd6a3d3a499889655
5
5
  SHA512:
6
- metadata.gz: 7a6d6e6eb7ac2dbd2b472c5e322a7ea36c15c048102371a0647ddc1406eb369b3d3ed2d11cc096977110e7b785dce8a6654a5fc27574f5c6abacfc9d44e8a2cb
7
- data.tar.gz: c964d470deac9703c38a5fea9ea4b2377987909c29a806ddcd031e8aac306b7da1fd4731ffd708e573a608963ff75fb7e83365b57ad0d67d43cdac9b85eb2ecf
6
+ metadata.gz: 12c2c978ae72a70c7ac5928d5885b5d932f54884f7c0d6176935f789dac114847c77a201a7f0f8f1f88e290be9e4dac5adc5ffab629779e10680ebc7a9493008
7
+ data.tar.gz: 8043d450130625dfe07dc3ee3f33f8e3099d0595c0c17622e7326571cfbfa43a4ebe066978f5d7e972beb205c10fda92eb08e9e8eb5fd4350f8d0d84dca33eec
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.0.44.rc
10
+ - Package version: 4.0.47.rc
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-4.0.44.rc.gem
27
+ gem install ./ultracart_api-4.0.47.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.44.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.47.rc.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ultracart_api', '~> 4.0.44.rc'
36
+ gem 'ultracart_api', '~> 4.0.47.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -568,6 +568,7 @@ Class | Method | HTTP request | Description
568
568
  - [UltracartClient::ConversationAgentAuth](docs/ConversationAgentAuth.md)
569
569
  - [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
570
570
  - [UltracartClient::ConversationEventQueuePosition](docs/ConversationEventQueuePosition.md)
571
+ - [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
571
572
  - [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
572
573
  - [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
573
574
  - [UltracartClient::ConversationMultimediaUploadUrl](docs/ConversationMultimediaUploadUrl.md)
@@ -577,6 +578,7 @@ Class | Method | HTTP request | Description
577
578
  - [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
578
579
  - [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
579
580
  - [UltracartClient::ConversationSummary](docs/ConversationSummary.md)
581
+ - [UltracartClient::ConversationTwilioAccount](docs/ConversationTwilioAccount.md)
580
582
  - [UltracartClient::ConversationWebchatQueueStatus](docs/ConversationWebchatQueueStatus.md)
581
583
  - [UltracartClient::ConversationWebchatQueueStatusAgent](docs/ConversationWebchatQueueStatusAgent.md)
582
584
  - [UltracartClient::ConversationWebchatQueueStatusQueueEntry](docs/ConversationWebchatQueueStatusQueueEntry.md)
@@ -1174,6 +1176,9 @@ Not every change is committed to every SDK.
1174
1176
 
1175
1177
  | Version | Date | Comments |
1176
1178
  | --: | :-: | --- |
1179
+ | 4.0.47-RC | 08/01/2022 | conversation event refinement |
1180
+ | 4.0.46-RC | 07/29/2022 | conversation development |
1181
+ | 4.0.45-RC | 07/28/2022 | conversation bug fixes |
1177
1182
  | 4.0.44-RC | 07/28/2022 | conversation message upload keys property |
1178
1183
  | 4.0.43-RC | 07/26/2022 | conversations - queue statistics |
1179
1184
  | 4.0.42-RC | 07/25/2022 | conversation development |
@@ -8,7 +8,7 @@
8
8
  | **conversation_participant_name** | **String** | | [optional] |
9
9
  | **jwt** | **String** | | [optional] |
10
10
  | **merchant_id** | **String** | | [optional] |
11
- | **twilio_phone_numbers** | **Array<String>** | | [optional] |
11
+ | **twilio_accounts** | [**Array<ConversationTwilioAccount>**](ConversationTwilioAccount.md) | | [optional] |
12
12
  | **websocket_url** | **String** | | [optional] |
13
13
 
14
14
  ## Example
@@ -21,7 +21,7 @@ instance = UltracartClient::ConversationAgentAuth.new(
21
21
  conversation_participant_name: null,
22
22
  jwt: null,
23
23
  merchant_id: null,
24
- twilio_phone_numbers: null,
24
+ twilio_accounts: null,
25
25
  websocket_url: null
26
26
  )
27
27
  ```
@@ -0,0 +1,30 @@
1
+ # UltracartClient::ConversationEventRRWeb
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | **String** | | [optional] |
8
+ | **data_part** | **Integer** | | [optional] |
9
+ | **data_sha256** | **String** | | [optional] |
10
+ | **data_total_parts** | **Integer** | | [optional] |
11
+ | **data_total_sha256** | **String** | | [optional] |
12
+ | **event_index** | **Integer** | | [optional] |
13
+ | **type** | **String** | Type of event | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'ultracart_api'
19
+
20
+ instance = UltracartClient::ConversationEventRRWeb.new(
21
+ data: null,
22
+ data_part: null,
23
+ data_sha256: null,
24
+ data_total_parts: null,
25
+ data_total_sha256: null,
26
+ event_index: null,
27
+ type: null
28
+ )
29
+ ```
30
+
@@ -7,9 +7,11 @@
7
7
  | **author_conversation_participant_arn** | **String** | | [optional] |
8
8
  | **author_conversation_participant_name** | **String** | | [optional] |
9
9
  | **body** | **String** | | [optional] |
10
+ | **client_message_id** | **String** | | [optional] |
10
11
  | **media_urls** | **Array<String>** | | [optional] |
11
12
  | **message_dts** | **String** | Message date/time | [optional] |
12
13
  | **transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional] |
14
+ | **type** | **String** | Message type | [optional] |
13
15
  | **upload_keys** | **Array<String>** | | [optional] |
14
16
 
15
17
  ## Example
@@ -21,9 +23,11 @@ instance = UltracartClient::ConversationMessage.new(
21
23
  author_conversation_participant_arn: null,
22
24
  author_conversation_participant_name: null,
23
25
  body: null,
26
+ client_message_id: null,
24
27
  media_urls: null,
25
28
  message_dts: null,
26
29
  transport_statuses: null,
30
+ type: null,
27
31
  upload_keys: null
28
32
  )
29
33
  ```
@@ -13,7 +13,9 @@
13
13
  | **last_message_dts** | **String** | Last message date/time | [optional] |
14
14
  | **merchant_id** | **String** | | [optional] |
15
15
  | **message_count** | **Integer** | | [optional] |
16
+ | **start_dts** | **String** | Start of the conversation date/time | [optional] |
16
17
  | **unread_messages** | **Boolean** | | [optional] |
18
+ | **visible** | **Boolean** | | [optional] |
17
19
 
18
20
  ## Example
19
21
 
@@ -30,7 +32,9 @@ instance = UltracartClient::ConversationSummary.new(
30
32
  last_message_dts: null,
31
33
  merchant_id: null,
32
34
  message_count: null,
33
- unread_messages: null
35
+ start_dts: null,
36
+ unread_messages: null,
37
+ visible: null
34
38
  )
35
39
  ```
36
40
 
@@ -0,0 +1,20 @@
1
+ # UltracartClient::ConversationTwilioAccount
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **merchant_id** | **String** | | [optional] |
8
+ | **twilio_phone_numbers** | **Array<String>** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::ConversationTwilioAccount.new(
16
+ merchant_id: null,
17
+ twilio_phone_numbers: null
18
+ )
19
+ ```
20
+
@@ -14,6 +14,7 @@
14
14
  | **customer_average_abandon_time_seconds** | **Integer** | | [optional] |
15
15
  | **customer_average_chat_time_seconds** | **Integer** | | [optional] |
16
16
  | **customer_average_hold_time_seconds** | **Integer** | | [optional] |
17
+ | **customer_chat_count** | **Integer** | | [optional] |
17
18
  | **customer_waiting_count** | **Integer** | | [optional] |
18
19
  | **customer_waiting_join_dts** | **String** | Date/time that the oldest person joined the queue | [optional] |
19
20
  | **queue_entries** | [**Array<ConversationWebchatQueueStatusQueueEntry>**](ConversationWebchatQueueStatusQueueEntry.md) | | [optional] |
@@ -35,6 +36,7 @@ instance = UltracartClient::ConversationWebchatQueueStatus.new(
35
36
  customer_average_abandon_time_seconds: null,
36
37
  customer_average_chat_time_seconds: null,
37
38
  customer_average_hold_time_seconds: null,
39
+ customer_chat_count: null,
38
40
  customer_waiting_count: null,
39
41
  customer_waiting_join_dts: null,
40
42
  queue_entries: null,
@@ -7,6 +7,7 @@
7
7
  | **conversation_participant_arn** | **String** | | [optional] |
8
8
  | **conversation_participant_name** | **String** | | [optional] |
9
9
  | **conversation_webchat_queue_uuid** | **String** | | [optional] |
10
+ | **email** | **String** | | [optional] |
10
11
  | **join_dts** | **String** | Date/time the customer joined the queue | [optional] |
11
12
  | **question** | **String** | | [optional] |
12
13
 
@@ -19,6 +20,7 @@ instance = UltracartClient::ConversationWebchatQueueStatusQueueEntry.new(
19
20
  conversation_participant_arn: null,
20
21
  conversation_participant_name: null,
21
22
  conversation_webchat_queue_uuid: null,
23
+ email: null,
22
24
  join_dts: null,
23
25
  question: null
24
26
  )
@@ -10,6 +10,7 @@
10
10
  | **event_new_message** | [**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_rrweb** | [**ConversationEventRRWeb**](ConversationEventRRWeb.md) | | [optional] |
13
14
  | **event_type** | **String** | Type of event | [optional] |
14
15
  | **event_updated_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional] |
15
16
  | **message** | [**ConversationMessage**](ConversationMessage.md) | | [optional] |
@@ -27,6 +28,7 @@ instance = UltracartClient::ConversationWebsocketMessage.new(
27
28
  event_new_message: null,
28
29
  event_queue_position: null,
29
30
  event_queue_status_update: null,
31
+ event_rrweb: null,
30
32
  event_type: null,
31
33
  event_updated_message: null,
32
34
  message: null,
@@ -23,7 +23,7 @@ module UltracartClient
23
23
 
24
24
  attr_accessor :merchant_id
25
25
 
26
- attr_accessor :twilio_phone_numbers
26
+ attr_accessor :twilio_accounts
27
27
 
28
28
  attr_accessor :websocket_url
29
29
 
@@ -34,7 +34,7 @@ module UltracartClient
34
34
  :'conversation_participant_name' => :'conversation_participant_name',
35
35
  :'jwt' => :'jwt',
36
36
  :'merchant_id' => :'merchant_id',
37
- :'twilio_phone_numbers' => :'twilio_phone_numbers',
37
+ :'twilio_accounts' => :'twilio_accounts',
38
38
  :'websocket_url' => :'websocket_url'
39
39
  }
40
40
  end
@@ -51,7 +51,7 @@ module UltracartClient
51
51
  :'conversation_participant_name' => :'String',
52
52
  :'jwt' => :'String',
53
53
  :'merchant_id' => :'String',
54
- :'twilio_phone_numbers' => :'Array<String>',
54
+ :'twilio_accounts' => :'Array<ConversationTwilioAccount>',
55
55
  :'websocket_url' => :'String'
56
56
  }
57
57
  end
@@ -93,9 +93,9 @@ module UltracartClient
93
93
  self.merchant_id = attributes[:'merchant_id']
94
94
  end
95
95
 
96
- if attributes.key?(:'twilio_phone_numbers')
97
- if (value = attributes[:'twilio_phone_numbers']).is_a?(Array)
98
- self.twilio_phone_numbers = value
96
+ if attributes.key?(:'twilio_accounts')
97
+ if (value = attributes[:'twilio_accounts']).is_a?(Array)
98
+ self.twilio_accounts = value
99
99
  end
100
100
  end
101
101
 
@@ -126,7 +126,7 @@ module UltracartClient
126
126
  conversation_participant_name == o.conversation_participant_name &&
127
127
  jwt == o.jwt &&
128
128
  merchant_id == o.merchant_id &&
129
- twilio_phone_numbers == o.twilio_phone_numbers &&
129
+ twilio_accounts == o.twilio_accounts &&
130
130
  websocket_url == o.websocket_url
131
131
  end
132
132
 
@@ -139,7 +139,7 @@ module UltracartClient
139
139
  # Calculates hash code according to all attributes.
140
140
  # @return [Integer] Hash code
141
141
  def hash
142
- [conversation_participant_arn, conversation_participant_name, jwt, merchant_id, twilio_phone_numbers, websocket_url].hash
142
+ [conversation_participant_arn, conversation_participant_name, jwt, merchant_id, twilio_accounts, websocket_url].hash
143
143
  end
144
144
 
145
145
  # Builds the object from hash
@@ -0,0 +1,308 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class ConversationEventRRWeb
18
+ attr_accessor :data
19
+
20
+ attr_accessor :data_part
21
+
22
+ attr_accessor :data_sha256
23
+
24
+ attr_accessor :data_total_parts
25
+
26
+ attr_accessor :data_total_sha256
27
+
28
+ attr_accessor :event_index
29
+
30
+ # Type of event
31
+ attr_accessor :type
32
+
33
+ class EnumAttributeValidator
34
+ attr_reader :datatype
35
+ attr_reader :allowable_values
36
+
37
+ def initialize(datatype, allowable_values)
38
+ @allowable_values = allowable_values.map do |value|
39
+ case datatype.to_s
40
+ when /Integer/i
41
+ value.to_i
42
+ when /Float/i
43
+ value.to_f
44
+ else
45
+ value
46
+ end
47
+ end
48
+ end
49
+
50
+ def valid?(value)
51
+ !value || allowable_values.include?(value)
52
+ end
53
+ end
54
+
55
+ # Attribute mapping from ruby-style variable name to JSON key.
56
+ def self.attribute_map
57
+ {
58
+ :'data' => :'data',
59
+ :'data_part' => :'data_part',
60
+ :'data_sha256' => :'data_sha256',
61
+ :'data_total_parts' => :'data_total_parts',
62
+ :'data_total_sha256' => :'data_total_sha256',
63
+ :'event_index' => :'event_index',
64
+ :'type' => :'type'
65
+ }
66
+ end
67
+
68
+ # Returns all the JSON keys this model knows about
69
+ def self.acceptable_attributes
70
+ attribute_map.values
71
+ end
72
+
73
+ # Attribute type mapping.
74
+ def self.openapi_types
75
+ {
76
+ :'data' => :'String',
77
+ :'data_part' => :'Integer',
78
+ :'data_sha256' => :'String',
79
+ :'data_total_parts' => :'Integer',
80
+ :'data_total_sha256' => :'String',
81
+ :'event_index' => :'Integer',
82
+ :'type' => :'String'
83
+ }
84
+ end
85
+
86
+ # List of attributes with nullable: true
87
+ def self.openapi_nullable
88
+ Set.new([
89
+ ])
90
+ end
91
+
92
+ # Initializes the object
93
+ # @param [Hash] attributes Model attributes in the form of hash
94
+ def initialize(attributes = {})
95
+ if (!attributes.is_a?(Hash))
96
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationEventRRWeb` initialize method"
97
+ end
98
+
99
+ # check to see if the attribute exists and convert string to symbol for hash key
100
+ attributes = attributes.each_with_object({}) { |(k, v), h|
101
+ if (!self.class.attribute_map.key?(k.to_sym))
102
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationEventRRWeb`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
103
+ end
104
+ h[k.to_sym] = v
105
+ }
106
+
107
+ if attributes.key?(:'data')
108
+ self.data = attributes[:'data']
109
+ end
110
+
111
+ if attributes.key?(:'data_part')
112
+ self.data_part = attributes[:'data_part']
113
+ end
114
+
115
+ if attributes.key?(:'data_sha256')
116
+ self.data_sha256 = attributes[:'data_sha256']
117
+ end
118
+
119
+ if attributes.key?(:'data_total_parts')
120
+ self.data_total_parts = attributes[:'data_total_parts']
121
+ end
122
+
123
+ if attributes.key?(:'data_total_sha256')
124
+ self.data_total_sha256 = attributes[:'data_total_sha256']
125
+ end
126
+
127
+ if attributes.key?(:'event_index')
128
+ self.event_index = attributes[:'event_index']
129
+ end
130
+
131
+ if attributes.key?(:'type')
132
+ self.type = attributes[:'type']
133
+ end
134
+ end
135
+
136
+ # Show invalid properties with the reasons. Usually used together with valid?
137
+ # @return Array for valid properties with the reasons
138
+ def list_invalid_properties
139
+ invalid_properties = Array.new
140
+ invalid_properties
141
+ end
142
+
143
+ # Check to see if the all the properties in the model are valid
144
+ # @return true if the model is valid
145
+ def valid?
146
+ type_validator = EnumAttributeValidator.new('String', ["init", "events"])
147
+ return false unless type_validator.valid?(@type)
148
+ true
149
+ end
150
+
151
+ # Custom attribute writer method checking allowed values (enum).
152
+ # @param [Object] type Object to be assigned
153
+ def type=(type)
154
+ validator = EnumAttributeValidator.new('String', ["init", "events"])
155
+ unless validator.valid?(type)
156
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
157
+ end
158
+ @type = type
159
+ end
160
+
161
+ # Checks equality by comparing each attribute.
162
+ # @param [Object] Object to be compared
163
+ def ==(o)
164
+ return true if self.equal?(o)
165
+ self.class == o.class &&
166
+ data == o.data &&
167
+ data_part == o.data_part &&
168
+ data_sha256 == o.data_sha256 &&
169
+ data_total_parts == o.data_total_parts &&
170
+ data_total_sha256 == o.data_total_sha256 &&
171
+ event_index == o.event_index &&
172
+ type == o.type
173
+ end
174
+
175
+ # @see the `==` method
176
+ # @param [Object] Object to be compared
177
+ def eql?(o)
178
+ self == o
179
+ end
180
+
181
+ # Calculates hash code according to all attributes.
182
+ # @return [Integer] Hash code
183
+ def hash
184
+ [data, data_part, data_sha256, data_total_parts, data_total_sha256, event_index, type].hash
185
+ end
186
+
187
+ # Builds the object from hash
188
+ # @param [Hash] attributes Model attributes in the form of hash
189
+ # @return [Object] Returns the model itself
190
+ def self.build_from_hash(attributes)
191
+ new.build_from_hash(attributes)
192
+ end
193
+
194
+ # Builds the object from hash
195
+ # @param [Hash] attributes Model attributes in the form of hash
196
+ # @return [Object] Returns the model itself
197
+ def build_from_hash(attributes)
198
+ return nil unless attributes.is_a?(Hash)
199
+ attributes = attributes.transform_keys(&:to_sym)
200
+ self.class.openapi_types.each_pair do |key, type|
201
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
202
+ self.send("#{key}=", nil)
203
+ elsif type =~ /\AArray<(.*)>/i
204
+ # check to ensure the input is an array given that the attribute
205
+ # is documented as an array but the input is not
206
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
207
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
208
+ end
209
+ elsif !attributes[self.class.attribute_map[key]].nil?
210
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
211
+ end
212
+ end
213
+
214
+ self
215
+ end
216
+
217
+ # Deserializes the data based on type
218
+ # @param string type Data type
219
+ # @param string value Value to be deserialized
220
+ # @return [Object] Deserialized data
221
+ def _deserialize(type, value)
222
+ case type.to_sym
223
+ when :Time
224
+ Time.parse(value)
225
+ when :Date
226
+ Date.parse(value)
227
+ when :String
228
+ value.to_s
229
+ when :Integer
230
+ value.to_i
231
+ when :Float
232
+ value.to_f
233
+ when :Boolean
234
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
235
+ true
236
+ else
237
+ false
238
+ end
239
+ when :Object
240
+ # generic object (usually a Hash), return directly
241
+ value
242
+ when /\AArray<(?<inner_type>.+)>\z/
243
+ inner_type = Regexp.last_match[:inner_type]
244
+ value.map { |v| _deserialize(inner_type, v) }
245
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
246
+ k_type = Regexp.last_match[:k_type]
247
+ v_type = Regexp.last_match[:v_type]
248
+ {}.tap do |hash|
249
+ value.each do |k, v|
250
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
251
+ end
252
+ end
253
+ else # model
254
+ # models (e.g. Pet) or oneOf
255
+ klass = UltracartClient.const_get(type)
256
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
257
+ end
258
+ end
259
+
260
+ # Returns the string representation of the object
261
+ # @return [String] String presentation of the object
262
+ def to_s
263
+ to_hash.to_s
264
+ end
265
+
266
+ # to_body is an alias to to_hash (backward compatibility)
267
+ # @return [Hash] Returns the object in the form of hash
268
+ def to_body
269
+ to_hash
270
+ end
271
+
272
+ # Returns the object in the form of hash
273
+ # @return [Hash] Returns the object in the form of hash
274
+ def to_hash
275
+ hash = {}
276
+ self.class.attribute_map.each_pair do |attr, param|
277
+ value = self.send(attr)
278
+ if value.nil?
279
+ is_nullable = self.class.openapi_nullable.include?(attr)
280
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
281
+ end
282
+
283
+ hash[param] = _to_hash(value)
284
+ end
285
+ hash
286
+ end
287
+
288
+ # Outputs non-array value in the form of hash
289
+ # For object, use to_hash. Otherwise, just return the value
290
+ # @param [Object] value Any valid value
291
+ # @return [Hash] Returns the value in the form of hash
292
+ def _to_hash(value)
293
+ if value.is_a?(Array)
294
+ value.compact.map { |v| _to_hash(v) }
295
+ elsif value.is_a?(Hash)
296
+ {}.tap do |hash|
297
+ value.each { |k, v| hash[k] = _to_hash(v) }
298
+ end
299
+ elsif value.respond_to? :to_hash
300
+ value.to_hash
301
+ else
302
+ value
303
+ end
304
+ end
305
+
306
+ end
307
+
308
+ end
@@ -21,6 +21,8 @@ module UltracartClient
21
21
 
22
22
  attr_accessor :body
23
23
 
24
+ attr_accessor :client_message_id
25
+
24
26
  attr_accessor :media_urls
25
27
 
26
28
  # Message date/time
@@ -28,17 +30,44 @@ module UltracartClient
28
30
 
29
31
  attr_accessor :transport_statuses
30
32
 
33
+ # Message type
34
+ attr_accessor :type
35
+
31
36
  attr_accessor :upload_keys
32
37
 
38
+ class EnumAttributeValidator
39
+ attr_reader :datatype
40
+ attr_reader :allowable_values
41
+
42
+ def initialize(datatype, allowable_values)
43
+ @allowable_values = allowable_values.map do |value|
44
+ case datatype.to_s
45
+ when /Integer/i
46
+ value.to_i
47
+ when /Float/i
48
+ value.to_f
49
+ else
50
+ value
51
+ end
52
+ end
53
+ end
54
+
55
+ def valid?(value)
56
+ !value || allowable_values.include?(value)
57
+ end
58
+ end
59
+
33
60
  # Attribute mapping from ruby-style variable name to JSON key.
34
61
  def self.attribute_map
35
62
  {
36
63
  :'author_conversation_participant_arn' => :'author_conversation_participant_arn',
37
64
  :'author_conversation_participant_name' => :'author_conversation_participant_name',
38
65
  :'body' => :'body',
66
+ :'client_message_id' => :'client_message_id',
39
67
  :'media_urls' => :'media_urls',
40
68
  :'message_dts' => :'message_dts',
41
69
  :'transport_statuses' => :'transport_statuses',
70
+ :'type' => :'type',
42
71
  :'upload_keys' => :'upload_keys'
43
72
  }
44
73
  end
@@ -54,9 +83,11 @@ module UltracartClient
54
83
  :'author_conversation_participant_arn' => :'String',
55
84
  :'author_conversation_participant_name' => :'String',
56
85
  :'body' => :'String',
86
+ :'client_message_id' => :'String',
57
87
  :'media_urls' => :'Array<String>',
58
88
  :'message_dts' => :'String',
59
89
  :'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
90
+ :'type' => :'String',
60
91
  :'upload_keys' => :'Array<String>'
61
92
  }
62
93
  end
@@ -94,6 +125,10 @@ module UltracartClient
94
125
  self.body = attributes[:'body']
95
126
  end
96
127
 
128
+ if attributes.key?(:'client_message_id')
129
+ self.client_message_id = attributes[:'client_message_id']
130
+ end
131
+
97
132
  if attributes.key?(:'media_urls')
98
133
  if (value = attributes[:'media_urls']).is_a?(Array)
99
134
  self.media_urls = value
@@ -110,6 +145,10 @@ module UltracartClient
110
145
  end
111
146
  end
112
147
 
148
+ if attributes.key?(:'type')
149
+ self.type = attributes[:'type']
150
+ end
151
+
113
152
  if attributes.key?(:'upload_keys')
114
153
  if (value = attributes[:'upload_keys']).is_a?(Array)
115
154
  self.upload_keys = value
@@ -127,9 +166,21 @@ module UltracartClient
127
166
  # Check to see if the all the properties in the model are valid
128
167
  # @return true if the model is valid
129
168
  def valid?
169
+ type_validator = EnumAttributeValidator.new('String', ["message", "notice"])
170
+ return false unless type_validator.valid?(@type)
130
171
  true
131
172
  end
132
173
 
174
+ # Custom attribute writer method checking allowed values (enum).
175
+ # @param [Object] type Object to be assigned
176
+ def type=(type)
177
+ validator = EnumAttributeValidator.new('String', ["message", "notice"])
178
+ unless validator.valid?(type)
179
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
180
+ end
181
+ @type = type
182
+ end
183
+
133
184
  # Checks equality by comparing each attribute.
134
185
  # @param [Object] Object to be compared
135
186
  def ==(o)
@@ -138,9 +189,11 @@ module UltracartClient
138
189
  author_conversation_participant_arn == o.author_conversation_participant_arn &&
139
190
  author_conversation_participant_name == o.author_conversation_participant_name &&
140
191
  body == o.body &&
192
+ client_message_id == o.client_message_id &&
141
193
  media_urls == o.media_urls &&
142
194
  message_dts == o.message_dts &&
143
195
  transport_statuses == o.transport_statuses &&
196
+ type == o.type &&
144
197
  upload_keys == o.upload_keys
145
198
  end
146
199
 
@@ -153,7 +206,7 @@ module UltracartClient
153
206
  # Calculates hash code according to all attributes.
154
207
  # @return [Integer] Hash code
155
208
  def hash
156
- [author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts, transport_statuses, upload_keys].hash
209
+ [author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, media_urls, message_dts, transport_statuses, type, upload_keys].hash
157
210
  end
158
211
 
159
212
  # Builds the object from hash
@@ -34,8 +34,13 @@ module UltracartClient
34
34
 
35
35
  attr_accessor :message_count
36
36
 
37
+ # Start of the conversation date/time
38
+ attr_accessor :start_dts
39
+
37
40
  attr_accessor :unread_messages
38
41
 
42
+ attr_accessor :visible
43
+
39
44
  # Attribute mapping from ruby-style variable name to JSON key.
40
45
  def self.attribute_map
41
46
  {
@@ -48,7 +53,9 @@ module UltracartClient
48
53
  :'last_message_dts' => :'last_message_dts',
49
54
  :'merchant_id' => :'merchant_id',
50
55
  :'message_count' => :'message_count',
51
- :'unread_messages' => :'unread_messages'
56
+ :'start_dts' => :'start_dts',
57
+ :'unread_messages' => :'unread_messages',
58
+ :'visible' => :'visible'
52
59
  }
53
60
  end
54
61
 
@@ -69,7 +76,9 @@ module UltracartClient
69
76
  :'last_message_dts' => :'String',
70
77
  :'merchant_id' => :'String',
71
78
  :'message_count' => :'Integer',
72
- :'unread_messages' => :'Boolean'
79
+ :'start_dts' => :'String',
80
+ :'unread_messages' => :'Boolean',
81
+ :'visible' => :'Boolean'
73
82
  }
74
83
  end
75
84
 
@@ -130,9 +139,17 @@ module UltracartClient
130
139
  self.message_count = attributes[:'message_count']
131
140
  end
132
141
 
142
+ if attributes.key?(:'start_dts')
143
+ self.start_dts = attributes[:'start_dts']
144
+ end
145
+
133
146
  if attributes.key?(:'unread_messages')
134
147
  self.unread_messages = attributes[:'unread_messages']
135
148
  end
149
+
150
+ if attributes.key?(:'visible')
151
+ self.visible = attributes[:'visible']
152
+ end
136
153
  end
137
154
 
138
155
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -162,7 +179,9 @@ module UltracartClient
162
179
  last_message_dts == o.last_message_dts &&
163
180
  merchant_id == o.merchant_id &&
164
181
  message_count == o.message_count &&
165
- unread_messages == o.unread_messages
182
+ start_dts == o.start_dts &&
183
+ unread_messages == o.unread_messages &&
184
+ visible == o.visible
166
185
  end
167
186
 
168
187
  # @see the `==` method
@@ -174,7 +193,7 @@ module UltracartClient
174
193
  # Calculates hash code according to all attributes.
175
194
  # @return [Integer] Hash code
176
195
  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, unread_messages].hash
196
+ [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
178
197
  end
179
198
 
180
199
  # Builds the object from hash
@@ -0,0 +1,230 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class ConversationTwilioAccount
18
+ attr_accessor :merchant_id
19
+
20
+ attr_accessor :twilio_phone_numbers
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'merchant_id' => :'merchant_id',
26
+ :'twilio_phone_numbers' => :'twilio_phone_numbers'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'merchant_id' => :'String',
39
+ :'twilio_phone_numbers' => :'Array<String>'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationTwilioAccount` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationTwilioAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'merchant_id')
65
+ self.merchant_id = attributes[:'merchant_id']
66
+ end
67
+
68
+ if attributes.key?(:'twilio_phone_numbers')
69
+ if (value = attributes[:'twilio_phone_numbers']).is_a?(Array)
70
+ self.twilio_phone_numbers = value
71
+ end
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ merchant_id == o.merchant_id &&
94
+ twilio_phone_numbers == o.twilio_phone_numbers
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [merchant_id, twilio_phone_numbers].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ new.build_from_hash(attributes)
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ attributes = attributes.transform_keys(&:to_sym)
122
+ self.class.openapi_types.each_pair do |key, type|
123
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
+ self.send("#{key}=", nil)
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ end
131
+ elsif !attributes[self.class.attribute_map[key]].nil?
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ end
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :Time
146
+ Time.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :Boolean
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ # models (e.g. Pet) or oneOf
177
+ klass = UltracartClient.const_get(type)
178
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+
228
+ end
229
+
230
+ end
@@ -35,6 +35,8 @@ module UltracartClient
35
35
 
36
36
  attr_accessor :customer_average_hold_time_seconds
37
37
 
38
+ attr_accessor :customer_chat_count
39
+
38
40
  attr_accessor :customer_waiting_count
39
41
 
40
42
  # Date/time that the oldest person joined the queue
@@ -57,6 +59,7 @@ module UltracartClient
57
59
  :'customer_average_abandon_time_seconds' => :'customer_average_abandon_time_seconds',
58
60
  :'customer_average_chat_time_seconds' => :'customer_average_chat_time_seconds',
59
61
  :'customer_average_hold_time_seconds' => :'customer_average_hold_time_seconds',
62
+ :'customer_chat_count' => :'customer_chat_count',
60
63
  :'customer_waiting_count' => :'customer_waiting_count',
61
64
  :'customer_waiting_join_dts' => :'customer_waiting_join_dts',
62
65
  :'queue_entries' => :'queue_entries',
@@ -82,6 +85,7 @@ module UltracartClient
82
85
  :'customer_average_abandon_time_seconds' => :'Integer',
83
86
  :'customer_average_chat_time_seconds' => :'Integer',
84
87
  :'customer_average_hold_time_seconds' => :'Integer',
88
+ :'customer_chat_count' => :'Integer',
85
89
  :'customer_waiting_count' => :'Integer',
86
90
  :'customer_waiting_join_dts' => :'String',
87
91
  :'queue_entries' => :'Array<ConversationWebchatQueueStatusQueueEntry>',
@@ -152,6 +156,10 @@ module UltracartClient
152
156
  self.customer_average_hold_time_seconds = attributes[:'customer_average_hold_time_seconds']
153
157
  end
154
158
 
159
+ if attributes.key?(:'customer_chat_count')
160
+ self.customer_chat_count = attributes[:'customer_chat_count']
161
+ end
162
+
155
163
  if attributes.key?(:'customer_waiting_count')
156
164
  self.customer_waiting_count = attributes[:'customer_waiting_count']
157
165
  end
@@ -199,6 +207,7 @@ module UltracartClient
199
207
  customer_average_abandon_time_seconds == o.customer_average_abandon_time_seconds &&
200
208
  customer_average_chat_time_seconds == o.customer_average_chat_time_seconds &&
201
209
  customer_average_hold_time_seconds == o.customer_average_hold_time_seconds &&
210
+ customer_chat_count == o.customer_chat_count &&
202
211
  customer_waiting_count == o.customer_waiting_count &&
203
212
  customer_waiting_join_dts == o.customer_waiting_join_dts &&
204
213
  queue_entries == o.queue_entries &&
@@ -214,7 +223,7 @@ module UltracartClient
214
223
  # Calculates hash code according to all attributes.
215
224
  # @return [Integer] Hash code
216
225
  def hash
217
- [agent_available_count, agent_busy_count, agent_count, agent_unavailable_count, agents, customer_abandon_count, customer_active_count, customer_average_abandon_time_seconds, customer_average_chat_time_seconds, customer_average_hold_time_seconds, customer_waiting_count, customer_waiting_join_dts, queue_entries, queue_name].hash
226
+ [agent_available_count, agent_busy_count, agent_count, agent_unavailable_count, agents, customer_abandon_count, customer_active_count, customer_average_abandon_time_seconds, customer_average_chat_time_seconds, customer_average_hold_time_seconds, customer_chat_count, customer_waiting_count, customer_waiting_join_dts, queue_entries, queue_name].hash
218
227
  end
219
228
 
220
229
  # Builds the object from hash
@@ -21,6 +21,8 @@ module UltracartClient
21
21
 
22
22
  attr_accessor :conversation_webchat_queue_uuid
23
23
 
24
+ attr_accessor :email
25
+
24
26
  # Date/time the customer joined the queue
25
27
  attr_accessor :join_dts
26
28
 
@@ -32,6 +34,7 @@ module UltracartClient
32
34
  :'conversation_participant_arn' => :'conversation_participant_arn',
33
35
  :'conversation_participant_name' => :'conversation_participant_name',
34
36
  :'conversation_webchat_queue_uuid' => :'conversation_webchat_queue_uuid',
37
+ :'email' => :'email',
35
38
  :'join_dts' => :'join_dts',
36
39
  :'question' => :'question'
37
40
  }
@@ -48,6 +51,7 @@ module UltracartClient
48
51
  :'conversation_participant_arn' => :'String',
49
52
  :'conversation_participant_name' => :'String',
50
53
  :'conversation_webchat_queue_uuid' => :'String',
54
+ :'email' => :'String',
51
55
  :'join_dts' => :'String',
52
56
  :'question' => :'String'
53
57
  }
@@ -86,6 +90,10 @@ module UltracartClient
86
90
  self.conversation_webchat_queue_uuid = attributes[:'conversation_webchat_queue_uuid']
87
91
  end
88
92
 
93
+ if attributes.key?(:'email')
94
+ self.email = attributes[:'email']
95
+ end
96
+
89
97
  if attributes.key?(:'join_dts')
90
98
  self.join_dts = attributes[:'join_dts']
91
99
  end
@@ -116,6 +124,7 @@ module UltracartClient
116
124
  conversation_participant_arn == o.conversation_participant_arn &&
117
125
  conversation_participant_name == o.conversation_participant_name &&
118
126
  conversation_webchat_queue_uuid == o.conversation_webchat_queue_uuid &&
127
+ email == o.email &&
119
128
  join_dts == o.join_dts &&
120
129
  question == o.question
121
130
  end
@@ -129,7 +138,7 @@ module UltracartClient
129
138
  # Calculates hash code according to all attributes.
130
139
  # @return [Integer] Hash code
131
140
  def hash
132
- [conversation_participant_arn, conversation_participant_name, conversation_webchat_queue_uuid, join_dts, question].hash
141
+ [conversation_participant_arn, conversation_participant_name, conversation_webchat_queue_uuid, email, join_dts, question].hash
133
142
  end
134
143
 
135
144
  # Builds the object from hash
@@ -28,6 +28,8 @@ module UltracartClient
28
28
 
29
29
  attr_accessor :event_queue_status_update
30
30
 
31
+ attr_accessor :event_rrweb
32
+
31
33
  # Type of event
32
34
  attr_accessor :event_type
33
35
 
@@ -69,6 +71,7 @@ module UltracartClient
69
71
  :'event_new_message' => :'event_new_message',
70
72
  :'event_queue_position' => :'event_queue_position',
71
73
  :'event_queue_status_update' => :'event_queue_status_update',
74
+ :'event_rrweb' => :'event_rrweb',
72
75
  :'event_type' => :'event_type',
73
76
  :'event_updated_message' => :'event_updated_message',
74
77
  :'message' => :'message',
@@ -90,6 +93,7 @@ module UltracartClient
90
93
  :'event_new_message' => :'ConversationSummary',
91
94
  :'event_queue_position' => :'ConversationEventQueuePosition',
92
95
  :'event_queue_status_update' => :'ConversationWebchatQueueStatus',
96
+ :'event_rrweb' => :'ConversationEventRRWeb',
93
97
  :'event_type' => :'String',
94
98
  :'event_updated_message' => :'ConversationMessage',
95
99
  :'message' => :'ConversationMessage',
@@ -142,6 +146,10 @@ module UltracartClient
142
146
  self.event_queue_status_update = attributes[:'event_queue_status_update']
143
147
  end
144
148
 
149
+ if attributes.key?(:'event_rrweb')
150
+ self.event_rrweb = attributes[:'event_rrweb']
151
+ end
152
+
145
153
  if attributes.key?(:'event_type')
146
154
  self.event_type = attributes[:'event_type']
147
155
  end
@@ -169,9 +177,9 @@ module UltracartClient
169
177
  # Check to see if the all the properties in the model are valid
170
178
  # @return true if the model is valid
171
179
  def valid?
172
- event_type_validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update"])
180
+ event_type_validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb"])
173
181
  return false unless event_type_validator.valid?(@event_type)
174
- type_validator = EnumAttributeValidator.new('String', ["message", "event", "ping"])
182
+ type_validator = EnumAttributeValidator.new('String', ["message", "event", "ping", "check queue position"])
175
183
  return false unless type_validator.valid?(@type)
176
184
  true
177
185
  end
@@ -179,7 +187,7 @@ module UltracartClient
179
187
  # Custom attribute writer method checking allowed values (enum).
180
188
  # @param [Object] event_type Object to be assigned
181
189
  def event_type=(event_type)
182
- validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update"])
190
+ validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb"])
183
191
  unless validator.valid?(event_type)
184
192
  fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
185
193
  end
@@ -189,7 +197,7 @@ module UltracartClient
189
197
  # Custom attribute writer method checking allowed values (enum).
190
198
  # @param [Object] type Object to be assigned
191
199
  def type=(type)
192
- validator = EnumAttributeValidator.new('String', ["message", "event", "ping"])
200
+ validator = EnumAttributeValidator.new('String', ["message", "event", "ping", "check queue position"])
193
201
  unless validator.valid?(type)
194
202
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
195
203
  end
@@ -207,6 +215,7 @@ module UltracartClient
207
215
  event_new_message == o.event_new_message &&
208
216
  event_queue_position == o.event_queue_position &&
209
217
  event_queue_status_update == o.event_queue_status_update &&
218
+ event_rrweb == o.event_rrweb &&
210
219
  event_type == o.event_type &&
211
220
  event_updated_message == o.event_updated_message &&
212
221
  message == o.message &&
@@ -222,7 +231,7 @@ module UltracartClient
222
231
  # Calculates hash code according to all attributes.
223
232
  # @return [Integer] Hash code
224
233
  def hash
225
- [conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_queue_position, event_queue_status_update, event_type, event_updated_message, message, type].hash
234
+ [conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_queue_position, event_queue_status_update, event_rrweb, event_type, event_updated_message, message, type].hash
226
235
  end
227
236
 
228
237
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.44.rc'
14
+ VERSION = '4.0.47.rc'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -138,6 +138,7 @@ require 'ultracart_api/models/conversation'
138
138
  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
+ require 'ultracart_api/models/conversation_event_rr_web'
141
142
  require 'ultracart_api/models/conversation_message'
142
143
  require 'ultracart_api/models/conversation_message_transport_status'
143
144
  require 'ultracart_api/models/conversation_multimedia_upload_url'
@@ -147,6 +148,7 @@ require 'ultracart_api/models/conversation_response'
147
148
  require 'ultracart_api/models/conversation_start_request'
148
149
  require 'ultracart_api/models/conversation_start_response'
149
150
  require 'ultracart_api/models/conversation_summary'
151
+ require 'ultracart_api/models/conversation_twilio_account'
150
152
  require 'ultracart_api/models/conversation_webchat_queue_status'
151
153
  require 'ultracart_api/models/conversation_webchat_queue_status_agent'
152
154
  require 'ultracart_api/models/conversation_webchat_queue_status_queue_entry'
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: 4.0.44.rc
4
+ version: 4.0.47.rc
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-28 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -188,6 +188,7 @@ files:
188
188
  - docs/ConversationAgentAuthResponse.md
189
189
  - docs/ConversationApi.md
190
190
  - docs/ConversationEventQueuePosition.md
191
+ - docs/ConversationEventRRWeb.md
191
192
  - docs/ConversationMessage.md
192
193
  - docs/ConversationMessageTransportStatus.md
193
194
  - docs/ConversationMultimediaUploadUrl.md
@@ -197,6 +198,7 @@ files:
197
198
  - docs/ConversationStartRequest.md
198
199
  - docs/ConversationStartResponse.md
199
200
  - docs/ConversationSummary.md
201
+ - docs/ConversationTwilioAccount.md
200
202
  - docs/ConversationWebchatQueueStatus.md
201
203
  - docs/ConversationWebchatQueueStatusAgent.md
202
204
  - docs/ConversationWebchatQueueStatusQueueEntry.md
@@ -879,6 +881,7 @@ files:
879
881
  - lib/ultracart_api/models/conversation_agent_auth.rb
880
882
  - lib/ultracart_api/models/conversation_agent_auth_response.rb
881
883
  - lib/ultracart_api/models/conversation_event_queue_position.rb
884
+ - lib/ultracart_api/models/conversation_event_rr_web.rb
882
885
  - lib/ultracart_api/models/conversation_message.rb
883
886
  - lib/ultracart_api/models/conversation_message_transport_status.rb
884
887
  - lib/ultracart_api/models/conversation_multimedia_upload_url.rb
@@ -888,6 +891,7 @@ files:
888
891
  - lib/ultracart_api/models/conversation_start_request.rb
889
892
  - lib/ultracart_api/models/conversation_start_response.rb
890
893
  - lib/ultracart_api/models/conversation_summary.rb
894
+ - lib/ultracart_api/models/conversation_twilio_account.rb
891
895
  - lib/ultracart_api/models/conversation_webchat_queue_status.rb
892
896
  - lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb
893
897
  - lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb