ultracart_api 3.10.125 → 3.10.127

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: bf58195910f46fde5ef8031b5cbc2558f7b9918a2e9488aa480130c14d356c48
4
- data.tar.gz: e8072049e8bb737eccdeb5f3b152dd7e003e41a011caf016f1ee51a6e4fa21d5
3
+ metadata.gz: 9b048b7cad8d5f9d279f49945dccba5a4762f613c54ff7d94370b5a2b57ca539
4
+ data.tar.gz: b4705f7af0715909dd869a33e5ad622974911da00f6b5fc92b0fbde87b2b6428
5
5
  SHA512:
6
- metadata.gz: 23f21a0fa71d9e4310d912059868b9803973eeb764eea3f383946f0080855c0106f2da05adaa6f1ba9d5022f765bc31ba1ba64f29e759e804d7bcfff79d93b8e
7
- data.tar.gz: 94d3421051eea455f89c066d9a1007673094be93f32074b10629699967b153fae8d4b4b23cba8dc12472e93646fbae94f1c1525f2b29f2c03be962256d9abd53
6
+ metadata.gz: f59f8a93970d4b69e8cf590626c951f48c127e6184cb4fae108157c49dfd856770e3fe48b719349aea5e0c6bfa229b2246bebe4143532aaafec039405242eb42
7
+ data.tar.gz: bf13639adb5ae4f3c5e68360a5a155044978c9761f20636a253412f109ccc344ca9358fb8d8400982c289d5e1d6f58b1805230fb3063d95df012b9bc6d9a7cd4
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.125
10
+ - Package version: 3.10.127
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.125.gem
27
+ gem install ./ultracart_api-3.10.127.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.125.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.127.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.125'
35
+ gem 'ultracart_api', '~> 3.10.127'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1148,6 +1148,7 @@ Class | Method | HTTP request | Description
1148
1148
  - [UltracartClient::ReportPageVisualizationDimension](docs/ReportPageVisualizationDimension.md)
1149
1149
  - [UltracartClient::ReportPageVisualizationMetric](docs/ReportPageVisualizationMetric.md)
1150
1150
  - [UltracartClient::ReportResponse](docs/ReportResponse.md)
1151
+ - [UltracartClient::ReportWebsocketEvent](docs/ReportWebsocketEvent.md)
1151
1152
  - [UltracartClient::ReportsResponse](docs/ReportsResponse.md)
1152
1153
  - [UltracartClient::ResponseMetadata](docs/ResponseMetadata.md)
1153
1154
  - [UltracartClient::ResultSet](docs/ResultSet.md)
@@ -1338,6 +1339,8 @@ Not every change is committed to every SDK.
1338
1339
 
1339
1340
  | Version | Date | Comments |
1340
1341
  | --: | :-: | --- |
1342
+ | 3.10.127 | 03/29/2023 | internal development |
1343
+ | 3.10.126 | 03/22/2023 | data warehouse internal dev |
1341
1344
  | 3.10.125 | 03/22/2023 | dw initial framework |
1342
1345
  | 3.10.124 | 03/22/2023 | order api - refundable response added manual_because_multiple_charges boolean field |
1343
1346
  | 3.10.123 | 03/21/2023 | order api - new stage named Hold |
data/docs/Experiment.md CHANGED
@@ -13,7 +13,12 @@ Name | Type | Description | Notes
13
13
  **notes** | **String** | Notes about the experiment | [optional]
14
14
  **objective** | **String** | Objective that is being optimized | [optional]
15
15
  **objective_parameter** | **String** | Objective parameter (such as event name) that is being optimized | [optional]
16
+ **openai_current_iteration** | **Integer** | The current iteration of the OpenAI related experiment | [optional]
17
+ **openai_element_type** | **String** | The type of OpenAI element being experimented on | [optional]
18
+ **openai_model** | **String** | The type of OpenAI model used | [optional]
19
+ **openai_total_iterations** | **Integer** | The total number of iterations to perform on the experiment | [optional]
16
20
  **optimization_type** | **String** | Type of optimization | [optional]
21
+ **p_value** | **Float** | Statistics p-value for the experiment | [optional]
17
22
  **session_count** | **Integer** | Total number of sessions in the experiment | [optional]
