Class: PinterestSdkClient::CatalogsFeedValidationWarnings

Inherits:
Object
  • Object
show all
Defined in:
lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ CatalogsFeedValidationWarnings

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 223

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `PinterestSdkClient::CatalogsFeedValidationWarnings` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `PinterestSdkClient::CatalogsFeedValidationWarnings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'title_length_too_long')
    self.title_length_too_long = attributes[:'title_length_too_long']
  end

  if attributes.key?(:'description_length_too_long')
    self.description_length_too_long = attributes[:'description_length_too_long']
  end

  if attributes.key?(:'gender_invalid')
    self.gender_invalid = attributes[:'gender_invalid']
  end

  if attributes.key?(:'age_group_invalid')
    self.age_group_invalid = attributes[:'age_group_invalid']
  end

  if attributes.key?(:'size_type_invalid')
    self.size_type_invalid = attributes[:'size_type_invalid']
  end

  if attributes.key?(:'link_format_warning')
    self.link_format_warning = attributes[:'link_format_warning']
  end

  if attributes.key?(:'duplicate_products')
    self.duplicate_products = attributes[:'duplicate_products']
  end

  if attributes.key?(:'duplicate_links')
    self.duplicate_links = attributes[:'duplicate_links']
  end

  if attributes.key?(:'sales_price_invalid')
    self.sales_price_invalid = attributes[:'sales_price_invalid']
  end

  if attributes.key?(:'product_category_depth_warning')
    self.product_category_depth_warning = attributes[:'product_category_depth_warning']
  end

  if attributes.key?(:'adwords_same_as_link')
    self.adwords_same_as_link = attributes[:'adwords_same_as_link']
  end

  if attributes.key?(:'duplicate_headers')
    self.duplicate_headers = attributes[:'duplicate_headers']
  end

  if attributes.key?(:'fetch_same_signature')
    self.fetch_same_signature = attributes[:'fetch_same_signature']
  end

  if attributes.key?(:'adwords_format_warning')
    self.adwords_format_warning = attributes[:'adwords_format_warning']
  end

  if attributes.key?(:'additional_image_link_warning')
    self.additional_image_link_warning = attributes[:'additional_image_link_warning']
  end

  if attributes.key?(:'image_link_warning')
    self.image_link_warning = attributes[:'image_link_warning']
  end

  if attributes.key?(:'shipping_invalid')
    self.shipping_invalid = attributes[:'shipping_invalid']
  end

  if attributes.key?(:'tax_invalid')
    self.tax_invalid = attributes[:'tax_invalid']
  end

  if attributes.key?(:'shipping_weight_invalid')
    self.shipping_weight_invalid = attributes[:'shipping_weight_invalid']
  end

  if attributes.key?(:'expiration_date_invalid')
    self.expiration_date_invalid = attributes[:'expiration_date_invalid']
  end

  if attributes.key?(:'availability_date_invalid')
    self.availability_date_invalid = attributes[:'availability_date_invalid']
  end

  if attributes.key?(:'sale_date_invalid')
    self.sale_date_invalid = attributes[:'sale_date_invalid']
  end

  if attributes.key?(:'weight_unit_invalid')
    self.weight_unit_invalid = attributes[:'weight_unit_invalid']
  end

  if attributes.key?(:'is_bundle_invalid')
    self.is_bundle_invalid = attributes[:'is_bundle_invalid']
  end

  if attributes.key?(:'updated_time_invalid')
    self.updated_time_invalid = attributes[:'updated_time_invalid']
  end

  if attributes.key?(:'custom_label_length_too_long')
    self.custom_label_length_too_long = attributes[:'custom_label_length_too_long']
  end

  if attributes.key?(:'product_type_length_too_long')
    self.product_type_length_too_long = attributes[:'product_type_length_too_long']
  end

  if attributes.key?(:'too_many_additional_image_links')
    self.too_many_additional_image_links = attributes[:'too_many_additional_image_links']
  end

  if attributes.key?(:'multipack_invalid')
    self.multipack_invalid = attributes[:'multipack_invalid']
  end

  if attributes.key?(:'indexed_product_count_large_delta')
    self.indexed_product_count_large_delta = attributes[:'indexed_product_count_large_delta']
  end

  if attributes.key?(:'item_additional_image_download_failure')
    self.item_additional_image_download_failure = attributes[:'item_additional_image_download_failure']
  end

  if attributes.key?(:'optional_product_category_missing')
    self.optional_product_category_missing = attributes[:'optional_product_category_missing']
  end

  if attributes.key?(:'optional_product_category_invalid')
    self.optional_product_category_invalid = attributes[:'optional_product_category_invalid']
  end

  if attributes.key?(:'optional_condition_missing')
    self.optional_condition_missing = attributes[:'optional_condition_missing']
  end

  if attributes.key?(:'optional_condition_invalid')
    self.optional_condition_invalid = attributes[:'optional_condition_invalid']
  end

  if attributes.key?(:'ios_deep_link_invalid')
    self.ios_deep_link_invalid = attributes[:'ios_deep_link_invalid']
  end

  if attributes.key?(:'android_deep_link_invalid')
    self.android_deep_link_invalid = attributes[:'android_deep_link_invalid']
  end

  if attributes.key?(:'availability_normalized')
    self.availability_normalized = attributes[:'availability_normalized']
  end

  if attributes.key?(:'condition_normalized')
    self.condition_normalized = attributes[:'condition_normalized']
  end

  if attributes.key?(:'gender_normalized')
    self.gender_normalized = attributes[:'gender_normalized']
  end

  if attributes.key?(:'size_type_normalized')
    self.size_type_normalized = attributes[:'size_type_normalized']
  end

  if attributes.key?(:'age_group_normalized')
    self.age_group_normalized = attributes[:'age_group_normalized']
  end

  if attributes.key?(:'utm_source_auto_corrected')
    self.utm_source_auto_corrected = attributes[:'utm_source_auto_corrected']
  end

  if attributes.key?(:'country_does_not_map_to_currency')
    self.country_does_not_map_to_currency = attributes[:'country_does_not_map_to_currency']
  end

  if attributes.key?(:'min_ad_price_invalid')
    self.min_ad_price_invalid = attributes[:'min_ad_price_invalid']
  end
end

Instance Attribute Details

Returns the value of attribute additional_image_link_warning.



46
47
48
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 46

def additional_image_link_warning
  @additional_image_link_warning
end

#adwords_format_warningObject

Returns the value of attribute adwords_format_warning.



44
45
46
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 44

def adwords_format_warning
  @adwords_format_warning
end

Returns the value of attribute adwords_same_as_link.



38
39
40
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 38

def adwords_same_as_link
  @adwords_same_as_link
end

#age_group_invalidObject

Returns the value of attribute age_group_invalid.



24
25
26
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 24

def age_group_invalid
  @age_group_invalid
end

#age_group_normalizedObject

Returns the value of attribute age_group_normalized.



100
101
102
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 100

def age_group_normalized
  @age_group_normalized
end

Returns the value of attribute android_deep_link_invalid.



90
91
92
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 90

def android_deep_link_invalid
  @android_deep_link_invalid
end

#availability_date_invalidObject

Returns the value of attribute availability_date_invalid.



58
59
60
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 58

def availability_date_invalid
  @availability_date_invalid
end

#availability_normalizedObject

Returns the value of attribute availability_normalized.



92
93
94
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 92

def availability_normalized
  @availability_normalized
end

#condition_normalizedObject

Returns the value of attribute condition_normalized.



94
95
96
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 94

def condition_normalized
  @condition_normalized
end

#country_does_not_map_to_currencyObject

Returns the value of attribute country_does_not_map_to_currency.



104
105
106
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 104

def country_does_not_map_to_currency
  @country_does_not_map_to_currency
end

#custom_label_length_too_longObject

Returns the value of attribute custom_label_length_too_long.



68
69
70
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 68

def custom_label_length_too_long
  @custom_label_length_too_long
end

#description_length_too_longObject

Returns the value of attribute description_length_too_long.



20
21
22
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 20

def description_length_too_long
  @description_length_too_long
end

#duplicate_headersObject

Returns the value of attribute duplicate_headers.



40
41
42
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 40

def duplicate_headers
  @duplicate_headers
end

Returns the value of attribute duplicate_links.



32
33
34
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 32

def duplicate_links
  @duplicate_links
end

#duplicate_productsObject

Returns the value of attribute duplicate_products.



30
31
32
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 30

def duplicate_products
  @duplicate_products
end

#expiration_date_invalidObject

Returns the value of attribute expiration_date_invalid.



56
57
58
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 56

def expiration_date_invalid
  @expiration_date_invalid
end

#fetch_same_signatureObject

Returns the value of attribute fetch_same_signature.



42
43
44
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 42

def fetch_same_signature
  @fetch_same_signature
end

#gender_invalidObject

Returns the value of attribute gender_invalid.



22
23
24
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 22

def gender_invalid
  @gender_invalid
end

#gender_normalizedObject

Returns the value of attribute gender_normalized.



96
97
98
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 96

def gender_normalized
  @gender_normalized
end

Returns the value of attribute image_link_warning.



48
49
50
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 48

def image_link_warning
  @image_link_warning
end

#indexed_product_count_large_deltaObject

Returns the value of attribute indexed_product_count_large_delta.



76
77
78
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 76

def indexed_product_count_large_delta
  @indexed_product_count_large_delta
end

Returns the value of attribute ios_deep_link_invalid.



88
89
90
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 88

def ios_deep_link_invalid
  @ios_deep_link_invalid
end

#is_bundle_invalidObject

Returns the value of attribute is_bundle_invalid.



64
65
66
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 64

def is_bundle_invalid
  @is_bundle_invalid
end

#item_additional_image_download_failureObject

Returns the value of attribute item_additional_image_download_failure.



78
79
80
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 78

def item_additional_image_download_failure
  @item_additional_image_download_failure
end

Returns the value of attribute link_format_warning.



28
29
30
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 28

def link_format_warning
  @link_format_warning
end

#min_ad_price_invalidObject

Returns the value of attribute min_ad_price_invalid.



106
107
108
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 106

def min_ad_price_invalid
  @min_ad_price_invalid
end

#multipack_invalidObject

Returns the value of attribute multipack_invalid.



74
75
76
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 74

def multipack_invalid
  @multipack_invalid
end

#optional_condition_invalidObject

Returns the value of attribute optional_condition_invalid.



86
87
88
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 86

def optional_condition_invalid
  @optional_condition_invalid
end

#optional_condition_missingObject

Returns the value of attribute optional_condition_missing.



84
85
86
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 84

def optional_condition_missing
  @optional_condition_missing
end

#optional_product_category_invalidObject

Returns the value of attribute optional_product_category_invalid.



82
83
84
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 82

def optional_product_category_invalid
  @optional_product_category_invalid
end

#optional_product_category_missingObject

Returns the value of attribute optional_product_category_missing.



80
81
82
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 80

def optional_product_category_missing
  @optional_product_category_missing
end

#product_category_depth_warningObject

Returns the value of attribute product_category_depth_warning.



36
37
38
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 36

def product_category_depth_warning
  @product_category_depth_warning
end

#product_type_length_too_longObject

Returns the value of attribute product_type_length_too_long.



70
71
72
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 70

def product_type_length_too_long
  @product_type_length_too_long
end

#sale_date_invalidObject

Returns the value of attribute sale_date_invalid.



60
61
62
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 60

def sale_date_invalid
  @sale_date_invalid
end

#sales_price_invalidObject

Returns the value of attribute sales_price_invalid.



34
35
36
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 34

def sales_price_invalid
  @sales_price_invalid
end

#shipping_invalidObject

Returns the value of attribute shipping_invalid.



50
51
52
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 50

def shipping_invalid
  @shipping_invalid
end

#shipping_weight_invalidObject

Returns the value of attribute shipping_weight_invalid.



54
55
56
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 54

def shipping_weight_invalid
  @shipping_weight_invalid
end

#size_type_invalidObject

Returns the value of attribute size_type_invalid.



26
27
28
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 26

def size_type_invalid
  @size_type_invalid
end

#size_type_normalizedObject

Returns the value of attribute size_type_normalized.



98
99
100
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 98

def size_type_normalized
  @size_type_normalized
end

#tax_invalidObject

Returns the value of attribute tax_invalid.



52
53
54
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 52

def tax_invalid
  @tax_invalid
end

#title_length_too_longObject

Returns the value of attribute title_length_too_long.



18
19
20
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 18

def title_length_too_long
  @title_length_too_long
end

Returns the value of attribute too_many_additional_image_links.



72
73
74
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 72

def too_many_additional_image_links
  @too_many_additional_image_links
end

#updated_time_invalidObject

Returns the value of attribute updated_time_invalid.



66
67
68
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 66

def updated_time_invalid
  @updated_time_invalid
end

#utm_source_auto_correctedObject

Returns the value of attribute utm_source_auto_corrected.



102
103
104
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 102

def utm_source_auto_corrected
  @utm_source_auto_corrected
end

#weight_unit_invalidObject

Returns the value of attribute weight_unit_invalid.



62
63
64
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 62

def weight_unit_invalid
  @weight_unit_invalid
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



160
161
162
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 160

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 109

def self.attribute_map
  {
    :'title_length_too_long' => :'title_length_too_long',
    :'description_length_too_long' => :'description_length_too_long',
    :'gender_invalid' => :'gender_invalid',
    :'age_group_invalid' => :'age_group_invalid',
    :'size_type_invalid' => :'size_type_invalid',
    :'link_format_warning' => :'link_format_warning',
    :'duplicate_products' => :'duplicate_products',
    :'duplicate_links' => :'duplicate_links',
    :'sales_price_invalid' => :'sales_price_invalid',
    :'product_category_depth_warning' => :'product_category_depth_warning',
    :'adwords_same_as_link' => :'adwords_same_as_link',
    :'duplicate_headers' => :'duplicate_headers',
    :'fetch_same_signature' => :'fetch_same_signature',
    :'adwords_format_warning' => :'adwords_format_warning',
    :'additional_image_link_warning' => :'additional_image_link_warning',
    :'image_link_warning' => :'image_link_warning',
    :'shipping_invalid' => :'shipping_invalid',
    :'tax_invalid' => :'tax_invalid',
    :'shipping_weight_invalid' => :'shipping_weight_invalid',
    :'expiration_date_invalid' => :'expiration_date_invalid',
    :'availability_date_invalid' => :'availability_date_invalid',
    :'sale_date_invalid' => :'sale_date_invalid',
    :'weight_unit_invalid' => :'weight_unit_invalid',
    :'is_bundle_invalid' => :'is_bundle_invalid',
    :'updated_time_invalid' => :'updated_time_invalid',
    :'custom_label_length_too_long' => :'custom_label_length_too_long',
    :'product_type_length_too_long' => :'product_type_length_too_long',
    :'too_many_additional_image_links' => :'too_many_additional_image_links',
    :'multipack_invalid' => :'multipack_invalid',
    :'indexed_product_count_large_delta' => :'indexed_product_count_large_delta',
    :'item_additional_image_download_failure' => :'item_additional_image_download_failure',
    :'optional_product_category_missing' => :'optional_product_category_missing',
    :'optional_product_category_invalid' => :'optional_product_category_invalid',
    :'optional_condition_missing' => :'optional_condition_missing',
    :'optional_condition_invalid' => :'optional_condition_invalid',
    :'ios_deep_link_invalid' => :'ios_deep_link_invalid',
    :'android_deep_link_invalid' => :'android_deep_link_invalid',
    :'availability_normalized' => :'availability_normalized',
    :'condition_normalized' => :'condition_normalized',
    :'gender_normalized' => :'gender_normalized',
    :'size_type_normalized' => :'size_type_normalized',
    :'age_group_normalized' => :'age_group_normalized',
    :'utm_source_auto_corrected' => :'utm_source_auto_corrected',
    :'country_does_not_map_to_currency' => :'country_does_not_map_to_currency',
    :'min_ad_price_invalid' => :'min_ad_price_invalid'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



497
498
499
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 497

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_nullableObject

List of attributes with nullable: true



216
217
218
219
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 216

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 165

def self.openapi_types
  {
    :'title_length_too_long' => :'Integer',
    :'description_length_too_long' => :'Integer',
    :'gender_invalid' => :'Integer',
    :'age_group_invalid' => :'Integer',
    :'size_type_invalid' => :'Integer',
    :'link_format_warning' => :'Integer',
    :'duplicate_products' => :'Integer',
    :'duplicate_links' => :'Integer',
    :'sales_price_invalid' => :'Integer',
    :'product_category_depth_warning' => :'Integer',
    :'adwords_same_as_link' => :'Integer',
    :'duplicate_headers' => :'Integer',
    :'fetch_same_signature' => :'Integer',
    :'adwords_format_warning' => :'Integer',
    :'additional_image_link_warning' => :'Integer',
    :'image_link_warning' => :'Integer',
    :'shipping_invalid' => :'Integer',
    :'tax_invalid' => :'Integer',
    :'shipping_weight_invalid' => :'Integer',
    :'expiration_date_invalid' => :'Integer',
    :'availability_date_invalid' => :'Integer',
    :'sale_date_invalid' => :'Integer',
    :'weight_unit_invalid' => :'Integer',
    :'is_bundle_invalid' => :'Integer',
    :'updated_time_invalid' => :'Integer',
    :'custom_label_length_too_long' => :'Integer',
    :'product_type_length_too_long' => :'Integer',
    :'too_many_additional_image_links' => :'Integer',
    :'multipack_invalid' => :'Integer',
    :'indexed_product_count_large_delta' => :'Integer',
    :'item_additional_image_download_failure' => :'Integer',
    :'optional_product_category_missing' => :'Integer',
    :'optional_product_category_invalid' => :'Integer',
    :'optional_condition_missing' => :'Integer',
    :'optional_condition_invalid' => :'Integer',
    :'ios_deep_link_invalid' => :'Integer',
    :'android_deep_link_invalid' => :'Integer',
    :'availability_normalized' => :'Integer',
    :'condition_normalized' => :'Integer',
    :'gender_normalized' => :'Integer',
    :'size_type_normalized' => :'Integer',
    :'age_group_normalized' => :'Integer',
    :'utm_source_auto_corrected' => :'Integer',
    :'country_does_not_map_to_currency' => :'Integer',
    :'min_ad_price_invalid' => :'Integer'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 432

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      title_length_too_long == o.title_length_too_long &&
      description_length_too_long == o.description_length_too_long &&
      gender_invalid == o.gender_invalid &&
      age_group_invalid == o.age_group_invalid &&
      size_type_invalid == o.size_type_invalid &&
      link_format_warning == o.link_format_warning &&
      duplicate_products == o.duplicate_products &&
      duplicate_links == o.duplicate_links &&
      sales_price_invalid == o.sales_price_invalid &&
      product_category_depth_warning == o.product_category_depth_warning &&
      adwords_same_as_link == o.adwords_same_as_link &&
      duplicate_headers == o.duplicate_headers &&
      fetch_same_signature == o.fetch_same_signature &&
      adwords_format_warning == o.adwords_format_warning &&
      additional_image_link_warning == o.additional_image_link_warning &&
      image_link_warning == o.image_link_warning &&
      shipping_invalid == o.shipping_invalid &&
      tax_invalid == o.tax_invalid &&
      shipping_weight_invalid == o.shipping_weight_invalid &&
      expiration_date_invalid == o.expiration_date_invalid &&
      availability_date_invalid == o.availability_date_invalid &&
      sale_date_invalid == o.sale_date_invalid &&
      weight_unit_invalid == o.weight_unit_invalid &&
      is_bundle_invalid == o.is_bundle_invalid &&
      updated_time_invalid == o.updated_time_invalid &&
      custom_label_length_too_long == o.custom_label_length_too_long &&
      product_type_length_too_long == o.product_type_length_too_long &&
      too_many_additional_image_links == o.too_many_additional_image_links &&
      multipack_invalid == o.multipack_invalid &&
      indexed_product_count_large_delta == o.indexed_product_count_large_delta &&
      item_additional_image_download_failure == o.item_additional_image_download_failure &&
      optional_product_category_missing == o.optional_product_category_missing &&
      optional_product_category_invalid == o.optional_product_category_invalid &&
      optional_condition_missing == o.optional_condition_missing &&
      optional_condition_invalid == o.optional_condition_invalid &&
      ios_deep_link_invalid == o.ios_deep_link_invalid &&
      android_deep_link_invalid == o.android_deep_link_invalid &&
      availability_normalized == o.availability_normalized &&
      condition_normalized == o.condition_normalized &&
      gender_normalized == o.gender_normalized &&
      size_type_normalized == o.size_type_normalized &&
      age_group_normalized == o.age_group_normalized &&
      utm_source_auto_corrected == o.utm_source_auto_corrected &&
      country_does_not_map_to_currency == o.country_does_not_map_to_currency &&
      min_ad_price_invalid == o.min_ad_price_invalid
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 527

def _deserialize(type, value)
  case type.to_sym
  when :Time
    Time.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    # models (e.g. Pet) or oneOf
    klass = PinterestSdkClient.const_get(type)
    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



598
599
600
601
602
603
604
605
606
607
608
609
610
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 598

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 504

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.openapi_types.each_pair do |key, type|
    if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


484
485
486
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 484

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



490
491
492
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 490

def hash
  [title_length_too_long, description_length_too_long, gender_invalid, age_group_invalid, size_type_invalid, link_format_warning, duplicate_products, duplicate_links, sales_price_invalid, product_category_depth_warning, adwords_same_as_link, duplicate_headers, fetch_same_signature, adwords_format_warning, additional_image_link_warning, image_link_warning, shipping_invalid, tax_invalid, shipping_weight_invalid, expiration_date_invalid, availability_date_invalid, sale_date_invalid, weight_unit_invalid, is_bundle_invalid, updated_time_invalid, custom_label_length_too_long, product_type_length_too_long, too_many_additional_image_links, multipack_invalid, indexed_product_count_large_delta, item_additional_image_download_failure, optional_product_category_missing, optional_product_category_invalid, optional_condition_missing, optional_condition_invalid, ios_deep_link_invalid, android_deep_link_invalid, availability_normalized, condition_normalized, gender_normalized, size_type_normalized, age_group_normalized, utm_source_auto_corrected, country_does_not_map_to_currency, min_ad_price_invalid].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



419
420
421
422
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 419

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



574
575
576
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 574

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



580
581
582
583
584
585
586
587
588
589
590
591
592
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 580

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



568
569
570
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 568

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



426
427
428
# File 'lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb', line 426

def valid?
  true
end