package com.jeesharp.business.modules.finance.payorder.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-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "支付单详情")
public class PayOrderInfoVO extends BaseInfoVO {

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

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

    @Schema(description = "业务订单主键")
    private String bizOrderId;

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

    @Schema(description = "微信 prepay_id")
    private String prepayId;

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

    @Schema(description = "应付金额（元）")
    private BigDecimal payAmount;

    @Schema(description = "支付单状态")
    private Integer payStatus;

    @Schema(description = "支付单状态名称")
    private String payStatusName;

    @Schema(description = "会员ID")
    private String memberId;

    @Schema(description = "标题")
    private String subject;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "支付渠道")
    private String payChannel;

    @Schema(description = "支付类型编码")
    private String payType;

    @Schema(description = "异步通知地址")
    private String notifyUrl;

    @Schema(description = "回调状态")
    private String notifyStatus;

    @Schema(description = "回调状态名称")
    private String notifyStatusName;

    @Schema(description = "回调通知时间")
    private LocalDateTime notifyTime;

    @Schema(description = "渠道用户 openid")
    private String channelUserId;

    @Schema(description = "用户 IP")
    private String userIp;

    @Schema(description = "支付成功时间")
    private LocalDateTime payTime;

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

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

    @Schema(description = "创建时间")
    private LocalDateTime createDate;
}
