package org.dromara.pay.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.pay.domain.PayChannel;

/**
 * 支付渠道业务对象 pay_channel
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode
@AutoMapper(target = PayChannel.class, reverseConvertGenerate = false)
public class PayChannelBo {

    /**
     * 渠道ID
     */
    private Long id;

    /**
     * 渠道编码(alipay_pc, wx_pub)
     */
    @NotBlank(message = "渠道编码不能为空")
    private String code;

    /**
     * 状态(0开启 1关闭)
     */
    @NotNull(message = "状态不能为空")
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 渠道费率(%)
     */
    @NotNull(message = "渠道费率不能为空")
    private Double feeRate;

    /**
     * 应用ID
     */
    @NotNull(message = "应用ID不能为空")
    private Long appId;

    /**
     * 支付渠道配置(JSON)
     */
    @NotBlank(message = "支付渠道配置不能为空")
    private String config;

}
