package de.effigenix.domain.inventory;

import java.util.UUID;

public record StockMovementId(String value) {

    public StockMovementId {
        if (value == null || value.isBlank()) {
            throw new IllegalArgumentException("StockMovementId must not be blank");
        }
    }

    public static StockMovementId generate() {
        return new StockMovementId(UUID.randomUUID().toString());
    }

    public static StockMovementId of(String value) {
        return new StockMovementId(value);
    }
}