18
23
  **start_dts** | **String** | Start date/time | [optional]
19
24
  **status** | **String** | Status of the experiment | [optional]
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ReportWebsocketEvent
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **event_type** | **String** | Event type | [optional]
7
+ **query_completion** | [**ReportDataSet**](ReportDataSet.md) | | [optional]
8
+
9
+
@@ -44,9 +44,24 @@ module UltracartClient
44
44
  # Objective parameter (such as event name) that is being optimized
45
45
  attr_accessor :objective_parameter
46
46
 
47
+ # The current iteration of the OpenAI related experiment
48
+ attr_accessor :openai_current_iteration
49
+
50
+ # The type of OpenAI element being experimented on
51
+ attr_accessor :openai_element_type
52
+
53
+ # The type of OpenAI model used
54
+ attr_accessor :openai_model
55
+
56
+ # The total number of iterations to perform on the experiment
57
+ attr_accessor :openai_total_iterations
58
+
47
59
  # Type of optimization
48
60
  attr_accessor :optimization_type
49
61
 
62
+ # Statistics p-value for the experiment
63
+ attr_accessor :p_value
64
+
50
65
  # Total number of sessions in the experiment
51
66
  attr_accessor :session_count
52
67
 
@@ -103,7 +118,12 @@ module UltracartClient
103
118
  :'notes' => :'notes',
104
119
  :'objective' => :'objective',
105
120
  :'objective_parameter' => :'objective_parameter',
121
+ :'openai_current_iteration' => :'openai_current_iteration',
122
+ :'openai_element_type' => :'openai_element_type',
123
+ :'openai_model' => :'openai_model',
124
+ :'openai_total_iterations' => :'openai_total_iterations',
106
125
  :'optimization_type' => :'optimization_type',
126
+ :'p_value' => :'p_value',
107
127
  :'session_count' => :'session_count',
108
128
  :'start_dts' => :'start_dts',
109
129
  :'status' => :'status',
@@ -127,7 +147,12 @@ module UltracartClient
127
147
  :'notes' => :'String',
128
148
  :'objective' => :'String',
129
149
  :'objective_parameter' => :'String',
150
+ :'openai_current_iteration' => :'Integer',
151
+ :'openai_element_type' => :'String',
152
+ :'openai_model' => :'String',
153
+ :'openai_total_iterations' => :'Integer',
130
154
  :'optimization_type' => :'String',
155
+ :'p_value' => :'Float',
131
156
  :'session_count' => :'Integer',
132
157
  :'start_dts' => :'String',
133
158
  :'status' => :'String',
@@ -186,10 +211,30 @@ module UltracartClient
186
211
  self.objective_parameter = attributes[:'objective_parameter']
187
212
  end
188
213
 
214
+ if attributes.has_key?(:'openai_current_iteration')
215
+ self.openai_current_iteration = attributes[:'openai_current_iteration']
216
+ end
217
+
218
+ if attributes.has_key?(:'openai_element_type')
219
+ self.openai_element_type = attributes[:'openai_element_type']
220
+ end
221
+
222
+ if attributes.has_key?(:'openai_model')
223
+ self.openai_model = attributes[:'openai_model']
224
+ end
225
+
226
+ if attributes.has_key?(:'openai_total_iterations')
227
+ self.openai_total_iterations = attributes[:'openai_total_iterations']
228
+ end
229
+
189
230
  if attributes.has_key?(:'optimization_type')
190
231
  self.optimization_type = attributes[:'optimization_type']
191
232
  end
192
233
 
234
+ if attributes.has_key?(:'p_value')
235
+ self.p_value = attributes[:'p_value']
236
+ end
237
+
193
238
  if attributes.has_key?(:'session_count')
194
239
  self.session_count = attributes[:'session_count']
195
240
  end
@@ -231,11 +276,23 @@ module UltracartClient
231
276
  # Check to see if the all the properties in the model are valid
232
277
  # @return true if the model is valid
233
278
  def valid?
