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

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

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 退款记录 视图对象
 */
@Data
@Schema(description = "退款记录 视图对象")
public class RefundRecordVO implements Serializable {

    /**
     * 退款记录ID
     */
    @Schema(description = "退款记录ID", example = "1")
    private Long id;

    /**
     * 订单号
     */
    @Schema(description = "订单号", example = "202507011522234822953432323")
    private String outTradeNo;

    /**
     * 退款单号
     */
    @Schema(description = "退款单号", example = "402507011522234822953432323")
    private String outRefundNo;

    /**
     * 课程名称
     */
    @Schema(description = "课程名称", example = "数据分析工程师训练营")
    private String name;

    /**
     * 课程类别
     */
    @Schema(description = "课程类别", example = "财经")
    private String type;

    /**
     * 课程图片
     */
    @Schema(description = "课程图片", example = "32DE33ND")
    private String image;

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

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

    /**
     * 用户id
     */
    @Schema(description = "用户id", example = "1")
    private Long userId;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "2025-07-01 15:22:23")
    private Date createTime;

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