Update sale flow

This commit is contained in:
2026-09-03 16:06:12 +05:30
parent be66e65e59
commit d7546d24d1
3 changed files with 31 additions and 16 deletions
+4 -1
View File
@@ -10,7 +10,10 @@ public record CreateSaleRequest(
decimal TotalAmount,
bool FulfillImmediately,
Guid? RideId,
List<SaleItemRequest> Items);
List<SaleItemRequest> Items,
// TEMPORARY: auth middleware doesn't attach a resolvable user yet (see testbug.md #28), so the
// caller supplies the acting user explicitly. Remove once currentUser.UserId is reliable again.
Guid? CreatedByUserId = null);
public record SaleItemResponse(Guid ItemId, int Quantity, int QuantityFulfilled, decimal UnitPrice);