ultracart_api 3.1.45 → 3.1.46

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: cd77cb75fad4da0b0e7b5ef78f9048948deb626ef99428e350f8869829e8543e
4
- data.tar.gz: 147362bfa974364b763ecdd7923356473a34239958c4a375dc895665c7b8522d
3
+ metadata.gz: 5c398b15b9368d908a0cb8ce6cef0c4b8a893a37e4ffa6cff2495602be56c796
4
+ data.tar.gz: ea50738ad74ac2f689dc9391b64b9cfd771b66dd3f6b711229d8bde6e8246057
5
5
  SHA512:
6
- metadata.gz: ab897091c8c8b2e4a85897530c5d7fc1e56e9bc818393514edf28819b04d9e40a1ff768ff8fcdfd6750670ddbfbf5bd6fad4e5f62b781f4a11b1bd2c87fc4297
7
- data.tar.gz: 254dc500ef049ffe61c9747feaa6599a22c5eed25f0d5bfa59bb03b2aeeaffaebcc6932d0683a63411235df9a26363e61163f461de2e7632428d77368380b6d7
6
+ metadata.gz: 15903b3c129004b4bd25d89a05cfc65a8ac3abee03d634c546cf5b25a3bb32fa0c2416255cf1ca62518d8aaff48d3640afcf8a8d6735fe525e1d78cedef3f2ba
7
+ data.tar.gz: 0a7bc64aff99a8b224809a7f01de810f9c72edb8020cad4f7fbbb8e66d9fda3f710454245a83838a685be48c4de2d8440aa637779fd722509edc27adc415f184
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.1.45
10
+ - Package version: 3.1.46
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.1.45.gem
27
+ gem install ./ultracart_api-3.1.46.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.1.45.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.1.46.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.1.45'
35
+ gem 'ultracart_api', '~> 3.1.46'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -874,6 +874,7 @@ Class | Method | HTTP request | Description
874
874
  - [UltracartClient::ScreenRecordingFilterValuesPageParam](docs/ScreenRecordingFilterValuesPageParam.md)
875
875
  - [UltracartClient::ScreenRecordingFilterValuesPageView](docs/ScreenRecordingFilterValuesPageView.md)
876
876
  - [UltracartClient::ScreenRecordingHeatmap](docs/ScreenRecordingHeatmap.md)
877
+ - [UltracartClient::ScreenRecordingHeatmapIndexRequest](docs/ScreenRecordingHeatmapIndexRequest.md)
877
878
  - [UltracartClient::ScreenRecordingHeatmapIndexResponse](docs/ScreenRecordingHeatmapIndexResponse.md)
878
879
  - [UltracartClient::ScreenRecordingHeatmapRequest](docs/ScreenRecordingHeatmapRequest.md)
879
880
  - [UltracartClient::ScreenRecordingHeatmapReset](docs/ScreenRecordingHeatmapReset.md)
@@ -1019,6 +1020,7 @@ Not every change is committed to every SDK.
1019
1020
 
1020
1021
  | Version | Date | Comments |
1021
1022
  | --: | :-: | --- |
1023
+ | 3.1.46 | 06/14/2021 | Screen recording: server side paginated heat map index with url contains filters, Item: channel partner item mapping unit cost override |
1022
1024
  | 3.1.44 | 06/02/2021 | new boolean flag on items object to allow sharing of reviews between items |
1023
1025
  | 3.1.43 | 06/01/2021 | fix item serialized name of item serialized name for channel partner item mappings |
1024
1026
  | 3.1.42 | 06/01/2021 | added quickbooks accounting codes at the tiered level for tiered coupons |
data/docs/Error.md CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **developer_message** | **String** | A technical message meant to be read by a developer | [optional]
7
7
  **error_code** | **String** | HTTP status code | [optional]
8
8
  **more_info** | **String** | Additional information often a link to additional documentation | [optional]
9
+ **object_id** | **String** | Object id that the error is associated with | [optional]
9
10
  **user_message** | **String** | An end-user friendly message suitable for display to the customer | [optional]
10
11
 
