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

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

import java.time.LocalDateTime;

/**
 * 分账回退单详情 VO。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "分账回退详情VO")
public class ProfitSharingReturnInfoVO extends BaseInfoVO {

    @Schema(description = "平台回退单号")
    private String returnNo;

    @Schema(description = "商户回退单号")
    private String outReturnNo;

    @Schema(description = "关联分账单ID")
    private String profitSharingOrderId;

    @Schema(description = "关联退款单ID")
    private String payRefundOrderId;

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

    @Schema(description = "子订单编号")
    private String orderNo;

    @Schema(description = "分账单号")
    private String sharingNo;

    @Schema(description = "二级商户号")
    private String subMchId;

    @Schema(description = "回退商户号")
    private String returnMchId;

    @Schema(description = "回退金额（分）")
    private Integer returnAmountFen;

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

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

    @Schema(description = "微信回退单号")
    private String wxReturnNo;

    @Schema(description = "微信回退结果")
    private String wxResult;

    @Schema(description = "失败原因")
    private String failReason;

    @Schema(description = "回退成功时间")
    private LocalDateTime returnTime;

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

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