package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.wechat.pay.java.service.refund.model.Status;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 *
 * @author 科技小王子
 * @since 2025-07-31 12:07:19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "OrderRefund对象", description = "")
@TableName("shop_order_refund")
public class OrderRefund implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer orderId;

    @ApiModelProperty(value = "退款单号")
    private String orderRefundNo;

    @ApiModelProperty(value = "第三方退款单号")
    private String refundTradeNo;

    @ApiModelProperty(value = "退款状态")
    private Status refundStatus;

    private Integer userId;

    @ApiModelProperty(value = "商家审核状态(0待审核 10已同意 20已拒绝)")
    private Integer auditStatus;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundMoney;

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Order order;

}
