src/Resource/Refund.php
private function getPath($resourceId = null)
    {
        if (!is_null($resourceId)) {
            $endpoint = ($this->isOrder($resourceId) ? Orders::PATH : Payment::PATH);

            return sprintf('/%s/%s/%s/%s', MoipResource::VERSION, $endpoint, $resourceId, self::PATH);
        }

        if ($this->order !== null) {
            return sprintf('/%s/%s/%s/%s', MoipResource::VERSION, Orders::PATH, $this->order->getId(), self::PATH);
        }

        return sprintf('/%s/%s/%s/%s', MoipResource::VERSION, Payment::PATH, $this->payment->getId(), self::PATH);
    }
private function getPath($resourceId = null)
    {
        if (!is_null($resourceId)) {
            $endpoint = ($this->isOrder($resourceId) ? Orders::PATH : Payment::PATH);

            return sprintf('/%s/%s/%s/%s', MoipResource::VERSION, $endpoint, $resourceId, self::PATH);
        }

        if ($this->order !== null) {
            return sprintf('/%s/%s/%s/%s', MoipResource::VERSION, Orders::PATH, $this->order->getId(), self::PATH);
        }

        return sprintf('/%s/%s/%s/%s', MoipResource::VERSION, Payment::PATH, $this->payment->getId(), self::PATH);
    }
private function getPath ( $ resourceId = null ) { if ( ! is_null ( $ resourceId ) ) { $ endpoint = ( $ this -> isOrder ( $ resourceId ) ? Orders :: PATH : Payment :: PATH ) ; return sprintf ( '/%s/%s/%s/%s' , MoipResource :: VERSION , $ endpoint , $ resourceId , self :: PATH ) ; } if ( $ this -> order !== null ) { return sprintf ( '/%s/%s/%s/%s' , MoipResource :: VERSION , Orders :: PATH , $ this -> order -> getId ( ) , self :: PATH ) ; } return sprintf ( '/%s/%s/%s/%s' , MoipResource :: VERSION , Payment :: PATH , $ this -> payment -> getId ( ) , self :: PATH ) ; }
Checks path that will be the request.

@return string
Checks path that will be the request .