11
12
 
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **buyer_item_number** | **String** | Buyer item number (EDI only) | [optional]
13
13
  **channel_partner_code** | **String** | Channel partner code | [optional]
14
14
  **channel_partner_oid** | **Integer** | Channel partner object identifier | [optional]
15
+ **cost** | **Float** | Cost given to this channel partner | [optional]
15
16
  **from_item_id** | **String** | From Item ID | [optional]
16
17
  **from_sku** | **String** | From SKU | [optional]
17
18
  **mutually_defined_number** | **String** | Mutually defined number (EDI only) | [optional]
@@ -0,0 +1,8 @@
1
+ # UltracartClient::ScreenRecordingHeatmapIndexRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **url_contains** | **String** | | [optional]
7
+
8
+
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **histogram_data** | **Array<Integer>** | | [optional]
7
7
  **histogram_interval** | **String** | | [optional]
8
8
  **histogram_start_dts** | **String** | | [optional]
9
+ **page_rank** | **Integer** | | [optional]
9
10
  **session_count** | **Integer** | | [optional]
10
11
  **url** | **String** | | [optional]
11
12
 
@@ -4119,7 +4119,7 @@ Name | Type | Description | Notes
4119
4119
 
4120
4120
 
4121
4121
  # **get_heatmap_index**
4122
- > ScreenRecordingHeatmapIndexResponse get_heatmap_index(storefront_oid)
4122
+ > ScreenRecordingHeatmapIndexResponse get_heatmap_index(storefront_oid, query, opts)
4123
4123
 
4124
4124
  Get screen recording heatmap index
4125
4125
 
@@ -4137,10 +4137,17 @@ api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, fals
4137
4137
 
4138
4138
  storefront_oid = 56 # Integer |
4139
4139
 
4140
+ query = UltracartClient::ScreenRecordingHeatmapIndexRequest.new # ScreenRecordingHeatmapIndexRequest | Query
4141
+
4142
+ opts = {
4143
+ _limit: 100, # Integer | The maximum number of records to return on this one API call. (Default 100, Max 500)
4144
+ _offset: 0, # Integer | Pagination of the record set. Offset is a zero based index.
4145
+ _sort: '_sort_example' # String | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
4146
+ }
4140
4147
 
4141
4148
  begin
4142
4149
  #Get screen recording heatmap index
4143
- result = api_instance.get_heatmap_index(storefront_oid)
4150
+ result = api_instance.get_heatmap_index(storefront_oid, query, opts)
4144
4151
  p result
4145
4152
  rescue UltracartClient::ApiError => e
4146
4153
  puts "Exception when calling StorefrontApi->get_heatmap_index: #{e}"
@@ -4152,6 +4159,10 @@ end
4152
4159
  Name | Type | Description | Notes
4153
4160
  ------------- | ------------- | ------------- | -------------
4154
4161
  **storefront_oid** | **Integer**| |
4162
+ **query** | [**ScreenRecordingHeatmapIndexRequest**](ScreenRecordingHeatmapIndexRequest.md)| Query |
4163
+ **_limit** | **Integer**| The maximum number of records to return on this one API call. (Default 100, Max 500) | [optional] [default to 100]
4164
+ **_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
4165
+ **_sort** | **String**| The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional]
4155
4166
 
4156
4167
  ### Return type
4157
4168
 
data/lib/ultracart_api.rb CHANGED
@@ -505,6 +505,7 @@ require 'ultracart_api/models/screen_recording_filter_values_event_params'
505
505
  require 'ultracart_api/models/screen_recording_filter_values_page_param'
506
506
  require 'ultracart_api/models/screen_recording_filter_values_page_view'
507
507
  require 'ultracart_api/models/screen_recording_heatmap'
508
+ require 'ultracart_api/models/screen_recording_heatmap_index_request'
508
509
  require 'ultracart_api/models/screen_recording_heatmap_index_response'
509
510
  require 'ultracart_api/models/screen_recording_heatmap_request'
510
511
  require 'ultracart_api/models/screen_recording_heatmap_reset'
