src/Client.php
public function createRefund($request)
    {
        if (!($request instanceof CreateRefundRequest)) {
            $request = RequestCreator::create(CreateRefundRequest::class, $request);
        }

        ObjectRecursiveValidator::validate($request);
        $serializer = new CreateRefundSerializer($request);
        $transport = new CreateRefundTransport($serializer);

        return $this->execute($transport, CreateRefundResponse::class);
    }
public function createRefund($request)
    {
        if (!($request instanceof CreateRefundRequest)) {
            $request = RequestCreator::create(CreateRefundRequest::class, $request);
        }

        ObjectRecursiveValidator::validate($request);
        $serializer = new CreateRefundSerializer($request);
        $transport = new CreateRefundTransport($serializer);

        return $this->execute($transport, CreateRefundResponse::class);
    }
public function createRefund ( $ request ) { if ( ! ( $ request instanceof CreateRefundRequest ) ) { $ request = RequestCreator :: create ( CreateRefundRequest :: class , $ request ) ; } ObjectRecursiveValidator :: validate ( $ request ) ; $ serializer = new CreateRefundSerializer ( $ request ) ; $ transport = new CreateRefundTransport ( $ serializer ) ; return $ this -> execute ( $ transport , CreateRefundResponse :: class ) ; }
@param array|CreateRefundRequest $request

@return AbstractResponse|CreateRefundResponse
@throws ResponseException
@throws TransportException
@param array|CreateRefundRequest $request