Module: Peddler::Reports::B2BProductOpportunitiesNotYetOnAmazonReport20201119

Defined in:
lib/peddler/reports/b2b_product_opportunities_not_yet_on_amazon_report_2020_11_19.rb,
lib/peddler/reports/b2b_product_opportunities_not_yet_on_amazon_report_2020_11_19/report.rb,
lib/peddler/reports/b2b_product_opportunities_not_yet_on_amazon_report_2020_11_19/recommendation.rb

Overview

Provides B2B product recommendations based on predicted incremental units sold, unmet buyer demand, and other factors for products not yet listed on Amazon. The recommendations are personalized to the seller based on past sales activity.

Constant Summary collapse

Report =

Provides B2B product recommendations based on predicted incremental units sold, unmet buyer demand, and other factors for products not yet listed on Amazon. The recommendations are personalized to the seller based on past sales activity.

Structure.new do
  # @return [Array<Object>] A list of B2B product opportunity recommendation objects.
  attribute(:recommendations, Array)
end
Recommendation =

The recommendation result object.

Structure.new do
  # @return [String] The brand name of the product.
  attribute?(:brand, String)

  # @return [String] The primary product category.
  attribute?(:category, String)

  # @return [String] The European Article Number (EAN) of the product.
  attribute?(:ean, String)

  # @return [String] The industry of the first customer who requested the product.
  attribute?(:initial_b2b_buyer_industry, String, from: "initialB2bBuyerIndustry")

  # @return [String] The date the product may not be on Amazon as the result of the customer request.
  attribute?(:initial_b2b_buyer_requested_date, String, from: "initialB2bBuyerRequestedDate")

  # @return [String] The International Standard Book Number (ISBN) of the product.
  attribute?(:isbn, String)

  # @return [String] The title of the product.
  attribute?(:item_name, String, from: "itemName")

  # @return [String] The Model Number of the product.
  attribute?(:model_number, String, from: "modelNumber")

  # @return [String] The Manufacturer Part Number (MPN) of the product.
  attribute?(:part_number, String, from: "partNumber")

  # @return [String] The Universal Product Code (UPC) of the product.
  attribute?(:upc, String)
end

Class Method Summary collapse

Class Method Details

.parse(hash) ⇒ Object



14
15
16
# File 'lib/peddler/reports/b2b_product_opportunities_not_yet_on_amazon_report_2020_11_19.rb', line 14

def parse(hash)
  Report.parse(hash)
end