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

- old
+ new

@@ -17,14 +17,15 @@ # Submit new invoices to Amazon. # # @note This operation can make a static sandbox call. # @param body [Hash] The request body containing the invoice data to submit. # @param rate_limit [Float] Requests per second + # @param tries [Integer] Total request attempts, including retries # @return [Peddler::Response] The API response - def submit_invoices(body, rate_limit: 10.0) + def submit_invoices(body, rate_limit: 10.0, tries: 2) path = "/vendor/payments/v1/invoices" - meter(rate_limit).post(path, body:) + meter(rate_limit, tries:).post(path, body:) end end end end