package com.red.circle.order.app.common;

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

/**
 * PayerMax配置属性
 *
 * @author system
 */
@Data
@Component
@ConfigurationProperties(prefix = "red-circle.pay.payer-max")
public class PayerMaxProperties {
    
    private String secretKey;
    private String merchantId;
    private String gatewayBaseUrl;
    private String rsaPrivateKey;
    private String platformRsaPublicKey;
    private String appId;
    
    /**
     * 是否启用实时汇率，默认为false（关闭）
     */
    private Boolean enableRealTimeExchangeRate = false;
    
    public String getSecretKey() {
        return secretKey;
    }
    
    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }
    
    public String getMerchantId() {
        return merchantId;
    }
    
    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }
    
    public String getGatewayBaseUrl() {
        return gatewayBaseUrl;
    }
    
    public void setGatewayBaseUrl(String gatewayBaseUrl) {
        this.gatewayBaseUrl = gatewayBaseUrl;
    }
    
    public String getRsaPrivateKey() {
        return rsaPrivateKey;
    }
    
    public void setRsaPrivateKey(String rsaPrivateKey) {
        this.rsaPrivateKey = rsaPrivateKey;
    }
    
    public String getPlatformRsaPublicKey() {
        return platformRsaPublicKey;
    }
    
    public void setPlatformRsaPublicKey(String platformRsaPublicKey) {
        this.platformRsaPublicKey = platformRsaPublicKey;
    }
    
    public String getAppId() {
        return appId;
    }
    
    public void setAppId(String appId) {
        this.appId = appId;
    }
    
    public Boolean getEnableRealTimeExchangeRate() {
        return enableRealTimeExchangeRate;
    }
    
    public void setEnableRealTimeExchangeRate(Boolean enableRealTimeExchangeRate) {
        this.enableRealTimeExchangeRate = enableRealTimeExchangeRate;
    }
}
