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

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.ToString;
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-29
 */
@Data
@TableName("ldt_bill_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BillRecord对象", description = "BillRecord对象")
public class BillRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 用户id
	*/
		@ApiModelProperty(value = "用户id")
		private Long userId;
	/**
	* 商店id
	*/
		@ApiModelProperty(value = "商店id")
		private Long shopId;

	/**
	 * 联营折扣
	 */
	@ApiModelProperty(value = "联营折扣")
	private BigDecimal subsidy;

	/**
	 * 商场id
	 */
	@ApiModelProperty(value = "商场id")
	private Long mallId;
	/**
	* 该用户在该商店的会员id
	*/
		@ApiModelProperty(value = "该用户在该商店的会员id")
		private Long memberId;
	/**
	* 总价
	*/
		@ApiModelProperty(value = "总价")
		private BigDecimal price;
	/**
	* USER_PAY,AGENT_CHARGE,MALL_CHARGE
	*/
		@ApiModelProperty(value = "USER_PAY,AGENT_CHARGE,MALL_CHARGE")
		private String type;
	/**
	* 唯一的订单号
	*/
		@ApiModelProperty(value = "唯一的订单号")
		private String uniqueOrderNo;
	/**
	* 渠道
	*/
		@ApiModelProperty(value = "渠道")
		private String channel;
	/**
	* 付款方式
	*/
		@ApiModelProperty(value = "付款方式")
		private String payWay;

	/**
	* 渠道订单id
	*/
		@ApiModelProperty(value = "渠道订单id")
		private String channelOrderId;
	/**
	* 付款价格
	*/
		@ApiModelProperty(value = "付款价格")
		private String payAmount;
	/**
	* 易支付返回的支付状态
	*/
		@ApiModelProperty(value = "易支付返回的支付状态")
		private String thirdPayStatus;

	/**
	 * 应付款
	 */
	@ApiModelProperty(value = "应付款")
	private BigDecimal yingfuAmount;
	/**
	* 实际付款价格
	*/
		@ApiModelProperty(value = "实际付款价格 应付款")
		private BigDecimal realPayAmount;
	/**
	* parent_merchant_no
	*/
		@ApiModelProperty(value = "parent_merchant_no")
		private String parentMerchantNo;
	/**
	* merchant_no
	*/
		@ApiModelProperty(value = "merchant_no")
		private String merchantNo;
	/**
	* 付款成功的时间
	*/
		@ApiModelProperty(value = "付款成功的时间")
		private String paySuccessDate;
	/**
	* 付款人信息
	*/
		@ApiModelProperty(value = "付款人信息")
		private String payerInfo;
	/**
	* 支付状态。0：待付款 1：已付款 2：已取消
	*/
		@ApiModelProperty(value = "支付状态。0：待付款 1：已付款 2：已取消")
		private Integer payStatus;

	/**
	 * 订单标题
	 */
	@ApiModelProperty(value = "订单标题")
	private String billsTitle;

	/**
	 * 订单描述
	 */
	@ApiModelProperty(value = "订单描述")
	private String billsDesc;
	/**
	 * 	订单超时时间
	 * */
	@ApiModelProperty("订单超时时间")
	private Date expireTime;

	@ApiModelProperty("小程序id")
	private String appId;

	@ApiModelProperty("openId")
	private String openId;

	@ApiModelProperty("平台订单id")
	private String platformId;
}
