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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 提交修改结算账户请求 DTO。
 *
 * @author jeesharp
 * @since 2026-06-12
 */
@Data
@Schema(description = "修改结算账户提交请求")
public class PaySubMerchantSettlementModifyDTO {

    @NotBlank(message = "进件记录 ID 不能为空")
    @Schema(description = "进件主表 ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private String applymentId;

    @NotBlank(message = "账户类型不能为空")
    @Schema(description = "账户类型：ACCOUNT_TYPE_BUSINESS/ACCOUNT_TYPE_PRIVATE", requiredMode = Schema.RequiredMode.REQUIRED)
    private String accountType;

    @NotBlank(message = "开户银行不能为空")
    @Schema(description = "开户银行", requiredMode = Schema.RequiredMode.REQUIRED)
    private String accountBank;

    @Schema(description = "开户银行省市编码")
    private String bankAddressCode;

    @Schema(description = "开户银行全称（含支行）；选「其他银行」时必填")
    private String bankName;

    @NotBlank(message = "银行账号不能为空")
    @Schema(description = "银行账号（明文，服务端加密后提交微信）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String accountNumber;

    @NotBlank(message = "开户名称不能为空")
    @Schema(description = "开户名称（明文，服务端加密后提交微信）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String accountName;

    @Schema(description = "联行号；选「其他银行」时与 bankName 二选一")
    private String bankBranchId;
}
