ultracart_api 3.1.5 → 3.1.6

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: cbe3a716091ec080ca1b98dceb24d11f943750ab15eee75d82d49b2afe6d84d4
4
- data.tar.gz: ee95d4a3a5875ad45c599ced6810c124a08ab0f6ffbd3d93ec2c0d0b771239a6
3
+ metadata.gz: e9b67dd2df18641594c68fa7ee1cbbc179340019de0f069d5d08e706b3e4736b
4
+ data.tar.gz: 539093bfe2736cfe497f7a61d83d07bdcae6148d534d4a579e092b74a2067018
5
5
  SHA512:
6
- metadata.gz: 15db56e7ce000ff22e4171cd8fc6c3ebe087c7757b59c19ceb06b3552b304eded1c84730c730ab6d83897ea1eaa8ce14f0f2fc760bd12d7639a98a07654b8533
7
- data.tar.gz: ca1511eeac09bb4768935144c5ed6bbb9dd13d108d0a5e2140c6120414ca9ebefaa50f1b666abeb1bfbddc45cc9718a71bf3a3e6ea4cd60361b1f169e13fb919
6
+ metadata.gz: aefe0cd22169ffce3277c99d9245a0cd8141976d84a2737893d3b2074d5810b2b323f00af80234842e762314c2d335d4859dae4b81a1db0e0dfb4d1f189e05a0
7
+ data.tar.gz: 17bace8885d50b0a38671ba7a585a41894b766b5efb623ba40a7e1fac1a30202fda7b62e840eac1183d4d9143bfcebdfd4353c7862d8630aefd1bf02c9a25f03
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.5
10
+ - Package version: 3.1.6
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.5.gem
27
+ gem install ./ultracart_api-3.1.6.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.1.5.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.1.6.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.5'
35
+ gem 'ultracart_api', '~> 3.1.6'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -866,6 +866,7 @@ Class | Method | HTTP request | Description
866
866
  - [UltracartClient::ScreenRecordingFilterValuesEventParams](docs/ScreenRecordingFilterValuesEventParams.md)
867
867
  - [UltracartClient::ScreenRecordingMultifield](docs/ScreenRecordingMultifield.md)
868
868
  - [UltracartClient::ScreenRecordingPageView](docs/ScreenRecordingPageView.md)
869
+ - [UltracartClient::ScreenRecordingPageViewDataResponse](docs/ScreenRecordingPageViewDataResponse.md)
869
870
  - [UltracartClient::ScreenRecordingPageViewEvent](docs/ScreenRecordingPageViewEvent.md)
870
871
  - [UltracartClient::ScreenRecordingPageViewEventParameter](docs/ScreenRecordingPageViewEventParameter.md)
871
872
  - [UltracartClient::ScreenRecordingPageViewParameter](docs/ScreenRecordingPageViewParameter.md)
@@ -0,0 +1,12 @@
1
+ # UltracartClient::ScreenRecordingPageViewDataResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **events_json** | **String** | | [optional]
8
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -4366,7 +4366,7 @@ Name | Type | Description | Notes
4366
4366
 
4367
4367
 
4368
4368
  # **get_screen_recording_page_view_data**
4369
- > ScreenRecordingResponse get_screen_recording_page_view_data(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid)
4369
+ > ScreenRecordingPageViewDataResponse get_screen_recording_page_view_data(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid)
4370
4370
 
4371
4371
  Get screen recording page view data
4372
4372
 
@@ -4408,7 +4408,7 @@ Name | Type | Description | Notes
4408
4408
 
4409
4409
  ### Return type
4410
4410
 
4411
- [**ScreenRecordingResponse**](ScreenRecordingResponse.md)
4411
+ [**ScreenRecordingPageViewDataResponse**](ScreenRecordingPageViewDataResponse.md)
4412
4412
 
4413
4413
  ### Authorization
4414
4414
 
data/lib/ultracart_api.rb CHANGED
@@ -501,6 +501,7 @@ require 'ultracart_api/models/screen_recording_filter_values_event'
501
501
  require 'ultracart_api/models/screen_recording_filter_values_event_params'
502
502
  require 'ultracart_api/models/screen_recording_multifield'
503
503
  require 'ultracart_api/models/screen_recording_page_view'
504
+ require 'ultracart_api/models/screen_recording_page_view_data_response'
504
505
  require 'ultracart_api/models/screen_recording_page_view_event'
505
506
  require 'ultracart_api/models/screen_recording_page_view_event_parameter'
506
507
  require 'ultracart_api/models/screen_recording_page_view_parameter'
@@ -4833,7 +4833,7 @@ module UltracartClient
4833
4833
  # @param screen_recording_uuid
4834
4834
  # @param screen_recording_page_view_uuid
4835
4835
  # @param [Hash] opts the optional parameters