@@ -4562,19 +4562,27 @@ module UltracartClient
4562
4562
  # Get screen recording heatmap index
4563
4563
  # Get screen recording heatmap index
4564
4564
  # @param storefront_oid
4565
+ # @param query Query
4565
4566
  # @param [Hash] opts the optional parameters
4567
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 500) (default to 100)
4568
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
4569
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
4566
4570
  # @return [ScreenRecordingHeatmapIndexResponse]
4567
- def get_heatmap_index(storefront_oid, opts = {})
4568
- data, _status_code, _headers = get_heatmap_index_with_http_info(storefront_oid, opts)
4571
+ def get_heatmap_index(storefront_oid, query, opts = {})
4572
+ data, _status_code, _headers = get_heatmap_index_with_http_info(storefront_oid, query, opts)
4569
4573
  data
4570
4574
  end
4571
4575
 
4572
4576
  # Get screen recording heatmap index
4573
4577
  # Get screen recording heatmap index
4574
4578
  # @param storefront_oid
4579
+ # @param query Query
4575
4580
  # @param [Hash] opts the optional parameters
4581
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 500)
4582
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
4583
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
4576
4584
  # @return [Array<(ScreenRecordingHeatmapIndexResponse, Fixnum, Hash)>] ScreenRecordingHeatmapIndexResponse data, response status code and response headers
4577
- def get_heatmap_index_with_http_info(storefront_oid, opts = {})
4585
+ def get_heatmap_index_with_http_info(storefront_oid, query, opts = {})
4578
4586
  if @api_client.config.debugging
4579
4587
  @api_client.config.logger.debug 'Calling API: StorefrontApi.get_heatmap_index ...'
4580
4588
  end
@@ -4582,11 +4590,18 @@ module UltracartClient
4582
4590
  if @api_client.config.client_side_validation && storefront_oid.nil?
4583
4591
  fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.get_heatmap_index"
4584
4592
  end
4593
+ # verify the required parameter 'query' is set
4594
+ if @api_client.config.client_side_validation && query.nil?
4595
+ fail ArgumentError, "Missing the required parameter 'query' when calling StorefrontApi.get_heatmap_index"
4596
+ end
4585
4597
  # resource path
4586
4598
  local_var_path = '/storefront/{storefront_oid}/screen_recordings/heatmap/index'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s)
4587
4599
 
4588
4600
  # query parameters
4589
4601
  query_params = {}
4602
+ query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
4603
+ query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
4604
+ query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
4590
4605
 
4591
4606
  # header parameters
4592
4607
  header_params = {}
@@ -4600,7 +4615,7 @@ module UltracartClient
4600
4615
  form_params = {}
4601
4616
 
4602
4617
  # http body (model)
4603
- post_body = nil
4618
+ post_body = @api_client.object_to_http_body(query)
4604
4619
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
4605
4620
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4606
4621
  :header_params => header_params,
@@ -23,6 +23,9 @@ module UltracartClient
23
23
  # Additional information often a link to additional documentation
24
24
  attr_accessor :more_info
25
25
 
26
+ # Object id that the error is associated with
27
+ attr_accessor :object_id
28
+
26
29
  # An end-user friendly message suitable for display to the customer
27
30
  attr_accessor :user_message
28
31
 
@@ -32,6 +35,7 @@ module UltracartClient
32
35
  :'developer_message' => :'developer_message',
33
36
  :'error_code' => :'error_code',
34
37
  :'more_info' => :'more_info',
38
+ :'object_id' => :'object_id',
35
39
  :'user_message' => :'user_message'
36
40
  }
37
41
  end
@@ -42,6 +46,7 @@ module UltracartClient
42
46
  :'developer_message' => :'String',
43
47
  :'error_code' => :'String',
44
48
  :'more_info' => :'String',
49
+ :'object_id' => :'String',
45
50
  :'user_message' => :'String'
46
51
  }
47
52
  end
@@ -66,6 +71,10 @@ module UltracartClient
66
71
  self.more_info = attributes[:'more_info']
67
72
  end
68
73
 
