package com.zsElectric.boot.business.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 用户支付订单信息视图对象
 *
 * @author zsElectric
 * @since 2025-12-16 16:25
 */
@Getter
@Setter
@Schema(description = "用户支付订单信息视图对象")
public class UserOrderInfoVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;
    @Schema(description = "用户ID")
    private Long userId;
    @Schema(description = "用户openId")
    private String openid;
    @Schema(description = "订单编号")
    private String orderNo;
    @Schema(description = "订单金额")
    private BigDecimal orderMoney;
    @Schema(description = "订单剩余金额")
    private BigDecimal lastMoney;
    @Schema(description = "支付时间")
    private LocalDateTime payTime;
    @Schema(description = "支付档ID")
    private Long levelId;
    @Schema(description = "第三方支付单号")
    private String outTradeNo;
    @Schema(description = "订单状态 1 待支付  2 已支付 3 已取消 4 已退款")
    private Integer orderStatus;
    @Schema(description = "订单类型 1 微信 2 第三方")
    private Integer orderType;
    @Schema(description = "微信支付流水号")
    private String transactionId;
    @Schema(description = "退款金额")
    private BigDecimal refundMoney;
    @Schema(description = "退款时间")
    private LocalDateTime refundTime;
    @Schema(description = "备注")
    private String remark;
    @Schema(description = "乐观锁")
    private Integer version;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    @Schema(description = "逻辑删除（0-未删除 1-已删除）")
    private Integer isDeleted;
}
