ultracart_api 3.1.40 → 3.1.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -4
  3. data/docs/OrderApi.md +1 -1
  4. data/docs/OrderSummary.md +1 -0
  5. data/docs/ScreenRecordingFilterPageView.md +1 -0
  6. data/docs/ScreenRecordingFilterValuesPageView.md +1 -0
  7. data/docs/ScreenRecordingHeatmap.md +19 -0
  8. data/docs/ScreenRecordingHeatmapIndexResponse.md +12 -0
  9. data/docs/ScreenRecordingHeatmapRequest.md +9 -0
  10. data/docs/ScreenRecordingHeatmapReset.md +8 -0
  11. data/docs/ScreenRecordingHeatmapResponse.md +12 -0
  12. data/docs/ScreenRecordingHeatmapUrl.md +12 -0
  13. data/docs/ScreenRecordingPageView.md +1 -0
  14. data/docs/StorefrontApi.md +158 -0
  15. data/lib/ultracart_api.rb +6 -0
  16. data/lib/ultracart_api/api/order_api.rb +2 -2
  17. data/lib/ultracart_api/api/storefront_api.rb +176 -0
  18. data/lib/ultracart_api/models/order_summary.rb +10 -1
  19. data/lib/ultracart_api/models/screen_recording_filter_page_view.rb +10 -1
  20. data/lib/ultracart_api/models/screen_recording_filter_values_page_view.rb +12 -1
  21. data/lib/ultracart_api/models/screen_recording_heatmap.rb +283 -0
  22. data/lib/ultracart_api/models/screen_recording_heatmap_index_response.rb +223 -0
  23. data/lib/ultracart_api/models/screen_recording_heatmap_request.rb +193 -0
  24. data/lib/ultracart_api/models/screen_recording_heatmap_reset.rb +184 -0
  25. data/lib/ultracart_api/models/screen_recording_heatmap_response.rb +221 -0
  26. data/lib/ultracart_api/models/screen_recording_heatmap_url.rb +222 -0
  27. data/lib/ultracart_api/models/screen_recording_page_view.rb +10 -1
  28. data/lib/ultracart_api/version.rb +1 -1
  29. metadata +14 -2
@@ -0,0 +1,222 @@
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 ScreenRecordingHeatmapUrl
17
+ attr_accessor :histogram_data
18
+
19
+ attr_accessor :histogram_interval
20
+
21
+ attr_accessor :histogram_start_dts
22
+
23
+ attr_accessor :session_count
24
+
25
+ attr_accessor :url
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'histogram_data' => :'histogram_data',
31
+ :'histogram_interval' => :'histogram_interval',
32
+ :'histogram_start_dts' => :'histogram_start_dts',
33
+ :'session_count' => :'session_count',
34
+ :'url' => :'url'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'histogram_data' => :'Array<Integer>',
42
+ :'histogram_interval' => :'String',
43
+ :'histogram_start_dts' => :'String',
44
+ :'session_count' => :'Integer',
45
+ :'url' => :'String'
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
+
57
+ if attributes.has_key?(:'histogram_data')
58
+ if (value = attributes[:'histogram_data']).is_a?(Array)
59
+ self.histogram_data = value
60
+ end
61
+ end
62
+
63
+ if attributes.has_key?(:'histogram_interval')
64
+ self.histogram_interval = attributes[:'histogram_interval']
65
+ end
66
+
67
+ if attributes.has_key?(:'histogram_start_dts')
68
+ self.histogram_start_dts = attributes[:'histogram_start_dts']
69
+ end
70
+
71
+ if attributes.has_key?(:'session_count')
72
+ self.session_count = attributes[:'session_count']
73
+ end
74
+
75
+ if attributes.has_key?(:'url')
76
+ self.url = attributes[:'url']
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ invalid_properties = Array.new
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ true
91
+ end
92
+
93
+ # Checks equality by comparing each attribute.
94
+ # @param [Object] Object to be compared
95
+ def ==(o)
96
+ return true if self.equal?(o)
97
+ self.class == o.class &&
98
+ histogram_data == o.histogram_data &&
99
+ histogram_interval == o.histogram_interval &&
100
+ histogram_start_dts == o.histogram_start_dts &&
101
+ session_count == o.session_count &&
102
+ url == o.url
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Fixnum] Hash code
113
+ def hash
114
+ [histogram_data, histogram_interval, histogram_start_dts, session_count, url].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ self.class.swagger_types.each_pair do |key, type|
123
+ if 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 # or else data not found in attributes(hash), not an issue as the data can be optional
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 :DateTime
144
+ DateTime.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
+ temp_model = UltracartClient.const_get(type).new
175
+ temp_model.build_from_hash(value)
176
+ end
177
+ end
178
+
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ next if value.nil?
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+ end
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class ScreenRecordingPageView
17
+ attr_accessor :domain
18
+
17
19
  attr_accessor :events
