Closed marfavi closed 9 months ago
Will the endpoint for managing these menu items and their relations with products be developed in another PR?
Will the endpoint for managing these menu items and their relations with products be developed in another PR?
Yes, these are out of scope of this PR
A clip card can be valid for a range of concrete products (e.g. a cappuccino or a t-shirt). This PR enforces a ticket to specify what concrete product (called a menu item) it should be spent on, giving us much more precise statistics on ticket usage.
Endpoint changes:
POST /v2/tickets/use/[ticketId]/[menuItemId]
endpoint for using a ticket on a specific menu item/v2/products
endpoints to include a list of eligible menu items in theirProductResponse
(the field is nullable for backwards compatability reasons).