/*
 *      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.modules.guosen.bussinessuserwithdraw.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-10-11
 */
@Data
@TableName("cyzh_bussiness_user_withdraw")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BussinessUserWithdraw对象", description = "BussinessUserWithdraw对象")
public class BussinessUserWithdraw extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 商户请求号
	*/
		@ApiModelProperty(value = "商户请求号")
		private String requestNo;
	/**
	* 商户号
	*/
		@ApiModelProperty(value = "商户号")
		private String merchantNo;
	/**
	* 提现卡ID
	*/
		@ApiModelProperty(value = "提现卡ID")
		private String bankCardId;
	/**
	* 提现账号
	*/
		@ApiModelProperty(value = "提现账号")
		private String bankAccountNo;

		/**
		* 提现账户名
		*/
		@ApiModelProperty(value = "提现账户名")
		private String receiverAccountName;

	/**
	 * 提现银行编码
	 */
	@ApiModelProperty(value = "提现银行编码")
	private String bankCode;

	/**
	* 到账类型	REAL_TIME:实时	TWO_HOUR:2小时到账	NEXT_DAY:次日到账（无特殊情况资金于次日上午7点左右到提现银行账户中）
	*/
		@ApiModelProperty(value = "到账类型	REAL_TIME:实时	TWO_HOUR:2小时到账	NEXT_DAY:次日到账（无特殊情况资金于次日上午7点左右到提现银行账户中）")
		private String receiveType;
	/**
	* 提现金额，单位：元（RMB）
	*/
	@NotNull
		@ApiModelProperty(value = "提现金额，单位：元（RMB）")
		private BigDecimal orderAmount;
	/**
	* 银行附言	展示在收款银行系统中的附言，由数字、字母、汉字组成（最终附言内容以银行实际账单为准）。
	*/
		@ApiModelProperty(value = "银行附言	展示在收款银行系统中的附言，由数字、字母、汉字组成（最终附言内容以银行实际账单为准）。")
		private String remark;
	/**
	* 小微用户信息id
	*/
		@ApiModelProperty(value = "小微用户信息id")
		private Long userInfoId;
	/**
	* 提现状态
	*/
		@ApiModelProperty(value = "提现状态")
		private Integer withdrawStatus;
	/**
	* 第三方提现订单号
	*/
		@ApiModelProperty(value = "第三方提现订单号")
		private String thirdOrderNo;
	/**
	* 第三方提现日志
	*/
		@ApiModelProperty(value = "第三方提现日志")
		private String thirdLog;
	/**
	* 失败原因
	*/
		@ApiModelProperty(value = "失败原因")
		private String failReason;
	/**
	* 真实提现金额
	*/
		@ApiModelProperty(value = "真实提现金额")
		private String thirdOrderAmount;
	/**
	* 扣账金额，返回易宝账户扣账金额（包含提现金额和手续费（若有））
	*/
		@ApiModelProperty(value = "扣账金额，返回易宝账户扣账金额（包含提现金额和手续费（若有））")
		private String thirdDebitAmount;
	/**
	* 到账金额，返回提现银行账户入账金额
	*/
		@ApiModelProperty(value = "到账金额，返回提现银行账户入账金额")
		private String thirdReceiveAmount;
	/**
	* 手续费
	*/
		@ApiModelProperty(value = "手续费")
		private String fee;
	/**
	* 手续费承担方商编	
	*/
		@ApiModelProperty(value = "手续费承担方商编	")
		private String feeUndertakerMerchantNo;
	/**
	* 冲退标识
	*/
		@ApiModelProperty(value = "冲退标识")
		private Integer isReversed;
	/**
	* 返回银行通知冲退的时间
	*/
		@ApiModelProperty(value = "返回银行通知冲退的时间")
		private String reverseTime;

	/**
	 * 所属商户ID
	 */
	@ApiModelProperty(value = "所属商户ID")
	private Long bussinessId;

		private Long firstTransferOrderId;

	private Long secondTransferOrderId;

	/**
	 * 小微用户进件请求ID
	 */
	private Long userRegisterRequestId;

	/**
	 * 失败原因
	 */
	@ApiModelProperty(value = "失败原因")
	private String returnMsg;

	/**
	 * 商户提供的订单号
	 */
	private String bussinessOrderId;

	/**
	 * 请求来源IP
	 */
	private String requestIp;

	/**
	 * 提现完成标识
	 */
	private String withdrawFlag;


}
