package com.zsElectric.boot.business.model.dto;

import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.format.DateTimeFormat;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

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

/**
 * 退款订单导出DTO
 *
 * @author zsElectric
 * @since 2025-12-17
 */
@Data
@ColumnWidth(20)
public class UserRefundsOrderInfoExportDTO {

    @ExcelProperty(value = "商户订单号")
    private String orderNo;

    @ExcelProperty(value = "退款类型")
    private String typeName;

    @ExcelProperty(value = "商户退款单号")
    private String outRefundNo;

    @ExcelProperty(value = "微信支付退款单号")
    private String refundId;

    @ExcelProperty(value = "微信支付订单号")
    private String transactionId;

    @ExcelProperty(value = "退款原因")
    private String reason;

    @ExcelProperty(value = "退款受理时间")
    @DateTimeFormat("yyyy/MM/dd HH:mm:ss")
    private LocalDateTime acceptedTime;

    @ExcelProperty(value = "退款金额（元）")
    private BigDecimal amount;

    @ExcelProperty(value = "退款状态")
    private String status;

    @ExcelProperty(value = "创建时间")
    @DateTimeFormat("yyyy/MM/dd HH:mm:ss")
    private LocalDateTime createTime;
}
