package com.jeesharp.business.modules.pay.refund.dto;

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

/**
 * 微信电商收付通退款响应 DTO。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@Schema(description = "微信退款响应")
public class PayRefundResultDTO {

    @Schema(description = "是否受理成功（已拿到 refund_id 或处理中）")
    private boolean success;

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

    @Schema(description = "退款状态：SUCCESS/PROCESSING/ABNORMAL/CLOSED 等")
    private String status;

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

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

    @Schema(description = "原始响应 JSON")
    private String rawResponse;
}
