package com.jeesharp.business.modules.pay.paywechatsubsidy.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 管理端请求补差 DTO。
 *
 * @author jeesharp
 * @since 2026-06-12
 */
@Data
@Schema(description = "请求补差")
public class PayWechatSubsidyCreateDTO {

    @NotBlank(message = "特约商户号不能为空")
    @Schema(description = "sub_mchid", required = true)
    private String subMchId;

    @NotBlank(message = "微信订单号不能为空")
    @Schema(description = "transaction_id", required = true)
    private String transactionId;

    @NotBlank(message = "商户补差单号不能为空")
    @Schema(description = "out_subsidy_no", required = true)
    private String outSubsidyNo;

    @NotNull(message = "补差金额不能为空")
    @Min(value = 1, message = "补差金额须大于 0")
    @Schema(description = "补差金额（分）", required = true)
    private Integer amountFen;

    @Schema(description = "补差描述")
    private String description;
}
