com.univapay.sdk.settings.UnivapaySettings Maven / Gradle / Ivy
The newest version!
package com.univapay.sdk.settings;
import com.univapay.sdk.models.common.auth.AuthStrategy;
import com.univapay.sdk.utils.UnivapayClient;
import okhttp3.ConnectionPool;
import okhttp3.OkHttpClient;
public class UnivapaySettings extends AbstractSDKSettings {
@Override
public UnivapaySettings copy() {
return new UnivapaySettings()
.withEndpoint(this.endpoint)
.withTimeoutSeconds(this.timeout)
.attachOrigin(this.origin)
.withRefreshLoginJWTCallback(this.refreshLoginJWTCallback);
}
@Override
public OkHttpClient getClient(AuthStrategy authStrategy) {
return UnivapayClient.getDefaultClientBuilder(authStrategy, this).build();
}
@Override
public OkHttpClient getClient(AuthStrategy authStrategy, ConnectionPool connectionPool) {
return UnivapayClient.getDefaultClientBuilder(authStrategy, this)
.connectionPool(connectionPool)
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy