Model/OrderPaymentStatusCalculator.php
protected function getStatusByAction($action)
    {
        $status = null;
        switch ($action) {
            case 'void':
                $status = $this->getSuggestStatusOnVoid();
                break;
            case 'refund_partial':
            case 'reauthorize':
                $status = $this->getOrder()->getPaymentStatus();
                break;
            case 'refund':
            case 'capture':
            case 'capture_partial':
                $status = 'completed';
                break;
            default:
                $status = 'completed';
        }

        return $status;
    }
protected function getStatusByAction($action)
    {
        $status = null;
        switch ($action) {
            case 'void':
                $status = $this->getSuggestStatusOnVoid();
                break;
            case 'refund_partial':
            case 'reauthorize':
                $status = $this->getOrder()->getPaymentStatus();
                break;
            case 'refund':
            case 'capture':
            case 'capture_partial':
                $status = 'completed';
                break;
            default:
                $status = 'completed';
        }

        return $status;
    }
protected function getStatusByAction ( $ action ) { $ status = null ; switch ( $ action ) { case 'void' : $ status = $ this -> getSuggestStatusOnVoid ( ) ; break ; case 'refund_partial' : case 'reauthorize' : $ status = $ this -> getOrder ( ) -> getPaymentStatus ( ) ; break ; case 'refund' : case 'capture' : case 'capture_partial' : $ status = 'completed' ; break ; default : $ status = 'completed' ; } return $ status ; }
Returns order suggestion for payment status on given action.

@param string $action performed action.

@return string
Returns order suggestion for payment status on given action .