ultracart_api 3.0.74 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -18
  3. data/docs/AffiliateApi.md +8 -22
  4. data/docs/AutoOrderApi.md +44 -100
  5. data/docs/ChargebackApi.md +20 -55
  6. data/docs/CheckoutApi.md +78 -295
  7. data/docs/CouponApi.md +78 -209
  8. data/docs/CouponTieredAmountOffItem.md +1 -1
  9. data/docs/CouponTieredPercentOffItems.md +1 -1
  10. data/docs/CustomerApi.md +199 -110
  11. data/docs/EmailPlan.md +1 -0
  12. data/docs/EmailPlanAdditional.md +3 -0
  13. data/docs/EmailVerifyTokenRequest.md +9 -0
  14. data/docs/EmailVerifyTokenResponse.md +12 -0
  15. data/docs/EmailVerifyTokenValidateRequest.md +8 -0
  16. data/docs/FulfillmentApi.md +21 -55
  17. data/docs/ItemApi.md +36 -99
  18. data/docs/OauthApi.md +8 -32
  19. data/docs/OrderApi.md +84 -223
  20. data/docs/ScreenRecording.md +2 -1
  21. data/docs/StorefrontApi.md +429 -2077
  22. data/docs/TaxApi.md +121 -308
  23. data/docs/UserApi.md +46 -121
  24. data/docs/WebhookApi.md +32 -88
  25. data/lib/ultracart_api.rb +3 -0
  26. data/lib/ultracart_api/api/affiliate_api.rb +13 -0
  27. data/lib/ultracart_api/api/auto_order_api.rb +21 -8
  28. data/lib/ultracart_api/api/chargeback_api.rb +13 -0
  29. data/lib/ultracart_api/api/checkout_api.rb +15 -2
  30. data/lib/ultracart_api/api/coupon_api.rb +13 -0
  31. data/lib/ultracart_api/api/customer_api.rb +181 -0
  32. data/lib/ultracart_api/api/fulfillment_api.rb +13 -0
  33. data/lib/ultracart_api/api/item_api.rb +13 -0
  34. data/lib/ultracart_api/api/oauth_api.rb +13 -0
  35. data/lib/ultracart_api/api/order_api.rb +15 -2
  36. data/lib/ultracart_api/api/storefront_api.rb +13 -0
  37. data/lib/ultracart_api/api/tax_api.rb +13 -0
  38. data/lib/ultracart_api/api/user_api.rb +13 -0
  39. data/lib/ultracart_api/api/webhook_api.rb +13 -0
  40. data/lib/ultracart_api/models/coupon_tiered_amount_off_item.rb +1 -1
  41. data/lib/ultracart_api/models/coupon_tiered_percent_off_items.rb +1 -1
  42. data/lib/ultracart_api/models/email_plan.rb +10 -1
  43. data/lib/ultracart_api/models/email_plan_additional.rb +28 -1
  44. data/lib/ultracart_api/models/email_verify_token_request.rb +195 -0
  45. data/lib/ultracart_api/models/email_verify_token_response.rb +222 -0
  46. data/lib/ultracart_api/models/email_verify_token_validate_request.rb +185 -0
  47. data/lib/ultracart_api/models/screen_recording.rb +12 -1
  48. data/lib/ultracart_api/version.rb +1 -1
  49. metadata +8 -2
@@ -0,0 +1,185 @@
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 EmailVerifyTokenValidateRequest
17
+ # token
18
+ attr_accessor :token
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'token' => :'token'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.swagger_types
29
+ {
30
+ :'token' => :'String'
31
+ }
32
+ end
33
+
34
+ # Initializes the object
35
+ # @param [Hash] attributes Model attributes in the form of hash
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
+
42
+ if attributes.has_key?(:'token')
43
+ self.token = attributes[:'token']
44
+ end
45
+ end
46
+
47
+ # Show invalid properties with the reasons. Usually used together with valid?
48
+ # @return Array for valid properties with the reasons
49
+ def list_invalid_properties
50
+ invalid_properties = Array.new
51
+ invalid_properties
52
+ end
53
+
54
+ # Check to see if the all the properties in the model are valid
55
+ # @return true if the model is valid
56
+ def valid?
57
+ true
58
+ end
59
+
60
+ # Checks equality by comparing each attribute.
61
+ # @param [Object] Object to be compared
62
+ def ==(o)
63
+ return true if self.equal?(o)
64
+ self.class == o.class &&
65
+ token == o.token
66
+ end
67
+
68
+ # @see the `==` method
69
+ # @param [Object] Object to be compared
70
+ def eql?(o)
71
+ self == o
72
+ end
73
+
74
+ # Calculates hash code according to all attributes.
75
+ # @return [Fixnum] Hash code
76
+ def hash
77
+ [token].hash
78
+ end
79
+
80
+ # Builds the object from hash
81
+ # @param [Hash] attributes Model attributes in the form of hash
82
+ # @return [Object] Returns the model itself
83
+ def build_from_hash(attributes)
84
+ return nil unless attributes.is_a?(Hash)
85
+ self.class.swagger_types.each_pair do |key, type|
86
+ if type =~ /\AArray<(.*)>/i
87
+ # check to ensure the input is an array given that the attribute
88
+ # is documented as an array but the input is not
89
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
90
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
91
+ end
92
+ elsif !attributes[self.class.attribute_map[key]].nil?
93
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
94
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
95
+ end
96
+
97
+ self
98
+ end
99
+
100
+ # Deserializes the data based on type
101
+ # @param string type Data type
102
+ # @param string value Value to be deserialized
103
+ # @return [Object] Deserialized data
104
+ def _deserialize(type, value)
105
+ case type.to_sym
106
+ when :DateTime
107
+ DateTime.parse(value)
108
+ when :Date
109
+ Date.parse(value)
110
+ when :String
111
+ value.to_s
112
+ when :Integer
113
+ value.to_i
114
+ when :Float
115
+ value.to_f
116
+ when :BOOLEAN
117
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
118
+ true
119
+ else
120
+ false
121
+ end
122
+ when :Object
123
+ # generic object (usually a Hash), return directly
124
+ value
125
+ when /\AArray<(?<inner_type>.+)>\z/
126
+ inner_type = Regexp.last_match[:inner_type]
127
+ value.map { |v| _deserialize(inner_type, v) }
128
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
129
+ k_type = Regexp.last_match[:k_type]
130
+ v_type = Regexp.last_match[:v_type]
131
+ {}.tap do |hash|
132
+ value.each do |k, v|
133
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
134
+ end
135
+ end
136
+ else # model
137
+ temp_model = UltracartClient.const_get(type).new
138
+ temp_model.build_from_hash(value)
139
+ end
140
+ end
141
+
142
+ # Returns the string representation of the object
143
+ # @return [String] String presentation of the object
144
+ def to_s
145
+ to_hash.to_s
146
+ end
147
+
148
+ # to_body is an alias to to_hash (backward compatibility)
149
+ # @return [Hash] Returns the object in the form of hash
150
+ def to_body
151
+ to_hash
152
+ end
153
+
154
+ # Returns the object in the form of hash
155
+ # @return [Hash] Returns the object in the form of hash
156
+ def to_hash
157
+ hash = {}
158
+ self.class.attribute_map.each_pair do |attr, param|
159
+ value = self.send(attr)
160
+ next if value.nil?
161
+ hash[param] = _to_hash(value)
162
+ end
163
+ hash
164
+ end
165
+
166
+ # Outputs non-array value in the form of hash
167
+ # For object, use to_hash. Otherwise, just return the value
168
+ # @param [Object] value Any valid value
169
+ # @return [Hash] Returns the value in the form of hash
170
+ def _to_hash(value)
171
+ if value.is_a?(Array)
172
+ value.compact.map { |v| _to_hash(v) }
173
+ elsif value.is_a?(Hash)
174
+ {}.tap do |hash|
175
+ value.each { |k, v| hash[k] = _to_hash(v) }
176
+ end
177
+ elsif value.respond_to? :to_hash
178
+ value.to_hash
179
+ else
180
+ value
181
+ end
182
+ end
183
+
184
+ end
185
+ 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.0.74'
14
+ VERSION = '3.1.2'
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.0.74
4
+ version: 3.1.2
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-01 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -493,6 +493,9 @@ 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
496
499
  - docs/Error.md
497
500
  - docs/ErrorResponse.md
498
501
  - docs/Experiment.md
@@ -1076,6 +1079,9 @@ files:
1076
1079
  - lib/ultracart_api/models/email_third_party_list_import_request.rb
1077
1080
  - lib/ultracart_api/models/email_third_party_provider.rb
1078
1081
  - lib/ultracart_api/models/email_third_party_providers_response.rb
1082
+ - lib/ultracart_api/models/email_verify_token_request.rb
1083
+ - lib/ultracart_api/models/email_verify_token_response.rb
1084
+ - lib/ultracart_api/models/email_verify_token_validate_request.rb
1079
1085
  - lib/ultracart_api/models/error.rb
1080
1086
  - lib/ultracart_api/models/error_response.rb
1081
1087
  - lib/ultracart_api/models/experiment.rb