Interface StockReservationService

All Known Implementing Classes:
ProductCommandService

public interface StockReservationService
Public application service contract used by other modules to reserve stock. Consumers do not receive repository access, preserving catalog ownership of product state.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    reserveStock(Long productId, int quantity)
    Reserve catalog stock for a product.
  • Method Details

    • reserveStock

      void reserveStock(Long productId, int quantity)
      Reserve catalog stock for a product.
      Parameters:
      productId - catalog product id
      quantity - positive quantity to reserve