westernmilling/gman_client

View on GitHub
lib/gman_client/api/customer_contracts.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module GmanClient
  module Api
    module CustomerContracts
      # Retrieves customer contracts
      #
      # @param [Hash] parameters to filter the orders
      def customer_contracts(filter_params)
        response = attempt(@retry_attempts) do
          get(:customer_contracts, q: filter_params)
        end

        response.map(&:to_h)
      end
    end
  end
end