package com.hzs.common.domain.third.pay;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 支付请求主表
 * </p>
 *
 * @author bd
 * @since 2025-07-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("T_ONLINE_PAYMENT_SEP_ACC")
@KeySequence("T_ONLINE_PAYMENT_SEP_ACC_SEQ")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TOnlinePaymentSepAcc extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private Long pkId;

    /**
     * 在线支付信息ID
     */
    @TableField("PK_PAYMENT")
    private Long pkPayment;

    /**
     * 版本号
     */
    @TableField("VERSION")
    private String version;

    /**
     * 支付请求信息
     */
    @TableField("REQ_CONTENT")
    private String reqContent;

    /**
     * 分账请求信息
     */
    @TableField("REQ_CONTENT_SEP_ACC")
    private String reqContentSepAcc;

    /**
     * 支付响应信息
     */
    @TableField("RESP_CONTENT")
    private String respContent;

    @TableField("TRADE_AMOUNT")
    private BigDecimal tradeAmount;

    @TableField("OUT_TRADE_NO")
    private String outTradeNo;

    @TableField(exist = false)
    private List<TOnlinePaymentSepAccD> sepAccDList;
}
