/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.ldt.bills.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.common.enums.WithdrawType;
import org.springblade.core.tenant.mp.TenantEntity;

import javax.validation.constraints.Min;
import java.math.BigDecimal;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-09-23
 */
@Data
@TableName("ldt_withdraw_rec")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WithdrawRec对象", description = "WithdrawRec对象")
public class WithdrawRec extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 提现用户类型： 商家,代理
	 */
	@ApiModelProperty(value = "提现用户类型： 商家,代理")
	private String ownerType;
	/**
	 * 提现用户类型对应的id
	 */
	@ApiModelProperty(value = "提现用户类型对应的id")
	private Long ownerId;
	/**
	 * 提现金额
	 */
	@ApiModelProperty(value = "提现金额")
	@Min(value = 10, message = "提现金额不能小于10元")
	private BigDecimal price;
	/**
	 * 需扣积分价值
	 */
	@ApiModelProperty(value = "需扣积分价值")
	private BigDecimal pointValue;
	/**
	 * 实际提现金额
	 */
	@ApiModelProperty(value = "实际提现金额")
	private BigDecimal actualPrice;
	/**
	 * 平台提现手续费
	 */
	@ApiModelProperty(value = "平台提现手续费")
	private BigDecimal platformFee;
	/**
	 * 第三方提现手续费
	 */
	@ApiModelProperty(value = "第三方提现手续费")
	private BigDecimal fee;
	/**
	 * 提现状态： 提现申请中，提现成功，提现失败
	 */
	@ApiModelProperty(value = "提现状态： 提现申请中，提现成功，提现失败")
	private String withdrawStatus;
	/**
	 * 提现订单号
	 */
	@ApiModelProperty(value = "提现订单号")
	private String orderId;
	/**
	 * 提现渠道：yeePay(易宝支付)
	 */
	@ApiModelProperty(value = "提现渠道：yeePay(易宝支付)")
	private String channel;
	/**
	 * 用户银行表id
	 */
	@ApiModelProperty(value = "用户银行表id")
	private Long userBankId;
	/**
	 * 账号类型
	 */
	@ApiModelProperty(value = "账号类型")
	private String bankAccountType;
	/**
	 * 银行类型
	 */
	@ApiModelProperty(value = "银行类型")
	private String bankCode;
	/**
	 * 接收人真实姓名
	 */
	@ApiModelProperty(value = "接收人真实姓名")
	private String receiverAccountName;
	/**
	 * 接收人的银行账号
	 */
	@ApiModelProperty(value = "接收人的银行账号")
	private String receiverAccountNo;
	/**
	 * 到账类型，默认实时到账
	 */
	@ApiModelProperty(value = "到账类型，默认实时到账")
	private String receiveType;
	/**
	 * 提现到账的金额
	 */
	@ApiModelProperty(value = "提现到账的金额")
	private BigDecimal receiveAmount;
	/**
	 * 失败原因
	 */
	@ApiModelProperty(value = "失败原因")
	private String failReason;
	/**
	 * 第三方返回的结果集
	 */
	@ApiModelProperty(value = "第三方返回的结果集")
	private String responseJson;
	/**
	 * 第三方平台id
	 */
	@ApiModelProperty(value = "第三方平台id")
	private String thirdOrderId;

	@ApiModelProperty(value = "提现类型（1:余额提现   2:积分提现   3:应收提现）")
	private WithdrawType type;

	@ApiModelProperty(value = "商户请求号")
	private String requestNo;

}
