Sha256: 0d85182fbfbb2385ee6a1f25ce91665d395bb148f3e06fa7fce7fc0c7500e3fb

Contents?: true

Size: 651 Bytes

Versions: 1

Compression:

Stored size: 651 Bytes

Contents

# frozen_string_literal: true

require "big_commerce/management_api/endpoint"

module BigCommerce
  module ManagementAPI
    class Inventories
      class Items < Endpoint
        PATH = "inventory/items"
        RESULT_INSTANCE = Inventory

        def get(options = {})
          GET(
            PATH,
            with_in_param(
              options,
              :location_code,
              :location_id,
              :product_id,
              :sku,
              :variant_id
            )
          )
        end
      end

      attr_reader :items

      def initialize(*argz)
        @items = Items.new(*argz)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
big_commerce-management_api-0.0.1 lib/big_commerce/management_api/inventories.rb