Sha256: e54e3174c7d0c1876ca8ce411af697fea53bca74414fa8a5b9893aab5829459e

Contents?: true

Size: 563 Bytes

Versions: 11

Compression:

Stored size: 563 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module DearInventory
  class Purchase < Resource
    class << self
      extend T::Sig

      # Purchase
      #
      # @param params [Hash] URL query string parameters that conform to
      #   DearInventory::Parameters::Purchase::Index
      sig do
        params(params: T::Hash[Symbol, T.untyped]).
          returns(DearInventory::Response)
      end
      def index(params = {})
        new.request(
          :get, params: params, model: DearInventory::Models::Purchase
        )
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dear_inventory-0.7.5 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.7.4 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.7.3 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.7.2 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.7.1 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.7.0 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.6.3 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.6.2 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.6.1 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.6.0 lib/dear_inventory/resources/purchase.rb
dear_inventory-0.5.0 lib/dear_inventory/resources/purchase.rb