Sha256: a089877b1937ae9555f2a7686f53f35c7584018edaf8722ed429adae90d9e329
Contents?: true
Size: 923 Bytes
Versions: 1
Compression:
Stored size: 923 Bytes
Contents
# frozen_string_literal: true require "peddler/api" module Peddler class << self def vendor_invoices_v1(...) APIs::VendorInvoicesV1.new(...) end end module APIs # Vendor Invoices v1 # # The Selling Partner API for Retail Procurement Payments provides programmatic access to vendors payments data. class VendorInvoicesV1 < API # 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, tries: 2) path = "/vendor/payments/v1/invoices" meter(rate_limit, tries:).post(path, body:) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peddler-4.1.0 | lib/peddler/apis/vendor_invoices_v1.rb |