package com.jeesharp.business.modules.finance.reconcile.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * 财务对账 Excel 导出行：支付、分账、退款统一结构。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@Schema(description = "财务对账导出VO")
public class FinanceReconcileExportVO {

    @ExcelProperty("记录类型")
    private String recordTypeName;

    @ExcelProperty("业务场景")
    private String bizSceneName;

    @ExcelProperty(value = "业务时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime bizTime;

    @ExcelProperty("平台单号")
    private String platformDocNo;

    @ExcelProperty("业务订单ID")
    private String bizOrderId;

    @ExcelProperty("子订单ID")
    private String mallOrderId;

    @ExcelProperty("子订单编号")
    private String orderNo;

    @ExcelProperty("合并批次ID")
    private String payBatchId;

    @ExcelProperty("批次编号")
    private String batchNo;

    @ExcelProperty("商户支付单号")
    private String outTradeNo;

    @ExcelProperty("transaction_id")
    private String transactionId;

    @ExcelProperty("微信业务单号")
    private String wxDocNo;

    @ExcelProperty("金额(元)")
    private BigDecimal amount;

    @ExcelProperty("佣金(元)")
    private BigDecimal commissionAmount;

    @ExcelProperty("状态")
    private String statusName;

    @ExcelProperty("结算模式")
    private String settleMode;

    @ExcelProperty("商户租户ID")
    private String merchantTenantId;

    @ExcelProperty("子商户号")
    private String subMchId;
}
