ultracart_api 4.0.98.rc → 4.0.100.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: 8ee5f9abeb411470c29cb95f24580158cd0b9f891b0a297d7ce27ad4a752e652
4
- data.tar.gz: b489c4b7819f86834f4290065706a4679b6467d843f98c8eb62a57267f11fc82
3
+ metadata.gz: 762a40805b652da96c82cdb8b5608aa7907bf3e5d962809c49436bc9e01c249e
4
+ data.tar.gz: 4895f6e1529dc3b54b6b6c8281a7f1def6f10ae00e2451f4074c612c73d99591
5
5
  SHA512:
6
- metadata.gz: 74d4456113d178782aa23cea2c215480b4aa549e5b465828f1bbb9fcb5a9bdf7e15fab7c405e2a0b8fb278d868fa2c17f0c7363bcc0d53e1353cc439c49557ce
7
- data.tar.gz: eb763b16714e71ca3d699c3dd6fd074d6b1953c2b68aa38edbf6f7331d60cbd45bdde27f7ebb158f5311cf2912bd025298a3723058c839f71b0dcfd0d40a6018
6
+ metadata.gz: 37ab770d394b689a6179d781fe60a11dc5d1ba84fb0f35bfa0c1b93c9e5db9e530516708fe5336093da1e6882ba90b47c74882347cbd5eab76b1fac0a2f69c0d
7
+ data.tar.gz: 4e949dad14070dce9a6e84a48fee5c2e54f570d513aaffadb104993cc2857c18b2e88421372dd4e1b86a324b4d4f5d74fce30cc93f0461bc83cde7b490ce26b0
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.98.rc
10
+ - Package version: 4.0.100.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.98.rc.gem
27
+ gem install ./ultracart_api-4.0.100.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.98.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.100.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.98.rc'
36
+ gem 'ultracart_api', '~> 4.0.100.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)
@@ -613,6 +614,9 @@ Class | Method | HTTP request | Description
613
614
  - [UltracartClient::ConversationDepartmentResponse](docs/ConversationDepartmentResponse.md)
614
615
  - [UltracartClient::ConversationDepartmentsResponse](docs/ConversationDepartmentsResponse.md)
615
616
  - [UltracartClient::ConversationEngagement](docs/ConversationEngagement.md)
617
+ - [UltracartClient::ConversationEngagementEquation](docs/ConversationEngagementEquation.md)
618
+ - [UltracartClient::ConversationEngagementEquationFunction](docs/ConversationEngagementEquationFunction.md)
619
+ - [UltracartClient::ConversationEngagementEquationGroup](docs/ConversationEngagementEquationGroup.md)
616
620
  - [UltracartClient::ConversationEngagementResponse](docs/ConversationEngagementResponse.md)
617
621
  - [UltracartClient::ConversationEngagementsResponse](docs/ConversationEngagementsResponse.md)
618
622
  - [UltracartClient::ConversationEventAddCoupon](docs/ConversationEventAddCoupon.md)
@@ -1264,6 +1268,8 @@ Not every change is committed to every SDK.
1264
1268
 
1265
1269
  | Version | Date | Comments |
1266
1270
  | --: | :-: | --- |
1271
+ | 4.0.100-RC | 12/20/2022 | conversation engagement update |
1272
+ | 4.0.99-RC | 12/15/2022 | conversation search - added start date filtering |
1267
1273
  | 4.0.98-RC | 12/15/2022 | conversation searching |
1268
1274
  | 4.0.97-RC | 12/13/2022 | conversations - add email and sms_phone to participant object |
1269
1275
  | 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<String>** | | [optional] |
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
+
@@ -8,9 +8,9 @@
8
8
  | **customer_greeting** | **String** | | [optional] |
9
9
  | **department_oids** | **Array<Integer>** | | [optional] |
10
10
  | **engagement_name** | **String** | | [optional] |
11
- | **equation** | **Object** | | [optional] |
11
+ | **equation** | [**ConversationEngagementEquation**](ConversationEngagementEquation.md) | | [optional] |
12
12
  | **time_on_page** | **Integer** | | [optional] |
13
- | **visitor_type** | **String** | | [optional] |
13
+ | **visitor_type** | **String** | The type of visitor | [optional] |
14
14
 
15
15
  ## Example
16
16
 
@@ -0,0 +1,18 @@
1
+ # UltracartClient::ConversationEngagementEquation
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **groups** | [**Array<ConversationEngagementEquationGroup>**](ConversationEngagementEquationGroup.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::ConversationEngagementEquation.new(
15
+ groups: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,44 @@
1
+ # UltracartClient::ConversationEngagementEquationFunction
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **any_page_url_logic** | **String** | Logic operation to perform on an any page url function type | [optional] |
8
+ | **any_page_url_value** | **String** | | [optional] |
9
+ | **current_page_url_logic** | **String** | Logic operation to perform on a current page url function type | [optional] |
10
+ | **current_page_url_value** | **String** | | [optional] |
11
+ | **customers_browsing_time_logic** | **String** | Logic operation to perform on a customer's browsing time function type | [optional] |
12
+ | **customers_browsing_time_seconds** | **Integer** | | [optional] |
13
+ | **customers_location_country** | **String** | | [optional] |
14
+ | **customers_location_logic** | **String** | Logic operation to perform on a customer's location function type | [optional] |
15
+ | **customers_location_state** | **String** | | [optional] |
16
+ | **number_of_viewed_pages_logic** | **String** | Logic operation to perform on a customer's browsing time function type | [optional] |
17
+ | **number_of_viewed_pages_value** | **Integer** | | [optional] |
18
+ | **referring_website_logic** | **String** | Logic operation to perform on a referring website function type | [optional] |
19
+ | **referring_website_value** | **String** | | [optional] |
20
+ | **type** | **String** | Type of function | [optional] |
21
+
22
+ ## Example
23
+
24
+ ```ruby
25
+ require 'ultracart_api'
26
+
27
+ instance = UltracartClient::ConversationEngagementEquationFunction.new(
28
+ any_page_url_logic: null,
29
+ any_page_url_value: null,
30
+ current_page_url_logic: null,
31
+ current_page_url_value: null,
32
+ customers_browsing_time_logic: null,
33
+ customers_browsing_time_seconds: null,
34
+ customers_location_country: null,
35
+ customers_location_logic: null,
36
+ customers_location_state: null,
37
+ number_of_viewed_pages_logic: null,
38
+ number_of_viewed_pages_value: null,
39
+ referring_website_logic: null,
40
+ referring_website_value: null,
41
+ type: null
42
+ )
43
+ ```
44
+
@@ -0,0 +1,18 @@
1
+ # UltracartClient::ConversationEngagementEquationGroup
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **functions** | [**Array<ConversationEngagementEquationFunction>**](ConversationEngagementEquationFunction.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::ConversationEngagementEquationGroup.new(
15
+ functions: null
16
+ )
17
+ ```
18
+
@@ -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<String>',
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
@@ -27,8 +27,31 @@ module UltracartClient
27
27
 
28
28
  attr_accessor :time_on_page
29
29
 
30
+ # The type of visitor
30
31
  attr_accessor :visitor_type
31
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
+
32
55
  # Attribute mapping from ruby-style variable name to JSON key.
33
56
  def self.attribute_map
34
57
  {
@@ -54,7 +77,7 @@ module UltracartClient
54
77
  :'customer_greeting' => :'String',
55
78
  :'department_oids' => :'Array<Integer>',
56
79
  :'engagement_name' => :'String',
57
- :'equation' => :'Object',
80
+ :'equation' => :'ConversationEngagementEquation',
58
81
  :'time_on_page' => :'Integer',
59
82
  :'visitor_type' => :'String'
60
83
  }
@@ -122,9 +145,21 @@ module UltracartClient
122
145
  # Check to see if the all the properties in the model are valid
123
146
  # @return true if the model is valid
124
147
  def valid?
148
+ visitor_type_validator = EnumAttributeValidator.new('String', ["all", "first time", "returning"])
149
+ return false unless visitor_type_validator.valid?(@visitor_type)
125
150
  true
126
151
  end
127
152
 
153
+ # Custom attribute writer method checking allowed values (enum).
154
+ # @param [Object] visitor_type Object to be assigned
155
+ def visitor_type=(visitor_type)
156
+ validator = EnumAttributeValidator.new('String', ["all", "first time", "returning"])
157
+ unless validator.valid?(visitor_type)
158
+ fail ArgumentError, "invalid value for \"visitor_type\", must be one of #{validator.allowable_values}."
159
+ end
160
+ @visitor_type = visitor_type
161
+ end
162
+
128
163
  # Checks equality by comparing each attribute.
129
164
  # @param [Object] Object to be compared
130
165
  def ==(o)