package org.dromara.main.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

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

/**
 * 退款记录对象 main_refund
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("main_refund")
public class Refund extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;

    private String tenantId;

    private String refundNo;

    private Long paymentId;

    private Long orderId;

    private String orderNo;

    private String tradeNo;

    private BigDecimal refundAmount;

    private String refundReason;

    private Integer refundType;

    private Integer paymentMethod;

    private Integer refundStatus;

    private Date refundTime;

    private String failReason;

    private Long operatorId;

    private String operatorName;

    @TableLogic
    private String delFlag;
}
