* } $attributes The order data: * - items: Array of order items, each with type, name, description, price, unit, and quantity * @throws RequestRequiresClientIdException * @throws GuzzleException */ public function create(string $orderId, array $attributes = []): OrderItem { return (new OrderItem($this->billable->request('POST', sprintf('v1/orders/%s', $orderId), $attributes))) ->setBillable($this->billable) ->setParent($this->parent); } /** * {@inheritDoc} */ public function find(string $id): ?OrderItem { /** @var Result $result */ $result = $this->parent->request('GET', sprintf('v1/orders/%s/items/%s', $this->parent->id, $id)); return $result->success() ? (new OrderItem($result)) ->setBillable($this->billable) ->setParent($this->parent) : null; } }