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;
    }