279
+ openai_element_type_validator = EnumAttributeValidator.new('String', ['headline', 'text', 'textblock'])
280
+ return false unless openai_element_type_validator.valid?(@openai_element_type)
234
281
  status_validator = EnumAttributeValidator.new('String', ['Running', 'Ended', 'Deleted'])
235
282
  return false unless status_validator.valid?(@status)
236
283
  true
237
284
  end
238
285
 
286
+ # Custom attribute writer method checking allowed values (enum).
287
+ # @param [Object] openai_element_type Object to be assigned
288
+ def openai_element_type=(openai_element_type)
289
+ validator = EnumAttributeValidator.new('String', ['headline', 'text', 'textblock'])
290
+ unless validator.valid?(openai_element_type)
291
+ fail ArgumentError, 'invalid value for "openai_element_type", must be one of #{validator.allowable_values}.'
292
+ end
293
+ @openai_element_type = openai_element_type
294
+ end
295
+
239
296
  # Custom attribute writer method checking allowed values (enum).
240
297
  # @param [Object] status Object to be assigned
241
298
  def status=(status)
@@ -261,7 +318,12 @@ module UltracartClient
261
318
  notes == o.notes &&
262
319
  objective == o.objective &&
263
320
  objective_parameter == o.objective_parameter &&
321
+ openai_current_iteration == o.openai_current_iteration &&
322
+ openai_element_type == o.openai_element_type &&
323
+ openai_model == o.openai_model &&
324
+ openai_total_iterations == o.openai_total_iterations &&
264
325
  optimization_type == o.optimization_type &&
326
+ p_value == o.p_value &&
265
327
  session_count == o.session_count &&
266
328
  start_dts == o.start_dts &&
267
329
  status == o.status &&
@@ -280,7 +342,7 @@ module UltracartClient
280
342
  # Calculates hash code according to all attributes.
281
343
  # @return [Fixnum] Hash code
282
344
  def hash
283
- [container_id, duration_days, end_dts, equal_weighting, experiment_type, id, name, notes, objective, objective_parameter, optimization_type, session_count, start_dts, status, storefront_experiment_oid, storefront_oid, uri, variations].hash
345
+ [container_id, duration_days, end_dts, equal_weighting, experiment_type, id, name, notes, objective, objective_parameter, openai_current_iteration, openai_element_type, openai_model, openai_total_iterations, optimization_type, p_value, session_count, start_dts, status, storefront_experiment_oid, storefront_oid, uri, variations].hash
284
346
  end
285
347
 
286
348
  # Builds the object from hash
