public function setWebhooks($shop)
    {
        $endpoint = $this->endpoint.'/webhooks';

        $params = array_merge($this->prepareParams(), ['shop' => $shop] );

        return $this->restClient->post( $endpoint, $params );
    }
public function setWebhooks($shop)
    {
        $endpoint = $this->endpoint.'/webhooks';

        $params = array_merge($this->prepareParams(), ['shop' => $shop] );

        return $this->restClient->post( $endpoint, $params );
    }
public function setWebhooks ( $ shop ) { $ endpoint = $ this -> endpoint . '/webhooks' ; $ params = array_merge ( $ this -> prepareParams ( ) , [ 'shop' => $ shop ] ) ; return $ this -> restClient -> post ( $ endpoint , $ params ) ; }
Currenty not in use as this is meant to save webhooks for created and updated orders
however, now we're instead listening for the event in the plugin so no need for webhooks
Currenty not in use as this is meant to save webhooks for created and updated orders however now we re instead listening for the event in the plugin so no need for webhooks