Class: Edi::Wayfair::ListingGenerator::Attributes::WayfairComplianceVerifiedProgram
- Inherits:
-
BaseAttribute
- Object
- BaseAttribute
- Edi::Wayfair::ListingGenerator::Attributes::WayfairComplianceVerifiedProgram
- Defined in:
- app/services/edi/wayfair/listing_generator/attributes/wayfair_compliance_verified_program.rb
Overview
Wayfair's per-class compliance attestation: "Wayfair Compliance Verified
Program (including Baby Safety Alliance fka JPMA) for this product category".
Datatype: SINGLE_CHOICE, values Yes / No. REQUIRED on every class we sell in,
and it carries a different taxonomy id per class (Underfloor Heating 506032,
Bath Accessories 486408, Wall & Accent Mirrors 486280), so this resolves by
title like the other mappers rather than pinning an id.
Always No, deliberately. The programme covers juvenile / baby product
categories — cribs, high chairs, the Baby Safety Alliance (formerly JPMA)
scope. Nothing WarmlyYours sells on Wayfair (electric floor heating, towel
warmers, mirror defoggers, radiant panels) falls in it. There is no per-item
data to consult because the answer is a property of the category, not the
SKU; a spec column holding "No" on all 407 items would be a column of one
value. If we ever list an actual juvenile-category product this needs a real
lookup — that is the trigger to replace the constant.
It being unanswered is what made this the single largest listing issue on the
Wayfair dashboard: missing on 193 of 193 items with any real spec gap
(2026-07-25).
Constant Summary
Constants inherited from BaseAttribute
Instance Attribute Summary
Attributes inherited from BaseAttribute
#attribute_definition, #catalog_item, #item, #taxonomy_attribute_id, #wayfair_schema
Instance Method Summary collapse
-
#value ⇒ Object
ponytail: constant, not a lookup — see the class note.
Methods inherited from BaseAttribute
attribute_name, #attribute_title, #build, #build_attribute_hash, #can_build?, #custom_values_allowed?, #datatype, #fetch_value, #format_boolean, #format_decimal, #initialize, #map_unit, #possible_values, #requirement, schema_titles, set_schema_titles, set_taxonomy_attribute_id, #valid_value?
Constructor Details
This class inherits a constructor from Edi::Wayfair::ListingGenerator::Attributes::BaseAttribute
Instance Method Details
#value ⇒ Object
ponytail: constant, not a lookup — see the class note. Swap for a
category-driven answer only when we list a juvenile-category product.
32 |
# File 'app/services/edi/wayfair/listing_generator/attributes/wayfair_compliance_verified_program.rb', line 32 def value = 'No' |