* } $attributes The order data: * - billing_address: Billing address (ISO 3166-1 alpha-2 country code) * - shipping_address: Shipping address for physical items (first name, last name, address, postal code, city, ISO 3166-1 alpha-2 country code) * - items: Array of order items: * - type: digital, physical or physical-reduced (VAT category) * - price/gross_price: net or gross unit price, one of both * - unit: hour, day, week, month, year, onetime or piece * - image_url: http(s) URL of a product image; Anikeen ID copies it, so it stays * visible on the order and invoice when the shop removes it later * @throws Throwable */ public function create(array $attributes = []): Order { return (new Order(fn() => $this->billable->anikeenId() ->request('POST', 'v1/orders', $attributes))) ->setBillable($this->billable); } /** * Get given order from the current user. * * @throws Throwable */ public function find(string $id): ?Order { return (new Order(fn() => $this->billable->anikeenId() ->request('GET', sprintf('v1/orders/%s', $id)))) ->setBillable($this->billable); } }