package com.zhongshu.card.server.core.domain.paySetting;

import com.github.microservice.types.payment.PaymentChannelType;
import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.client.type.DataState;
import com.zhongshu.card.server.core.domain.base.SuperMain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 项目里 机构的的支付设置
 *
 * @author TRX
 * @date 2024/7/26
 */
@Data
@Builder
@Document
@AllArgsConstructor
@NoArgsConstructor
public class ProjectOrgPaySettingInfo extends SuperMain {

    // 机构信息
    @Schema(description = "项目名称")
    private String projectName;

    @Schema(description = "项目编码")
    private String projectCode;

    @Schema(description = "所属机构oid")
    private String belongOig;

    @Schema(description = "所属机构名称")
    private String belongOrgName;

    @Schema(description = "项目的支付渠道设置：微信支付、银联支付")
    private PaymentType channelType;

    @Schema(description = "支付产品")
    private PaymentChannelType paymentChannelType;

    //----------------------------------业务数据 -------------------

    @Schema(description = "账户/名称")
    private String name;

    @Schema(description = "商户ID")
    private String mchId;

    @Schema(description = "银行账号")
    private String bankAccountNumber;

    @Schema(description = "开户行")
    private String bankName;

    @Schema(description = "开户支行")
    private String bankSubName;

    @Schema(description = "支付渠道的参数配置")
    private Object payConfig;

    @Schema(description = "是否可用")
    private DataState state = DataState.Enable;

    @Schema(description = "是否是默认的")
    private Boolean isDefault = Boolean.FALSE;

}
