src/Payum/Klarna/Invoice/Action/RefundAction.php
public function execute($request)
    {
        RequestNotSupportedException::assertSupports($this, $request);

        $details = ArrayObject::ensureArrayObject($request->getModel());

        if ($details['refund_invoice_number']) {
            return;
        }

        $details->validateNotEmpty(array('invoice_number'));

        $this->gateway->execute(new CreditPart($details));
    }
public function execute($request)
    {
        RequestNotSupportedException::assertSupports($this, $request);

        $details = ArrayObject::ensureArrayObject($request->getModel());

        if ($details['refund_invoice_number']) {
            return;
        }

        $details->validateNotEmpty(array('invoice_number'));

        $this->gateway->execute(new CreditPart($details));
    }
{@inheritDoc}

@param Refund $request