4836
- # @return [ScreenRecordingResponse]
4836
+ # @return [ScreenRecordingPageViewDataResponse]
4837
4837
  def get_screen_recording_page_view_data(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid, opts = {})
4838
4838
  data, _status_code, _headers = get_screen_recording_page_view_data_with_http_info(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid, opts)
4839
4839
  data
@@ -4845,7 +4845,7 @@ module UltracartClient
4845
4845
  # @param screen_recording_uuid
4846
4846
  # @param screen_recording_page_view_uuid
4847
4847
  # @param [Hash] opts the optional parameters
4848
- # @return [Array<(ScreenRecordingResponse, Fixnum, Hash)>] ScreenRecordingResponse data, response status code and response headers
4848
+ # @return [Array<(ScreenRecordingPageViewDataResponse, Fixnum, Hash)>] ScreenRecordingPageViewDataResponse data, response status code and response headers
4849
4849
  def get_screen_recording_page_view_data_with_http_info(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid, opts = {})
4850
4850
  if @api_client.config.debugging
4851
4851
  @api_client.config.logger.debug 'Calling API: StorefrontApi.get_screen_recording_page_view_data ...'
@@ -4888,7 +4888,7 @@ module UltracartClient
4888
4888
  :form_params => form_params,
4889
4889
  :body => post_body,
4890
4890
  :auth_names => auth_names,
4891
- :return_type => 'ScreenRecordingResponse')
4891
+ :return_type => 'ScreenRecordingPageViewDataResponse')
4892
4892
  if @api_client.config.debugging
4893
4893
  @api_client.config.logger.debug "API called: StorefrontApi#get_screen_recording_page_view_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4894
4894
  end
@@ -0,0 +1,221 @@
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 ScreenRecordingPageViewDataResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :events_json
20
+
21
+ attr_accessor :metadata
22
+
23
+ # Indicates if API call was successful
24
+ attr_accessor :success
25
+
26
+ attr_accessor :warning
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'error' => :'error',
32
+ :'events_json' => :'events_json',
33
+ :'metadata' => :'metadata',
34
+ :'success' => :'success',
35
+ :'warning' => :'warning'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'error' => :'Error',
43
+ :'events_json' => :'String',
44
+ :'metadata' => :'ResponseMetadata',
45
+ :'success' => :'BOOLEAN',
46
+ :'warning' => :'Warning'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ return unless attributes.is_a?(Hash)
54
+
55
+ # convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
+
58
+ if attributes.has_key?(:'error')
59
+ self.error = attributes[:'error']
60
+ end
61
+
62
+ if attributes.has_key?(:'events_json')
63
+ self.events_json = attributes[:'events_json']
64
+ end
65
+
66
+ if attributes.has_key?(:'metadata')
67
+ self.metadata = attributes[:'metadata']
68
+ end
69
+
70
+ if attributes.has_key?(:'success')
71
+ self.success = attributes[:'success']
72
+ end
73
+
74
+ if attributes.has_key?(:'warning')
75
+ self.warning = attributes[:'warning']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ error == o.error &&
98
+ events_json == o.events_json &&
99
+ metadata == o.metadata &&
100
+ success == o.success &&
101
+ warning == o.warning
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Fixnum] Hash code
112
+ def hash
113
+ [error, events_json, metadata, success, warning].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.swagger_types.each_pair do |key, type|
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :DateTime
143
+ DateTime.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :BOOLEAN
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ temp_model = UltracartClient.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.1.5'
14
+ VERSION = '3.1.6'
15
15
  end
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.1.5
4
+ version: 3.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
@@ -695,6 +695,7 @@ files:
695
695
  - docs/ScreenRecordingFilterValuesEventParams.md
696
696
  - docs/ScreenRecordingMultifield.md
697
697
  - docs/ScreenRecordingPageView.md
698
+ - docs/ScreenRecordingPageViewDataResponse.md
698
699
  - docs/ScreenRecordingPageViewEvent.md
699
700
  - docs/ScreenRecordingPageViewEventParameter.md
700
701
  - docs/ScreenRecordingPageViewParameter.md
@@ -1278,6 +1279,7 @@ files:
1278
1279
  - lib/ultracart_api/models/screen_recording_filter_values_event_params.rb
1279
1280
  - lib/ultracart_api/models/screen_recording_multifield.rb
1280
1281
  - lib/ultracart_api/models/screen_recording_page_view.rb
1282
+ - lib/ultracart_api/models/screen_recording_page_view_data_response.rb
1281
1283
  - lib/ultracart_api/models/screen_recording_page_view_event.rb
1282
1284
  - lib/ultracart_api/models/screen_recording_page_view_event_parameter.rb
1283
1285
  - lib/ultracart_api/models/screen_recording_page_view_parameter.rb