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 PayWechatSubsidyReturnDTO {

    @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 = "refund_id", required = true)
    private String refundId;

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

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

    @Schema(description = "回退描述")
    private String description;
}