74
+ if attributes.has_key?(:'object_id')
75
+ self.object_id = attributes[:'object_id']
76
+ end
77
+
69
78
  if attributes.has_key?(:'user_message')
70
79
  self.user_message = attributes[:'user_message']
71
80
  end
@@ -92,6 +101,7 @@ module UltracartClient
92
101
  developer_message == o.developer_message &&
93
102
  error_code == o.error_code &&
94
103
  more_info == o.more_info &&
104
+ object_id == o.object_id &&
95
105
  user_message == o.user_message
96
106
  end
97
107
 
@@ -104,7 +114,7 @@ module UltracartClient
104
114
  # Calculates hash code according to all attributes.
105
115
  # @return [Fixnum] Hash code
106
116
  def hash
107
- [developer_message, error_code, more_info, user_message].hash
117
+ [developer_message, error_code, more_info, object_id, user_message].hash
108
118
  end
109
119
 
110
120
  # Builds the object from hash
@@ -41,6 +41,9 @@ module UltracartClient
41
41
  # Channel partner object identifier
42
42
  attr_accessor :channel_partner_oid
43
43
 
44
+ # Cost given to this channel partner
45
+ attr_accessor :cost
46
+
44
47
  # From Item ID
45
48
  attr_accessor :from_item_id
46
49
 
@@ -80,6 +83,7 @@ module UltracartClient
80
83
  :'buyer_item_number' => :'buyer_item_number',
81
84
  :'channel_partner_code' => :'channel_partner_code',
82
85
  :'channel_partner_oid' => :'channel_partner_oid',
86
+ :'cost' => :'cost',
83
87
  :'from_item_id' => :'from_item_id',
84
88
  :'from_sku' => :'from_sku',
85
89
  :'mutually_defined_number' => :'mutually_defined_number',
@@ -104,6 +108,7 @@ module UltracartClient
104
108
  :'buyer_item_number' => :'String',
105
109
  :'channel_partner_code' => :'String',
106
110
  :'channel_partner_oid' => :'Integer',
111
+ :'cost' => :'Float',
107
112
  :'from_item_id' => :'String',
108
113
  :'from_sku' => :'String',
109
114
  :'mutually_defined_number' => :'String',
@@ -160,6 +165,10 @@ module UltracartClient
160
165
  self.channel_partner_oid = attributes[:'channel_partner_oid']
161
166
  end
162
167
 
168
+ if attributes.has_key?(:'cost')
169
+ self.cost = attributes[:'cost']
170
+ end
171
+
163
172
  if attributes.has_key?(:'from_item_id')
164
173
  self.from_item_id = attributes[:'from_item_id']
165
174
  end
@@ -269,6 +278,7 @@ module UltracartClient
269
278
  buyer_item_number == o.buyer_item_number &&
270
279
  channel_partner_code == o.channel_partner_code &&
271
280
  channel_partner_oid == o.channel_partner_oid &&
281
+ cost == o.cost &&
272
282
  from_item_id == o.from_item_id &&
273
283
  from_sku == o.from_sku &&
274
284
  mutually_defined_number == o.mutually_defined_number &&
@@ -289,7 +299,7 @@ module UltracartClient
289
299
  # Calculates hash code according to all attributes.
290
300
  # @return [Fixnum] Hash code
291
301
  def hash
292
- [barcode_ua, barcode_uc, barcode_ui, barcode_uk, buyer_catalog_number, buyer_dpci, buyer_item_number, channel_partner_code, channel_partner_oid, from_item_id, from_sku, mutually_defined_number, quantity_ratio_cp, quantity_ratio_uc, sku, unit_of_measure, vendor_number, vendor_style_number].hash
302
+ [barcode_ua, barcode_uc, barcode_ui, barcode_uk, buyer_catalog_number, buyer_dpci, buyer_item_number, channel_partner_code, channel_partner_oid, cost, from_item_id, from_sku, mutually_defined_number, quantity_ratio_cp, quantity_ratio_uc, sku, unit_of_measure, vendor_number, vendor_style_number].hash
293
303
  end
294
304
 
