ultracart_api 4.0.48.rc → 4.0.49.rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0624caccc11ea70dee0391435631912d28584b61e5ceabccb3bacd3c51c80e95
4
- data.tar.gz: 667e77fd135a7b513df023ba4446a51d6978de89e2298aa5777add6e6529705f
3
+ metadata.gz: b21232f4f3169a87005e158e4cc3d4471098bda6b3759bc1817a9b7bf3bcf37c
4
+ data.tar.gz: 9e08a6150ec2fb2d1051fa746a70b25fb7f216b070924f248dace927b85278f2
5
5
  SHA512:
6
- metadata.gz: 2d4f11ee1d8df637a993f2911620c4252d6eea21e2e8af10c274bb6fd1e494a4bb43964bd027708b9b19e8a53cbe19d788d1a7a8cd8a73ec221d16f13b45b3f3
7
- data.tar.gz: bc79bbabe755b6b36bac358bd051ac59c7c308e4755d2e0e291e50fd34f7beb2d89752e668850dca1c09842110175ac548821211e419fd62818f9e767023a412
6
+ metadata.gz: 5c5cfc69ce8da5fa375ba5477f84e4990156f7fd8cc5501f316e2d794438e9bc0cd0c9ff58e9c1dfd4391d701ebb19aface2b33a1e8f9b923d6af38d72ad42ba
7
+ data.tar.gz: 5eb966eaed532b56a06cff6362b24d3882953ea6566ea56fd3679ba1ba2491468a9cfa67caaf2d0b2457aa2c71f2f9144742afdd1fb16b398a0e558548074feb
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.48.rc
10
+ - Package version: 4.0.49.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.48.rc.gem
27
+ gem install ./ultracart_api-4.0.49.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.48.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.49.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.48.rc'
36
+ gem 'ultracart_api', '~> 4.0.49.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -570,6 +570,7 @@ Class | Method | HTTP request | Description
570
570
  - [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
571
571
  - [UltracartClient::ConversationEventQueuePosition](docs/ConversationEventQueuePosition.md)
572
572
  - [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
573
+ - [UltracartClient::ConversationEventTyping](docs/ConversationEventTyping.md)
573
574
  - [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
574
575
  - [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
575
576
  - [UltracartClient::ConversationMultimediaUploadUrl](docs/ConversationMultimediaUploadUrl.md)
@@ -1179,6 +1180,7 @@ Not every change is committed to every SDK.
1179
1180
 
1180
1181
  | Version | Date | Comments |
1181
1182
  | --: | :-: | --- |
1183
+ | 4.0.49-RC | 08/03/2022 | more conversation events |
1182
1184
  | 4.0.48-RC | 08/02/2022 | storefront communication sequence test method |
1183
1185
  | 4.0.47-RC | 08/01/2022 | conversation event refinement |
1184
1186
  | 4.0.46-RC | 07/29/2022 | conversation development |
@@ -0,0 +1,22 @@
1
+ # UltracartClient::ConversationEventTyping
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **author_conversation_participant_arn** | **String** | | [optional] |
8
+ | **author_conversation_participant_name** | **String** | | [optional] |
9
+ | **value** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ultracart_api'
15
+
16
+ instance = UltracartClient::ConversationEventTyping.new(
17
+ author_conversation_participant_arn: null,
18
+ author_conversation_participant_name: null,
19
+ value: null
20
+ )
21
+ ```
22
+
@@ -12,6 +12,7 @@
12
12
  | **event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional] |
13
13
  | **event_rrweb** | [**ConversationEventRRWeb**](ConversationEventRRWeb.md) | | [optional] |
14
14
  | **event_type** | **String** | Type of event | [optional] |
15
+ | **event_typing** | [**ConversationEventTyping**](ConversationEventTyping.md) | | [optional] |
15
16
  | **event_updated_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional] |
16
17
  | **message** | [**ConversationMessage**](ConversationMessage.md) | | [optional] |
17
18
  | **type** | **String** | Type of message | [optional] |
@@ -30,6 +31,7 @@ instance = UltracartClient::ConversationWebsocketMessage.new(
30
31
  event_queue_status_update: null,
31
32
  event_rrweb: null,
32
33
  event_type: null,
34
+ event_typing: null,
33
35
  event_updated_message: null,
34
36
  message: null,
35
37
  type: null
@@ -0,0 +1,237 @@
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 ConversationEventTyping
18
+ attr_accessor :author_conversation_participant_arn
19
+
20
+ attr_accessor :author_conversation_participant_name
21
+
22
+ attr_accessor :value
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'author_conversation_participant_arn' => :'author_conversation_participant_arn',
28
+ :'author_conversation_participant_name' => :'author_conversation_participant_name',
29
+ :'value' => :'value'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'author_conversation_participant_arn' => :'String',
42
+ :'author_conversation_participant_name' => :'String',
43
+ :'value' => :'String'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationEventTyping` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationEventTyping`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'author_conversation_participant_arn')
69
+ self.author_conversation_participant_arn = attributes[:'author_conversation_participant_arn']
70
+ end
71
+
72
+ if attributes.key?(:'author_conversation_participant_name')
73
+ self.author_conversation_participant_name = attributes[:'author_conversation_participant_name']
74
+ end
75
+
76
+ if attributes.key?(:'value')
77
+ self.value = attributes[:'value']
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ invalid_properties = Array.new
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ author_conversation_participant_arn == o.author_conversation_participant_arn &&
100
+ author_conversation_participant_name == o.author_conversation_participant_name &&
101
+ value == o.value
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Integer] Hash code
112
+ def hash
113
+ [author_conversation_participant_arn, author_conversation_participant_name, value].hash
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 self.build_from_hash(attributes)
120
+ new.build_from_hash(attributes)
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ attributes = attributes.transform_keys(&:to_sym)
129
+ self.class.openapi_types.each_pair do |key, type|
130
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
131
+ self.send("#{key}=", nil)
132
+ elsif type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :Time
153
+ Time.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :Boolean
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ # models (e.g. Pet) or oneOf
184
+ klass = UltracartClient.const_get(type)
185
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.openapi_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+
235
+ end
236
+
237
+ end
@@ -33,6 +33,8 @@ module UltracartClient
33
33
  # Type of event
34
34
  attr_accessor :event_type
35
35
 
36
+ attr_accessor :event_typing
37
+
36
38
  attr_accessor :event_updated_message
37
39
 
38
40
  attr_accessor :message
@@ -73,6 +75,7 @@ module UltracartClient
73
75
  :'event_queue_status_update' => :'event_queue_status_update',
74
76
  :'event_rrweb' => :'event_rrweb',
75
77
  :'event_type' => :'event_type',
78
+ :'event_typing' => :'event_typing',
76
79
  :'event_updated_message' => :'event_updated_message',
77
80
  :'message' => :'message',
78
81
  :'type' => :'type'
@@ -95,6 +98,7 @@ module UltracartClient
95
98
  :'event_queue_status_update' => :'ConversationWebchatQueueStatus',
96
99
  :'event_rrweb' => :'ConversationEventRRWeb',
97
100
  :'event_type' => :'String',
101
+ :'event_typing' => :'ConversationEventTyping',
98
102
  :'event_updated_message' => :'ConversationMessage',
99
103
  :'message' => :'ConversationMessage',
100
104
  :'type' => :'String'
@@ -154,6 +158,10 @@ module UltracartClient
154
158
  self.event_type = attributes[:'event_type']
155
159
  end
156
160
 
161
+ if attributes.key?(:'event_typing')
162
+ self.event_typing = attributes[:'event_typing']
163
+ end
164
+
157
165
  if attributes.key?(:'event_updated_message')
158
166
  self.event_updated_message = attributes[:'event_updated_message']
159
167
  end
@@ -217,6 +225,7 @@ module UltracartClient
217
225
  event_queue_status_update == o.event_queue_status_update &&
218
226
  event_rrweb == o.event_rrweb &&
219
227
  event_type == o.event_type &&
228
+ event_typing == o.event_typing &&
220
229
  event_updated_message == o.event_updated_message &&
221
230
  message == o.message &&
222
231
  type == o.type
@@ -231,7 +240,7 @@ module UltracartClient
231
240
  # Calculates hash code according to all attributes.
232
241
  # @return [Integer] Hash code
233
242
  def 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
243
+ [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
235
244
  end
236
245
 
237
246
  # 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.48.rc'
14
+ VERSION = '4.0.49.rc'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -139,6 +139,7 @@ require 'ultracart_api/models/conversation_agent_auth'
139
139
  require 'ultracart_api/models/conversation_agent_auth_response'
140
140
  require 'ultracart_api/models/conversation_event_queue_position'
141
141
  require 'ultracart_api/models/conversation_event_rr_web'
142
+ require 'ultracart_api/models/conversation_event_typing'
142
143
  require 'ultracart_api/models/conversation_message'
143
144
  require 'ultracart_api/models/conversation_message_transport_status'
144
145
  require 'ultracart_api/models/conversation_multimedia_upload_url'
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.48.rc
4
+ version: 4.0.49.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-08-02 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -189,6 +189,7 @@ files:
189
189
  - docs/ConversationApi.md
190
190
  - docs/ConversationEventQueuePosition.md
191
191
  - docs/ConversationEventRRWeb.md
192
+ - docs/ConversationEventTyping.md
192
193
  - docs/ConversationMessage.md
193
194
  - docs/ConversationMessageTransportStatus.md
194
195
  - docs/ConversationMultimediaUploadUrl.md
@@ -884,6 +885,7 @@ files:
884
885
  - lib/ultracart_api/models/conversation_agent_auth_response.rb
885
886
  - lib/ultracart_api/models/conversation_event_queue_position.rb
886
887
  - lib/ultracart_api/models/conversation_event_rr_web.rb
888
+ - lib/ultracart_api/models/conversation_event_typing.rb
887
889
  - lib/ultracart_api/models/conversation_message.rb
888
890
  - lib/ultracart_api/models/conversation_message_transport_status.rb
889
891
  - lib/ultracart_api/models/conversation_multimedia_upload_url.rb