Feat(medusa): handle reservation quantity update for line items (#3484)

**What**
-  Raise exception if a reservation is updated or created to have larger quantity than is unfulfilled for a line-item

Fixes CORE-1249
This commit is contained in:
Philip Korsholm
2023-03-16 09:15:39 +00:00
committed by GitHub
parent 061a600f80
commit 38c8d49f46
6 changed files with 281 additions and 0 deletions
@@ -43,6 +43,8 @@ export interface IInventoryService {
locationId: string
): Promise<InventoryLevelDTO>
retrieveReservationItem(reservationId: string): Promise<ReservationItemDTO>
createReservationItem(
input: CreateReservationItemInput
): Promise<ReservationItemDTO>