# frozen_string_literal: true

# This file is generated. Do not edit.

require "peddler/types/catalog_items_2022_04_01/item_classification_sales_rank"
require "peddler/types/catalog_items_2022_04_01/item_display_group_sales_rank"

module Peddler
  module Types
    module CatalogItems20220401
      # Sales ranks of an Amazon catalog item, grouped by `marketplaceId`.
      ItemSalesRanksByMarketplace = Structure.new do
        # @return [String] Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace
        # IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
        attribute(:marketplace_id, String, from: "marketplaceId")

        # @return [Array<ItemClassificationSalesRank>] Sales ranks of an Amazon catalog item for a `marketplaceId`,
        # grouped by classification.
        attribute?(:classification_ranks, [ItemClassificationSalesRank], from: "classificationRanks")

        # @return [Array<ItemDisplayGroupSalesRank>] Sales ranks of an Amazon catalog item for a `marketplaceId`,
        # grouped by website display group.
        attribute?(:display_group_ranks, [ItemDisplayGroupSalesRank], from: "displayGroupRanks")
      end
    end
  end
end
