package com.ssm.manage.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 退款记录表(RefundRecord)实体类
 *
 * @author makejava
 * @since 2022-04-25 12:29:25
 */
public class RefundRecord implements Serializable {
    private static final long serialVersionUID = -20078778370917183L;
    /**
     * id
     */
    @Id
    private Long id;
    /**
     * 充值单Id
     */
    @Column(name = "recharge_id")
    private Long rechargeId;
    /**
     * 会员编码
     */
    @Column(name = "member_id")
    private Long memberId;
    /**
     * 会员名称
     */
    @Column(name = "member_name")
    private String memberName;
    /**
     * 充值类别
     */
    @Column(name = "recharge_type_id")
    private Long rechargeTypeId;
    /**
     * 充值名称
     */
    @Column(name = "recharge_type_name")
    private String rechargeTypeName;
    /**
     * 充值日期
     */
    @Column(name = "recharge_date")
    private Date rechargeDate;
    /**
     * 充值标准金额
     */
    @Column(name = "recharge_amount")
    private BigDecimal rechargeAmount;
    /**
     * 实际充值金额
     */
    @Column(name = "collection_amount")
    private BigDecimal collectionAmount;
    /**
     * 还款入账金额
     */
    @Column(name = "refund_debt_money")
    private BigDecimal refundDebtMoney;
    /**
     * 标准赠送金额
     */
    @Column(name = "recharge_gift_amount")
    private BigDecimal rechargeGiftAmount;
    /**
     * 赠送金额是否到账，0=未到，1=到
     */
    @Column(name = "is_received")
    private Integer isReceived;
    /**
     * 已经退款金额（存在已经退款金额，则不需要再扣除赠送）
     */
    @Column(name = "amount_refunded")
    private BigDecimal amountRefunded;
    /**
     * 是否已经退款扣除赠送金额（0=否，1=到）
     */
    @Column(name = "is_deduct")
    private Integer isDeduct;

    /**
     * 已经核销的赠送金额(已经退款的赠送金额)
     */
    @Column(name = "amount_gift_refunded")
    private BigDecimal amountGiftRefunded;

    public BigDecimal getAmountGiftRefunded() {
        return amountGiftRefunded;
    }

    public void setAmountGiftRefunded(BigDecimal amountGiftRefunded) {
        this.amountGiftRefunded = amountGiftRefunded;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRechargeId() {
        return rechargeId;
    }

    public void setRechargeId(Long rechargeId) {
        this.rechargeId = rechargeId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public Long getRechargeTypeId() {
        return rechargeTypeId;
    }

    public void setRechargeTypeId(Long rechargeTypeId) {
        this.rechargeTypeId = rechargeTypeId;
    }

    public String getRechargeTypeName() {
        return rechargeTypeName;
    }

    public void setRechargeTypeName(String rechargeTypeName) {
        this.rechargeTypeName = rechargeTypeName;
    }

    public Date getRechargeDate() {
        return rechargeDate;
    }

    public void setRechargeDate(Date rechargeDate) {
        this.rechargeDate = rechargeDate;
    }

    public BigDecimal getRechargeAmount() {
        return rechargeAmount;
    }

    public void setRechargeAmount(BigDecimal rechargeAmount) {
        this.rechargeAmount = rechargeAmount;
    }

    public BigDecimal getCollectionAmount() {
        return collectionAmount;
    }

    public void setCollectionAmount(BigDecimal collectionAmount) {
        this.collectionAmount = collectionAmount;
    }

    public BigDecimal getRefundDebtMoney() {
        return refundDebtMoney;
    }

    public void setRefundDebtMoney(BigDecimal refundDebtMoney) {
        this.refundDebtMoney = refundDebtMoney;
    }

    public BigDecimal getRechargeGiftAmount() {
        return rechargeGiftAmount;
    }

    public void setRechargeGiftAmount(BigDecimal rechargeGiftAmount) {
        this.rechargeGiftAmount = rechargeGiftAmount;
    }

    public Integer getIsReceived() {
        return isReceived;
    }

    public void setIsReceived(Integer isReceived) {
        this.isReceived = isReceived;
    }

    public BigDecimal getAmountRefunded() {
        return amountRefunded;
    }

    public void setAmountRefunded(BigDecimal amountRefunded) {
        this.amountRefunded = amountRefunded;
    }

    public Integer getIsDeduct() {
        return isDeduct;
    }

    public void setIsDeduct(Integer isDeduct) {
        this.isDeduct = isDeduct;
    }

}

