Class: Edi::Walmart::CatalogItemInformationProcessor::ProcessResult
- Inherits:
-
Data
- Object
- Data
- Edi::Walmart::CatalogItemInformationProcessor::ProcessResult
- Defined in:
- app/services/edi/walmart/catalog_item_information_processor.rb
Overview
Processes item information retrieved from Walmart Marketplace API
Updates CatalogItem records with Walmart-specific status and content quality data
Walmart item response structure:
{
"ItemResponse": [
{
"mart": "WALMART_US",
"sku": "SKU123",
"wpid": "WALMART_PRODUCT_ID",
"upc": "123456789012",
"gtin": "00123456789012",
"productName": "Product Name",
"shelf": "["Category"]",
"productType": "Product Type",
"price": { "currency": "USD", "amount": 99.99 },
"publishedStatus": "PUBLISHED",
"lifecycleStatus": "ACTIVE",
"unpublishedReasons": { ... }
}
],
"totalItems": 100
}
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#processed ⇒ Object
readonly
Returns the value of attribute processed.
-
#skipped ⇒ Object
readonly
Returns the value of attribute skipped.
Instance Method Summary collapse
-
#initialize(processed: nil, skipped: nil, errors: nil) ⇒ ProcessResult
constructor
A new instance of ProcessResult.
Constructor Details
#initialize(processed: nil, skipped: nil, errors: nil) ⇒ ProcessResult
Returns a new instance of ProcessResult.
30 |
# File 'app/services/edi/walmart/catalog_item_information_processor.rb', line 30 def initialize(processed: nil, skipped: nil, errors: nil) = super |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors
29 30 31 |
# File 'app/services/edi/walmart/catalog_item_information_processor.rb', line 29 def errors @errors end |
#processed ⇒ Object (readonly)
Returns the value of attribute processed
29 30 31 |
# File 'app/services/edi/walmart/catalog_item_information_processor.rb', line 29 def processed @processed end |
#skipped ⇒ Object (readonly)
Returns the value of attribute skipped
29 30 31 |
# File 'app/services/edi/walmart/catalog_item_information_processor.rb', line 29 def skipped @skipped end |