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 com.zhongshu.card.server.core.domain.org.Organization;
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.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

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

    @Schema(description = "项目信息")
    @DBRef(lazy = true)
    private Organization projectInfo;

    @Schema(description = "项目名称")
    private String projectName;

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

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

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

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

}
