package com.iformall.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.domain.po.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


import java.util.Date;

/**
 * @author gongbiao
 */
@TableName(value = "wx_pay_bill")
@Data
@EqualsAndHashCode(callSuper = true)
public class WxPayBill extends BaseEntity {
	private static final long serialVersionUID = 1L;


    protected Long id;


    /**租户ID**/
	@io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId")
	private String tenantId;
	/**创建时间**/
	@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createTime")
	private Date createTime;
	/**更新时间**/
	@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateTime")
	private Date updateTime;
	/**账单ID**/
	@io.swagger.annotations.ApiModelProperty(value="账单ID",name="billId")
	private Long billId;
	/**用户ID**/
	@io.swagger.annotations.ApiModelProperty(value="用户ID",name="bUserId")
	private Long bUserId;
	/**ip地址**/
	@io.swagger.annotations.ApiModelProperty(value="ip地址",name="ip")
	private String ip;
	/**支付金额(分)**/
	@io.swagger.annotations.ApiModelProperty(value="支付金额(分)",name="payAmount")
	private Long payAmount;
	/**支付发起时间**/
	@io.swagger.annotations.ApiModelProperty(value="支付发起时间",name="payTimeStart")
	private Date payTimeStart;
	/**支付结束时间**/
	@io.swagger.annotations.ApiModelProperty(value="支付结束时间",name="payTimeEnd")
	private Date payTimeEnd;
	/**微信预支付交易会话标识**/
	@io.swagger.annotations.ApiModelProperty(value="微信预支付交易会话标识",name="prepayId")
	private String prepayId;
	/**微信生成的订单号**/
	@io.swagger.annotations.ApiModelProperty(value="微信生成的订单号",name="transactionId")
	private String transactionId;
	/**支付渠道: 0-微信 1-支付宝 2-银联 **/
	@io.swagger.annotations.ApiModelProperty(value="支付渠道: 0-微信 1-支付宝 2-银联 ",name="payVendor")
	private Integer payVendor;
	/**支付订单号**/
	@io.swagger.annotations.ApiModelProperty(value="支付订单号",name="payBillNo")
	private String payBillNo;
	/**支付状态: 0-支付中;1-支付成功;2-支付失败**/
	@io.swagger.annotations.ApiModelProperty(value="支付状态: 0-支付中;1-支付成功;2-支付失败",name="payBillStatus")
	private Integer payBillStatus;
	/**分账状态: 0-未分账;1-分账**/
	@io.swagger.annotations.ApiModelProperty(value="分账状态: 0-未分账;1-分账",name="payBillStatus")
	private Integer share;
	/**分账金额(总金额扣除手续费后的金额)**/
	@io.swagger.annotations.ApiModelProperty(value="分账金额",name="shareAmount")
	private Integer shareAmount;
	/**支付失败原因**/
	@io.swagger.annotations.ApiModelProperty(value="支付失败原因",name="failReason")
	private String failReason;

	@io.swagger.annotations.ApiModelProperty(value="openId",name="openId")
	private String openId;


	public Long getbUserId() {
		return bUserId;
	}

	public void setbUserId(Long bUserId) {
		this.bUserId = bUserId;
	}

	public Long getBUserId() {
		return bUserId;
	}

	public void setBUserId(Long bUserId) {
		this.bUserId = bUserId;
	}

}
