Enhance invoice and self-serve logic with subuser support

- Add subuser ID management to `selfserve_lane_command_arguments`.
- Update `invoice` function to include optional command arguments.
- Attach metadata to orders with self-serve and subuser details.
- Introduce `OTHER_TYPE_SELF_SERVE_WASH` in `attachment_content`.
This commit is contained in:
Jeppe Bundgaard
2026-05-28 16:11:14 +02:00
parent ae3657e7aa
commit 184ea1ca6c
5 changed files with 120 additions and 10 deletions
@@ -100,7 +100,7 @@ it('returns the extraordinary chemistry product with requires_note enabled', fun
'price' => 299,
'requires_note' => 0,
]);
$session = api_fixtures()->createUserSession(['list_products']);
$session = api_fixtures()->createUserSession([], ['group_id' => 1]);
$response = api_client()->get('/products?id=' . $product['id'], $session['headers']);