package com.gxwebsoft.apps.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 海牛收银台记录表
 *
 * @author WebSoft
 * @since 2022-11-18 11:47:09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Cashier对象", description = "海牛收银台记录表")
@TableName("apps_cashier")
public class Cashier implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "cashier_id", type = IdType.AUTO)
    private Integer cashierId;

    @ApiModelProperty(value = "客户ID")
    private String buyerId;

    @ApiModelProperty(value = "设备ID")
    private String merchantCode;

    @ApiModelProperty(value = "支付标识")
    private String code;

    @ApiModelProperty(value = "返回消息")
    private String msg;

    @ApiModelProperty(value = "客户端交易订单编号")
    private String outTradeNo;

    @ApiModelProperty(value = "数量")
    private String amount;

    @ApiModelProperty(value = "支付时间")
    private String payTime;

    @ApiModelProperty(value = "支付方式")
    private String payType;

    @ApiModelProperty(value = "交易金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "实收金额")
    private BigDecimal receiptAmount;

    @ApiModelProperty(value = "第三方交易手续费")
    private BigDecimal feeAmount;

    @ApiModelProperty(value = "第三方结算金额")
    private BigDecimal settleAmount;

    @ApiModelProperty(value = "商户名称")
    private String merchantName;

    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @ApiModelProperty(value = "订单备注")
    private String orderRemark;

    @ApiModelProperty(value = "订单状态")
    private String orderStatus;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

}
