# frozen_string_literal: true require "peddler/api" module Peddler class << self def fba_inbound_eligibility_v1(...) API::FBAInboundEligibilityV1.new(...) end end class API # Selling Partner API for FBA Inbound Eligibilty # # With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for # items before shipping them to Amazon's fulfillment centers. With this API you can find out if an item is eligible # for inbound shipment to Amazon's fulfillment centers in a specific marketplace. You can also find out if an item # is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to # inform their decisions about which items to ship Amazon's fulfillment centers. class FBAInboundEligibilityV1 < API # This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility # preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which # you want to determine the item's eligibility. # # @note This operation can make a static sandbox call. # @param marketplace_ids [Array] The identifier for the marketplace in which you want to determine # eligibility. Required only when program=INBOUND. # @param asin [String] The ASIN of the item for which you want an eligibility preview. # @param program [String] The program that you want to check eligibility against. # @param rate_limit [Float] Requests per second # @return [Hash] The API response def get_item_eligibility_preview(asin, program, marketplace_ids: nil, rate_limit: 1.0) path = "/fba/inbound/v1/eligibility/itemPreview" params = { "marketplaceIds" => marketplace_ids, "asin" => asin, "program" => program, }.compact meter(rate_limit).get(path, params:) end end end end