* } $attributes The order data: * - items: Array of order items, each with type, name, description, price, unit, and quantity * @throws Throwable */ public function update(array $attributes = []): self { return (new self(fn() => $this->billable->anikeenId() ->request('PUT', sprintf('v1/orders/%s/items/%s', $this->parent->id, $this->id), $attributes))) ->setBillable($this->billable) ->setParent($this->parent); } /** * Delete given order item from given order. * * @throws Throwable */ public function delete(): bool { return $this->billable->anikeenId() ->request('DELETE', sprintf('v1/orders/%s/items/%s', $this->parent->id, $this->id))->success(); } }