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.*;

@TableName(value = "wx_refund_order")
@Data
@EqualsAndHashCode(callSuper = true)
public class WxRefundOrder extends BaseEntity {
	private static final long serialVersionUID = 1L;
	

    protected Long 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;
	@io.swagger.annotations.ApiModelProperty(value="微信生成的订单号",name="transactionId")
	private String transactionId;
	@io.swagger.annotations.ApiModelProperty(value="订单ID-out_trade_no",name="orderId")
	private Long orderId;
	@io.swagger.annotations.ApiModelProperty(value="支付订单号",name="payOrderNo")
	private String payOrderNo;
	@io.swagger.annotations.ApiModelProperty(value="用户ID",name="cUserId")
	private Long cUserId;
	@io.swagger.annotations.ApiModelProperty(value="订单总金额(分)",name="totalFee")
	private Integer totalFee;
	@io.swagger.annotations.ApiModelProperty(value="退款总金额",name="refundFee")
	private Integer refundFee;
	@io.swagger.annotations.ApiModelProperty(value="退款发起时间(秒)",name="refundTimeStart")
	private Date refundTimeStart;
	@io.swagger.annotations.ApiModelProperty(value="退款结束时间(秒)",name="refundTimeEnd")
	private Date refundTimeEnd;
	@io.swagger.annotations.ApiModelProperty(value="支付渠道: 0-微信 1-支付宝 2-银联 ",name="refundVendor")
	private Integer refundVendor;
	@io.swagger.annotations.ApiModelProperty(value="支付状态: 0-退款中;1-退款成功;2-退款失败",name="refundOrderStatus")
	private Integer refundOrderStatus;
	@io.swagger.annotations.ApiModelProperty(value="微信退款单号",name="refundId")
	private String refundId;
	@io.swagger.annotations.ApiModelProperty(value="支付失败原因",name="failReason")
	private String failReason;

	@io.swagger.annotations.ApiModelProperty(value="支付后结果来源(0:inside, 1:POS)",name="refundFrom")
	private Integer refundFrom;
	@io.swagger.annotations.ApiModelProperty(value="支付订单号，来源于POS",name="posPayOrderId")
	private Long posPayOrderId;
	@io.swagger.annotations.ApiModelProperty(value="退款订单号，来源于POS",name="posRefundOrderId")
	private Long posRefundOrderId;
	@io.swagger.annotations.ApiModelProperty(value="支付订单创建时间，来源于POS",name="posRefundOrderTime")
	private Long posRefundOrderTime;
	@io.swagger.annotations.ApiModelProperty(value="支付订单退款状态(0:非手动,1:手动退款,2:手动释放同步)，来源于POS",name="posRefundOrderStatus")
	private Integer posRefundOrderStatus;
	@io.swagger.annotations.ApiModelProperty(value="退款方式: 0微信;1支付宝;2现金;3优惠券;4预付卡;5银行卡6记账，来源于POS",name="posRefundType")
	private Integer posRefundType;
	@io.swagger.annotations.ApiModelProperty(value="退款订单流水号, 来源于POS, 第三方（微信、支付宝、富茂预付卡）支付订单流水号，富茂优惠券ID，现金和富茂会员折扣时为空",name="posRefundOrderNo")
	private String posRefundOrderNo;
	@io.swagger.annotations.ApiModelProperty(value="POS支付描述",name="posRefundDes")
	private String posRefundDes;

}
