ultracart_api 4.1.228 → 4.1.230

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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -2
  3. data/docs/ItemAutoOrder.md +6 -0
  4. data/docs/SfvbApi.md +946 -4
  5. data/docs/SfvbApprovalCreateRequest.md +2 -0
  6. data/docs/SfvbCommsFolder.md +28 -0
  7. data/docs/SfvbCommsFolderItem.md +22 -0
  8. data/docs/SfvbCommsFolderResponse.md +22 -0
  9. data/docs/SfvbCommsFolderWriteRequest.md +18 -0
  10. data/docs/SfvbCommsFoldersResponse.md +18 -0
  11. data/docs/SfvbCommsListDetail.md +34 -0
  12. data/docs/SfvbCommsListResponse.md +20 -0
  13. data/docs/SfvbCommsListWriteRequest.md +24 -0
  14. data/docs/SfvbFlowWriteRequest.md +2 -2
  15. data/docs/SfvbNotFoundEntry.md +2 -0
  16. data/docs/SfvbNotFoundSummary.md +28 -0
  17. data/docs/SfvbRedirectImportRow.md +2 -0
  18. data/docs/SfvbRedirectRequest.md +2 -0
  19. data/docs/SfvbRedirectResolveBatchRequest.md +18 -0
  20. data/docs/SfvbRedirectResolveBatchResponse.md +24 -0
  21. data/docs/SfvbSequenceStep.md +1 -1
  22. data/docs/SfvbSiteSeo.md +40 -0
  23. data/docs/SfvbSiteSeoChange.md +26 -0
  24. data/docs/SfvbSiteSeoRequest.md +24 -0
  25. data/docs/SfvbStepCounts.md +1 -1
  26. data/lib/ultracart_api/api/sfvb_api.rb +1306 -47
  27. data/lib/ultracart_api/models/item_auto_order.rb +35 -1
  28. data/lib/ultracart_api/models/sfvb_approval_create_request.rb +12 -3
  29. data/lib/ultracart_api/models/sfvb_comms_folder.rb +270 -0
  30. data/lib/ultracart_api/models/sfvb_comms_folder_item.rb +240 -0
  31. data/lib/ultracart_api/models/sfvb_comms_folder_response.rb +243 -0
  32. data/lib/ultracart_api/models/sfvb_comms_folder_write_request.rb +220 -0
  33. data/lib/ultracart_api/models/sfvb_comms_folders_response.rb +222 -0
  34. data/lib/ultracart_api/models/sfvb_comms_list_detail.rb +302 -0
  35. data/lib/ultracart_api/models/sfvb_comms_list_response.rb +231 -0
  36. data/lib/ultracart_api/models/sfvb_comms_list_write_request.rb +250 -0
  37. data/lib/ultracart_api/models/sfvb_flow_write_request.rb +2 -2
  38. data/lib/ultracart_api/models/sfvb_not_found_entry.rb +11 -1
  39. data/lib/ultracart_api/models/sfvb_not_found_summary.rb +280 -0
  40. data/lib/ultracart_api/models/sfvb_redirect_import_row.rb +11 -1
  41. data/lib/ultracart_api/models/sfvb_redirect_request.rb +11 -1
  42. data/lib/ultracart_api/models/sfvb_redirect_resolve_batch_request.rb +222 -0
  43. data/lib/ultracart_api/models/sfvb_redirect_resolve_batch_response.rb +252 -0
  44. data/lib/ultracart_api/models/sfvb_sequence_step.rb +1 -1
  45. data/lib/ultracart_api/models/sfvb_site_seo.rb +334 -0
  46. data/lib/ultracart_api/models/sfvb_site_seo_change.rb +260 -0
  47. data/lib/ultracart_api/models/sfvb_site_seo_request.rb +250 -0
  48. data/lib/ultracart_api/models/sfvb_step_counts.rb +1 -1
  49. data/lib/ultracart_api/version.rb +1 -1
  50. data/lib/ultracart_api.rb +14 -0
  51. metadata +30 -2
