/** * @param array $fields * * @return array * @throws WebshopappApiException */ public function update($fields) { $fields = array('variant' => $fields); return $this->client->update('variants/bulk', $fields); }
/** * @param int $webhookId * @param array $fields * * @return array * @throws WebshopappApiException */ public function update($webhookId, $fields) { $fields = array('webhook' => $fields); return $this->client->update('webhooks/' . $webhookId, $fields); }
function update($object_id = false, $data) { if ($this->update_request) { if ($object_id) { $fields = array($this->update_resource => $data); return $this->client->update($this->resource . '/' . $object_id, $fields, $this->update_resource); } } }