package de.effigenix.domain.masterdata.customer;

import java.util.UUID;

public record FrameContractId(String value) {

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

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

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