package com.red.circle.order.infra.database.rds.entity.pay;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import java.io.Serial;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 国家支持渠道详情.
 * </p>
 *
 * @author pengshigang
 * @since 2021-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_pay_country_channel_details")
public class PayCountryChannelDetails extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId("id")
  private Long id;

  /**
   * 开通支付国家id.
   */
  @TableField("pay_country_id")
  private Long payCountryId;

  /**
   * 国家渠道关联id.
   */
  @TableField("country_channel_id")
  private Long countryChannelId;

  /**
   * 自家渠道code.
   */
  @TableField("channel_code")
  private String channelCode;

  /**
   * 厂商code.
   */
  @TableField("factory_code")
  private String factoryCode;

  /**
   * 厂商最小限制金额.
   */
  @TableField("factory_min_limit")
  private BigDecimal factoryMinLimit;

  /**
   * 最大支付金额.
   */
  @TableField("factory_max_limit")
  private BigDecimal factoryMaxLimit;

  /**
   * 厂商每日限额.
   */
  @TableField("factory_daily_limit")
  private BigDecimal factoryDailyLimit;

  /**
   * 建议分值.
   */
  @TableField("suggest_score")
  private Integer suggestScore;

  /**
   * 第三方支付渠道code
   */
  @TableField("factory_channel")
  private String factoryChannel;

  /**
   * 厂商货币小数点.
   */
  @TableField("factory_currency_point")
  private Integer factoryCurrencyPoint;


  /**
   * 0.下架 1.上架.
   */
  @TableField("is_shelf")
  private Boolean shelf;


}
