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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author TRX
 * @date 2024/7/26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WxPayConfigParam extends PayConfigParam {

    @Schema(description = "appid 小程序", required = true)
    private String appId;

    @Schema(description = "商户证书序列号")
    private String mchSerialNo;

    @Schema(description = "API V3密钥")
    private String apiV3Key;

    @Schema(description = "认证类型")
    private String authenticationType = "WECHATPAY2-SHA256-RSA2048";

    @Schema(description = "私钥文件地址")
    private String privateKeyPath;

    @Schema(description = "证书文件")
    private MultipartFile privateKeyFile;

    @Schema(description = "支付成功回调地址")
    private String notifyUrl;

}
