Class: Edi::Walmart::CatalogItemInformationProcessor::ProcessResult

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



29
30
31
# File 'app/services/edi/walmart/catalog_item_information_processor.rb', line 29

def errors
  @errors
end

#processedObject (readonly)

Returns the value of attribute processed

Returns:

  • (Object)

    the current value of processed



29
30
31
# File 'app/services/edi/walmart/catalog_item_information_processor.rb', line 29

def processed
  @processed
end

#skippedObject (readonly)

Returns the value of attribute skipped

Returns:

  • (Object)

    the current value of skipped



29
30
31
# File 'app/services/edi/walmart/catalog_item_information_processor.rb', line 29

def skipped
  @skipped
end