ultracart_api 3.1.0 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,212 @@
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 EmailVerifyTokenValidateResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :metadata
20
+
21
+ # Indicates if API call was successful
22
+ attr_accessor :success
23
+
24
+ attr_accessor :warning
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'error' => :'error',
30
+ :'metadata' => :'metadata',
31
+ :'success' => :'success',
32
+ :'warning' => :'warning'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+ :'error' => :'Error',
40
+ :'metadata' => :'ResponseMetadata',
41
+ :'success' => :'BOOLEAN',
42
+ :'warning' => :'Warning'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
+
54
+ if attributes.has_key?(:'error')
55
+ self.error = attributes[:'error']
56
+ end
57
+
58
+ if attributes.has_key?(:'metadata')
59
+ self.metadata = attributes[:'metadata']
60
+ end
61
+
62
+ if attributes.has_key?(:'success')
63
+ self.success = attributes[:'success']
64
+ end
65
+
66
+ if attributes.has_key?(:'warning')
67
+ self.warning = attributes[:'warning']
68
+ end
69
+ end
70
+
71
+ # Show invalid properties with the reasons. Usually used together with valid?
72
+ # @return Array for valid properties with the reasons
73
+ def list_invalid_properties
74
+ invalid_properties = Array.new
75
+ invalid_properties
76
+ end
77
+
78
+ # Check to see if the all the properties in the model are valid
79
+ # @return true if the model is valid
80
+ def valid?
81
+ true
82
+ end
83
+
84
+ # Checks equality by comparing each attribute.
85
+ # @param [Object] Object to be compared
86
+ def ==(o)
87
+ return true if self.equal?(o)
88
+ self.class == o.class &&
89
+ error == o.error &&
90
+ metadata == o.metadata &&
91
+ success == o.success &&
92
+ warning == o.warning
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 [Fixnum] Hash code
103
+ def hash
104
+ [error, metadata, success, warning].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 build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ self.class.swagger_types.each_pair do |key, type|
113
+ if type =~ /\AArray<(.*)>/i
114
+ # check to ensure the input is an array given that the attribute
115
+ # is documented as an array but the input is not
116
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
117
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
118
+ end
119
+ elsif !attributes[self.class.attribute_map[key]].nil?
120
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
121
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ # Deserializes the data based on type
128
+ # @param string type Data type
129
+ # @param string value Value to be deserialized
130
+ # @return [Object] Deserialized data
131
+ def _deserialize(type, value)
132
+ case type.to_sym
133
+ when :DateTime
134
+ DateTime.parse(value)
135
+ when :Date
136
+ Date.parse(value)
137
+ when :String
138
+ value.to_s
139
+ when :Integer
140
+ value.to_i
141
+ when :Float
142
+ value.to_f
143
+ when :BOOLEAN
144
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
145
+ true
146
+ else
147
+ false
148
+ end
149
+ when :Object
150
+ # generic object (usually a Hash), return directly
151
+ value
152
+ when /\AArray<(?<inner_type>.+)>\z/
153
+ inner_type = Regexp.last_match[:inner_type]
154
+ value.map { |v| _deserialize(inner_type, v) }
155
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
156
+ k_type = Regexp.last_match[:k_type]
157
+ v_type = Regexp.last_match[:v_type]
158
+ {}.tap do |hash|
159
+ value.each do |k, v|
160
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
161
+ end
162
+ end
163
+ else # model
164
+ temp_model = UltracartClient.const_get(type).new
165
+ temp_model.build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ next if value.nil?
188
+ hash[param] = _to_hash(value)
189
+ end
190
+ hash
191
+ end
192
+
193
+ # Outputs non-array value in the form of hash
194
+ # For object, use to_hash. Otherwise, just return the value
195
+ # @param [Object] value Any valid value
196
+ # @return [Hash] Returns the value in the form of hash
197
+ def _to_hash(value)
198
+ if value.is_a?(Array)
199
+ value.compact.map { |v| _to_hash(v) }
200
+ elsif value.is_a?(Hash)
201
+ {}.tap do |hash|
202
+ value.each { |k, v| hash[k] = _to_hash(v) }
203
+ end
204
+ elsif value.respond_to? :to_hash
205
+ value.to_hash
206
+ else
207
+ value
208
+ end
209
+ end
210
+
211
+ end
212
+ end
@@ -31,6 +31,10 @@ module UltracartClient
31
31
 
32
32
  attr_accessor :events_json_key
33
33
 
34
+ # True if the user calling the API has favorited this particular screen recording.
35
+ attr_accessor :favorite
36
+
37
+ # Array of user ids that favorited this particular screen recording.
34
38
  attr_accessor :favorites
35
39
 
36
40
  attr_accessor :geolocation
@@ -91,6 +95,7 @@ module UltracartClient
91
95
  :'esp_customer_uuid' => :'esp_customer_uuid',
92
96
  :'events_gz_size' => :'events_gz_size',
93
97
  :'events_json_key' => :'events_json_key',
98
+ :'favorite' => :'favorite',
94
99
  :'favorites' => :'favorites',
95
100
  :'geolocation' => :'geolocation',
96
101
  :'geolocation_country' => :'geolocation_country',
@@ -129,6 +134,7 @@ module UltracartClient
129
134
  :'esp_customer_uuid' => :'String',
130
135
  :'events_gz_size' => :'Integer',
131
136
  :'events_json_key' => :'String',
137
+ :'favorite' => :'BOOLEAN',
132
138
  :'favorites' => :'Array<Integer>',
133
139
  :'geolocation' => :'GeoPoint',
134
140
  :'geolocation_country' => :'String',
@@ -196,6 +202,10 @@ module UltracartClient
196
202
  self.events_json_key = attributes[:'events_json_key']
197
203
  end
198
204
 
205
+ if attributes.has_key?(:'favorite')
206
+ self.favorite = attributes[:'favorite']
207
+ end
208
+
199
209
  if attributes.has_key?(:'favorites')
200
210
  if (value = attributes[:'favorites']).is_a?(Array)
201
211
  self.favorites = value
@@ -331,6 +341,7 @@ module UltracartClient
331
341
  esp_customer_uuid == o.esp_customer_uuid &&
332
342
  events_gz_size == o.events_gz_size &&
333
343
  events_json_key == o.events_json_key &&
344
+ favorite == o.favorite &&
334
345
  favorites == o.favorites &&
335
346
  geolocation == o.geolocation &&
336
347
  geolocation_country == o.geolocation_country &&
@@ -366,7 +377,7 @@ module UltracartClient
366
377
  # Calculates hash code according to all attributes.
367
378
  # @return [Fixnum] Hash code
368
379
  def hash
369
- [analytics_client_oid, analytics_session_dts, analytics_session_oid, email, end_timestamp, esp_customer_uuid, events_gz_size, events_json_key, favorites, geolocation, geolocation_country, geolocation_state, merchant_id, order_id, page_view_count, page_views, rrweb_version, screen_recording_uuid, signed_download_url, start_timestamp, storefront_oids, storefronts, tags, time_on_site, ucacid, user_agent, user_agent_raw, user_ip, user_properties, watched, window_height, window_width].hash
380
+ [analytics_client_oid, analytics_session_dts, analytics_session_oid, email, end_timestamp, esp_customer_uuid, events_gz_size, events_json_key, favorite, favorites, geolocation, geolocation_country, geolocation_state, merchant_id, order_id, page_view_count, page_views, rrweb_version, screen_recording_uuid, signed_download_url, start_timestamp, storefront_oids, storefronts, tags, time_on_site, ucacid, user_agent, user_agent_raw, user_ip, user_properties, watched, window_height, window_width].hash
370
381
  end
371
382
 
372
383
  # 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.0'
14
+ VERSION = '3.1.5'
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.0
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-02 00:00:00.000000000 Z
11
+ date: 2021-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -493,6 +493,10 @@ files:
493
493
  - docs/EmailThirdPartyListImportRequest.md
494
494
  - docs/EmailThirdPartyProvider.md
495
495
  - docs/EmailThirdPartyProvidersResponse.md
496
+ - docs/EmailVerifyTokenRequest.md
497
+ - docs/EmailVerifyTokenResponse.md
498
+ - docs/EmailVerifyTokenValidateRequest.md
499
+ - docs/EmailVerifyTokenValidateResponse.md
496
500
  - docs/Error.md
497
501
  - docs/ErrorResponse.md
498
502
  - docs/Experiment.md
@@ -1076,6 +1080,10 @@ files:
1076
1080
  - lib/ultracart_api/models/email_third_party_list_import_request.rb
1077
1081
  - lib/ultracart_api/models/email_third_party_provider.rb
1078
1082
  - lib/ultracart_api/models/email_third_party_providers_response.rb
1083
+ - lib/ultracart_api/models/email_verify_token_request.rb
1084
+ - lib/ultracart_api/models/email_verify_token_response.rb
1085
+ - lib/ultracart_api/models/email_verify_token_validate_request.rb
1086
+ - lib/ultracart_api/models/email_verify_token_validate_response.rb
1079
1087
  - lib/ultracart_api/models/error.rb
1080
1088
  - lib/ultracart_api/models/error_response.rb
1081
1089
  - lib/ultracart_api/models/experiment.rb