package com.erp.supplier.dto.response;

import lombok.Data;
import lombok.Builder;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Data
@Builder
public class SupplierStatisticsResponse {

    private Long totalSuppliers;
    private Long activeSuppliers;
    private Long pendingSuppliers;
    private Map<String, Long> gradeDistribution;
    private Map<String, Long> typeDistribution;
    private List<TopSupplierResponse> topGradeSuppliers;
    private List<TopSupplierResponse> recentCooperationSuppliers;

    @Data
    @Builder
    public static class TopSupplierResponse {
        private Long id;
        private String supplierCode;
        private String supplierName;
        private String grade;
        private Integer creditScore;
        private String status;
    }

    @Data
    @Builder
    public static class SupplierTrendResponse {
        private String date;
        private Long count;
    }
}