18
20
 
19
21
  # First event timestamp
@@ -57,6 +59,7 @@ module UltracartClient
57
59
  # Attribute mapping from ruby-style variable name to JSON key.
58
60
  def self.attribute_map
59
61
  {
62
+ :'domain' => :'domain',
60
63
  :'events' => :'events',
61
64
  :'first_event_timestamp' => :'first_event_timestamp',
62
65
  :'http_post' => :'http_post',
@@ -81,6 +84,7 @@ module UltracartClient
81
84
  # Attribute type mapping.
82
85
  def self.swagger_types
83
86
  {
87
+ :'domain' => :'String',
84
88
  :'events' => :'Array<ScreenRecordingPageViewEvent>',
85
89
  :'first_event_timestamp' => :'String',
86
90
  :'http_post' => :'BOOLEAN',
@@ -110,6 +114,10 @@ module UltracartClient
110
114
  # convert string to symbol for hash key
111
115
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
112
116
 
117
+ if attributes.has_key?(:'domain')
118
+ self.domain = attributes[:'domain']
119
+ end
120
+
113
121
  if attributes.has_key?(:'events')
114
122
  if (value = attributes[:'events']).is_a?(Array)
115
123
  self.events = value
@@ -207,6 +215,7 @@ module UltracartClient
207
215
  def ==(o)
208
216
  return true if self.equal?(o)
209
217
  self.class == o.class &&
218
+ domain == o.domain &&
210
219
  events == o.events &&
211
220
  first_event_timestamp == o.first_event_timestamp &&
212
221
  http_post == o.http_post &&
@@ -236,7 +245,7 @@ module UltracartClient
236
245
  # Calculates hash code according to all attributes.
237
246
  # @return [Fixnum] Hash code
238
247
  def hash
239
- [events, first_event_timestamp, http_post, last_event_timestamp, missing_events, params, range_end, range_start, referrer, referrer_params, referrer_raw, screen_recording_page_view_uuid, time_on_page, timing_dom_content_loaded, timing_loaded, truncated_events, ucapv, url].hash
248
+ [domain, events, first_event_timestamp, http_post, last_event_timestamp, missing_events, params, range_end, range_start, referrer, referrer_params, referrer_raw, screen_recording_page_view_uuid, time_on_page, timing_dom_content_loaded, timing_loaded, truncated_events, ucapv, url].hash
240
249
  end
241
250
 
242
251
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.1.40'
14
+ VERSION = '3.1.41'
15
15
  end
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.1.40
4
+ version: 3.1.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-20 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -698,6 +698,12 @@ files:
698
698
  - docs/ScreenRecordingFilterValuesEventParams.md
699
699
  - docs/ScreenRecordingFilterValuesPageParam.md
700
700
  - docs/ScreenRecordingFilterValuesPageView.md
701
+ - docs/ScreenRecordingHeatmap.md
702
+ - docs/ScreenRecordingHeatmapIndexResponse.md
703
+ - docs/ScreenRecordingHeatmapRequest.md
704
+ - docs/ScreenRecordingHeatmapReset.md
705
+ - docs/ScreenRecordingHeatmapResponse.md
706
+ - docs/ScreenRecordingHeatmapUrl.md
701
707
  - docs/ScreenRecordingMerchantNotesRequest.md
702
708
  - docs/ScreenRecordingMultifield.md
703
709
  - docs/ScreenRecordingPageView.md
@@ -1288,6 +1294,12 @@ files:
1288
1294
  - lib/ultracart_api/models/screen_recording_filter_values_event_params.rb
1289
1295
  - lib/ultracart_api/models/screen_recording_filter_values_page_param.rb
1290
1296
  - lib/ultracart_api/models/screen_recording_filter_values_page_view.rb
1297
+ - lib/ultracart_api/models/screen_recording_heatmap.rb
1298
+ - lib/ultracart_api/models/screen_recording_heatmap_index_response.rb
1299
+ - lib/ultracart_api/models/screen_recording_heatmap_request.rb
1300
+ - lib/ultracart_api/models/screen_recording_heatmap_reset.rb
1301
+ - lib/ultracart_api/models/screen_recording_heatmap_response.rb
1302
+ - lib/ultracart_api/models/screen_recording_heatmap_url.rb
1291
1303
  - lib/ultracart_api/models/screen_recording_merchant_notes_request.rb
1292
1304
  - lib/ultracart_api/models/screen_recording_multifield.rb
1293
1305
  - lib/ultracart_api/models/screen_recording_page_view.rb