package com.jeesharp.business.modules.pay.paypufaconfig.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 浦发渠道配置实体，映射表 {@code pay_pufa_config}。
 *
 * @author jeesharp
 * @since 2026-05-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("pay_pufa_config")
@Schema(description = "浦发渠道配置")
public class PayPufaConfig extends BaseEntity<PayPufaConfig> {

    @Schema(description = "关联 pay_channel_config.id")
    private String channelConfigId;

    @Schema(description = "配置编码")
    private String configCode;
    @Schema(description = "配置名称")
    private String configName;

    @Schema(description = "记录状态：0-禁用 1-启用")
    private Integer status;
    @Schema(description = "是否调用真实浦发：0-否 1-是")
    private Integer pfaEnabled;

    @Schema(description = "浦发商户号")
    private String spdbMrcNo;
    @Schema(description = "终端号")
    private String terminalNo;
    @Schema(description = "ClientID")
    private String clientId;
    @Schema(description = "商户密钥")
    private String secret;
    @Schema(description = "商户私钥")
    private String privateKey;
    @Schema(description = "浦发公钥")
    private String spdbPublicKey;

    @Schema(description = "APP 支付交易接口")
    private String appPayTrade;
    @Schema(description = "支付查证接口")
    private String appPayStatus;
    @Schema(description = "退货接口")
    private String appPayReturn;
    @Schema(description = "撤销接口")
    private String appPayCancel;

    @Schema(description = "回调基地址")
    private String notifyBaseUrl;
    @Schema(description = "支付中心回调相对路径")
    private String payCenterNotifyPath;
}
