module PixiClient
  module Requests
    class GetChangedItemStock < Base

      attr_accessor :since, :row_count, :offset, :location_id

      def initialize(opts)
        self.since = opts[:since]
        self.row_count = opts[:row_count]
        self.offset = opts[:offset]
      end

      def api_method
        :pixi_get_changed_item_stock
      end

      def message
        { 'Since' => since.strftime(TIME_STRING_FORMAT) }.tap do |opts|
          opts['RowCount'] = row_count unless row_count.nil?
          opts['LocID'] = location_id
          opts['Start'] = offset unless offset.nil?
        end
      end
    end
  end
end

module PixiClient
  module Requests
    class GetChangedItemStock < Base

      attr_accessor :since, :row_count, :offset, :location_id

      def initialize(opts)
        self.since = opts[:since]
        self.row_count = opts[:row_count]
        self.offset = opts[:offset]
        self.location_id = opts[:location_id]
      end

      def api_method
        :pixi_get_changed_item_stock
      end

      def message
        { 'Since' => since.strftime(TIME_STRING_FORMAT) }.tap do |opts|
          opts['RowCount'] = row_count unless row_count.nil?
          opts['LocID'] = location_id
          opts['Start'] = offset unless offset.nil?
        end
      end
    end
  end
end

Fix bug in pixi_client gem
Fix bug in pixi_client gem
