package com.ruoyi.system.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;

/** 单次 LINE Pay 支付尝试；同一订单的历史尝试永不覆盖。 */
@Data
@TableName("pos_order_line_payment")
public class PosOrderLinePayment {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String ddId;
    private String lineOrderId;
    private String transactionId;
    private Long credentialId;
    private Long storeId;
    private Integer amount;
    private Integer capturedAmount;
    private String currency;
    private String paymentMode;
    private String paymentUrlWeb;
    private String paymentUrlApp;
    private String paymentProvider;
    private String status;
    private String activeDdId;
    private Long version;
    private Date nextReconcileAt;
    private Date reconcileDeadline;
    private Integer reconcileCount;
    private String leaseOwner;
    private Date leaseUntil;
    private Date statusChangedAt;
    private Date authCompletedTime;
    private Date payTime;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
