/*
 *      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.TransferStatus;
import org.springblade.common.enums.WithdrawStatus;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.yeePay.common.YeepayApiConstant;

import java.math.BigDecimal;

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

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "转账商户用户id")
	private Long ownerId;

	@ApiModelProperty(value = "转账金额")
	private BigDecimal price;

	@ApiModelProperty(value = "实际转账金额")
	private BigDecimal actualPrice;

	@ApiModelProperty(value = "手续费承担方向")
	private YeepayApiConstant.feeChargeSide feeChargeSide;

	@ApiModelProperty(value = "平台手续费")
	private BigDecimal platformFee;

	@ApiModelProperty(value = "第三方转账手续费")
	private BigDecimal fee;

	@ApiModelProperty(value = "REQUEST_RECEIVE:正在处理中 SUCCESS:转账成功 FAIL:失败")
	private TransferStatus transferStatus;

	@ApiModelProperty(value = "转账渠道：yeePay(易宝支付)")
	private String channel;

	@ApiModelProperty(value = "转账到账的金额")
	private BigDecimal receiveAmount;

	@ApiModelProperty(value = "失败原因")
	private String failReason;

	@ApiModelProperty(value = "第三方返回的结果集")
	private String responseJson;

	@ApiModelProperty(value = "第三方平台id")
	private String thirdOrderId;

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

	@ApiModelProperty(value = "提现id")
	private Long withdrawId;

}
