public function all($orderId, array $params = array())
    {
        $endpoint = '/admin/orders/'.$orderId.'/refunds.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(Refund::class, $response['refunds']);
    }
public function all($orderId, array $params = array())
    {
        $endpoint = '/admin/orders/'.$orderId.'/refunds.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(Refund::class, $response['refunds']);
    }
public function all ( $ orderId , array $ params = array ( ) ) { $ endpoint = '/admin/orders/' . $ orderId . '/refunds.json' ; $ response = $ this -> request ( $ endpoint , 'GET' , $ params ) ; return $ this -> createCollection ( Refund :: class , $ response [ 'refunds' ] ) ; }
Receive a list of all Refunds

@link   https://help.shopify.com/api/reference/refund#index
@param  integer $orderId
@param  array   $params
@return Refund[]
Receive a list of all Refunds