@@ -0,0 +1,228 @@
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 ReportWebsocketEvent
17
+ # Event type
18
+ attr_accessor :event_type
19
+
20
+ attr_accessor :query_completion
21
+
22
+ class EnumAttributeValidator
23
+ attr_reader :datatype
24
+ attr_reader :allowable_values
25
+
26
+ def initialize(datatype, allowable_values)
27
+ @allowable_values = allowable_values.map do |value|
28
+ case datatype.to_s
29
+ when /Integer/i
30
+ value.to_i
31
+ when /Float/i
32
+ value.to_f
33
+ else
34
+ value
35
+ end
36
+ end
37
+ end
38
+
39
+ def valid?(value)
40
+ !value || allowable_values.include?(value)
41
+ end
42
+ end
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'event_type' => :'event_type',
48
+ :'query_completion' => :'query_completion'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.swagger_types
54
+ {
55
+ :'event_type' => :'String',
56
+ :'query_completion' => :'ReportDataSet'
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ return unless attributes.is_a?(Hash)
64
+
65
+ # convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
+
68
+ if attributes.has_key?(:'event_type')
69
+ self.event_type = attributes[:'event_type']
70
+ end
71
+
72
+ if attributes.has_key?(:'query_completion')
73
+ self.query_completion = attributes[:'query_completion']
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ event_type_validator = EnumAttributeValidator.new('String', ['ping', 'query completion'])
88
+ return false unless event_type_validator.valid?(@event_type)
89
+ true
90
+ end
91
+
92
+ # Custom attribute writer method checking allowed values (enum).
93
+ # @param [Object] event_type Object to be assigned
94
+ def event_type=(event_type)
95
+ validator = EnumAttributeValidator.new('String', ['ping', 'query completion'])
96
+ unless validator.valid?(event_type)
97
+ fail ArgumentError, 'invalid value for "event_type", must be one of #{validator.allowable_values}.'
98
+ end
99
+ @event_type = event_type
100
+ end
101
+
102
+ # Checks equality by comparing each attribute.
103
+ # @param [Object] Object to be compared
104
+ def ==(o)
105
+ return true if self.equal?(o)
106
+ self.class == o.class &&
107
+ event_type == o.event_type &&
108
+ query_completion == o.query_completion
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Fixnum] Hash code
119
+ def hash
120
+ [event_type, query_completion].hash
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
+ self.class.swagger_types.each_pair do |key, type|
129
+ if type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
133
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
134
+ end
135
+ elsif !attributes[self.class.attribute_map[key]].nil?
136
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
138
+ end
139
+
140
+ self
141
+ end
142
+
143
+ # Deserializes the data based on type
144
+ # @param string type Data type
145
+ # @param string value Value to be deserialized
146
+ # @return [Object] Deserialized data
147
+ def _deserialize(type, value)
148
+ case type.to_sym
149
+ when :DateTime
150
+ DateTime.parse(value)
151
+ when :Date
152
+ Date.parse(value)
153
+ when :String
154
+ value.to_s
155
+ when :Integer
156
+ value.to_i
157
+ when :Float
158
+ value.to_f
159
+ when :BOOLEAN
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
+ true
162
+ else
163
+ false
164
+ end
165
+ when :Object
166
+ # generic object (usually a Hash), return directly
167
+ value
168
+ when /\AArray<(?<inner_type>.+)>\z/
169
+ inner_type = Regexp.last_match[:inner_type]
170
+ value.map { |v| _deserialize(inner_type, v) }
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
+ k_type = Regexp.last_match[:k_type]
173
+ v_type = Regexp.last_match[:v_type]
174
+ {}.tap do |hash|
175
+ value.each do |k, v|
176
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
+ end
178
+ end
179
+ else # model
180
+ temp_model = UltracartClient.const_get(type).new
181
+ temp_model.build_from_hash(value)
182
+ end
183
+ end
184
+
185
+ # Returns the string representation of the object
186
+ # @return [String] String presentation of the object
187
+ def to_s
188
+ to_hash.to_s
189
+ end
190
+
191
+ # to_body is an alias to to_hash (backward compatibility)
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_body
194
+ to_hash
195
+ end
196
+
197
+ # Returns the object in the form of hash
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ next if value.nil?
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.125'
14
+ VERSION = '3.10.127'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -662,6 +662,7 @@ require 'ultracart_api/models/report_page_visualization'
662
662
  require 'ultracart_api/models/report_page_visualization_dimension'
663
663
  require 'ultracart_api/models/report_page_visualization_metric'
664
664
  require 'ultracart_api/models/report_response'
665
+ require 'ultracart_api/models/report_websocket_event'
665
666
  require 'ultracart_api/models/reports_response'
666
667
  require 'ultracart_api/models/response_metadata'
667
668
  require 'ultracart_api/models/result_set'
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: 3.10.125
4
+ version: 3.10.127
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-22 00:00:00.000000000 Z
11
+ date: 2023-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -881,6 +881,7 @@ files:
881
881
  - docs/ReportPageVisualizationDimension.md
882
882
  - docs/ReportPageVisualizationMetric.md
883
883
  - docs/ReportResponse.md
884
+ - docs/ReportWebsocketEvent.md
884
885
  - docs/ReportsResponse.md
885
886
  - docs/ResponseMetadata.md
886
887
  - docs/ResultSet.md
@@ -1676,6 +1677,7 @@ files:
1676
1677
  - lib/ultracart_api/models/report_page_visualization_dimension.rb
1677
1678
  - lib/ultracart_api/models/report_page_visualization_metric.rb
1678
1679
  - lib/ultracart_api/models/report_response.rb
1680
+ - lib/ultracart_api/models/report_websocket_event.rb
1679
1681
  - lib/ultracart_api/models/reports_response.rb
1680
1682
  - lib/ultracart_api/models/response_metadata.rb
1681
1683
  - lib/ultracart_api/models/result_set.rb