/*
 *      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.bussiness.entity;

import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-07-20
 */
@Data
@TableName("cyzh_bussiness_debit")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BussinessDebit对象", description = "BussinessDebit对象")
public class BussinessDebit extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 采购商id
	*/
		@ApiModelProperty(value = "采购商id")
		private Long bussinessId;
	/**
	* 扣款类型： 1-分润 2-曝光量收费 3-点击量收费
	*/
		@ApiModelProperty(value = "扣款类型： 1-分润 2-曝光量收费 3-点击量收费")
		private Integer type;
	/**
	* 扣款金额
	*/
		@ApiModelProperty(value = "扣款金额")
		private BigDecimal price;
	/**
	* 关联id： 当type=1时为分佣用户id，当type=2时为报告记录id，当type=3时为点击记录id
	*/
		@ApiModelProperty(value = "关联id： 当type=1时为分佣用户id，当type=2时为曝光记录id，当type=3时为点击记录id")
		private Long relationId;
	/**
	* 手续费，当type=1时有值
	*/
		@ApiModelProperty(value = "手续费，当type=1时有值")
		private BigDecimal fee;

	/**
	 * 批量分润申请表id
	 */
	@ApiModelProperty(value = "申请表id")
	private Long requestId;

	@ApiModelProperty(value = "收款帐户的卡号",required = true)
	String receiverAccountNo;

	@ApiModelProperty("收款方开户名")
	private String receiverAccountName;

	@ApiModelProperty("收款方开户行：示例值：ICBC")
	private String receiverBankCode;

	@ApiModelProperty("账户类型,可选项如下: DEBIT_CARD:借记卡 ;CREDIT_CARD:贷记卡; QUASI_CREDIT_CARD:准贷卡; PASSBOOK:存折；UNIT_SETTLE_CARD:单位结算卡； PUBLIC_CARD:对公卡；示例值：DEBIT_CARD")
	private String bankAccountType;

	@ApiModelProperty("第三方支付日志")
	private String thirdPayLog;

	@ApiModelProperty("采购商提供的订单号")
	private String bussinessOrderId;

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

	@ApiModelProperty("扣款方式，2：api对接，否则为xml导入")
	private Integer method;

	@ApiModelProperty("冻结金额")
	private String freeze;

	@ApiModelProperty("当前金额")
	private String currentRemain;

	@ApiModelProperty("请求ip")
	private String requestIp;

	@ApiModelProperty("第三方付款订单号")
	private String thirdOrderNo;

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

	@ApiModelProperty(value = "转账订单ID")
	private Long transferOrderId;




}