@@ -0,0 +1,250 @@
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 SfvbCommsListWriteRequest
18
+ # A list and segment folder on this storefront, or an empty string for none.
19
+ attr_accessor :folder_uuid
20
+
21
+ # The list name, 1 to 250 characters. Required to create.
22
+ attr_accessor :name
23
+
24
+ # Plain text subscribers see for a public list, up to 100 characters, or an empty string for none.
25
+ attr_accessor :public_description
26
+
27
+ # True to let subscribers choose this list on the storefront's email preferences page. Defaults to false.
28
+ attr_accessor :public_list
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'folder_uuid' => :'folder_uuid',
34
+ :'name' => :'name',
35
+ :'public_description' => :'public_description',
36
+ :'public_list' => :'public_list'
37
+ }
38
+ end
39
+
40
+ # Returns all the JSON keys this model knows about
41
+ def self.acceptable_attributes
42
+ attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.openapi_types
47
+ {
48
+ :'folder_uuid' => :'String',
49
+ :'name' => :'String',
50
+ :'public_description' => :'String',
51
+ :'public_list' => :'Boolean'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ ])
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbCommsListWriteRequest` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!self.class.attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbCommsListWriteRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ end
73
+ h[k.to_sym] = v
74
+ }
75
+
76
+ if attributes.key?(:'folder_uuid')
77
+ self.folder_uuid = attributes[:'folder_uuid']
78
+ end
79
+
80
+ if attributes.key?(:'name')
81
+ self.name = attributes[:'name']
82
+ end
83
+
84
+ if attributes.key?(:'public_description')
85
+ self.public_description = attributes[:'public_description']
86
+ end
87
+
88
+ if attributes.key?(:'public_list')
89
+ self.public_list = attributes[:'public_list']
90
+ end
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properties with the reasons
95
+ def list_invalid_properties
96
+ invalid_properties = Array.new
97
+ invalid_properties
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ def valid?
103
+ true
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param [Object] Object to be compared
108
+ def ==(o)
109
+ return true if self.equal?(o)
110
+ self.class == o.class &&
111
+ folder_uuid == o.folder_uuid &&
112
+ name == o.name &&
113
+ public_description == o.public_description &&
114
+ public_list == o.public_list
115
+ end
116
+
117
+ # @see the `==` method
118
+ # @param [Object] Object to be compared
119
+ def eql?(o)
120
+ self == o
121
+ end
122
+
123
+ # Calculates hash code according to all attributes.
124
+ # @return [Integer] Hash code
125
+ def hash
126
+ [folder_uuid, name, public_description, public_list].hash
127
+ end
128
+
129
+ # Builds the object from hash
130
+ # @param [Hash] attributes Model attributes in the form of hash
131
+ # @return [Object] Returns the model itself
132
+ def self.build_from_hash(attributes)
133
+ new.build_from_hash(attributes)
134
+ end
135
+
136
+ # Builds the object from hash
137
+ # @param [Hash] attributes Model attributes in the form of hash
138
+ # @return [Object] Returns the model itself
139
+ def build_from_hash(attributes)
140
+ return nil unless attributes.is_a?(Hash)
141
+ attributes = attributes.transform_keys(&:to_sym)
142
+ self.class.openapi_types.each_pair do |key, type|
143
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
144
+ self.send("#{key}=", nil)
145
+ elsif type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the attribute
147
+ # is documented as an array but the input is not
148
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
149
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
150
+ end
151
+ elsif !attributes[self.class.attribute_map[key]].nil?
152
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
153
+ end
154
+ end
155
+
156
+ self
157
+ end
158
+
159
+ # Deserializes the data based on type
160
+ # @param string type Data type
161
+ # @param string value Value to be deserialized
162
+ # @return [Object] Deserialized data
163
+ def _deserialize(type, value)
164
+ case type.to_sym
165
+ when :Time
166
+ Time.parse(value)
167
+ when :Date
168
+ Date.parse(value)
169
+ when :String
170
+ value.to_s
171
+ when :Integer
172
+ value.to_i
173
+ when :Float
174
+ value.to_f
175
+ when :Boolean
176
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
177
+ true
178
+ else
179
+ false
180
+ end
181
+ when :Object
182
+ # generic object (usually a Hash), return directly
183
+ value
184
+ when /\AArray<(?<inner_type>.+)>\z/
185
+ inner_type = Regexp.last_match[:inner_type]
186
+ value.map { |v| _deserialize(inner_type, v) }
187
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
188
+ k_type = Regexp.last_match[:k_type]
189
+ v_type = Regexp.last_match[:v_type]
190
+ {}.tap do |hash|
191
+ value.each do |k, v|
192
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
193
+ end
194
+ end
195
+ else # model
196
+ # models (e.g. Pet) or oneOf
197
+ klass = UltracartClient.const_get(type)
198
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
199
+ end
200
+ end
201
+
202
+ # Returns the string representation of the object
203
+ # @return [String] String presentation of the object
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_hash (backward compatibility)
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_body
211
+ to_hash
212
+ end
213
+
214
+ # Returns the object in the form of hash
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_hash
217
+ hash = {}
218
+ self.class.attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ if value.nil?
221
+ is_nullable = self.class.openapi_nullable.include?(attr)
222
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
223
+ end
224
+
225
+ hash[param] = _to_hash(value)
226
+ end
227
+ hash
228
+ end
229
+
230
+ # Outputs non-array value in the form of hash
231
+ # For object, use to_hash. Otherwise, just return the value
232
+ # @param [Object] value Any valid value
233
+ # @return [Hash] Returns the value in the form of hash
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map { |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+
248
+ end
249
+
250
+ end
@@ -42,10 +42,10 @@ module UltracartClient
42
42
  # The part of the from address before the at sign. Defaults to the storefront's marketing setting.
43
43
  attr_accessor :sending_user
44
44
 
45
- # The list or segment uuid for a list or segment trigger. Create only.
45
+ # The list or segment uuid for a list or segment trigger. Cleared when the trigger changes to one that takes none.
46
46
  attr_accessor :trigger_parameter
47
47
 
48
- # What enrolls a customer, such as cart abandoned. Create only.
48
+ # What enrolls a customer, such as cart abandoned. Required to create. On a change, only while the flow is off.
49
49
  attr_accessor :trigger_type
50
50
 
51
51
  class EnumAttributeValidator
@@ -27,6 +27,9 @@ module UltracartClient
27
27
  # First hit, ISO 8601.
28
28
  attr_accessor :first_seen_dts
29
29
 
30
+ # True when the entry is marked fixed or mapped. The next hit on the path clears it.
31
+ attr_accessor :fixed
32
+
30
33
  # Every recorded hit, bots included.
31
34
  attr_accessor :hits
32
35
 
@@ -55,6 +58,7 @@ module UltracartClient
55
58
  :'bot_share' => :'bot_share',
56
59
  :'counted_hits' => :'counted_hits',
57
60
  :'first_seen_dts' => :'first_seen_dts',
61
+ :'fixed' => :'fixed',
58
62
  :'hits' => :'hits',
59
63
  :'ignored' => :'ignored',
60
64
  :'last_seen_dts' => :'last_seen_dts',
@@ -77,6 +81,7 @@ module UltracartClient
77
81
  :'bot_share' => :'Object',
78
82
  :'counted_hits' => :'Integer',
79
83
  :'first_seen_dts' => :'String',
84
+ :'fixed' => :'Boolean',
80
85
  :'hits' => :'Integer',
81
86
  :'ignored' => :'Boolean',
82
87
  :'last_seen_dts' => :'String',
@@ -124,6 +129,10 @@ module UltracartClient
124
129
  self.first_seen_dts = attributes[:'first_seen_dts']
125
130
  end
126
131
 
132
+ if attributes.key?(:'fixed')
133
+ self.fixed = attributes[:'fixed']
134
+ end
135
+
127
136
  if attributes.key?(:'hits')
128
137
  self.hits = attributes[:'hits']
129
138
  end
@@ -177,6 +186,7 @@ module UltracartClient
177
186
  bot_share == o.bot_share &&
178
187
  counted_hits == o.counted_hits &&
179
188
  first_seen_dts == o.first_seen_dts &&
189
+ fixed == o.fixed &&
180
190
  hits == o.hits &&
181
191
  ignored == o.ignored &&
182
192
  last_seen_dts == o.last_seen_dts &&
@@ -195,7 +205,7 @@ module UltracartClient
195
205
  # Calculates hash code according to all attributes.
196
206
  # @return [Integer] Hash code
197
207
  def hash
198
- [bot_hits, bot_share, counted_hits, first_seen_dts, hits, ignored, last_seen_dts, not_found_id, path, redirected_to, referrer_hosts].hash
208
+ [bot_hits, bot_share, counted_hits, first_seen_dts, fixed, hits, ignored, last_seen_dts, not_found_id, path, redirected_to, referrer_hosts].hash
199
209
  end
200
210
 
201
211
  # Builds the object from hash
@@ -0,0 +1,280 @@
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 SfvbNotFoundSummary
18
+ # 404 hits per hour for the last 24 hours, oldest first.
19
+ attr_accessor :last_24_hours
20
+
21
+ # 404 hits per day, oldest first, ending today in the server's time zone. Bots and shoppers together.
22
+ attr_accessor :last_30_days
23
+
24
+ # 404 hits per day for the last 7 days, oldest first.
25
+ attr_accessor :last_7_days
26
+
27
+ # Up to 10 open paths first seen in the last 30 days, most hits first, leaving out paths only bots have hit.
28
+ attr_accessor :new_paths
29
+
30
+ # What a person should know about reading these counts.
31
+ attr_accessor :notes
32
+
33
+ # The sum of last_30_days.
34
+ attr_accessor :total_30_days
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'last_24_hours' => :'last_24_hours',
40
+ :'last_30_days' => :'last_30_days',
41
+ :'last_7_days' => :'last_7_days',
42
+ :'new_paths' => :'new_paths',
43
+ :'notes' => :'notes',
44
+ :'total_30_days' => :'total_30_days'
45
+ }
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'last_24_hours' => :'Array<Integer>',
57
+ :'last_30_days' => :'Array<Integer>',
58
+ :'last_7_days' => :'Array<Integer>',
59
+ :'new_paths' => :'Array<SfvbNotFoundEntry>',
60
+ :'notes' => :'Array<String>',
61
+ :'total_30_days' => :'Integer'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbNotFoundSummary` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbNotFoundSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'last_24_hours')
87
+ if (value = attributes[:'last_24_hours']).is_a?(Array)
88
+ self.last_24_hours = value
89
+ end
90
+ end
91
+
92
+ if attributes.key?(:'last_30_days')
93
+ if (value = attributes[:'last_30_days']).is_a?(Array)
94
+ self.last_30_days = value
95
+ end
96
+ end
97
+
98
+ if attributes.key?(:'last_7_days')
99
+ if (value = attributes[:'last_7_days']).is_a?(Array)
100
+ self.last_7_days = value
101
+ end
102
+ end
103
+
104
+ if attributes.key?(:'new_paths')
105
+ if (value = attributes[:'new_paths']).is_a?(Array)
106
+ self.new_paths = value
107
+ end
108
+ end
109
+
110
+ if attributes.key?(:'notes')
111
+ if (value = attributes[:'notes']).is_a?(Array)
112
+ self.notes = value
113
+ end
114
+ end
115
+
116
+ if attributes.key?(:'total_30_days')
117
+ self.total_30_days = attributes[:'total_30_days']
118
+ end
119
+ end
120
+
121
+ # Show invalid properties with the reasons. Usually used together with valid?
122
+ # @return Array for valid properties with the reasons
123
+ def list_invalid_properties
124
+ invalid_properties = Array.new
125
+ invalid_properties
126
+ end
127
+
128
+ # Check to see if the all the properties in the model are valid
129
+ # @return true if the model is valid
130
+ def valid?
131
+ true
132
+ end
133
+
134
+ # Checks equality by comparing each attribute.
135
+ # @param [Object] Object to be compared
136
+ def ==(o)
137
+ return true if self.equal?(o)
138
+ self.class == o.class &&
139
+ last_24_hours == o.last_24_hours &&
140
+ last_30_days == o.last_30_days &&
141
+ last_7_days == o.last_7_days &&
142
+ new_paths == o.new_paths &&
143
+ notes == o.notes &&
144
+ total_30_days == o.total_30_days
145
+ end
146
+
147
+ # @see the `==` method
148
+ # @param [Object] Object to be compared
149
+ def eql?(o)
150
+ self == o
151
+ end
152
+
153
+ # Calculates hash code according to all attributes.
154
+ # @return [Integer] Hash code
155
+ def hash
156
+ [last_24_hours, last_30_days, last_7_days, new_paths, notes, total_30_days].hash
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 self.build_from_hash(attributes)
163
+ new.build_from_hash(attributes)
164
+ end
165
+
166
+ # Builds the object from hash
167
+ # @param [Hash] attributes Model attributes in the form of hash
168
+ # @return [Object] Returns the model itself
169
+ def build_from_hash(attributes)
170
+ return nil unless attributes.is_a?(Hash)
171
+ attributes = attributes.transform_keys(&:to_sym)
172
+ self.class.openapi_types.each_pair do |key, type|
173
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
174
+ self.send("#{key}=", nil)
175
+ elsif type =~ /\AArray<(.*)>/i
176
+ # check to ensure the input is an array given that the attribute
177
+ # is documented as an array but the input is not
178
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
179
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
180
+ end
181
+ elsif !attributes[self.class.attribute_map[key]].nil?
182
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
183
+ end
184
+ end
185
+
186
+ self
187
+ end
188
+
189
+ # Deserializes the data based on type
190
+ # @param string type Data type
191
+ # @param string value Value to be deserialized
192
+ # @return [Object] Deserialized data
193
+ def _deserialize(type, value)
194
+ case type.to_sym
195
+ when :Time
196
+ Time.parse(value)
197
+ when :Date
198
+ Date.parse(value)
199
+ when :String
200
+ value.to_s
201
+ when :Integer
202
+ value.to_i
203
+ when :Float
204
+ value.to_f
205
+ when :Boolean
206
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
207
+ true
208
+ else
209
+ false
210
+ end
211
+ when :Object
212
+ # generic object (usually a Hash), return directly
213
+ value
214
+ when /\AArray<(?<inner_type>.+)>\z/
215
+ inner_type = Regexp.last_match[:inner_type]
216
+ value.map { |v| _deserialize(inner_type, v) }
217
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
218
+ k_type = Regexp.last_match[:k_type]
219
+ v_type = Regexp.last_match[:v_type]
220
+ {}.tap do |hash|
221
+ value.each do |k, v|
222
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
223
+ end
224
+ end
225
+ else # model
226
+ # models (e.g. Pet) or oneOf
227
+ klass = UltracartClient.const_get(type)
228
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
229
+ end
230
+ end
231
+
232
+ # Returns the string representation of the object
233
+ # @return [String] String presentation of the object
234
+ def to_s
235
+ to_hash.to_s
236
+ end
237
+
238
+ # to_body is an alias to to_hash (backward compatibility)
239
+ # @return [Hash] Returns the object in the form of hash
240
+ def to_body
241
+ to_hash
242
+ end
243
+
244
+ # Returns the object in the form of hash
245
+ # @return [Hash] Returns the object in the form of hash
246
+ def to_hash
247
+ hash = {}
248
+ self.class.attribute_map.each_pair do |attr, param|
249
+ value = self.send(attr)
250
+ if value.nil?
251
+ is_nullable = self.class.openapi_nullable.include?(attr)
252
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
253
+ end
254
+
255
+ hash[param] = _to_hash(value)
256
+ end
257
+ hash
258
+ end
259
+
260
+ # Outputs non-array value in the form of hash
261
+ # For object, use to_hash. Otherwise, just return the value
262
+ # @param [Object] value Any valid value
263
+ # @return [Hash] Returns the value in the form of hash
264
+ def _to_hash(value)
265
+ if value.is_a?(Array)
266
+ value.compact.map { |v| _to_hash(v) }
267
+ elsif value.is_a?(Hash)
268
+ {}.tap do |hash|
269
+ value.each { |k, v| hash[k] = _to_hash(v) }
270
+ end
271
+ elsif value.respond_to? :to_hash
272
+ value.to_hash
273
+ else
274
+ value
275
+ end
276
+ end
277
+
278
+ end
279
+
280
+ end
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class SfvbRedirectImportRow
18
+ # True to leave the rule's source out of the generated sitemap. Left out means false, as in the admin.
19
+ attr_accessor :exclude_from_sitemap
20
+
18
21
  # Why the rule exists.
