Sha256: c9ba05a99b2d145a28e398000c184af93f5ba3473e06a4da5dc53604094f5c27

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

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
          request
            .api
            .v1
            .customer_contracts
            .get(params: { q: filter_params })
        end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gman_client-0.2.1 lib/gman_client/api/customer_contracts.rb
gman_client-0.2.0 lib/gman_client/api/customer_contracts.rb