package com.zhongshu.card.client.model.paySetting.paySetting;

import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.client.model.projectAbout.PayChannelConfigModel;
import com.zhongshu.card.client.model.projectAbout.PayChannelSimpleModel;
import com.zhongshu.card.client.type.DataState;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author TRX
 * @date 2024/7/26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrgPayShowSettingModel {

    @Schema(description = "项目的支付渠道设置")
    private PaymentType channelType;

    private String channelTypeStr;

    public String getChannelTypeStr() {
        if (channelType != null) {
            return channelType.getRemark();
        }
        return "";
    }

    private PaymentType paymentType;

    @Schema(description = "关联的支付产品信息")
    private PayChannelSimpleModel payChannelConfigModel;

}