295
305
  # Builds the object from hash
@@ -0,0 +1,184 @@
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 ScreenRecordingHeatmapIndexRequest
17
+ attr_accessor :url_contains
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'url_contains' => :'url_contains'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'url_contains' => :'String'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'url_contains')
42
+ self.url_contains = attributes[:'url_contains']
43
+ end
44
+ end
45
+
46
+ # Show invalid properties with the reasons. Usually used together with valid?
47
+ # @return Array for valid properties with the reasons
48
+ def list_invalid_properties
49
+ invalid_properties = Array.new
50
+ invalid_properties
51
+ end
52
+
53
+ # Check to see if the all the properties in the model are valid
54
+ # @return true if the model is valid
55
+ def valid?
56
+ true
57
+ end
58
+
59
+ # Checks equality by comparing each attribute.
60
+ # @param [Object] Object to be compared
61
+ def ==(o)
62
+ return true if self.equal?(o)
63
+ self.class == o.class &&
64
+ url_contains == o.url_contains
65
+ end
66
+
67
+ # @see the `==` method
68
+ # @param [Object] Object to be compared
69
+ def eql?(o)
70
+ self == o
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Fixnum] Hash code
75
+ def hash
76
+ [url_contains].hash
77
+ end
78
+
79
+ # Builds the object from hash
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ # @return [Object] Returns the model itself
82
+ def build_from_hash(attributes)
83
+ return nil unless attributes.is_a?(Hash)
84
+ self.class.swagger_types.each_pair do |key, type|
85
+ if type =~ /\AArray<(.*)>/i
86
+ # check to ensure the input is an array given that the attribute
87
+ # is documented as an array but the input is not
88
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
89
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
90
+ end
91
+ elsif !attributes[self.class.attribute_map[key]].nil?
92
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
93
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
94
+ end
95
+
96
+ self
97
+ end
98
+
99
+ # Deserializes the data based on type
100
+ # @param string type Data type
101
+ # @param string value Value to be deserialized
102
+ # @return [Object] Deserialized data
103
+ def _deserialize(type, value)
104
+ case type.to_sym
105
+ when :DateTime
106
+ DateTime.parse(value)
107
+ when :Date
108
+ Date.parse(value)
109
+ when :String
110
+ value.to_s
111
+ when :Integer
112
+ value.to_i
113
+ when :Float
114
+ value.to_f
115
+ when :BOOLEAN
116
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
117
+ true
118
+ else
119
+ false
120
+ end
121
+ when :Object
122
+ # generic object (usually a Hash), return directly
123
+ value
124
+ when /\AArray<(?<inner_type>.+)>\z/
125
+ inner_type = Regexp.last_match[:inner_type]
126
+ value.map { |v| _deserialize(inner_type, v) }
127
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
128
+ k_type = Regexp.last_match[:k_type]
129
+ v_type = Regexp.last_match[:v_type]
130
+ {}.tap do |hash|
131
+ value.each do |k, v|
132
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
133
+ end
134
+ end
135
+ else # model
136
+ temp_model = UltracartClient.const_get(type).new
137
+ temp_model.build_from_hash(value)
138
+ end
139
+ end
140
+
141
+ # Returns the string representation of the object
142
+ # @return [String] String presentation of the object
143
+ def to_s
144
+ to_hash.to_s
145
+ end
146
+
147
+ # to_body is an alias to to_hash (backward compatibility)
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_body
150
+ to_hash
151
+ end
152
+
153
+ # Returns the object in the form of hash
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_hash
156
+ hash = {}
157
+ self.class.attribute_map.each_pair do |attr, param|
158
+ value = self.send(attr)
159
+ next if value.nil?
160
+ hash[param] = _to_hash(value)
161
+ end
162
+ hash
163
+ end
164
+
165
+ # Outputs non-array value in the form of hash
166
+ # For object, use to_hash. Otherwise, just return the value
167
+ # @param [Object] value Any valid value
168
+ # @return [Hash] Returns the value in the form of hash
169
+ def _to_hash(value)
170
+ if value.is_a?(Array)
171
+ value.compact.map { |v| _to_hash(v) }
172
+ elsif value.is_a?(Hash)
173
+ {}.tap do |hash|
174
+ value.each { |k, v| hash[k] = _to_hash(v) }
175
+ end
176
+ elsif value.respond_to? :to_hash
177
+ value.to_hash
178
+ else
179
+ value
180
+ end
181
+ end
182
+
183
+ end
184
+ end
@@ -20,6 +20,8 @@ module UltracartClient
20
20
 
