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

import com.jeesharp.framework.pojo.vo.BaseInfoVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 支付退款单详情 VO。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "支付退款单详情VO")
public class PayRefundOrderInfoVO extends BaseInfoVO {

    @Schema(description = "平台退款单号")
    private String refundNo;

    @Schema(description = "商户退款单号")
    private String outRefundNo;

    @Schema(description = "财务支付单ID")
    private String financePayOrderId;

    @Schema(description = "合并支付批次ID（仅 MALL_ORDER 商城合单有独立批次）")
    private String payBatchId;

    @Schema(description = "商城子订单ID")
    private String mallOrderId;

    @Schema(description = "售后单ID")
    private String afterSaleId;

    @Schema(description = "业务场景")
    private String bizScene;

    @Schema(description = "业务场景名称")
    private String bizSceneName;

    @Schema(description = "子单商户租户ID")
    private String merchantTenantId;

    @Schema(description = "微信特约子商户号")
    private String subMchId;

    @Schema(description = "微信 transaction_id")
    private String transactionId;

    @Schema(description = "原支付商户单号")
    private String outTradeNo;

    @Schema(description = "本次退款金额（元）")
    private BigDecimal refundAmount;

    @Schema(description = "原支付单总金额（元）")
    private BigDecimal orderPayAmount;

    @Schema(description = "退款状态")
    private String status;

    @Schema(description = "退款状态名称")
    private String statusName;

    @Schema(description = "微信退款单号")
    private String wxRefundId;

    @Schema(description = "退款原因")
    private String reason;

    @Schema(description = "退款成功时间")
    private LocalDateTime refundTime;

    @Schema(description = "重试次数")
    private Integer retryCount;

    @Schema(description = "渠道错误码")
    private String errorCode;

    @Schema(description = "渠道错误说明")
    private String errorMsg;
}
