All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gitee.putaoo.easypay.config.WxPayProperties Maven / Gradle / Ivy

package io.gitee.putaoo.easypay.config;

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

import java.io.Serializable;

@Data
@Configuration
@ConfigurationProperties(prefix = "easy.pay.wxpay")
public class WxPayProperties {
    /**
     * notify-url
     */
    private String notifyUrl;

    /**
     * refund notify url
     */
    private String notifyRefundUrl;

    /**
     * cert
     */
    private Cert cert;

    /**
     * 公众号
     */
    private Wxgzh gzh;

    /**
     * config
     */
    private Config config;

    @Data
    public static class Cert implements Serializable{
        /**
         * cert-path
         */
        private String certPath;
        /**
         * cert-name
         */
        private String certName;
    }

    @Data
    public static class Config implements Serializable{
        /**
         * service-id,自定义的租户id
         */
        private String serviceId;
        /**
         * appid
         */
        private String appId;
        /**
         * mch id
         */
        private String mchId;
        /**
         * API key
         */
        private String mchKey;
    }

    @Data
    public static class Wxgzh implements Serializable{
        /**
         * app id
         */
        private String appId;
        /**
         * app secret
         */
        private String appSecret;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy