ultracart_api 4.0.98.rc → 4.0.99.rc
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ConversationAutocompleteResponse.md +1 -1
- data/docs/ConversationAutocompleteValue.md +20 -0
- data/docs/ConversationSearchRequest.md +4 -0
- data/lib/ultracart_api/models/conversation_autocomplete_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_autocomplete_value.rb +228 -0
- data/lib/ultracart_api/models/conversation_search_request.rb +21 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a804dd2ab329cf54941436d968e7c1f530e1f2cc3707c346cb1fb66f017c072c
|
4
|
+
data.tar.gz: 6eb5984033165cf26cea8e5f2bbdbe3aea611ace052c84c53483681d3383634c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a328e1e9ce59f8312f6bc0493da67eeb702545d2de8e375550b04717dbae15e73a34a6140e1251a96d10e71d883e42035ca948e9c601e26eca3fc3a4dfc4f28
|
7
|
+
data.tar.gz: f6fc39d982342451ad265ede657fb873ef7e02f9baa39e35bc84f1504b13cb276adde51c428a805bd286116a8ed84e1a8d349993d1ea6dc629f05a1928d74668
|
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.
|
10
|
+
- Package version: 4.0.99.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.
|
27
|
+
gem install ./ultracart_api-4.0.99.rc.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.99.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.
|
36
|
+
gem 'ultracart_api', '~> 4.0.99.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -605,6 +605,7 @@ Class | Method | HTTP request | Description
|
|
605
605
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
606
606
|
- [UltracartClient::ConversationAutocompleteRequest](docs/ConversationAutocompleteRequest.md)
|
607
607
|
- [UltracartClient::ConversationAutocompleteResponse](docs/ConversationAutocompleteResponse.md)
|
608
|
+
- [UltracartClient::ConversationAutocompleteValue](docs/ConversationAutocompleteValue.md)
|
608
609
|
- [UltracartClient::ConversationCannedMessage](docs/ConversationCannedMessage.md)
|
609
610
|
- [UltracartClient::ConversationCannedMessageResponse](docs/ConversationCannedMessageResponse.md)
|
610
611
|
- [UltracartClient::ConversationCannedMessagesResponse](docs/ConversationCannedMessagesResponse.md)
|
@@ -1264,6 +1265,7 @@ Not every change is committed to every SDK.
|
|
1264
1265
|
|
1265
1266
|
| Version | Date | Comments |
|
1266
1267
|
| --: | :-: | --- |
|
1268
|
+
| 4.0.99-RC | 12/15/2022 | conversation search - added start date filtering |
|
1267
1269
|
| 4.0.98-RC | 12/15/2022 | conversation searching |
|
1268
1270
|
| 4.0.97-RC | 12/13/2022 | conversations - add email and sms_phone to participant object |
|
1269
1271
|
| 4.0.96-RC | 12/09/2022 | conversations - message translation |
|
@@ -7,7 +7,7 @@
|
|
7
7
|
| **error** | [**Error**](Error.md) | | [optional] |
|
8
8
|
| **field** | **String** | | [optional] |
|
9
9
|
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
10
|
-
| **results** | **Array<
|
10
|
+
| **results** | [**Array<ConversationAutocompleteValue>**](ConversationAutocompleteValue.md) | | [optional] |
|
11
11
|
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
12
12
|
| **term** | **String** | | [optional] |
|
13
13
|
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# UltracartClient::ConversationAutocompleteValue
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **description** | **String** | | [optional] |
|
8
|
+
| **value** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'ultracart_api'
|
14
|
+
|
15
|
+
instance = UltracartClient::ConversationAutocompleteValue.new(
|
16
|
+
description: null,
|
17
|
+
value: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **date_end** | **String** | End of the range | [optional] |
|
8
|
+
| **date_start** | **String** | Start of the range | [optional] |
|
7
9
|
| **email_filter** | **String** | | [optional] |
|
8
10
|
| **language_filter** | **String** | | [optional] |
|
9
11
|
| **medium_filter** | **String** | | [optional] |
|
@@ -21,6 +23,8 @@
|
|
21
23
|
require 'ultracart_api'
|
22
24
|
|
23
25
|
instance = UltracartClient::ConversationSearchRequest.new(
|
26
|
+
date_end: null,
|
27
|
+
date_start: null,
|
24
28
|
email_filter: null,
|
25
29
|
language_filter: null,
|
26
30
|
medium_filter: null,
|
@@ -54,7 +54,7 @@ module UltracartClient
|
|
54
54
|
:'error' => :'Error',
|
55
55
|
:'field' => :'String',
|
56
56
|
:'metadata' => :'ResponseMetadata',
|
57
|
-
:'results' => :'Array<
|
57
|
+
:'results' => :'Array<ConversationAutocompleteValue>',
|
58
58
|
:'success' => :'Boolean',
|
59
59
|
:'term' => :'String',
|
60
60
|
:'warning' => :'Warning'
|
@@ -0,0 +1,228 @@
|
|
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 ConversationAutocompleteValue
|
18
|
+
attr_accessor :description
|
19
|
+
|
20
|
+
attr_accessor :value
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'description' => :'description',
|
26
|
+
:'value' => :'value'
|
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
|
+
:'description' => :'String',
|
39
|
+
:'value' => :'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::ConversationAutocompleteValue` 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::ConversationAutocompleteValue`. 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?(:'description')
|
65
|
+
self.description = attributes[:'description']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'value')
|
69
|
+
self.value = attributes[:'value']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
description == o.description &&
|
92
|
+
value == o.value
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Integer] Hash code
|
103
|
+
def hash
|
104
|
+
[description, value].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def self.build_from_hash(attributes)
|
111
|
+
new.build_from_hash(attributes)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def build_from_hash(attributes)
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
119
|
+
attributes = attributes.transform_keys(&:to_sym)
|
120
|
+
self.class.openapi_types.each_pair do |key, type|
|
121
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
122
|
+
self.send("#{key}=", nil)
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
128
|
+
end
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
# Deserializes the data based on type
|
138
|
+
# @param string type Data type
|
139
|
+
# @param string value Value to be deserialized
|
140
|
+
# @return [Object] Deserialized data
|
141
|
+
def _deserialize(type, value)
|
142
|
+
case type.to_sym
|
143
|
+
when :Time
|
144
|
+
Time.parse(value)
|
145
|
+
when :Date
|
146
|
+
Date.parse(value)
|
147
|
+
when :String
|
148
|
+
value.to_s
|
149
|
+
when :Integer
|
150
|
+
value.to_i
|
151
|
+
when :Float
|
152
|
+
value.to_f
|
153
|
+
when :Boolean
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
155
|
+
true
|
156
|
+
else
|
157
|
+
false
|
158
|
+
end
|
159
|
+
when :Object
|
160
|
+
# generic object (usually a Hash), return directly
|
161
|
+
value
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
168
|
+
{}.tap do |hash|
|
169
|
+
value.each do |k, v|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
else # model
|
174
|
+
# models (e.g. Pet) or oneOf
|
175
|
+
klass = UltracartClient.const_get(type)
|
176
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
if value.nil?
|
199
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
201
|
+
end
|
202
|
+
|
203
|
+
hash[param] = _to_hash(value)
|
204
|
+
end
|
205
|
+
hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Outputs non-array value in the form of hash
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
210
|
+
# @param [Object] value Any valid value
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
212
|
+
def _to_hash(value)
|
213
|
+
if value.is_a?(Array)
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
215
|
+
elsif value.is_a?(Hash)
|
216
|
+
{}.tap do |hash|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
218
|
+
end
|
219
|
+
elsif value.respond_to? :to_hash
|
220
|
+
value.to_hash
|
221
|
+
else
|
222
|
+
value
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
@@ -15,6 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class ConversationSearchRequest
|
18
|
+
# End of the range
|
19
|
+
attr_accessor :date_end
|
20
|
+
|
21
|
+
# Start of the range
|
22
|
+
attr_accessor :date_start
|
23
|
+
|
18
24
|
attr_accessor :email_filter
|
19
25
|
|
20
26
|
attr_accessor :language_filter
|
@@ -38,6 +44,8 @@ module UltracartClient
|
|
38
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
45
|
def self.attribute_map
|
40
46
|
{
|
47
|
+
:'date_end' => :'date_end',
|
48
|
+
:'date_start' => :'date_start',
|
41
49
|
:'email_filter' => :'email_filter',
|
42
50
|
:'language_filter' => :'language_filter',
|
43
51
|
:'medium_filter' => :'medium_filter',
|
@@ -59,6 +67,8 @@ module UltracartClient
|
|
59
67
|
# Attribute type mapping.
|
60
68
|
def self.openapi_types
|
61
69
|
{
|
70
|
+
:'date_end' => :'String',
|
71
|
+
:'date_start' => :'String',
|
62
72
|
:'email_filter' => :'String',
|
63
73
|
:'language_filter' => :'String',
|
64
74
|
:'medium_filter' => :'String',
|
@@ -93,6 +103,14 @@ module UltracartClient
|
|
93
103
|
h[k.to_sym] = v
|
94
104
|
}
|
95
105
|
|
106
|
+
if attributes.key?(:'date_end')
|
107
|
+
self.date_end = attributes[:'date_end']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'date_start')
|
111
|
+
self.date_start = attributes[:'date_start']
|
112
|
+
end
|
113
|
+
|
96
114
|
if attributes.key?(:'email_filter')
|
97
115
|
self.email_filter = attributes[:'email_filter']
|
98
116
|
end
|
@@ -152,6 +170,8 @@ module UltracartClient
|
|
152
170
|
def ==(o)
|
153
171
|
return true if self.equal?(o)
|
154
172
|
self.class == o.class &&
|
173
|
+
date_end == o.date_end &&
|
174
|
+
date_start == o.date_start &&
|
155
175
|
email_filter == o.email_filter &&
|
156
176
|
language_filter == o.language_filter &&
|
157
177
|
medium_filter == o.medium_filter &&
|
@@ -173,7 +193,7 @@ module UltracartClient
|
|
173
193
|
# Calculates hash code according to all attributes.
|
174
194
|
# @return [Integer] Hash code
|
175
195
|
def hash
|
176
|
-
[email_filter, language_filter, medium_filter, order_by_newest, order_by_oldest, range_begin, range_end, sms_phone_number_filter, text_search, visible_filter].hash
|
196
|
+
[date_end, date_start, email_filter, language_filter, medium_filter, order_by_newest, order_by_oldest, range_begin, range_end, sms_phone_number_filter, text_search, visible_filter].hash
|
177
197
|
end
|
178
198
|
|
179
199
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -140,6 +140,7 @@ require 'ultracart_api/models/conversation_agent_auth'
|
|
140
140
|
require 'ultracart_api/models/conversation_agent_auth_response'
|
141
141
|
require 'ultracart_api/models/conversation_autocomplete_request'
|
142
142
|
require 'ultracart_api/models/conversation_autocomplete_response'
|
143
|
+
require 'ultracart_api/models/conversation_autocomplete_value'
|
143
144
|
require 'ultracart_api/models/conversation_canned_message'
|
144
145
|
require 'ultracart_api/models/conversation_canned_message_response'
|
145
146
|
require 'ultracart_api/models/conversation_canned_messages_response'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.99.rc
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
@@ -190,6 +190,7 @@ files:
|
|
190
190
|
- docs/ConversationApi.md
|
191
191
|
- docs/ConversationAutocompleteRequest.md
|
192
192
|
- docs/ConversationAutocompleteResponse.md
|
193
|
+
- docs/ConversationAutocompleteValue.md
|
193
194
|
- docs/ConversationCannedMessage.md
|
194
195
|
- docs/ConversationCannedMessageResponse.md
|
195
196
|
- docs/ConversationCannedMessagesResponse.md
|
@@ -936,6 +937,7 @@ files:
|
|
936
937
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
937
938
|
- lib/ultracart_api/models/conversation_autocomplete_request.rb
|
938
939
|
- lib/ultracart_api/models/conversation_autocomplete_response.rb
|
940
|
+
- lib/ultracart_api/models/conversation_autocomplete_value.rb
|
939
941
|
- lib/ultracart_api/models/conversation_canned_message.rb
|
940
942
|
- lib/ultracart_api/models/conversation_canned_message_response.rb
|
941
943
|
- lib/ultracart_api/models/conversation_canned_messages_response.rb
|