Sha256: 8d9f59329ffd29ff5e430f068f7556217a68538c346d7068a28ed23330453037

Contents?: true

Size: 832 Bytes

Versions: 3

Compression:

Stored size: 832 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
      # @return [Peddler::Response] The API response
      def submit_invoices(body, rate_limit: 10.0)
        path = "/vendor/payments/v1/invoices"

        meter(rate_limit).post(path, body:)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
peddler-4.1.1 lib/peddler/apis/vendor_invoices_v1.rb
peddler-4.0.1 lib/peddler/apis/vendor_invoices_v1.rb
peddler-4.0.0 lib/peddler/apis/vendor_invoices_v1.rb