package com.jeesharp.business.modules.pay.paysubmerchantapplyment.dto;

import com.jeesharp.framework.pojo.dto.BaseSaveDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import lombok.EqualsAndHashCode;

/**
 * 特约商户进件保存 DTO（草稿）。
 *
 * @author jeesharp
 * @since 2026-05-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "特约商户进件保存")
public class PaySubMerchantApplymentSaveDTO extends BaseSaveDTO {

    @Length(max = 124, message = "业务申请编号最长124字符")
    @Schema(description = "业务申请编号（新增可空，由服务端按服务商商户号自动生成）")
    private String businessCode;

    @Schema(description = "商户简称")
    private String merchantShortname;

    @Schema(description = "主体类型")
    private String subjectType;

    @NotBlank(message = "进件所属租户不能为空")
    @Schema(description = "进件所属租户主键（企业租户表 id，业务字段）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String applymentTenantId;

    @NotBlank(message = "进件所属租户编号不能为空")
    @Schema(description = "进件所属租户编号（企业租户表 code，业务字段）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String applymentTenantCode;

    @NotBlank(message = "进件资料 JSON 不能为空")
    @Schema(description = "进件草稿 JSON（与微信 /v3/applyment4sub/applyment/ 请求体一致）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String draftJson;

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