package de.effigenix.domain.inventory;

import java.util.UUID;

public record InventoryCountId(String value) {

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

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

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