package com.zt.plat.module.contractorder.api.dto.contract;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "RPC 服务 - 市场价配置 Response DTO")
@Data
public class PriceRespDTO {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "条款主键")
    private Long formulaId;

    @Schema(description = "市场价")
    private BigDecimal value;

    @Schema(description = "计算方式;均价/高位价/地位价")
    private String calculateWay;

    @Schema(description = "数据来源网价代码;数据字典")
    private String dataOrigin;

    @Schema(description = "计价开始日期")
    private LocalDateTime calculateStartDate;

    @Schema(description = "计价截止日期")
    private LocalDateTime calculateEndDate;

    @Schema(description = "包含开始日期")
    private String inStartDate;

    @Schema(description = "包含结束日期")
    private String inEndDate;

    @Schema(description = "价格品种元素的明细分类")
    private String priceGrade;

    @Schema(description = "品种分类")
    private String gradeType;

    @Schema(description = "取价方式;区间价/固定价")
    private String averageType;

    @Schema(description = "网价小数位")
    private BigDecimal decimalPoint;
}