package com.greenorange.promotion.model.dto.refundRecord;

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

import java.io.Serial;
import java.io.Serializable;

/**
 * 退款记录更新请求体
 */
@Data
@Schema(description = "退款记录更新请求体", requiredProperties = {
                "id",
                "orderNumber",
                "outRefundNo",
                "name",
                "type",
                "image",
                "totalAmount",
                "refundAmount",
                "userId",
})
public class RefundRecordUpdateRequest implements Serializable {

    /**
     * 退款记录id
     */
    @Min(value = 1L, message = "退款记录id ID不能小于1")
    @Schema(description = "退款记录id", example = "")
    private Long id;

    /**
     * 订单号
     */
    @NotBlank(message = "订单号不能为空")
    @Schema(description = "订单号", example = "")
    private String orderNumber;

    /**
     * 退款单号
     */
    @NotBlank(message = "退款单号不能为空")
    @Schema(description = "退款单号", example = "")
    private String outRefundNo;

    /**
     * 课程名称
     */
    @NotBlank(message = "课程名称不能为空")
    @Schema(description = "课程名称", example = "")
    private String name;

    /**
     * 课程类别
     */
    @NotBlank(message = "课程类别不能为空")
    @Schema(description = "课程类别", example = "")
    private String type;

    /**
     * 课程图片
     */
    @NotBlank(message = "课程图片不能为空")
    @Schema(description = "课程图片", example = "")
    private String image;

    /**
     * 订单价格
     */
    @Schema(description = "订单价格", example = "")
    private BigDecimal totalAmount;

    /**
     * 退款金额
     */
    @Schema(description = "退款金额", example = "")
    private BigDecimal refundAmount;

    /**
     * 用户id
     */
    @Min(value = 1L, message = "用户id ID不能小于1")
    @Schema(description = "用户id", example = "")
    private Long userId;


    @Serial
    private static final long serialVersionUID = 1L;
}