package de.effigenix.application.masterdata.customer.command;

import de.effigenix.domain.masterdata.customer.DeliveryRhythm;
import de.effigenix.domain.masterdata.Unit;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

public record SetFrameContractCommand(
        String customerId,
        LocalDate validFrom,
        LocalDate validUntil,
        DeliveryRhythm rhythm,
        List<LineItem> lineItems
) {
    public record LineItem(
            String articleId,
            BigDecimal agreedPrice,
            BigDecimal agreedQuantity,
            Unit unit
    ) {}
}