19
22
  attr_accessor :note
20
23
 
@@ -27,6 +30,7 @@ module UltracartClient
27
30
  # Attribute mapping from ruby-style variable name to JSON key.
28
31
  def self.attribute_map
29
32
  {
33
+ :'exclude_from_sitemap' => :'exclude_from_sitemap',
30
34
  :'note' => :'note',
31
35
  :'source' => :'source',
32
36
  :'target' => :'target'
@@ -41,6 +45,7 @@ module UltracartClient
41
45
  # Attribute type mapping.
42
46
  def self.openapi_types
43
47
  {
48
+ :'exclude_from_sitemap' => :'Boolean',
44
49
  :'note' => :'String',
45
50
  :'source' => :'String',
46
51
  :'target' => :'String'
@@ -68,6 +73,10 @@ module UltracartClient
68
73
  h[k.to_sym] = v
69
74
  }
70
75
 
76
+ if attributes.key?(:'exclude_from_sitemap')
77
+ self.exclude_from_sitemap = attributes[:'exclude_from_sitemap']
78
+ end
79
+
71
80
  if attributes.key?(:'note')
72
81
  self.note = attributes[:'note']
73
82
  end
@@ -99,6 +108,7 @@ module UltracartClient
99
108
  def ==(o)
100
109
  return true if self.equal?(o)
101
110
  self.class == o.class &&
111
+ exclude_from_sitemap == o.exclude_from_sitemap &&
102
112
  note == o.note &&
103
113
  source == o.source &&
104
114
  target == o.target
@@ -113,7 +123,7 @@ module UltracartClient
113
123
  # Calculates hash code according to all attributes.
114
124
  # @return [Integer] Hash code
115
125
  def hash
116
- [note, source, target].hash
126
+ [exclude_from_sitemap, note, source, target].hash
117
127
  end
118
128
 
119
129
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class SfvbRedirectRequest
18
+ # True to leave the rule's source out of the generated sitemap. On a create, left out means false, as in the admin. On an update, left out keeps the rule's value.
19
+ attr_accessor :exclude_from_sitemap
20
+
18
21
  # Why the rule exists, up to 500 characters.
19
22
  attr_accessor :note
20
23
 
@@ -33,6 +36,7 @@ module UltracartClient
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
39
+ :'exclude_from_sitemap' => :'exclude_from_sitemap',
36
40
  :'note' => :'note',
37
41
  :'over_live_page' => :'over_live_page',
38
42
  :'source' => :'source',
@@ -49,6 +53,7 @@ module UltracartClient
49
53
  # Attribute type mapping.
50
54
  def self.openapi_types
51
55
  {
56
+ :'exclude_from_sitemap' => :'Boolean',
52
57
  :'note' => :'String',
53
58
  :'over_live_page' => :'Boolean',
54
59
  :'source' => :'String',
@@ -78,6 +83,10 @@ module UltracartClient
78
83
  h[k.to_sym] = v
79
84
  }
80
85
 
86
+ if attributes.key?(:'exclude_from_sitemap')
87
+ self.exclude_from_sitemap = attributes[:'exclude_from_sitemap']
88
+ end
89
+
81
90
  if attributes.key?(:'note')
82
91
  self.note = attributes[:'note']
83
92
  end
@@ -117,6 +126,7 @@ module UltracartClient
117
126
  def ==(o)
118
127
  return true if self.equal?(o)
119
128
  self.class == o.class &&
129
+ exclude_from_sitemap == o.exclude_from_sitemap &&
120
130
  note == o.note &&
121
131
  over_live_page == o.over_live_page &&
122
132
  source == o.source &&
@@ -133,7 +143,7 @@ module UltracartClient
133
143
  # Calculates hash code according to all attributes.
134
144
  # @return [Integer] Hash code
135
145
  def hash
136
- [note, over_live_page, source, status, target].hash
146
+ [exclude_from_sitemap, note, over_live_page, source, status, target].hash
137
147
  end
138
148
 
139
149
  # Builds the object from hash