module GlobalSign
  module OrderGetterByOrderId
    class Request < GlobalSign::Request
      def initialize(order_id:, options: nil)
        @order_id = order_id
        @options = options
      end

      def path
        'GASService'
      end

      def action
        'GetOrderByOrderID'
      end

      def request_header
        :QueryRequestHeader
      end

      def params
        _params = { OrderID: @order_id }
        _params[:OrderQueryOption] = @options if @options
        _params
      end
    end
  end
end

module GlobalSign
  module OrderGetterByOrderId
    class Request < GlobalSign::Request
      def initialize(order_id:)
        @order_id = order_id
      end

      def path
        'GASService'
      end

      def action
        'GetOrderByOrderID'
      end

      def request_header
        :QueryRequestHeader
      end

      def params
        { OrderID: @order_id }
      end
    end
  end
end

Revert "add fetch options to order_getter_by_order_id API"
Revert "add fetch options to order_getter_by_order_id API"

This reverts commit 7fb9e3466a1f8081abf8cc6e2eaff2de29e30212.
