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

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
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-11-15
 */
@Data
@TableName("cyzh_bussiness_pay_order")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BussinessPayOrder对象", description = "商户代付订单")
public class BussinessPayOrder extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 商户请求号
	*/
		@ApiModelProperty(value = "商户请求号")
		private String requestNo;
	/**
	* 第三方付款订单号
	*/
		@ApiModelProperty(value = "第三方付款订单号")
		private String thirdOrderNo;
	/**
	* 采购商提供的订单号
	*/
		@ApiModelProperty(value = "采购商提供的订单号")
		private String bussinessOrderId;
	/**
	* 采购商ID
	*/
		@ApiModelProperty(value = "采购商ID")
		private Long bussinessId;
	/**
	* 付款金额
	*/
		@ApiModelProperty(value = "付款金额")
		private BigDecimal orderAmount;
	/**
	* 业务类型，1：商户代付，2：平台分润
	*/
		@ApiModelProperty(value = "业务类型，1：商户代付，2：平台分润")
		private Integer bizType;

	/**
	 * 业务ID
	 */
	@ApiModelProperty(value = "业务ID")
	private String bizId;

	/**
	* 渠道手续费
	*/
		@ApiModelProperty(value = "渠道手续费")
		private BigDecimal channelFee;
	/**
	* 转账订单主键ID
	*/
		@ApiModelProperty(value = "转账订单主键ID")
		private Long transferOrderId;
	/**
	* 收款帐户的卡号:当type=1时有值
	*/
		@ApiModelProperty(value = "收款帐户的卡号:当type=1时有值")
		private String receiverAccountNo;
	/**
	* 收款方开户名
	*/
		@ApiModelProperty(value = "收款方开户名")
		private String receiverAccountName;
	/**
	* 收款方开户行
	*/
		@ApiModelProperty(value = "收款方开户行")
		private String receiverBankCode;
	/**
	* 账户类型
	*/
		@ApiModelProperty(value = "账户类型")
		private String bankAccountType;
	/**
	* 支行编号
	*/
		@ApiModelProperty(value = "支行编号")
		private String branchBankCode;
	/**
	* 第三方支付日志
	*/
		@ApiModelProperty(value = "第三方支付日志")
		private String thirdLog;
	/**
	* 失败原因
	*/
		@ApiModelProperty(value = "失败原因")
		private String failReason;
	/**
	* 扣款方式，2：api对接，1：xml导入
	*/
		@ApiModelProperty(value = "扣款方式，2：api对接，1：xml导入")
		private Integer method;
	/**
	* 冻结金额
	*/
		@ApiModelProperty(value = "冻结金额")
		private String freeze;
	/**
	* 当前余额
	*/
		@ApiModelProperty(value = "当前余额")
		private String currentRemain;
	/**
	* 请求IP
	*/
		@ApiModelProperty(value = "请求IP")
		private String requestIp;

		@ApiModelProperty(value = "付款状态")
		private String payStatus;

		@ApiModelProperty(value = "付款过程标识")
		private String payFlag;

		@ApiModelProperty(value = "采购商代付订阅地址")
		private String bizPayNotifyUrl;

	@ApiModelProperty(value = "返回收款银行账户入账金")
	private BigDecimal receiveAmount;

	@ApiModelProperty(value = "返回付款账户扣账金额")
	private BigDecimal debitAmount;


}
