ultracart_api 3.10.81 → 3.10.82
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 +9 -0
- data/docs/ConversationSearchRequest.md +2 -0
- data/lib/ultracart_api/models/conversation_autocomplete_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_autocomplete_value.rb +193 -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: ac41750d5917a3eb8e82104b1346deb324f4ce7c0ffa863be8761e857bdfc2de
|
4
|
+
data.tar.gz: be31bc969b93330a832818f48af3c52ad313d3780d33d93a532064195dd8920f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '044318b54d553a9207d79741cc7013d047755db045944326132345366cb008f52606e8eac9bfddf8628b1fa64dbc5a7c304ae466095379b7258b7793bcd097fd'
|
7
|
+
data.tar.gz: 48f8711b008df4dcb1cc532bfc22dbc2964f777f5da344e83adb133658816e8a3d72ed3043a259d1a3a1b0e58a8693ebed71770b7b411116ef774bccb345bd3b
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.10.
|
10
|
+
- Package version: 3.10.82
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.10.
|
27
|
+
gem install ./ultracart_api-3.10.82.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.82.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.82'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -599,6 +599,7 @@ Class | Method | HTTP request | Description
|
|
599
599
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
600
600
|
- [UltracartClient::ConversationAutocompleteRequest](docs/ConversationAutocompleteRequest.md)
|
601
601
|
- [UltracartClient::ConversationAutocompleteResponse](docs/ConversationAutocompleteResponse.md)
|
602
|
+
- [UltracartClient::ConversationAutocompleteValue](docs/ConversationAutocompleteValue.md)
|
602
603
|
- [UltracartClient::ConversationCannedMessage](docs/ConversationCannedMessage.md)
|
603
604
|
- [UltracartClient::ConversationCannedMessageResponse](docs/ConversationCannedMessageResponse.md)
|
604
605
|
- [UltracartClient::ConversationCannedMessagesResponse](docs/ConversationCannedMessagesResponse.md)
|
@@ -1257,6 +1258,7 @@ Not every change is committed to every SDK.
|
|
1257
1258
|
|
1258
1259
|
| Version | Date | Comments |
|
1259
1260
|
| --: | :-: | --- |
|
1261
|
+
| 3.10.82 | 12/15/2022 | conversation search - added start date filtering |
|
1260
1262
|
| 3.10.81 | 12/15/2022 | conversation searching |
|
1261
1263
|
| 3.10.80 | 12/13/2022 | conversations - add email and sms_phone to participant object |
|
1262
1264
|
| 3.10.79 | 12/09/2022 | conversations - message translation |
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
**error** | [**Error**](Error.md) | | [optional]
|
7
7
|
**field** | **String** | | [optional]
|
8
8
|
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
9
|
-
**results** | **Array<
|
9
|
+
**results** | [**Array<ConversationAutocompleteValue>**](ConversationAutocompleteValue.md) | | [optional]
|
10
10
|
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
11
11
|
**term** | **String** | | [optional]
|
12
12
|
**warning** | [**Warning**](Warning.md) | | [optional]
|
@@ -3,6 +3,8 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
+
**date_end** | **String** | End of the range | [optional]
|
7
|
+
**date_start** | **String** | Start of the range | [optional]
|
6
8
|
**email_filter** | **String** | | [optional]
|
7
9
|
**language_filter** | **String** | | [optional]
|
8
10
|
**medium_filter** | **String** | | [optional]
|
@@ -48,7 +48,7 @@ module UltracartClient
|
|
48
48
|
:'error' => :'Error',
|
49
49
|
:'field' => :'String',
|
50
50
|
:'metadata' => :'ResponseMetadata',
|
51
|
-
:'results' => :'Array<
|
51
|
+
:'results' => :'Array<ConversationAutocompleteValue>',
|
52
52
|
:'success' => :'BOOLEAN',
|
53
53
|
:'term' => :'String',
|
54
54
|
:'warning' => :'Warning'
|
@@ -0,0 +1,193 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class ConversationAutocompleteValue
|
17
|
+
attr_accessor :description
|
18
|
+
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'description' => :'description',
|
25
|
+
:'value' => :'value'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'description' => :'String',
|
33
|
+
:'value' => :'String'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Initializes the object
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
if attributes.has_key?(:'description')
|
46
|
+
self.description = attributes[:'description']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'value')
|
50
|
+
self.value = attributes[:'value']
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
55
|
+
# @return Array for valid properties with the reasons
|
56
|
+
def list_invalid_properties
|
57
|
+
invalid_properties = Array.new
|
58
|
+
invalid_properties
|
59
|
+
end
|
60
|
+
|
61
|
+
# Check to see if the all the properties in the model are valid
|
62
|
+
# @return true if the model is valid
|
63
|
+
def valid?
|
64
|
+
true
|
65
|
+
end
|
66
|
+
|
67
|
+
# Checks equality by comparing each attribute.
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def ==(o)
|
70
|
+
return true if self.equal?(o)
|
71
|
+
self.class == o.class &&
|
72
|
+
description == o.description &&
|
73
|
+
value == o.value
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def eql?(o)
|
79
|
+
self == o
|
80
|
+
end
|
81
|
+
|
82
|
+
# Calculates hash code according to all attributes.
|
83
|
+
# @return [Fixnum] Hash code
|
84
|
+
def hash
|
85
|
+
[description, value].hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Builds the object from hash
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @return [Object] Returns the model itself
|
91
|
+
def build_from_hash(attributes)
|
92
|
+
return nil unless attributes.is_a?(Hash)
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
94
|
+
if type =~ /\AArray<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
99
|
+
end
|
100
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
+
end
|
104
|
+
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
# Deserializes the data based on type
|
109
|
+
# @param string type Data type
|
110
|
+
# @param string value Value to be deserialized
|
111
|
+
# @return [Object] Deserialized data
|
112
|
+
def _deserialize(type, value)
|
113
|
+
case type.to_sym
|
114
|
+
when :DateTime
|
115
|
+
DateTime.parse(value)
|
116
|
+
when :Date
|
117
|
+
Date.parse(value)
|
118
|
+
when :String
|
119
|
+
value.to_s
|
120
|
+
when :Integer
|
121
|
+
value.to_i
|
122
|
+
when :Float
|
123
|
+
value.to_f
|
124
|
+
when :BOOLEAN
|
125
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
+
true
|
127
|
+
else
|
128
|
+
false
|
129
|
+
end
|
130
|
+
when :Object
|
131
|
+
# generic object (usually a Hash), return directly
|
132
|
+
value
|
133
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
+
inner_type = Regexp.last_match[:inner_type]
|
135
|
+
value.map { |v| _deserialize(inner_type, v) }
|
136
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
+
k_type = Regexp.last_match[:k_type]
|
138
|
+
v_type = Regexp.last_match[:v_type]
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each do |k, v|
|
141
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
else # model
|
145
|
+
temp_model = UltracartClient.const_get(type).new
|
146
|
+
temp_model.build_from_hash(value)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Returns the string representation of the object
|
151
|
+
# @return [String] String presentation of the object
|
152
|
+
def to_s
|
153
|
+
to_hash.to_s
|
154
|
+
end
|
155
|
+
|
156
|
+
# to_body is an alias to to_hash (backward compatibility)
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_body
|
159
|
+
to_hash
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the object in the form of hash
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_hash
|
165
|
+
hash = {}
|
166
|
+
self.class.attribute_map.each_pair do |attr, param|
|
167
|
+
value = self.send(attr)
|
168
|
+
next if value.nil?
|
169
|
+
hash[param] = _to_hash(value)
|
170
|
+
end
|
171
|
+
hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Outputs non-array value in the form of hash
|
175
|
+
# For object, use to_hash. Otherwise, just return the value
|
176
|
+
# @param [Object] value Any valid value
|
177
|
+
# @return [Hash] Returns the value in the form of hash
|
178
|
+
def _to_hash(value)
|
179
|
+
if value.is_a?(Array)
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
181
|
+
elsif value.is_a?(Hash)
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
+
end
|
185
|
+
elsif value.respond_to? :to_hash
|
186
|
+
value.to_hash
|
187
|
+
else
|
188
|
+
value
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
end
|
@@ -14,6 +14,12 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ConversationSearchRequest
|
17
|
+
# End of the range
|
18
|
+
attr_accessor :date_end
|
19
|
+
|
20
|
+
# Start of the range
|
21
|
+
attr_accessor :date_start
|
22
|
+
|
17
23
|
attr_accessor :email_filter
|
18
24
|
|
19
25
|
attr_accessor :language_filter
|
@@ -37,6 +43,8 @@ module UltracartClient
|
|
37
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
44
|
def self.attribute_map
|
39
45
|
{
|
46
|
+
:'date_end' => :'date_end',
|
47
|
+
:'date_start' => :'date_start',
|
40
48
|
:'email_filter' => :'email_filter',
|
41
49
|
:'language_filter' => :'language_filter',
|
42
50
|
:'medium_filter' => :'medium_filter',
|
@@ -53,6 +61,8 @@ module UltracartClient
|
|
53
61
|
# Attribute type mapping.
|
54
62
|
def self.swagger_types
|
55
63
|
{
|
64
|
+
:'date_end' => :'String',
|
65
|
+
:'date_start' => :'String',
|
56
66
|
:'email_filter' => :'String',
|
57
67
|
:'language_filter' => :'String',
|
58
68
|
:'medium_filter' => :'String',
|
@@ -74,6 +84,14 @@ module UltracartClient
|
|
74
84
|
# convert string to symbol for hash key
|
75
85
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
76
86
|
|
87
|
+
if attributes.has_key?(:'date_end')
|
88
|
+
self.date_end = attributes[:'date_end']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.has_key?(:'date_start')
|
92
|
+
self.date_start = attributes[:'date_start']
|
93
|
+
end
|
94
|
+
|
77
95
|
if attributes.has_key?(:'email_filter')
|
78
96
|
self.email_filter = attributes[:'email_filter']
|
79
97
|
end
|
@@ -133,6 +151,8 @@ module UltracartClient
|
|
133
151
|
def ==(o)
|
134
152
|
return true if self.equal?(o)
|
135
153
|
self.class == o.class &&
|
154
|
+
date_end == o.date_end &&
|
155
|
+
date_start == o.date_start &&
|
136
156
|
email_filter == o.email_filter &&
|
137
157
|
language_filter == o.language_filter &&
|
138
158
|
medium_filter == o.medium_filter &&
|
@@ -154,7 +174,7 @@ module UltracartClient
|
|
154
174
|
# Calculates hash code according to all attributes.
|
155
175
|
# @return [Fixnum] Hash code
|
156
176
|
def hash
|
157
|
-
[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
|
+
[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
|
158
178
|
end
|
159
179
|
|
160
180
|
# 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: 3.10.
|
4
|
+
version: 3.10.82
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
@@ -350,6 +350,7 @@ files:
|
|
350
350
|
- docs/ConversationApi.md
|
351
351
|
- docs/ConversationAutocompleteRequest.md
|
352
352
|
- docs/ConversationAutocompleteResponse.md
|
353
|
+
- docs/ConversationAutocompleteValue.md
|
353
354
|
- docs/ConversationCannedMessage.md
|
354
355
|
- docs/ConversationCannedMessageResponse.md
|
355
356
|
- docs/ConversationCannedMessagesResponse.md
|
@@ -1098,6 +1099,7 @@ files:
|
|
1098
1099
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
1099
1100
|
- lib/ultracart_api/models/conversation_autocomplete_request.rb
|
1100
1101
|
- lib/ultracart_api/models/conversation_autocomplete_response.rb
|
1102
|
+
- lib/ultracart_api/models/conversation_autocomplete_value.rb
|
1101
1103
|
- lib/ultracart_api/models/conversation_canned_message.rb
|
1102
1104
|
- lib/ultracart_api/models/conversation_canned_message_response.rb
|
1103
1105
|
- lib/ultracart_api/models/conversation_canned_messages_response.rb
|