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

import com.github.microservice.types.payment.PayFieldType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 支付参数字段
 *
 * @author TRX
 * @date 2024/10/22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PayConfigField {

    @Schema(description = "字段名称，如：名称，appId")
    private String name;

    @Schema(description = "字段类型，如：Str, File")
    private PayFieldType type;

    @Schema(description = "对应的后端字段，如：name、appId")
    private String key;

    @Schema(description = "是否必须")
    private Boolean isMust = Boolean.TRUE;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "最大长度")
    private Integer maxLength = 500;

    @Schema(description = "关联判断的")
    private PayShowField payShowField;

}
