package org.jeecg.modules.pay.paytest;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Data
public class WechatPayProperties {
    private String mchId;
    private String apiV3Key;
    private String privateKeyPath;
    private String certDir;
    private Long autoRefreshInterval;

    // 证书响应实体
    public static class CertificatesResponse {
        private List<Certificate> data;
    }

    public static class Certificate {
        private String serialNo;
        private String effectiveTime;
        private String expireTime;
        private EncryptCertificate encryptCertificate;
    }

    public static class EncryptCertificate {
        private String algorithm;
        private String nonce;
        private String associatedData;
        private String ciphertext;
    }
}