package com.hotwj.platform.pay.domain.vo;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.pay.domain.PayOrder;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 支付订单
 * 视图对象 pay_order
 *
 * @author shihongwei
 * @date 2026-05-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PayOrder.class)
public class PayOrderVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 支付订单编号
     */
    @ExcelProperty(value = "支付订单编号")
    private Long id;

    /**
     * 应用编号
     */
    @ExcelProperty(value = "应用编号")
    private Long appId;

    /**
     * 业务订单号
     */
    @ExcelProperty(value = "业务订单号")
    private String merchantOrderNo;

    /**
     * 业务类型
     */
    @ExcelProperty(value = "业务类型")
    private String bizOrderType;

    /**
     * 业务主键
     */
    @ExcelProperty(value = "业务主键")
    private Long bizOrderId;

    /**
     * 订单标题
     */
    @ExcelProperty(value = "订单标题")
    private String subject;

    /**
     * 订单描述
     */
    @ExcelProperty(value = "订单描述")
    private String body;

    /**
     * 渠道编号
     */
    @ExcelProperty(value = "渠道编号")
    private Long channelId;

    /**
     * 渠道编码
     */
    @ExcelProperty(value = "渠道编码")
    private String channelCode;

    /**
     * 异步通知地址
     */
    @ExcelProperty(value = "异步通知地址")
    private String notifyUrl;

    /**
     * 同步跳转地址
     */
    @ExcelProperty(value = "同步跳转地址")
    private String returnUrl;

    /**
     * 支付金额
     */
    @ExcelProperty(value = "支付金额")
    private BigDecimal price;

    /**
     * 支付状态
     */
    @ExcelProperty(value = "支付状态")
    private Long status;

    /**
     * 用户 IP
     */
    @ExcelProperty(value = "用户 IP")
    private String userIp;

    /**
     * 订单失效时间
     */
    @ExcelProperty(value = "订单失效时间")
    private Date expireTime;

    /**
     * 订单支付成功时间
     */
    @ExcelProperty(value = "订单支付成功时间")
    private Date successTime;

    /**
     * 支付成功的订单拓展单编号
     */
    @ExcelProperty(value = "支付成功的订单拓展单编号")
    private Long extensionId;

    /**
     * 支付订单号
     */
    @ExcelProperty(value = "支付订单号")
    private String no;

    /**
     * 渠道用户编号
     */
    @ExcelProperty(value = "渠道用户编号")
    private String channelUserId;

    /**
     * 渠道订单号
     */
    @ExcelProperty(value = "渠道订单号")
    private String channelOrderNo;

    /**
     * 创建者姓名
     */
    @ExcelProperty(value = "创建者姓名")
    private String createByName;

    /**
     * 更新者姓名
     */
    @ExcelProperty(value = "更新者姓名")
    private String updateByName;

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;


}