21
21
  attr_accessor :histogram_start_dts
22
22
 
23
+ attr_accessor :page_rank
24
+
23
25
  attr_accessor :session_count
24
26
 
25
27
  attr_accessor :url
@@ -30,6 +32,7 @@ module UltracartClient
30
32
  :'histogram_data' => :'histogram_data',
31
33
  :'histogram_interval' => :'histogram_interval',
32
34
  :'histogram_start_dts' => :'histogram_start_dts',
35
+ :'page_rank' => :'page_rank',
33
36
  :'session_count' => :'session_count',
34
37
  :'url' => :'url'
35
38
  }
@@ -41,6 +44,7 @@ module UltracartClient
41
44
  :'histogram_data' => :'Array<Integer>',
42
45
  :'histogram_interval' => :'String',
43
46
  :'histogram_start_dts' => :'String',
47
+ :'page_rank' => :'Integer',
44
48
  :'session_count' => :'Integer',
45
49
  :'url' => :'String'
46
50
  }
@@ -68,6 +72,10 @@ module UltracartClient
68
72
  self.histogram_start_dts = attributes[:'histogram_start_dts']
69
73
  end
70
74
 
75
+ if attributes.has_key?(:'page_rank')
76
+ self.page_rank = attributes[:'page_rank']
77
+ end
78
+
71
79
  if attributes.has_key?(:'session_count')
72
80
  self.session_count = attributes[:'session_count']
73
81
  end
@@ -98,6 +106,7 @@ module UltracartClient
98
106
  histogram_data == o.histogram_data &&
99
107
  histogram_interval == o.histogram_interval &&
100
108
  histogram_start_dts == o.histogram_start_dts &&
109
+ page_rank == o.page_rank &&
101
110
  session_count == o.session_count &&
102
111
  url == o.url
103
112
  end
@@ -111,7 +120,7 @@ module UltracartClient
111
120
  # Calculates hash code according to all attributes.
112
121
  # @return [Fixnum] Hash code
113
122
  def hash
114
- [histogram_data, histogram_interval, histogram_start_dts, session_count, url].hash
123
+ [histogram_data, histogram_interval, histogram_start_dts, page_rank, session_count, url].hash
115
124
  end
116
125
 
117
126
  # 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.45'
14
+ VERSION = '3.1.46'
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.45
4
+ version: 3.1.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -699,6 +699,7 @@ files:
699
699
  - docs/ScreenRecordingFilterValuesPageParam.md
700
700
  - docs/ScreenRecordingFilterValuesPageView.md
701
701
  - docs/ScreenRecordingHeatmap.md
702
+ - docs/ScreenRecordingHeatmapIndexRequest.md
702
703
  - docs/ScreenRecordingHeatmapIndexResponse.md
703
704
  - docs/ScreenRecordingHeatmapRequest.md
704
705
  - docs/ScreenRecordingHeatmapReset.md
@@ -1295,6 +1296,7 @@ files:
1295
1296
  - lib/ultracart_api/models/screen_recording_filter_values_page_param.rb
1296
1297
  - lib/ultracart_api/models/screen_recording_filter_values_page_view.rb
1297
1298
  - lib/ultracart_api/models/screen_recording_heatmap.rb
1299
+ - lib/ultracart_api/models/screen_recording_heatmap_index_request.rb
1298
1300
  - lib/ultracart_api/models/screen_recording_heatmap_index_response.rb
1299
1301
  - lib/ultracart_api/models/screen_recording_heatmap_request.rb
1300
1302
  - lib/ultracart_api/models/screen_recording_heatmap_reset.rb