ultracart_api 4.0.43.rc → 4.0.46.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: ecce2637eed2be458ecc28244b97ef976f97ca082e5fa5b7d2f76895d73655d2
4
- data.tar.gz: 560139155bfdca37c2c151b6101736655c87eeee53e0d6fe4c3e83ea57d5da60
3
+ metadata.gz: b4c7d4822487ec085841c0d83f804da6abddd29d452748e8a8980a4f484c5291
4
+ data.tar.gz: 6019ba6c31b76725899b5f3d4eb8ecffe81670bed4e884019082ff28f7804184
5
5
  SHA512:
6
- metadata.gz: 3eed05542e98dd7a0eea8f7f80ad936e06b133bde1fe3697274e06a8d4d74677ab35814f291a6cc2abd52724ba3d5ece3a4b254e846c0e9085404f35823e37b3
7
- data.tar.gz: 4a78067cd058c9ad6098c8f75bf2ed8ab2afb1b9644071e891b7c25104dc4110d1548e21b1a156ede98d1e238761c6c038d81ec6031e906a8399072cdcadeac9
6
+ metadata.gz: 12f3a476da68e2dd38de7020d3b34dd5e7cf569d5661263f5b1b7b1be156f6a3eb5210ceef60c4b7dee0c5be2c158743fce74c42fee39fe90431e88360c6b3e0
7
+ data.tar.gz: 5859895fb72021511517767f0120a2fd8d4f30a1810d397cbee215e6eb9b44ba8a226b67a9a1d6da24dd131abacda46d7a7078ca2487596acfed892a149dc66a
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.43.rc
10
+ - Package version: 4.0.46.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.43.rc.gem
27
+ gem install ./ultracart_api-4.0.46.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.43.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.46.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.43.rc'
36
+ gem 'ultracart_api', '~> 4.0.46.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -577,6 +577,7 @@ Class | Method | HTTP request | Description
577
577
  - [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
578
578
  - [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
579
579
  - [UltracartClient::ConversationSummary](docs/ConversationSummary.md)
580
+ - [UltracartClient::ConversationTwilioAccount](docs/ConversationTwilioAccount.md)
580
581
  - [UltracartClient::ConversationWebchatQueueStatus](docs/ConversationWebchatQueueStatus.md)
581
582
  - [UltracartClient::ConversationWebchatQueueStatusAgent](docs/ConversationWebchatQueueStatusAgent.md)
582
583
  - [UltracartClient::ConversationWebchatQueueStatusQueueEntry](docs/ConversationWebchatQueueStatusQueueEntry.md)
@@ -1174,6 +1175,9 @@ Not every change is committed to every SDK.
1174
1175
 
1175
1176
  | Version | Date | Comments |
1176
1177
  | --: | :-: | --- |
1178
+ | 4.0.46-RC | 07/29/2022 | conversation development |
1179
+ | 4.0.45-RC | 07/28/2022 | conversation bug fixes |
1180
+ | 4.0.44-RC | 07/28/2022 | conversation message upload keys property |
1177
1181
  | 4.0.43-RC | 07/26/2022 | conversations - queue statistics |
1178
1182
  | 4.0.42-RC | 07/25/2022 | conversation development |
1179
1183
  | 4.0.41-RC | 07/25/2022 | conversations bug fixes |
@@ -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
  ```
@@ -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
+ | **upload_keys** | **Array<String>** | | [optional] |
13
15
 
14
16
  ## Example
15
17
 
@@ -20,9 +22,11 @@ instance = UltracartClient::ConversationMessage.new(
20
22
  author_conversation_participant_arn: null,
21
23
  author_conversation_participant_name: null,
22
24
  body: null,
25
+ client_message_id: null,
23
26
  media_urls: null,
24
27
  message_dts: null,
25
- transport_statuses: null
28
+ transport_statuses: null,
29
+ upload_keys: null
26
30
  )
27
31
  ```
28
32
 
@@ -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
+
@@ -11,6 +11,10 @@
11
11
  | **agents** | [**Array<ConversationWebchatQueueStatusAgent>**](ConversationWebchatQueueStatusAgent.md) | | [optional] |
12
12
  | **customer_abandon_count** | **Integer** | | [optional] |
13
13
  | **customer_active_count** | **Integer** | | [optional] |
14
+ | **customer_average_abandon_time_seconds** | **Integer** | | [optional] |
15
+ | **customer_average_chat_time_seconds** | **Integer** | | [optional] |
16
+ | **customer_average_hold_time_seconds** | **Integer** | | [optional] |
17
+ | **customer_chat_count** | **Integer** | | [optional] |
14
18
  | **customer_waiting_count** | **Integer** | | [optional] |
15
19
  | **customer_waiting_join_dts** | **String** | Date/time that the oldest person joined the queue | [optional] |
16
20
  | **queue_entries** | [**Array<ConversationWebchatQueueStatusQueueEntry>**](ConversationWebchatQueueStatusQueueEntry.md) | | [optional] |
@@ -29,6 +33,10 @@ instance = UltracartClient::ConversationWebchatQueueStatus.new(
29
33
  agents: null,
30
34
  customer_abandon_count: null,
31
35
  customer_active_count: null,
36
+ customer_average_abandon_time_seconds: null,
37
+ customer_average_chat_time_seconds: null,
38
+ customer_average_hold_time_seconds: null,
39
+ customer_chat_count: null,
32
40
  customer_waiting_count: null,
33
41
  customer_waiting_join_dts: null,
34
42
  queue_entries: null,
@@ -7,7 +7,9 @@
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] |
12
+ | **question** | **String** | | [optional] |
11
13
 
12
14
  ## Example
13
15
 
@@ -18,7 +20,9 @@ instance = UltracartClient::ConversationWebchatQueueStatusQueueEntry.new(
18
20
  conversation_participant_arn: null,
19
21
  conversation_participant_name: null,
20
22
  conversation_webchat_queue_uuid: null,
21
- join_dts: null
23
+ email: null,
24
+ join_dts: null,
25
+ question: null
22
26
  )
23
27
  ```
24
28
 
@@ -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
@@ -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,15 +30,19 @@ module UltracartClient
28
30
 
29
31
  attr_accessor :transport_statuses
30
32
 
33
+ attr_accessor :upload_keys
34
+
31
35
  # Attribute mapping from ruby-style variable name to JSON key.
32
36
  def self.attribute_map
33
37
  {
34
38
  :'author_conversation_participant_arn' => :'author_conversation_participant_arn',
35
39
  :'author_conversation_participant_name' => :'author_conversation_participant_name',
36
40
  :'body' => :'body',
41
+ :'client_message_id' => :'client_message_id',
37
42
  :'media_urls' => :'media_urls',
38
43
  :'message_dts' => :'message_dts',
39
- :'transport_statuses' => :'transport_statuses'
44
+ :'transport_statuses' => :'transport_statuses',
45
+ :'upload_keys' => :'upload_keys'
40
46
  }
41
47
  end
42
48
 
@@ -51,9 +57,11 @@ module UltracartClient
51
57
  :'author_conversation_participant_arn' => :'String',
52
58
  :'author_conversation_participant_name' => :'String',
53
59
  :'body' => :'String',
60
+ :'client_message_id' => :'String',
54
61
  :'media_urls' => :'Array<String>',
55
62
  :'message_dts' => :'String',
56
- :'transport_statuses' => :'Array<ConversationMessageTransportStatus>'
63
+ :'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
64
+ :'upload_keys' => :'Array<String>'
57
65
  }
58
66
  end
59
67
 
@@ -90,6 +98,10 @@ module UltracartClient
90
98
  self.body = attributes[:'body']
91
99
  end
92
100
 
101
+ if attributes.key?(:'client_message_id')
102
+ self.client_message_id = attributes[:'client_message_id']
103
+ end
104
+
93
105
  if attributes.key?(:'media_urls')
94
106
  if (value = attributes[:'media_urls']).is_a?(Array)
95
107
  self.media_urls = value
@@ -105,6 +117,12 @@ module UltracartClient
105
117
  self.transport_statuses = value
106
118
  end
107
119
  end
120
+
121
+ if attributes.key?(:'upload_keys')
122
+ if (value = attributes[:'upload_keys']).is_a?(Array)
123
+ self.upload_keys = value
124
+ end
125
+ end
108
126
  end
109
127
 
110
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,9 +146,11 @@ module UltracartClient
128
146
  author_conversation_participant_arn == o.author_conversation_participant_arn &&
129
147
  author_conversation_participant_name == o.author_conversation_participant_name &&
130
148
  body == o.body &&
149
+ client_message_id == o.client_message_id &&
131
150
  media_urls == o.media_urls &&
132
151
  message_dts == o.message_dts &&
133
- transport_statuses == o.transport_statuses
152
+ transport_statuses == o.transport_statuses &&
153
+ upload_keys == o.upload_keys
134
154
  end
135
155
 
136
156
  # @see the `==` method
@@ -142,7 +162,7 @@ module UltracartClient
142
162
  # Calculates hash code according to all attributes.
143
163
  # @return [Integer] Hash code
144
164
  def hash
145
- [author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts, transport_statuses].hash
165
+ [author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, media_urls, message_dts, transport_statuses, upload_keys].hash
146
166
  end
147
167
 
148
168
  # 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
@@ -29,6 +29,14 @@ module UltracartClient
29
29
 
30
30
  attr_accessor :customer_active_count
31
31
 
32
+ attr_accessor :customer_average_abandon_time_seconds
33
+
34
+ attr_accessor :customer_average_chat_time_seconds
35
+
36
+ attr_accessor :customer_average_hold_time_seconds
37
+
38
+ attr_accessor :customer_chat_count
39
+
32
40
  attr_accessor :customer_waiting_count
33
41
 
34
42
  # Date/time that the oldest person joined the queue
@@ -48,6 +56,10 @@ module UltracartClient
48
56
  :'agents' => :'agents',
49
57
  :'customer_abandon_count' => :'customer_abandon_count',
50
58
  :'customer_active_count' => :'customer_active_count',
59
+ :'customer_average_abandon_time_seconds' => :'customer_average_abandon_time_seconds',
60
+ :'customer_average_chat_time_seconds' => :'customer_average_chat_time_seconds',
61
+ :'customer_average_hold_time_seconds' => :'customer_average_hold_time_seconds',
62
+ :'customer_chat_count' => :'customer_chat_count',
51
63
  :'customer_waiting_count' => :'customer_waiting_count',
52
64
  :'customer_waiting_join_dts' => :'customer_waiting_join_dts',
53
65
  :'queue_entries' => :'queue_entries',
@@ -70,6 +82,10 @@ module UltracartClient
70
82
  :'agents' => :'Array<ConversationWebchatQueueStatusAgent>',
71
83
  :'customer_abandon_count' => :'Integer',
72
84
  :'customer_active_count' => :'Integer',
85
+ :'customer_average_abandon_time_seconds' => :'Integer',
86
+ :'customer_average_chat_time_seconds' => :'Integer',
87
+ :'customer_average_hold_time_seconds' => :'Integer',
88
+ :'customer_chat_count' => :'Integer',
73
89
  :'customer_waiting_count' => :'Integer',
74
90
  :'customer_waiting_join_dts' => :'String',
75
91
  :'queue_entries' => :'Array<ConversationWebchatQueueStatusQueueEntry>',
@@ -128,6 +144,22 @@ module UltracartClient
128
144
  self.customer_active_count = attributes[:'customer_active_count']
129
145
  end
130
146
 
147
+ if attributes.key?(:'customer_average_abandon_time_seconds')
148
+ self.customer_average_abandon_time_seconds = attributes[:'customer_average_abandon_time_seconds']
149
+ end
150
+
151
+ if attributes.key?(:'customer_average_chat_time_seconds')
152
+ self.customer_average_chat_time_seconds = attributes[:'customer_average_chat_time_seconds']
153
+ end
154
+
155
+ if attributes.key?(:'customer_average_hold_time_seconds')
156
+ self.customer_average_hold_time_seconds = attributes[:'customer_average_hold_time_seconds']
157
+ end
158
+
159
+ if attributes.key?(:'customer_chat_count')
160
+ self.customer_chat_count = attributes[:'customer_chat_count']
161
+ end
162
+
131
163
  if attributes.key?(:'customer_waiting_count')
132
164
  self.customer_waiting_count = attributes[:'customer_waiting_count']
133
165
  end
@@ -172,6 +204,10 @@ module UltracartClient
172
204
  agents == o.agents &&
173
205
  customer_abandon_count == o.customer_abandon_count &&
174
206
  customer_active_count == o.customer_active_count &&
207
+ customer_average_abandon_time_seconds == o.customer_average_abandon_time_seconds &&
208
+ customer_average_chat_time_seconds == o.customer_average_chat_time_seconds &&
209
+ customer_average_hold_time_seconds == o.customer_average_hold_time_seconds &&
210
+ customer_chat_count == o.customer_chat_count &&
175
211
  customer_waiting_count == o.customer_waiting_count &&
176
212
  customer_waiting_join_dts == o.customer_waiting_join_dts &&
177
213
  queue_entries == o.queue_entries &&
@@ -187,7 +223,7 @@ module UltracartClient
187
223
  # Calculates hash code according to all attributes.
188
224
  # @return [Integer] Hash code
189
225
  def hash
190
- [agent_available_count, agent_busy_count, agent_count, agent_unavailable_count, agents, customer_abandon_count, customer_active_count, 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
191
227
  end
192
228
 
193
229
  # Builds the object from hash
@@ -21,16 +21,22 @@ 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
 
29
+ attr_accessor :question
30
+
27
31
  # Attribute mapping from ruby-style variable name to JSON key.
28
32
  def self.attribute_map
29
33
  {
30
34
  :'conversation_participant_arn' => :'conversation_participant_arn',
31
35
  :'conversation_participant_name' => :'conversation_participant_name',
32
36
  :'conversation_webchat_queue_uuid' => :'conversation_webchat_queue_uuid',
33
- :'join_dts' => :'join_dts'
37
+ :'email' => :'email',
38
+ :'join_dts' => :'join_dts',
39
+ :'question' => :'question'
34
40
  }
35
41
  end
36
42
 
@@ -45,7 +51,9 @@ module UltracartClient
45
51
  :'conversation_participant_arn' => :'String',
46
52
  :'conversation_participant_name' => :'String',
47
53
  :'conversation_webchat_queue_uuid' => :'String',
48
- :'join_dts' => :'String'
54
+ :'email' => :'String',
55
+ :'join_dts' => :'String',
56
+ :'question' => :'String'
49
57
  }
50
58
  end
51
59
 
@@ -82,9 +90,17 @@ module UltracartClient
82
90
  self.conversation_webchat_queue_uuid = attributes[:'conversation_webchat_queue_uuid']
83
91
  end
84
92
 
93
+ if attributes.key?(:'email')
94
+ self.email = attributes[:'email']
95
+ end
96
+
85
97
  if attributes.key?(:'join_dts')
86
98
  self.join_dts = attributes[:'join_dts']
87
99
  end
100
+
101
+ if attributes.key?(:'question')
102
+ self.question = attributes[:'question']
103
+ end
88
104
  end
89
105
 
90
106
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -108,7 +124,9 @@ module UltracartClient
108
124
  conversation_participant_arn == o.conversation_participant_arn &&
109
125
  conversation_participant_name == o.conversation_participant_name &&
110
126
  conversation_webchat_queue_uuid == o.conversation_webchat_queue_uuid &&
111
- join_dts == o.join_dts
127
+ email == o.email &&
128
+ join_dts == o.join_dts &&
129
+ question == o.question
112
130
  end
113
131
 
114
132
  # @see the `==` method
@@ -120,7 +138,7 @@ module UltracartClient
120
138
  # Calculates hash code according to all attributes.
121
139
  # @return [Integer] Hash code
122
140
  def hash
123
- [conversation_participant_arn, conversation_participant_name, conversation_webchat_queue_uuid, join_dts].hash
141
+ [conversation_participant_arn, conversation_participant_name, conversation_webchat_queue_uuid, email, join_dts, question].hash
124
142
  end
125
143
 
126
144
  # 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.43.rc'
14
+ VERSION = '4.0.46.rc'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -147,6 +147,7 @@ require 'ultracart_api/models/conversation_response'
147
147
  require 'ultracart_api/models/conversation_start_request'
148
148
  require 'ultracart_api/models/conversation_start_response'
149
149
  require 'ultracart_api/models/conversation_summary'
150
+ require 'ultracart_api/models/conversation_twilio_account'
150
151
  require 'ultracart_api/models/conversation_webchat_queue_status'
151
152
  require 'ultracart_api/models/conversation_webchat_queue_status_agent'
152
153
  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.43.rc
4
+ version: 4.0.46.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-26 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -197,6 +197,7 @@ files:
197
197
  - docs/ConversationStartRequest.md
198
198
  - docs/ConversationStartResponse.md
199
199
  - docs/ConversationSummary.md
200
+ - docs/ConversationTwilioAccount.md
200
201
  - docs/ConversationWebchatQueueStatus.md
201
202
  - docs/ConversationWebchatQueueStatusAgent.md
202
203
  - docs/ConversationWebchatQueueStatusQueueEntry.md
@@ -888,6 +889,7 @@ files:
888
889
  - lib/ultracart_api/models/conversation_start_request.rb
889
890
  - lib/ultracart_api/models/conversation_start_response.rb
890
891
  - lib/ultracart_api/models/conversation_summary.rb
892
+ - lib/ultracart_api/models/conversation_twilio_account.rb
891
893
  - lib/ultracart_api/models/conversation_webchat_queue_status.rb
892
894
  - lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb
893
895
  - lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb