ultracart_api 4.1.225 → 4.1.227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,273 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class SfvbSitemapsResponse
18
+ # The host the sitemaps are built for.
19
+ attr_accessor :host
20
+
21
+ # What a person should know about these sitemaps, such as when they are rebuilt.
22
+ attr_accessor :notes
23
+
24
+ # True when the storefront's Prevent Indexing setting is on. The sitemaps are still served, but every page tells search engines not to index it.
25
+ attr_accessor :prevent_indexing
26
+
27
+ attr_accessor :robots_txt
28
+
29
+ # The sitemaps that exist, sitemaps.org first. Empty until the nightly build has run.
30
+ attr_accessor :sitemaps
31
+
32
+ # The storefront.
33
+ attr_accessor :storefront_oid
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'host' => :'host',
39
+ :'notes' => :'notes',
40
+ :'prevent_indexing' => :'prevent_indexing',
41
+ :'robots_txt' => :'robots_txt',
42
+ :'sitemaps' => :'sitemaps',
43
+ :'storefront_oid' => :'storefront_oid'
44
+ }
45
+ end
46
+
47
+ # Returns all the JSON keys this model knows about
48
+ def self.acceptable_attributes
49
+ attribute_map.values
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.openapi_types
54
+ {
55
+ :'host' => :'String',
56
+ :'notes' => :'Array<String>',
57
+ :'prevent_indexing' => :'Boolean',
58
+ :'robots_txt' => :'SfvbRobotsTxt',
59
+ :'sitemaps' => :'Array<SfvbSitemap>',
60
+ :'storefront_oid' => :'Integer'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ if (!attributes.is_a?(Hash))
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbSitemapsResponse` initialize method"
75
+ end
76
+
77
+ # check to see if the attribute exists and convert string to symbol for hash key
78
+ attributes = attributes.each_with_object({}) { |(k, v), h|
79
+ if (!self.class.attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbSitemapsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ end
82
+ h[k.to_sym] = v
83
+ }
84
+
85
+ if attributes.key?(:'host')
86
+ self.host = attributes[:'host']
87
+ end
88
+
89
+ if attributes.key?(:'notes')
90
+ if (value = attributes[:'notes']).is_a?(Array)
91
+ self.notes = value
92
+ end
93
+ end
94
+
95
+ if attributes.key?(:'prevent_indexing')
96
+ self.prevent_indexing = attributes[:'prevent_indexing']
97
+ end
98
+
99
+ if attributes.key?(:'robots_txt')
100
+ self.robots_txt = attributes[:'robots_txt']
101
+ end
102
+
103
+ if attributes.key?(:'sitemaps')
104
+ if (value = attributes[:'sitemaps']).is_a?(Array)
105
+ self.sitemaps = value
106
+ end
107
+ end
108
+
109
+ if attributes.key?(:'storefront_oid')
110
+ self.storefront_oid = attributes[:'storefront_oid']
111
+ end
112
+ end
113
+
114
+ # Show invalid properties with the reasons. Usually used together with valid?
115
+ # @return Array for valid properties with the reasons
116
+ def list_invalid_properties
117
+ invalid_properties = Array.new
118
+ invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ true
125
+ end
126
+
127
+ # Checks equality by comparing each attribute.
128
+ # @param [Object] Object to be compared
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ host == o.host &&
133
+ notes == o.notes &&
134
+ prevent_indexing == o.prevent_indexing &&
135
+ robots_txt == o.robots_txt &&
136
+ sitemaps == o.sitemaps &&
137
+ storefront_oid == o.storefront_oid
138
+ end
139
+
140
+ # @see the `==` method
141
+ # @param [Object] Object to be compared
142
+ def eql?(o)
143
+ self == o
144
+ end
145
+
146
+ # Calculates hash code according to all attributes.
147
+ # @return [Integer] Hash code
148
+ def hash
149
+ [host, notes, prevent_indexing, robots_txt, sitemaps, storefront_oid].hash
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def self.build_from_hash(attributes)
156
+ new.build_from_hash(attributes)
157
+ end
158
+
159
+ # Builds the object from hash
160
+ # @param [Hash] attributes Model attributes in the form of hash
161
+ # @return [Object] Returns the model itself
162
+ def build_from_hash(attributes)
163
+ return nil unless attributes.is_a?(Hash)
164
+ attributes = attributes.transform_keys(&:to_sym)
165
+ self.class.openapi_types.each_pair do |key, type|
166
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
167
+ self.send("#{key}=", nil)
168
+ elsif type =~ /\AArray<(.*)>/i
169
+ # check to ensure the input is an array given that the attribute
170
+ # is documented as an array but the input is not
171
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
172
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
173
+ end
174
+ elsif !attributes[self.class.attribute_map[key]].nil?
175
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
176
+ end
177
+ end
178
+
179
+ self
180
+ end
181
+
182
+ # Deserializes the data based on type
183
+ # @param string type Data type
184
+ # @param string value Value to be deserialized
185
+ # @return [Object] Deserialized data
186
+ def _deserialize(type, value)
187
+ case type.to_sym
188
+ when :Time
189
+ Time.parse(value)
190
+ when :Date
191
+ Date.parse(value)
192
+ when :String
193
+ value.to_s
194
+ when :Integer
195
+ value.to_i
196
+ when :Float
197
+ value.to_f
198
+ when :Boolean
199
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
200
+ true
201
+ else
202
+ false
203
+ end
204
+ when :Object
205
+ # generic object (usually a Hash), return directly
206
+ value
207
+ when /\AArray<(?<inner_type>.+)>\z/
208
+ inner_type = Regexp.last_match[:inner_type]
209
+ value.map { |v| _deserialize(inner_type, v) }
210
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
211
+ k_type = Regexp.last_match[:k_type]
212
+ v_type = Regexp.last_match[:v_type]
213
+ {}.tap do |hash|
214
+ value.each do |k, v|
215
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
216
+ end
217
+ end
218
+ else # model
219
+ # models (e.g. Pet) or oneOf
220
+ klass = UltracartClient.const_get(type)
221
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
222
+ end
223
+ end
224
+
225
+ # Returns the string representation of the object
226
+ # @return [String] String presentation of the object
227
+ def to_s
228
+ to_hash.to_s
229
+ end
230
+
231
+ # to_body is an alias to to_hash (backward compatibility)
232
+ # @return [Hash] Returns the object in the form of hash
233
+ def to_body
234
+ to_hash
235
+ end
236
+
237
+ # Returns the object in the form of hash
238
+ # @return [Hash] Returns the object in the form of hash
239
+ def to_hash
240
+ hash = {}
241
+ self.class.attribute_map.each_pair do |attr, param|
242
+ value = self.send(attr)
243
+ if value.nil?
244
+ is_nullable = self.class.openapi_nullable.include?(attr)
245
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
246
+ end
247
+
248
+ hash[param] = _to_hash(value)
249
+ end
250
+ hash
251
+ end
252
+
253
+ # Outputs non-array value in the form of hash
254
+ # For object, use to_hash. Otherwise, just return the value
255
+ # @param [Object] value Any valid value
256
+ # @return [Hash] Returns the value in the form of hash
257
+ def _to_hash(value)
258
+ if value.is_a?(Array)
259
+ value.compact.map { |v| _to_hash(v) }
260
+ elsif value.is_a?(Hash)
261
+ {}.tap do |hash|
262
+ value.each { |k, v| hash[k] = _to_hash(v) }
263
+ end
264
+ elsif value.respond_to? :to_hash
265
+ value.to_hash
266
+ else
267
+ value
268
+ end
269
+ end
270
+
271
+ end
272
+
273
+ end
@@ -18,6 +18,9 @@ module UltracartClient
18
18
  # Where the provider is in the admin.
19
19
  attr_accessor :admin_path
20
20
 
21
+ # On a dry run, whether the real write needs an approved tracking_provider.change request.
22
+ attr_accessor :approval_needed
23
+
21
24
  # On a write, each setting it changed, or would change on a dry run. Secrets read only set or cleared.
22
25
  attr_accessor :changes
23
26
 
@@ -65,6 +68,7 @@ module UltracartClient
65
68
  def self.attribute_map
66
69
  {
67
70
  :'admin_path' => :'admin_path',
71
+ :'approval_needed' => :'approval_needed',
68
72
  :'changes' => :'changes',
69
73
  :'configured' => :'configured',
70
74
  :'consent' => :'consent',
@@ -92,6 +96,7 @@ module UltracartClient
92
96
  def self.openapi_types
93
97
  {
94
98
  :'admin_path' => :'String',
99
+ :'approval_needed' => :'Boolean',
95
100
  :'changes' => :'Array<SfvbTrackingChange>',
96
101
  :'configured' => :'Boolean',
97
102
  :'consent' => :'SfvbTrackingProviderConsent',
@@ -135,6 +140,10 @@ module UltracartClient
135
140
  self.admin_path = attributes[:'admin_path']
136
141
  end
137
142
 
143
+ if attributes.key?(:'approval_needed')
144
+ self.approval_needed = attributes[:'approval_needed']
145
+ end
146
+
138
147
  if attributes.key?(:'changes')
139
148
  if (value = attributes[:'changes']).is_a?(Array)
140
149
  self.changes = value
@@ -225,6 +234,7 @@ module UltracartClient
225
234
  return true if self.equal?(o)
226
235
  self.class == o.class &&
227
236
  admin_path == o.admin_path &&
237
+ approval_needed == o.approval_needed &&
228
238
  changes == o.changes &&
229
239
  configured == o.configured &&
230
240
  consent == o.consent &&
@@ -251,7 +261,7 @@ module UltracartClient
251
261
  # Calculates hash code according to all attributes.
252
262
  # @return [Integer] Hash code
253
263
  def hash
254
- [admin_path, changes, configured, consent, consent_supported, cost, dry_run, events, fields, group, hash_sha256, key, name, notes, oauth, wholesale_tiers].hash
264
+ [admin_path, approval_needed, changes, configured, consent, consent_supported, cost, dry_run, events, fields, group, hash_sha256, key, name, notes, oauth, wholesale_tiers].hash
255
265
  end
256
266
 
257
267
  # Builds the object from hash
@@ -48,6 +48,9 @@ module UltracartClient
48
48
  # id, id_list, token, url, server_url, host, host_list, bool, select, number, numeric_id or secret. It decides what a write accepts.
49
49
  attr_accessor :type
50
50
 
51
+ # Present only when this storefront can't turn the field on, and why. Turning it off still works.
52
+ attr_accessor :unavailable_reason
53
+
51
54
  # The stored value. Booleans are true or false. Null when blank. Never present for a secret.
52
55
  attr_accessor :value
53
56
 
@@ -68,6 +71,7 @@ module UltracartClient
68
71
  :'set' => :'set',
69
72
  :'sink' => :'sink',
70
73
  :'type' => :'type',
74
+ :'unavailable_reason' => :'unavailable_reason',
71
75
  :'value' => :'value',
72
76
  :'writable' => :'writable'
73
77
  }
@@ -92,6 +96,7 @@ module UltracartClient
92
96
  :'set' => :'Boolean',
93
97
  :'sink' => :'String',
94
98
  :'type' => :'String',
99
+ :'unavailable_reason' => :'String',
95
100
  :'value' => :'String',
96
101
  :'writable' => :'Boolean'
97
102
  }
@@ -164,6 +169,10 @@ module UltracartClient
164
169
  self.type = attributes[:'type']
165
170
  end
166
171
 
172
+ if attributes.key?(:'unavailable_reason')
173
+ self.unavailable_reason = attributes[:'unavailable_reason']
174
+ end
175
+
167
176
  if attributes.key?(:'value')
168
177
  self.value = attributes[:'value']
169
178
  end
@@ -202,6 +211,7 @@ module UltracartClient
202
211
  set == o.set &&
203
212
  sink == o.sink &&
204
213
  type == o.type &&
214
+ unavailable_reason == o.unavailable_reason &&
205
215
  value == o.value &&
206
216
  writable == o.writable
207
217
  end
@@ -215,7 +225,7 @@ module UltracartClient
215
225
  # Calculates hash code according to all attributes.
216
226
  # @return [Integer] Hash code
217
227
  def hash
218
- [allowed, key, label, mask, max, max_value, min_value, secret, set, sink, type, value, writable].hash
228
+ [allowed, key, label, mask, max, max_value, min_value, secret, set, sink, type, unavailable_reason, value, writable].hash
219
229
  end
220
230
 
221
231
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.225'
14
+ VERSION = '4.1.227'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -1190,6 +1190,7 @@ require 'ultracart_api/models/sfvb_redirect_response'
1190
1190
  require 'ultracart_api/models/sfvb_redirects_response'
1191
1191
  require 'ultracart_api/models/sfvb_render_request'
1192
1192
  require 'ultracart_api/models/sfvb_render_response'
1193
+ require 'ultracart_api/models/sfvb_robots_txt'
1193
1194
  require 'ultracart_api/models/sfvb_secret_handle'
1194
1195
  require 'ultracart_api/models/sfvb_secret_kind'
1195
1196
  require 'ultracart_api/models/sfvb_secret_kinds_response'
@@ -1215,6 +1216,9 @@ require 'ultracart_api/models/sfvb_site_attribute'
1215
1216
  require 'ultracart_api/models/sfvb_site_attribute_update'
1216
1217
  require 'ultracart_api/models/sfvb_site_attribute_update_request'
1217
1218
  require 'ultracart_api/models/sfvb_site_attributes_response'
1219
+ require 'ultracart_api/models/sfvb_sitemap'
1220
+ require 'ultracart_api/models/sfvb_sitemap_file'
1221
+ require 'ultracart_api/models/sfvb_sitemaps_response'
1218
1222
  require 'ultracart_api/models/sfvb_smart_attribution'
1219
1223
  require 'ultracart_api/models/sfvb_smart_attribution_platform'
1220
1224
  require 'ultracart_api/models/sfvb_smart_attribution_request'
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: 4.1.225
4
+ version: 4.1.227
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-03 00:00:00.000000000 Z
11
+ date: 2026-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -1252,6 +1252,7 @@ files:
1252
1252
  - docs/SfvbRedirectsResponse.md
1253
1253
  - docs/SfvbRenderRequest.md
1254
1254
  - docs/SfvbRenderResponse.md
1255
+ - docs/SfvbRobotsTxt.md
1255
1256
  - docs/SfvbSecretHandle.md
1256
1257
  - docs/SfvbSecretKind.md
1257
1258
  - docs/SfvbSecretKindsResponse.md
@@ -1277,6 +1278,9 @@ files:
1277
1278
  - docs/SfvbSiteAttributeUpdate.md
1278
1279
  - docs/SfvbSiteAttributeUpdateRequest.md
1279
1280
  - docs/SfvbSiteAttributesResponse.md
1281
+ - docs/SfvbSitemap.md
1282
+ - docs/SfvbSitemapFile.md
1283
+ - docs/SfvbSitemapsResponse.md
1280
1284
  - docs/SfvbSmartAttribution.md
1281
1285
  - docs/SfvbSmartAttributionPlatform.md
1282
1286
  - docs/SfvbSmartAttributionRequest.md
@@ -2641,6 +2645,7 @@ files:
2641
2645
  - lib/ultracart_api/models/sfvb_redirects_response.rb
2642
2646
  - lib/ultracart_api/models/sfvb_render_request.rb
2643
2647
  - lib/ultracart_api/models/sfvb_render_response.rb
2648
+ - lib/ultracart_api/models/sfvb_robots_txt.rb
2644
2649
  - lib/ultracart_api/models/sfvb_secret_handle.rb
2645
2650
  - lib/ultracart_api/models/sfvb_secret_kind.rb
2646
2651
  - lib/ultracart_api/models/sfvb_secret_kinds_response.rb
@@ -2666,6 +2671,9 @@ files:
2666
2671
  - lib/ultracart_api/models/sfvb_site_attribute_update.rb
2667
2672
  - lib/ultracart_api/models/sfvb_site_attribute_update_request.rb
2668
2673
  - lib/ultracart_api/models/sfvb_site_attributes_response.rb
2674
+ - lib/ultracart_api/models/sfvb_sitemap.rb
2675
+ - lib/ultracart_api/models/sfvb_sitemap_file.rb
2676
+ - lib/ultracart_api/models/sfvb_sitemaps_response.rb
2669
2677
  - lib/ultracart_api/models/sfvb_smart_attribution.rb
2670
2678
  - lib/ultracart_api/models/sfvb_smart_attribution_platform.rb
2671
2679
  - lib/ultracart_api/models/sfvb_smart_attribution_request.rb