lib/peddler/apis/sellers_v1.rb in peddler-4.0.1 vs lib/peddler/apis/sellers_v1.rb in peddler-4.1.0

- old
+ new

@@ -21,25 +21,27 @@ # Returns a list of marketplaces where the seller can list items and information about the seller's participation # in those marketplaces. # # @note This operation can make a static sandbox call. # @param rate_limit [Float] Requests per second + # @param tries [Integer] Total request attempts, including retries # @return [Peddler::Response] The API response - def get_marketplace_participations(rate_limit: 0.016) + def get_marketplace_participations(rate_limit: 0.016, tries: 2) path = "/sellers/v1/marketplaceParticipations" - meter(rate_limit).get(path) + meter(rate_limit, tries:).get(path) end # Returns information about a seller account and its marketplaces. # # @note This operation can make a static sandbox call. # @param rate_limit [Float] Requests per second + # @param tries [Integer] Total request attempts, including retries # @return [Peddler::Response] The API response - def get_account(rate_limit: 0.016) + def get_account(rate_limit: 0.016, tries: 2) path = "/sellers/v1/account" - meter(rate_limit).get(path) + meter(rate_limit, tries:).get(path) end end end end