package com.ruoyi.system.omgpay.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

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

/**
 * Local append-only record of an OMG checkout form created for an order.
 */
@Data
@TableName("pos_order_omg_attempt")
public class OmgPaymentAttempt {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String ddId;
    private String merchantTradeNo;
    private Long storeId;
    private String merchantId;
    private Integer amount;
    private String hashKeySnapshot;
    private String hashIvSnapshot;
    private Integer attemptStatus;
    private String activeDdId;
    private String tradeNo;
    private Integer rtnCode;
    private String rtnMsg;
    private String paymentType;
    private Date paymentDate;
    private Date tradeDate;
    private BigDecimal paymentTypeChargeFee;
    private Integer simulatePaid;
    private Date lastNotifyTime;
    private Date nextQueryTime;
    private Integer queryCount;
    private Date lastQueryTime;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
