package com.iformall.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.domain.po.base.TenantEntity;
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 TenantEntity {

    protected Long id;

	@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createTime")
	private Date createTime;
	@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateTime")
	private Date updateTime;
	@io.swagger.annotations.ApiModelProperty(value="账单ID",name="billId")
	private Long billId;
	@io.swagger.annotations.ApiModelProperty(value="用户ID",name="bUserId")
	private Long bUserId;
	@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;
	@io.swagger.annotations.ApiModelProperty(value="支付渠道: 0-微信 1-支付宝 2-银联 ",name="payVendor")
	private Integer payVendor;
	@io.swagger.annotations.ApiModelProperty(value="支付订单号",name="payBillNo")
	private String payBillNo;
	@io.swagger.annotations.ApiModelProperty(value="支付状态: 0-支付中;1-支付成功;2-支付失败",name="payBillStatus")
	private Integer payBillStatus;
	@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;
	}

}
